mongodb-container icon indicating copy to clipboard operation
mongodb-container copied to clipboard

Sharding functionality

Open jbornemann opened this issue 8 years ago • 13 comments

This PR builds off of https://github.com/sclorg/mongodb-container/pull/264 to add Sharding functionality to the image.

Some things changed:

  • mongodb.conf template moved to /usr/share/container-scripts/mongodb/template folder. mongos.conf template created.
  • mongos initialization routines added under /usr/share/container-scripts/mongodb/db/mongos
  • run-mongos entrypoint added under /usr/bin

Other changes:

  • mongo-is-ready script added to /usr/bin for OpenShift readiness probe checks.

As noted in 264, : Just a note, https://github.com/jbornemann/mongodb-on-os I plan on submitting to container-quickstarts as an example of how all of these run modes fit together on OpenShift in a sharded Mongo environment.

We should probably ignore this PR until https://github.com/sclorg/mongodb-container/pull/264 is in.

jbornemann avatar Oct 09 '17 17:10 jbornemann

Can one of the admins verify this patch?

centos-ci avatar Oct 09 '17 17:10 centos-ci

Can one of the admins verify this patch?

centos-ci avatar Oct 09 '17 17:10 centos-ci

Can one of the admins verify this patch?

rhscl-bot avatar Oct 09 '17 17:10 rhscl-bot

@omron93

jbornemann avatar Oct 09 '17 19:10 jbornemann

@jbornemann I see that in mentioned example repo you have separate templates for configsvr, mongos and shard replicasets. Will someone use some part separately? Or users will create them all together and then would be better to have on big template which will setup working sharded cluster? (or are there some guidelines that template should contain only one service, DC,... or something similar?)

omron93 avatar Oct 10 '17 08:10 omron93

@omron93 A good question. :-) Yes, it's a question of sharded vs non-sharded data; and which components are managed by OpenShift. Sometimes data won't be sharded - so no config server or mongos. Sometimes the mongos and/or config server will be managed outside of OpenShift - i.e bursting replicas into the cloud, in a hybrid cloud situation.

jbornemann avatar Oct 10 '17 15:10 jbornemann

Can one of the admins verify this patch?

rhscl-bot avatar Nov 28 '17 15:11 rhscl-bot

Can one of the admins verify this patch?

centos-ci avatar Nov 28 '17 15:11 centos-ci

Can one of the admins verify this patch?

rhscl-bot avatar Feb 17 '18 10:02 rhscl-bot

Can one of the admins verify this patch?

rhscl-bot avatar Feb 11 '19 20:02 rhscl-bot

Can one of the admins verify this patch?

rhscl-bot avatar Mar 09 '19 14:03 rhscl-bot

Can one of the admins verify this patch?

rhscl-bot avatar Jul 19 '19 08:07 rhscl-bot

Can one of the admins verify this patch?

rhscl-automation avatar Sep 03 '20 08:09 rhscl-automation

mongodb container is not maintained any more in this org. closing.

hhorak avatar Apr 10 '24 11:04 hhorak