0

I have created a 8 node MongoDB cluster with 2 shards + 2 Replica(1 for each shard) + 3 Config Servers + 1 Mongos.

All these are on network 192.168.1.(eth0) with application server. So this network is handling all the traffic. So I have created one another network 192.168.10.(eth1) which is having only these 8 MongoDB nodes.

Now all the eight nodes are the part of both the networks with dual IP's. Now I want to shift the internal traffic between these mongodb nodes to network 192.168.10.(eth1) to reduce the load from main network 192.168.1.(eth0)

So how to bind the ports/nodes for the purpose?

4

2 回答 2

0

我得到了我正在寻找的问题的解决方案。我根据网络 192.168.11 的 IP 配置了集群。_ 现在内部数据流量正在通过这个网络。

于 2014-02-06T11:33:39.660 回答
0

您可以使用 bind_ip 作为启动或配置选项。请记住,在发生故障转移时需要可以访问各种节点。

值得注意的是,这里是您的单个mongos,建议您将每个应用服务器的服务放在一起,或者根据要求,为您的驱动程序连接提供一个池。最好两者都有,并且对于使用聚合操作的每个“mongos”都有一个大实例。

于 2014-02-01T02:50:24.997 回答