summaryrefslogtreecommitdiffstats
path: root/kolabd
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2014-01-26 16:24:16 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2014-01-26 16:24:55 +0100
commit647634e70b04f7c624bd0cfdea755b294d029f8c (patch)
treec870b8d040843693e620e7320dc12872f2efd8ed /kolabd
parent582edb976ea0e6d3489cc9852347f278d51a1c68 (diff)
downloadpykolab-647634e70b04f7c624bd0cfdea755b294d029f8c.tar.gz
Pause between starting domain synchronizations if the number of domains added is greater or equal to 5, for otherwise you will hammer your LDAP server to death
Diffstat (limited to 'kolabd')
-rw-r--r--kolabd/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/kolabd/__init__.py b/kolabd/__init__.py
index 34e54e7..3f43872 100644
--- a/kolabd/__init__.py
+++ b/kolabd/__init__.py
@@ -267,6 +267,9 @@ class KolabDaemon(object):
for domain in added_domains:
domain_auth[domain] = Process(domain)
domain_auth[domain].start()
+ # Pause or hammer your LDAP server to death
+ if len(added_domains) >= 5:
+ time.sleep(10)
for domain in removed_domains:
domain_auth[domain].terminate()