Skip to content
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

Randomize ud-replicate sync moment #13

Open
sudeephb opened this issue Jan 18, 2024 · 2 comments
Open

Randomize ud-replicate sync moment #13

sudeephb opened this issue Jan 18, 2024 · 2 comments

Comments

@sudeephb
Copy link
Contributor

sudeephb commented Jan 18, 2024

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/ud-replicate ]; then /usr/bin/ud-replicate; fi

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.


Imported from Launchpad using lp2gh.

  • date created: 2019-08-09T00:56:42Z

  • owner: woutervb

  • assignee: None

  • the launchpad url

@sudeephb
Copy link
Contributor Author

(by hloeung)
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

@sudeephb
Copy link
Contributor Author

(by hloeung)
Which seems present in this charm as well. So I wonder if these installations are using this charm in the first place?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant