Code Monkey home page Code Monkey logo

gke-mongodb-shards's People

Contributors

sunnykrgupta avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

gke-mongodb-shards's Issues

kubectl error when try to add shards to mongos server.

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

How to add authentication?

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

High "timeAcquiringMicros"

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.