ssh ubuntu@ansible-shared-stg.test.tvlk.cloud
ssh ubuntu@acs-shared-staging-app-01.test.tvlk.cloud -i ~/.ssh/csy-ec2-keypair.pem
Need the csy-ec2-keypair.pem
file.
ssh ubuntu@acs-staging-app-01.test.tvlk.cloud -i ~/.ssh/csy-ec2-keypair.pem
ssh ubuntu@acs-staging-app-02.test.tvlk.cloud -i ~/.ssh/csy-ec2-keypair.pem
ssh ubuntu@acs-staging-app-03.test.tvlk.cloud -i ~/.ssh/csy-ec2-keypair.pem
ssh ubuntu@acs-staging-app-04.test.tvlk.cloud -i ~/.ssh/csy-ec2-keypair.pem
To access other shared-staging instances, ssh to shared-staging gateway, and ssh to the instance listed here: https://29022131.atlassian.net/wiki/display/REL/How+to%253A+Access+Shared+Staging+Instances
# hinv:
PHID-HMBT-so7c7owhj5kkndiuuva6
ssh://git@git.traveloka.com/diffusion/TV/traveloka-product.git
# hops:
PHID-HMBT-xvdp6sqjesxmqnb3aoyz
ssh://git@git.traveloka.com/diffusion/TV/traveloka-product.git
# hb:
PHID-HMBT-krthulxmmecnjhxptlzj
ssh://git@git.traveloka.com/diffusion/TV/traveloka-product.git
TV: 29000
TAP: 29001
FPRGRFD: 29002
HINV (tag_Name_hinv-app-01): 61008
APROPS/HOPS (tag_Name_aprops-app-01): 60092
HB (tag_Name_hb-app-01): 61113
NE: 61004
APRPS: 61117
APRSAPI: 29201
Can be done through #prod-change-review channel, running commands that are supported by @data-change-bot.
dir=(.*) ls
, to list files under the specified directory.
dir=(.*) run=(.*)
, to run the specified file under the specified directory.
git pull
, to update the data-migrations
repo.
mongo ...
, to run mongo
command, such as
mongo --eval EXPRESSION
, run the specified EXPRESSION
inside mongo shell.
mongo --eval EXPRESSION JSFILE
, run the specified EXPRESSION
and the script specified by JSFILE
inside mongo shell.
Create a script on data-migrations
repo (https://phabricator.noc.tvlk.cloud/diffusion/DTMGRT/), and run it using mongo --eval ...
command through @data-change-bot.
mongo --eval "var cluster='[CLUSTER]', mode = '[STATS/READ/UPDATE]', db='[DB]', coll='[COLLECTION]', pretty = 1 " /home/ubuntu/analytics/repository/data-migrations/traveloka-migrations/local/manageCollection.js