You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(crypto): CRP-2056 restart `ic-crypto-csp.service` after 100ms
If `ic-crypto-csp.service` is killed for whatever reason (e.g., due to a bug resulting in the server panicking), systemd currently waits for `10s` before restarting the service. A side effect of the automatic reconnection of CSP vault clients introduced in [MR-11747](https://gitlab.com/dfinity-lab/public/ic/-/merge_requests/11747) is that any request being made to the CSP vault server after it was killed will hang until the server was restarted by systemd, which means that callers of the CSP vault clients may have to wait up to 10s before receiving a response (starting the CSP vault server is usually very fast and takes much less than 1s).
This MR changes the configuration of `ic-crypto-csp.service` so that in such a case the server restarts after 100ms (default value for [`RestartSec`](https://manpages.ubuntu.com/manpages/focal/man5/systemd.service.5.html)). To prevent a repeatedly failing start of `ic-crypto-csp.service` to pollute logs unnecessarily, start rate limiting is also applied: `ic-crypto-csp.service` will be started at most 5 times within 60s.
See merge request dfinity-lab/public/ic!12556
0 commit comments