sunnykrgupta / gke-mongodb-shards Goto Github PK
View Code? Open in Web Editor NEWSharded Mongodb in Kubernetes StatefulSets on GKE
Sharded Mongodb in Kubernetes StatefulSets on GKE
When i try to add shards to mongos server i receive a error from kubectl shell:
echo "Adding Shard 1 : Shard1 "
kubectl exec --namespace=daemonsl $(kubectl get pod -l "tier=routers" -o jsonpath='{.items[0].metadata.name}' --namespace=daemonsl ) -c mongos-container -- mongo --port 27017 --eval "sh.addShard("Shard1/mongodb-shard1-0.mongodb-shard1-headless-service.daemonsl.svc.cluster.local:27017");
Error: unknown shorthand flag: 'l' in -l
Hi Sunny,
Thanks for setting this up - it has been tremendously helpful. One thing I'd like to add to this is authentication (username, password). There doesn't seem to be a lot of documentation on setting up authentication for sharded cluster. Any guidance on this?
Thanks,
Riley
Current helm have only replicasets. It will be nice to add mongos to it.
We're testing a setup based on this, with I think the only real change being the storage size is 100gb for the shards and they're XFS filesystem type.
Most queries are blazing fast.
Some queries are taking awhile in multiples of 4s. We have a clear clustering of queries in the <50ms range, ~4s, and ~8s. The logs are showing "timeAcquiringMicros" as a relatively high value.
eg
timeAcquiringMicros: { r: 1011415 }
I'm wondering if you have any ideas what would cause that or how to approach it?
When try to apply mongodb-mongos-deployment-service.yaml we got CrashLoopBackOff on my google cloud kubernetes cluster.
Error from server (BadRequest): pod mongodb-shard1-0 does not have a host assigned
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.