-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Maintenance mode #1086
Maintenance mode #1086
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor comments, looks good
cmd/emp/maintenance.go
Outdated
Long: ` | ||
Maintenance shows the current maintenance mode state of an app. | ||
Example: | ||
$ emp maintenance |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe show that you should use -a
in these docs.
}, | ||
{ | ||
"scale -l -a acme-inc", | ||
"rake=0:1X scheduled=0:1X web=2:1X worker=0:1X", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we have some indication here that the stack is in maintenance mode so people aren't confused?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I kinda waffled on that a bit. My current feeling is that this shouldn't change, since it would be a breaking change for scripts. We could return something like rake=0:1X scheduler=0:1X web=0:1X worker=0:1X
, but then that's not entirely true, because web is still scaled to 2 in the release.
8678601
to
a01382a
Compare
This adds support for putting applications into "maintenance mode", which can be useful for doing things that might require complete downtime, like DB upgrades.
You can put an application into maintenance mode using the
emp maintenance-enable
command, which masks the scale of all processes to 0. You can then disable maintenance mode withemp maintenance-disable
, which unmasks the scale and returns everything back to normal.