Randomize ud-replicate sync moment
Bug #1839571 reported by
Wouter van Bommel
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
userdir-ldap-charms |
Won't Fix
|
Wishlist
|
Unassigned |
Bug Description
With the installation of this charm, a crontab entry is created with the following content:
# crontab for the replicate operation, 15 min cycle.
10,25,40,55 * * * * root if [ -x /usr/bin/
Which means that on all clouds we are syncing on exactly the same time. This will eventually lead to a ddos, so we should revise this and make it a bit smarter.
*/15 for the minutes would already make a difference, as then it will be started every 15 minutes from the first moment it got the config. (and it will become distributed due to the fact that we are never going to be able to install / update all clouds at the same time.
tags: | added: canonical-bootstack |
Changed in charm-userdir-ldap: | |
importance: | Undecided → Wishlist |
status: | New → Triaged |
information type: | Proprietary → Public |
To post a comment you must log in.
Not sure where this charm was forked from, the version IS normally uses has this:
| https:/ /bazaar. launchpad. net/~canonical- sysadmins/ canonical- is-charms/ userdir- ldap/view/ head:/hooks/ hooks.py# L196