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

Compose MongoDB-HA cluster connection string for many nodes #80

Merged
merged 4 commits into from
Aug 26, 2019

Conversation

arm4b
Copy link
Member

@arm4b arm4b commented Aug 26, 2019

Rely on multi-node connection string for MongoDB-HA cluster instead of using loadbalancer single host which is not desired for prod deployment.

See https://api.mongodb.com/python/current/examples/high_availability.html#mongos-load-balancing

Warning
Do not connect PyMongo to a pool of mongos instances through a load balancer. A single socket connection must always be routed to the same mongos instance for proper cursor support.

armab added 2 commits August 23, 2019 22:07
See https://api.mongodb.com/python/current/examples/high_availability.html#mongos-load-balancing
> Warning
> Do not connect PyMongo to a pool of mongos instances through a load balancer. A single socket connection must always be routed to the same mongos instance for proper cursor support.
@arm4b arm4b added enhancement New feature or request component:mongodb labels Aug 26, 2019
{{- range $subchart }}
{{- $values = index $values . }}
{{- end }}
{{- include $template (dict "Chart" (dict "Name" (last $subchart)) "Values" $values "Release" $dot.Release "Capabilities" $dot.Capabilities) }}
Copy link
Member Author

@arm4b arm4b Aug 26, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All this Helm templating trickery and workarounds should be eventually covered by respective Unit Tests #28

@arm4b arm4b merged commit 93fe06e into master Aug 26, 2019
@arm4b arm4b deleted the enhancement/mongodb-replicaset-url branch August 26, 2019 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:mongodb enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant