mongodb - Not able to enable sharding -


I have deployed a sliced ​​cluster and when I am trying to enable misery, I get the error below Has been there. I tried to find an online solution, but unable to solve it.

I did the following things to start Mongoode / Mongos and Mongo Instances

  mongod --configsvr - dbpath / data / config b - port 27018 mongos - configidib 127.0.0.17018 - Port 27019 Mongo - Config 127.0.0.17 9 9   

In Maggot:

  mongos> ("Config") {"errmsg": "Exception: Claim Source / Mongo / s / config.cpp: 155", "Code": 0, "OK": 0}   

Besides, I am able to make a general collection here, but there is no fraudulent collocation.

At the same time, I am not able to make general collections other than DB configuration

  mongos> Show DBS Admin (empty) Config 0.046875GB configdb (empty) Raghu (blank) Exam (empty) Mongos & gt; Mongos & gt; DB Test Maggot & gt; Mongos & gt; Sh.enableSharding ("test") {"ok": 0, "errmsg": "already enabled"} mangos & gt; Db.cTest.save ({name: "Frank", age: 56, work: "accountant", state: "NY"}); One --configsvr instance mangos & gt; Users can not create databases   

Can anyone tell me what happened?

Thank you, Raghu

I do not know what this line is going to do:

mongo --configdb 127.0.0.1:27019

Certainly nothing is good, because hinges is a shell There is nothing else that should be informed about this type of alternative.

This is also a actually bad idea

mongos --configdb 127.0.0.17018 - port 27019

Normally speaking, you want mongos to use default port (27017) to make things easier for your app example Mongo Shell After using, your subsequent connection should be chosen instead of mongos examples mongos , so left on Everything Do Rs.

I can only tell you back as you had been given in, and actually follow it.

You think a rag should have many replica set members and you

you might start start And then those people should change in shades. Or look at the available courses (which are free) in either M-101 or M10, the units explain replication sets and deployment deployments in detail.

The tutorials listed in the documentation, if you follow them, then it should be easy to follow them. With your above material, you are not really following the thing that has been said there.

Comments

Popular posts from this blog

python - how we can use ajax() in views.py in django? -

matlab - Using loops to get multiple values into a cell -

python - Sequence Pattern recognition with Pybrain -