-
Notifications
You must be signed in to change notification settings - Fork 302
Rescheduling API? #1335
Comments
@jwaldrip no, not afaik. what is the use case? why not use constraints in the unit file? |
The option here would be to have the flexibility of building my own resource based scheduler on top of what fleet has already provided. In addition, I could also preemptively move units before taking a machine down, rather than having fleet only attempt it as a recovery method. I love how low level fleet is, I just wish the API gave me more control to implement my own control plane. |
On Mon, Aug 24, 2015 at 10:48 AM, Jason Waldrip [email protected]
fleetctl cat {service-id} | awk '{/MachineID=/ sub(/MachineID=.*/, Are you looking for a way to do it through the API? |
Of course. I know it can be done with some custom scripting. By being part of the API, the move command could ensure the service has started on the new before stopping the old. |
Actually, if implement it, the code need first stop it, then start it, the logic is almost same as the script given by jonboulle. The same unit cannot run in both machines. |
And I think mv command is similar with overwrite command #1295, but overwrite command is more general and the functionality is more than "mv" command. So if we accept overwrite, mv duplicates a little. |
Are there any plans to allow for a manual rescheduling of units? i.e.
fleetctl mv {service-id} {machine-id}
The text was updated successfully, but these errors were encountered: