-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
nixos/acme: disable rate limiting to fix the test #374984
Conversation
Sometimes the nginx reload service fires too fast so systemd kills it.
/cc #374792 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, approved.
# if a lot of certificates are renewed in quick succession. The reload itself is cheap, | ||
# so even doing a lot of them in a short burst is fine. | ||
# FIXME: there's probably a better way to do this. | ||
StartLimitIntervalSec = 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FWIW, DefaultStartLimitIntervalSec=10
, DefaultStartLimitBurst=5
, so by default restarting more than once every 2 seconds would cause the rate limit to be hit.
Might make sense to also set RestartSteps
and RestartMaxDelaySec
so it backs-off with successive attempts, as RestartSec
is only 100ms by default (or RestartSec could be increased, 100ms might just be unnecessarily fast.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not failing restarts, it's just triggering the start a lot.
Sometimes the nginx reload service fires too fast so systemd kills it.
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.