Home > database >  The spring configuration connected mongo shard cluster
The spring configuration connected mongo shard cluster

Time:10-07

I now have three virtual machines, there are three mongo, including
- the primary node
 
192.168.0.79:22001
192.168.0.79:22003
192.168.0.79:22003

- is a copy of the corresponding set
 
192.168.0.78:22001
192.168.0.78:22002
192.168.0.78:22003
//-- -- -- -- -- -- -- -- -- -- -- -- -- -- line -- -- -- -- -- -- -- -- -- -- -- --
192.168.0.80:22001
192.168.0.80:22002
192.168.0.80:22003

And respectively on three machines launched a configuration node 192.168.0.78/79/80:21000
A routing 192.168.0.82:20000
My spring is to do the following configuration:
 


Start the query found can only check one shard data, data query is less than the other two shard, if up - set configuration is routing node 192.168.0.82:20000 can query to all the data fragmentation, ask ace to help solve the spring without connection routing node is how to configure the connection
Directing a shard cluster?

CodePudding user response:

192.168.0.79:22001192168 0.79:22002192168:0.80 this three copies itself is not a set of 22003 set
The three machines independently lack of routing information

CodePudding user response:

You try series routing information

CodePudding user response:

reference 1st floor rucypli response:
192.168.0.79:22001192168 0.79:22002192168 0.80:22003 the three copies itself is not a set of set
The three machines independently lack of routing information

192.168.0.80:2000 is a copy of the three sets of route, the route that is configured in the spring can access a copy of the three sets of data, but only not configured this program, if the routing this server hang up and that's not the whole all hang?

CodePudding user response:

refer to the second floor qq_39706530 response:
you try series routing information

192.168.0.80:2000 is a copy of the three sets of string route, the route that is configured in the spring can access a copy of the three sets of data, but the program not only configure this an IP port? If the routing the routing machine hang up and that's not the whole all hang?
  • Related