-
Notifications
You must be signed in to change notification settings - Fork 301
Reconfiguring machine metadata might cause rescheduling #959
Comments
Yes |
:-) |
@jonboulle that's how I feel, too, but I want to see if anyone else has a strong opinion |
I think it is the correct behavior as long as units that were stopped are restarted on a different node if a suitable match can be made. What about one shot or batch jobs? I know support isn't in yet, but it feels like they should not be affected by a metadata change since they can't be restarted elsewhere. |
@epipho If batch jobs or oneshots use MachineMetadata to find a host, they are going to be subject to this same behavior. Typically batch jobs are designed to be idempotent, so they can be restarted halfway through execution without issue. |
The only edge case I can think of is for "semi-stateful" apps like game servers where shutting down the service will end the games in that session. Perhaps it just doesn't make sense to use metadata filtering for that kind of job. |
So it seems like we should just make sure the repercussions of reconfiguring metadata are well documented when we tackle #555 |
MachineMetadata= foo=bar"
At this point, the unit will be unscheduled from the node as the MachineMetadata condition is no longer met. Is this the correct behavior?
The text was updated successfully, but these errors were encountered: