Univention Bugzilla – Bug 51236
replication of large groups (>100000 members) is very slow
Last modified: 2020-05-27 12:12:47 CEST
Created attachment 10350 [details] suggested patch We're seeing an issue with the replication of the domain users group. It is really slow and takes a couple of minutes to get a single change replicated for that group (which is currently a bit more than 100000). I added some debug logging to replication.py and found that it spends a huge amount of time in a tight loop comparing to dicts. Just to print out a log message when the dicts differ. (Which isn't even logged at the default log level. I'll attach a patch which we have been trying on our test system. If my analysis is correct an this loop has no other function than to create a log message it might make sense to even move that to the DEBUG level. Or get rid of it completely. Just for completeness: The fix for bug#48545 is already deployed here.
Please see also Bug #51233 (fix already exists in branch) about slow handling of large groups.
Successful build Package: univention-directory-replication Version: 12.0.0-11A~4.4.0.202005201834 Branch: ucs_4.4-0 Scope: errata4.4-4 User: jbremer d3df32a868 Bug #51236: yaml 02b27123d1 Bug #51236: patch apply I applied the patch and build univention-directory-replication for 4.4-4 errata
OK: Patch applied. We did not discuss moving the output to a different loglevel. OK: yaml OK: univention-directory-replication 12.0.0-11A~4.4.0.202005201834 Waiting for automated test results before verifying...
Thanks @Julia, i did not realize there were already test runs since the package was build with the patch. Verified
<http://errata.software-univention.de/ucs/4.4/615.html>