@cryptotaxi247 / infra-1 / commits / eee5c4ee

hydra: nginx: better configure processes and max connections

Use nCPUs worker processes instead of the default 1, and allow 2x the default number of connections per worker. This should allow for more queuing between nginx and starman when large bursts of requests come. Hopefully this will cause other requests to get queued instead of dropped on the floor.

Pierre Bourdon committed Feb 8, 2024 at 20:54 UTC eee5c4ee2b6248fea2fab4b4f9d21d99e0be9c48
1 file changed +8
delft/hydra-proxy.nix
+8
@@ -14,6 +14,14 @@
14
15 proxyTimeout = "900s";
16
17 + appendConfig = ''
18 + worker_processes auto;
19 + '';
20 +
21 + eventsConfig = ''
22 + worker_connections 1024;
23 + '';
24 +
25 virtualHosts."hydra.nixos.org" = {
26 forceSSL = true;
27 enableACME = true;