MongoDB sharding on Windows using Docker containers

You don't have to do everything by yourself. You can also tell me how can we solve the problem. If your solution works then you will get paid, guranteed. :)

We have a large MongoDB collection ( around 60 million documents ). We tried to shard the collection but got an error when tried to add a shard to the mongos.

The error message is "Failed to refresh the balancer settings:: caused by :: Could not find host matching read preference { mode: "nearest"} for set cfgrs"

"cfgrs" is the config server

We have 4 shards. shard 1, config servers and monogs (router) is on the main PC ( DESKTOP-4KCIA3T). We can add shard 1 without any problem but the error occurs when we try to add other shards from different PC.

### Shards for `pages` collection

### Config Server


Disk Type: `SSD`

Containers: `[cfgsvr1]`

Replicas: `[cfgrs]`

PORTS: `[40001]`

IP: `[....]`

#### Shard 1


Disk Type: `SSD`

Containers: `[shard1svr1]`

Replicas: `[shard1rs]`

PORTS: `[50001]`

IP: `[....]`

#### Shard 2

PC name: `NEWDATAPC 7`

Disk Type: `SSD`

Containers: `[shard2svr1]`

Replicas: `[shard2rs]`

PORTS: `[50001]`

IP: `[.....]`

#### Shard 3

PC name: `NEWDATAPC 6`

Disk Type: `SSD`

Containers: `[shard3svr1]`

Replicas: `[shard3rs]`

PORTS: `[50001]`

IP: `[.....]`

#### Shard 4

PC name: `Post-Match-Main`

Disk Type: `SSD`

Containers: `[shard4svr1]`

Replicas: `[shard4rs]`

PORTS: `[50001]`

IP: `[.....]`

If you have any idea what we are doing wrong please let us know. Let us know if you have any questions.

Beceriler: NoSQL Couch & Mongo, Amazon Web Services, Veri Tabanı Yönetimi, MongoDB, Veritabanı Geliştirme

Daha fazlasını gör: socket windows using mfc, linear phase fir design using windows using matlabpdf, logon time logoff time windows using, mount disk windows using ssh, image slider windows using, transfer data linux windows using windows, recover windows using usb, sapi4 voices windows using, ftp server windows using wamp, windows 2003 multiple choice questions, windows azure tco calculator questions, code bluetooth driver windows using, dashboard windows using windows application, windows using embedded browser, connect gprs windows using, map drive windows using cifs, invoice form windows using, i need you to develop some software for me i would like this software to be developed for windows using metatrader, docker-compose mongodb volume windows

İşveren Hakkında:
( 0 değerlendirme ) Dhaka, Bangladesh

Proje NO: #29444653

Bu iş için 2 freelancer ortalamada $33 teklif veriyor


Hi - I am a mongoDB certified DBA and developer with over 5 years of experience handling mongo databases. I have experience in setting up and configuring shard clusters so I can look into the issue you are facing, if y Daha Fazla

$40 USD in 7 gün içinde
(5 Değerlendirme)

I am a Mongodb database certified administrator and even worked alot on performance optimizations i can help you in creating shards and sharing concepts please contact me in case if your serious about this sharing Daha Fazla

$25 USD in 5 gün içinde
(0 Değerlendirme)