-
Notifications
You must be signed in to change notification settings - Fork 72
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
Fixes #37114: Download packages during upgrade before maintenance mode #793
Conversation
One interesting thing is that the download or update packages step will take (on my test machine) ~30 seconds each even if there are no packages being updated. This appears to be because we clean the cache before hand every time called as here. I am realizing that implies a few things:
I would propose:
|
When testing a Satellite update with no package updates, the commit I added to only refresh cache on download step shaves 25 seconds off the downtime of the update run. |
On another note, because we stop services, an update with no packages having changed (so bare minimum downtime) results (on my system) in the installer taking ~3 minutes of the 5 minutes of downtime. The primary culprits:
I'll be curious if the change to Ruby 3+ has any direct impact on this. |
Just to spell out what we talkted about: I think we can omit restarting |
@ekohl Do you know if there is a way at the Puppet level to allow foreman to start before the dynflow service definition is evaluated so that a start is not triggered of the dynflow service? Given we connect things at the systemd level (https://github.com/theforeman/foreman/blob/develop/extras/systemd/dynflow-sidekiq%40.service#L5). Perhaps we just need to manage the file but not the state as we do today (https://github.com/theforeman/puppet-foreman/blob/master/manifests/dynflow/worker.pp#L49-L53) ? |
69f302d
to
030b414
Compare
Just plain It may help to go through the various rake tasks that we define and perhaps make sure they aren't defined in production. Note that https://guides.rubyonrails.org/active_record_migrations.html#running-migrations suggests to run |
Here is an idea I tested to solve the added time due to dynflow restarts: |
1a26b9e
to
0aeb19f
Compare
@evgeni Your re-review would be appreciated. |
0aeb19f
to
a5bf4df
Compare
a5bf4df
to
7e09ea5
Compare
LGTM besides the "foreman nightly" file. |
Only clean package cache when downloading packages Only clean metadata when cleaning dnf cache
7e09ea5
to
a201be3
Compare
No description provided.