-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
[bitnami/mongodb] Inaccurate Checks in Bitnami Readiness and Startup Probes #21957
Comments
This PR adds a Helm chart for MongoDB, supporting both standalone mode and sharded cluster mode. Shard rules, including shard keys, shard methods, and unique constraints, are defined and managed in the values.yaml. This chart depends on Bitnami's mongodb-sharded chart (https://github.com/bitnami/charts/tree/main/bitnami/mongodb-sharded). There are a few known issues with it: A problem with livenessProbe and readinessProbe - Issues: bitnami/charts#21957 - Solution: use custom livenessProbe and readinessProbe instead Lack of ARM64 support in the Bitnami mongodb-sharded container - Issues: - bitnami/charts#7305 (comment) - bitnami/containers#40947 - Solution: use the official Mongo 6.0 image instead and set up the cluster via a Job. --------- Co-authored-by: Youngteac Hong <[email protected]>
This PR adds a Helm chart for MongoDB, supporting both standalone mode and sharded cluster mode. Shard rules, including shard keys, shard methods, and unique constraints, are defined and managed in the values.yaml. This chart depends on Bitnami's mongodb-sharded chart (https://github.com/bitnami/charts/tree/main/bitnami/mongodb-sharded). There are a few known issues with it: A problem with livenessProbe and readinessProbe - Issues: bitnami/charts#21957 - Solution: use custom livenessProbe and readinessProbe instead Lack of ARM64 support in the Bitnami mongodb-sharded container - Issues: - bitnami/charts#7305 (comment) - bitnami/containers#40947 - Solution: use the official Mongo 6.0 image instead and set up the cluster via a Job. --------- Co-authored-by: Youngteac Hong <[email protected]>
This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback. |
Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary. |
I wonder why this was closed..?🤔 |
Thank you for bringing this issue to our attention. We appreciate your involvement! If you're interested in contributing a solution, we welcome you to create a pull request. The Bitnami team is excited to review your submission and offer feedback. You can find the contributing guidelines here. Your contribution will greatly benefit the community. Feel free to reach out if you have any questions or need assistance. |
Name and Version
bitnami/mongodb
What architecture are you using?
None
What steps will reproduce the bug?
I found that the current readiness and startup probes , which utilizes the bitnami scripts
/bitnami/scripts/readiness-probe.sh
and/bitnami/scripts/startup-probe.sh
(stored within the docker imagedocker.io/bitnami/mongodb:5.0.23-debian-11-r3
) , returns an unexpected exit code (0) even when encountering an error. Here’s a snippet of the issue:The issue arises from the fact that the pattern
directConnection=true
matches the greptrue
filter, resulting in an incorrect exit code (0). This misleading exit code makes it seem like the health check is passing.When we used our custom probes leveraging the mongo shell instead of mongosh, the output was different and did not contain the word ‘true’:
A swift solution is to add the
--quiet
argument to silence the output during the connection process, ensuring only the accurate MongoDB status is returned:By incorporating
--quiet
, we eliminate unwanted output and guarantee a reliable status from MongoDB.Are you using any custom parameters or values?
No response
What is the expected behavior?
No response
What do you see instead?
readiness and startup checks succeeded even when mongodb pod has not reached
SECONDAY
orPRIMARY
state.Additional information
No response
The text was updated successfully, but these errors were encountered: