Skip to content

Things service cannot reconnect to mongo #1861

Answered by thjaeckle
dimabarbul asked this question in Q&A
Discussion options

You must be logged in to vote

Oh, interesting, thanks for sharing @dimabarbul

We run MongoDB Atlas and never faced such an issue during cluster upgrade in Mongo.

I think the best way to fix this would be that /alive would also know about this and k8s could restart the pod.
This should be able via Pekko Management: https://pekko.apache.org/docs/pekko-management/1.0//healthchecks.html#defining-a-health-check via config pekko.management.health-checks.liveness-checks and adding a custom implementation for that.

All /status/health routes are exposed in the helm chart (our should be) via {DITTO_ENDPOINT}/overall/status/health - there you should also be able to see the http://ditto-things:8080/status/health

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@dimabarbul
Comment options

@thjaeckle
Comment options

Answer selected by dimabarbul
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants