]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
userdbd: drastically raise ratelimit we apply on requests for more worker processes
authorLennart Poettering <lennart@poettering.net>
Thu, 22 Jun 2023 16:48:41 +0000 (18:48 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 22 Jun 2023 16:57:30 +0000 (18:57 +0200)
These requests might come in during lookup floods very quickly, since
multiple worker processes might detect that things should be scaled up
at the same time. Hence, let's substantially raise the limit so that it
doesn't get hit in real-life scenarios and acts more like a safety net.

src/userdb/userdbd-manager.c

index 8101ac52db23167cab7b8204e407d0e2f997b8d1..1895e151f4eaa0e7e574e52795c949ed94213e1e 100644 (file)
@@ -71,8 +71,8 @@ int manager_new(Manager **ret) {
         *m = (Manager) {
                 .listen_fd = -EBADF,
                 .worker_ratelimit = {
-                        .interval = 5 * USEC_PER_SEC,
-                        .burst = 50,
+                        .interval = 2 * USEC_PER_SEC,
+                        .burst = 2500,
                 },
         };