-
Notifications
You must be signed in to change notification settings - Fork 247
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
sudo improvements #5610
sudo improvements #5610
Conversation
The tests fails because ldap_sudo_random_offset default to 30 instead of 0. I wonder if I should update the tests or change the default value to 0? |
@sgoveas Hi, this adds new option |
9173976
to
44c5de5
Compare
The code looks good, works for me. I have just one comment: You titled one commit "be: add be_ptask_reschedule" but the function added is called *_postpone. Could you make that consistent for future search/reference? Tom |
This will cancel the next event and schedule it to now + period.
We postpone periodic full and smart refresh tasks when full refresh (either per-request or periodic) is finished. Resolves: SSSD#5604 :feature: Completing a sudo full refresh now postpones the smart refresh by `ldap_sudo_smart_refresh_interval` value. This ensure that the smart refresh is not run too soon after a successful full refresh.
Resolves: SSSD#5609 :feature: Backround sudo periodic tasks (smart and full refresh) periods are now extended by a random offset to spread the load on the server in environments with many clients. The random offset can be changed with `ldap_sudo_random_offset`. :config: Added `ldap_sudo_random_offset` (default to `30`) to add a random offset to backround sudo periodic tasks (smart and full refresh).
Done |
Thank you for the update, |
Resolves: