Created
July 18, 2024 19:15
-
-
Save zunda/91143ba84ccb6997d70f8aac308b54b9 to your computer and use it in GitHub Desktop.
2024年7月18日のZundonのRedisのバージョンの更新
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
p=zundan-mastodon | |
s=zundan-mastodon-streaming | |
heroku maintenance:on -a $p | |
heroku maintenance:on -a $s | |
heroku ps:scale web=0 -a $p | |
# schedulerは止める | |
heroku ps:scale web=0 -a $s | |
# 他にも生きてるジョブがあるみたい。止める | |
date | |
# Thu Jul 18 09:00:43 HST 2024 | |
for r in redis-closed-03331 redis-rectangular-78366 redis-fluffy-18035; do | |
heroku redis:upgrade $r --version 7.2 -a $p --confirm $p & | |
done | |
wait | |
for r in redis-closed-03331 redis-rectangular-78366 redis-fluffy-18035; do | |
heroku redis:wait $r -a $p | |
done | |
date | |
# Thu Jul 18 09:12:21 HST 2024 | |
# リリースが走るのでそれを待ってからスケールアップしてもよかった。 | |
heroku ps:scale web=1 -a $p | |
heroku ps:scale web=1 -a $s | |
# Dynoの起動を見届けてから | |
heroku maintenance:off -a $s | |
heroku maintenance:off -a $p |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment