-
Notifications
You must be signed in to change notification settings - Fork 250
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
Feature request: ability to stop/start environments #354
Comments
Have you tried the restart button on the environment page? It should restart services on all hosts |
Yes, I've tried the restart button - that does not allow me to take an environment offline for a controlled period of time, which is the main thing I'm trying to do here. e.g., bring down an environment while I run migrations. Does that make sense? |
I see. So the real ask here is a STOP script support as existing PRE_RESTART or RESTART? |
Sure. Akin to clicking the |
Previously, the environment overview page only showed hosts in the deploy status that were not STOPPING or STOPPED. The only way to look at them is to look in "Total" hosts. First of all, it doesn't make sense to me to to have an agent state that shows up in the TOTAL but isn't available in the board. This adds an extra configuration parameter to display STOPPING and STOPPED hosts. It is disabled by default, in case you have some reason you do not display those states. Related: pinterest#354
One thing I noticed: the service will actually try to use
To test this out, I created a
For some extra context: I'm trying to use the STOPPING state to gracefully shutdown my application so I can do long-running tasks like perform database migrations for an application while its frontend environment is down. If this isn't the intended use of the Terminate button, then I suppose I will have to find another way to do it ... |
* optionally display STOPPING and STOPPED hosts Previously, the environment overview page only showed hosts in the deploy status that were not STOPPING or STOPPED. The only way to look at them is to look in "Total" hosts. First of all, it doesn't make sense to me to to have an agent state that shows up in the TOTAL but isn't available in the board. This adds an extra configuration parameter to display STOPPING and STOPPED hosts. It is disabled by default, in case you have some reason you do not display those states. Related: #354 * default DISPLAY_STOPPING_HOSTS to true * default DISPLAY_STOPPING_HOSTS to true in settings I missed this earlier in d5e5efa - changed it in manage.py but not in settings.py.
I'm evaluating Teletraan as a replacement for Capistrano. One important feature in our Capistrano deployment system is the ability to run our init scripts to stop/start all hosts in what Teletraan calls an "environment".
It looks like I can roughly emulate this with the following workflow, when hosts are enumerated explicitly in the "Capacity" page:
This is pretty clunky, however: it downloads a new build and goes through the complete lifecycle for a host (from
PRE_DOWNLOAD
toPOST_RESTART
). Really, all we need to run isRESTARTING
andPOST_RESTART
to resume a host from theSTOPPED
state. It would be nice if there were a way to do this directly.The text was updated successfully, but these errors were encountered: