94358af65c
This commit adds a service protection limit, allowing the router to restrict the number of simultaneous HTTP requests to a hard-coded limit of 200. By dropping additional requests once the router is serving the configured maximum, the router is prevented from accepting more and more requests that stack up waiting on the catalog / postgres connection pool. Currently buffering all these stalled connections consumes so much memory the router is OOM killed. After this commit, a portion of requests will be satisfied and the rest will be dropped early with a HTTP 503 Service Unavailable response. |
||
---|---|---|
.. | ||
e2e.rs | ||
schema_validator.rs | ||
sharder.rs |