Skip to content

Conversation

@damoon
Copy link

@damoon damoon commented Oct 6, 2023

In case the fcgi client does not get a response, without the timeout, it will never free the waitgroup in the Update function and never free the mutex in the Collect function. This stops the metrics endpoint from responding. Requests will get queued until the process gets killed with out of memory.
To prevent this, first a timeout was added for the fcgi client and second a timeout and limit was added for the incoming requests.

This issue was also reported in #253.

@frvade
Copy link

frvade commented Nov 28, 2023

@estahn could you please help with the review and merge here maybe 🙏 The related issue is very actual because it leads to repeating OOM killer alerts

@damoon
Copy link
Author

damoon commented Jan 25, 2024

i rebased this to allow for merging.
any chance this could be reviewed?

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