Feature #16048
closedAutomatically reload/restart services on configuration change
Updated by Peter Amstutz almost 5 years ago
- Status changed from New to In Progress
Updated by Peter Amstutz almost 5 years ago
- Status changed from In Progress to New
- Tracker changed from Bug to Feature
Updated by Peter Amstutz almost 5 years ago
- Related to Idea #15941: arvados-boot added
Updated by Peter Amstutz almost 5 years ago
- Related to Bug #8374: [KEEPSTORE] detection of new drives added
Updated by Tom Clegg almost 5 years ago
- Related to Idea #16069: [boot] start a dev cluster added
Updated by Tom Clegg over 4 years ago
16048-reload-config @ 45c57dc86010f8fd9ae862d91a710e0752ceda4a -- developer-run-tests: #1807
If AutoReloadConfig is true in the config (see doc/examples/config/zzzzz.yml), arvados-server boot
notices when the config file changes. If it changes in a meaningful way (as opposed to just changing YAML formatting, adding/removing a value that's already the default, etc) then it shuts down and restarts all services. This takes about 15s on my machine.
- configure (at least) the controller URL explicitly instead of relying on auto-assigned ports, so ports stay stable across restarts, or
- expect to reconfigure/restart any clients after updating config, so they use the new controller, keepproxy, keepstore, etc. endpoints, or
- not use AutoReloadConfig.
Updated by Lucas Di Pentima over 4 years ago
Sorry for the delay, yesterday I wasn’t being able to run arvados-server boot
on my usual dev VM because of some bundle version issue. Had to make a new one for it to work.
- I’m thinking that if the idea is to be able to do integration testing with different cluster configurations, maybe we should preserve the postgresql database? I’ve done some manual testing and it seems that it’s more of a complete cluster reset and not just a restart/reload feature.
- If the idea is to just have an automatic cluster reset feature, it LGTM.
Updated by Tom Clegg over 4 years ago
Agree, when using -own-temporary-database
the side effect of resetting the database is probably a drawback more often than a feature. And the big shutdown/startup is slow. For now this just gives us more convenience than restarting everything manually.
In future we'll surely want to make it more efficient -- and perhaps avoid downtime entirely when port #s aren't changing, making it usable in production -- by reloading/restarting only the services that are potentially affected by the change.
Updated by Anonymous over 4 years ago
- % Done changed from 0 to 100
- Status changed from In Progress to Resolved
Applied in changeset arvados|ea6f25f0dde5c750eacea29662c19149c7800134.