-
Notifications
You must be signed in to change notification settings - Fork 302
Conversation
This allows users to easily do rolling restarts of units in the cluster.
@bcwaldon do you mind reviewing this PR |
@@ -75,11 +75,16 @@ Start and stop units with the `start` and `stop` commands: | |||
$ fleetctl start goodbye.service | |||
Unit goodbye.service launched on 85c0c595.../172.17.8.102 | |||
|
|||
$ fleetctl restart goodbye.service |
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.
Please move the restart-related documentation to the bottom of the "Start and stop units" block.
This doesn't seem to work for global units. For an actual restart to happen, we need to guarantee a state transition from launched through loaded and back to launched. If we don't block for global units, they aren't actually guaranteed to restart, which this command is trying to provide. Having said that, I don't think it is possible given the current data model to get what we want with global units, so I would just ignore them and warn the user that we can't restart globals. |
Hi all,
Why: With a simple stop/start... at the end of |
@guilhem I hope I'm not saying something stupid here -- but it seems to me that if all you want to do is have The point about dependencies is worth consideration though. |
I believe the fact that this doesn't work for global units, is just a symptom of this approach -- imperatively launching start and stop commands (or using It seems to me the right way to handle this is to declare that we want the unit to have been started after a certain timestamp (defaulting to @jonboulle does that strike you as reasonable? |
@antrik I think your suggestion is eminently reasonable, but it's a fairly significant change in API. I think we could punt that to a possible v1+ feature and close this particular request with your advice in #1238 (comment) (perhaps adding documentation to that effect). Thoughts? |
@jonboulle well, the advice only applies to the specific use case when people just want You are certainly right though that this is not a trivial change; and while it sounds like an interesting task that I would like to work on, it's up to you to decide priorities. Either way, I do agree that it's probably best to close all the outstanding PRs, as none of them use the "right" approach; and add a note to this effect in #975 . |
@antrik +1 on your summary, mind doing that? |
@jonboulle doing what exactly? Closing the PRs? I don't have permission for that... |
Could you please open a new issue or a feature request based on your comment #1238 (comment) which will be +v1 feature Then please a PR to add documentation based on your comment: #1238 (comment) and yes systemd dependencies do matter when restarting services and even the order since some services may need a socket unit to be already running... |
Sounds fine, if you think that we should also add documentation based on your comment #1238 (comment) then please open a PR, thanks! |
This PR was opened quite a while ago. In that time I've changed companies/jobs/life. As such my toolset also changed and I no longer use fleet. At the time I just used a forked version that included this code. Use it, don't use it, do something else (like what @antrik is suggesting). I'm not emotionally invested in this issue either way at this point and what I think doesn't really matter. It's up to the folks who maintain/use this today to decide how best to move forward. If this code helps the community, great. If it doesn't, trash it. Thanks for thinking of me though. 😄 |
For my part I don't understand new points. To much information in so many PR for my brain ^^ My only point is that it's painful to manage unit change. What I have in view is to be able to "load" a new version of a unit without stopping existing one. And then So for this one, do your best as you always do and it will be good for me. :) |
@guilhem so using |
Thanks all for the comments, more details on how the feature should be implemented used are here: #975 (comment) Closing. |
Fleetctl restart allows users to easily restart units on every machine, without having to run manually like "fleetctl ssh systemctl restart". Both global units and non-global units are supported. Originally taken from Kyle Boorky <kboorky@turbine.com> See also coreos#1238
Fleetctl restart allows users to easily restart units on every machine, without having to run manually like "fleetctl ssh systemctl restart". Both global units and non-global units are supported. Originally taken from Kyle Boorky <kboorky@turbine.com> See also coreos#1238
Fleetctl restart allows users to easily restart units on every machine, without having to run manually like "fleetctl ssh systemctl restart". Both global units and non-global units are supported. Originally written by Kyle Boorky <kboorky@turbine.com> See also coreos#1238
Fleetctl restart allows users to easily restart units on every machine, without having to run manually like "fleetctl ssh systemctl restart". Both global units and non-global units are supported. Originally written by Kyle Boorky <kboorky@turbine.com> See also coreos#1238
Fleetctl restart allows users to easily restart units on every machine, without having to run manually like "fleetctl ssh systemctl restart". Both global units and non-global units are supported. Originally written by Kyle Boorky <kboorky@turbine.com> See also coreos#1238
This allows users to easily do rolling restarts of units in the cluster.
This is the squash requested in #1082, as requested. I didn't want to wait.
This closes #1082 and closes #975