bitnami / charts

Bitnami Helm Charts
https://bitnami.com
Other
8.97k stars 9.2k forks source link

mongodb-sharded-mongos k8s svc should add session retention #6412

Closed Zhang21 closed 3 years ago

Zhang21 commented 3 years ago

Which chart: mongodb-sharded


Is your feature request related to a problem? Please describe. When run multiple mongos pods, mongo client application connect to mongodb-sharded mongos k8s svr has cursor error(MongoCursorNotFoundException)。


Describe the solution you'd like Runing one mongos pods, or add session retention(recommend)。


When run multiple mongos pods, we must open session retention to mongos k8s svc(also LB), to make sure traffics flows to the same mongos instance.

Zhang21 commented 3 years ago

I found it on readme docs, closed.

service.sessionAffinity 
#  Session Affinity for Kubernetes service, can be "None" or "ClientIP"