Created
October 15, 2010 03:55
-
-
Save lee/627580 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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