Skip to content

Instantly share code, notes, and snippets.

@lee
Created October 15, 2010 03:55
Show Gist options
  • Save lee/627580 to your computer and use it in GitHub Desktop.
Save lee/627580 to your computer and use it in GitHub Desktop.
ey web disable -e weplay_p # SITE DOWN
ey ssh -e weplay_p --utilities=redisslave # ssh redisslave
sudo monit stop redis # stop redis slave
ey ssh -e weplay_p --utilities=redismaster # ssh redismaster
sudo monit stop redis # stop redis master
sudo monit start redis # start redis master
tail -f /data/redis/redis.log # wait for log output to indicate dataset is loaded
# This should take about 4 minutes
# Example output:
# Server started, Redis version 2.0.1
# ...
# The server is now ready to accept connections
ey ssh -e weplay_p --utilities=redisslave # ssh redisslave
sudo monit start redis # start redis slave
tail -f /data/redis/redis.log # wait for log output to indicate dataset is loaded
# This should take about 6 minutes
# Example output
# Server started, Redis version 2.0.1
# ...
# Connecting to MASTER...
# Receiving 539079414 bytes data dump from MASTER
# MASTER <-> SLAVE sync succeeded
ey ssh -e weplay_p --utilities=daemons # restart ruby processes to reconnect to redis
sudo monit restart all -g weplay_daemons
CLOUD_ENV=weplay_production rake cloud:unicorn:restart
ey web enable -e weplay_p # SITE UP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment