Skip to content

Conversation

@edma2
Copy link

@edma2 edma2 commented Jun 21, 2021

We are seeing the proxy crash due to OOM errors when there is a surge in requests. Pass through a Concurrency flag to fasthttp server options to shed load (503s) when server is overloaded. When unset, the fasthttp default is 256 * 1024.

From fasthttp docs, the flag is defined as:

The maximum number of concurrent connections the server may serve.

@blind-oracle
Copy link
Owner

blind-oracle commented Jun 22, 2021

Fair point, the default concurrency in FH is too high... maybe you can also set the default to be something like 512-1024 instead of zero (== 256k)?

@edma2
Copy link
Author

edma2 commented Jun 22, 2021

Sure, let's use a more reasonable default. FWIW I've set this to 50 for my workload (starts OOMing around 70 with my benchmarks), with 10K samples/push request.

@blind-oracle blind-oracle merged commit 099de42 into blind-oracle:main Jun 22, 2021
@blind-oracle
Copy link
Owner

Thanks, LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants