-
Notifications
You must be signed in to change notification settings - Fork 20
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
(*System) Shutdown signature && bigmachine.Machine unique IDs #13
Comments
A couple of things:
|
Thank you. I misunderstood. I'll review the EC2 implementation as I'm unclear how to "arrange for them to die" on GCE. |
On EC2, the way we do this is to set the instance shutdown behavior to "terminate", and then we instruct systemd to shut down the OS when the process fails. |
I may have to be more explicit about this. I think there's no way for GCE instances to delete themselves on shutdown|failure. |
Okay, maybe there's a way to invoke the GCE API from the command line once the process exits? |
The signature of
Start
is:Whereas (its converse)
Shutdown
is:It feels as though it would be more consistent , if
Shutdown
's signature included bothcontext.Context
and[]*bigmachine.Machine
, also returning an error.Even then,
bigmachine.Machine
's type does not include a unique ID for the machine (beyond an IP address; often not used as a key), would it make sense to add one?I'm not retaining the list of machines created by (
Start
in) the GCE implementation and so, conversely when asked toShutdown
, I must first enumerate all the instances that (I think) have been created (I'm doing this by tag, could potentially use IP) and then make a call to delete these.The text was updated successfully, but these errors were encountered: