Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[discovery] Fix crashing collector if discovered mongodb isn't reachable #4911

Merged
merged 1 commit into from
May 30, 2024

Conversation

dmitryax
Copy link
Contributor

@dmitryax dmitryax commented May 30, 2024

Reduce the connection timeout to 5s seconds. Otherwise, it's the 60s for every Mongodb query, which accumulates to a significant delay and makes the collector killed in k8s.

@dmitryax dmitryax requested review from a team as code owners May 30, 2024 21:50
@dmitryax dmitryax force-pushed the fix-mongodb-discovery branch from 36e75d6 to a1c18d2 Compare May 30, 2024 21:51
Reduce the connection timeout to 5 seconds. Otherwise, it's 60s for every mongodb query, which accumulates to a significant delay and makes the collector being killed in k8s.
@dmitryax dmitryax force-pushed the fix-mongodb-discovery branch from a1c18d2 to 9339d18 Compare May 30, 2024 21:52
@samiura
Copy link

samiura commented May 30, 2024

@dmitryax thank you!

@dmitryax dmitryax merged commit 6faf85f into main May 30, 2024
112 checks passed
@dmitryax dmitryax deleted the fix-mongodb-discovery branch May 30, 2024 22:46
@github-actions github-actions bot locked and limited conversation to collaborators May 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants