mongodb-container
mongodb-container copied to clipboard
Sharding functionality
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.
Can one of the admins verify this patch?
Can one of the admins verify this patch?
Can one of the admins verify this patch?
@omron93
@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 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.
Can one of the admins verify this patch?
Can one of the admins verify this patch?
Can one of the admins verify this patch?
Can one of the admins verify this patch?
Can one of the admins verify this patch?
Can one of the admins verify this patch?
Can one of the admins verify this patch?
mongodb container is not maintained any more in this org. closing.