diff options
author | Lennart Poettering <lennart@poettering.net> | 2023-06-22 18:48:41 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2023-06-22 18:57:30 +0200 |
commit | c659d0f55ee5854e40dbaccc20ad0e8da176b271 (patch) | |
tree | 81f7732480eaca476716c8d6f290becbad03b8c5 /src/userdb | |
parent | meson: merge two similar loops for unit files (diff) | |
download | systemd-c659d0f55ee5854e40dbaccc20ad0e8da176b271.tar.xz systemd-c659d0f55ee5854e40dbaccc20ad0e8da176b271.zip |
userdbd: drastically raise ratelimit we apply on requests for more worker processes
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.
Diffstat (limited to 'src/userdb')
-rw-r--r-- | src/userdb/userdbd-manager.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/userdb/userdbd-manager.c b/src/userdb/userdbd-manager.c index 8101ac52db..1895e151f4 100644 --- a/src/userdb/userdbd-manager.c +++ b/src/userdb/userdbd-manager.c @@ -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, }, }; |