MongoDB sharding on Windows using Docker containers

Đã Đóng Đã đăng vào 3 năm trước Thanh toán khi bàn giao
Đã Đóng Thanh toán khi bàn giao

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

PC name: `DESKTOP-4KCIA3T`

Disk Type: `SSD`

Containers: `[cfgsvr1]`

Replicas: `[cfgrs]`

PORTS: `[40001]`

IP: `[....]`

#### Shard 1

PC name: `DESKTOP-4KCIA3T`

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.

NoSQL Couch & Mongo Amazon Web Services Quản trị cơ sở dữ liệu MongoDB Phát triển cơ sở dữ liệu

ID dự án: #29444653

Về dự án

2 đề xuất Dự án từ xa 3 năm trước đang mở

2 freelancer chào giá trung bình$33 cho công việc này

puneetsingh01

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 Thêm

$40 USD trong 7 ngày
(5 Nhận xét)
2.9
gujjarisaikiriti

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 Thêm

$25 USD trong 5 ngày
(0 Nhận xét)
0.0