Team,In my example(SEMI_AUTO), I have configured 3 partitions with 3 replicas
on 3 nodes. Once all nodes are started, external view shows as below. Here all
MASTER's are assigned to same node. Is there a way to spread MASTER's evenly?
is this behavior due to server booting order?
IdealState for R1:
{
"id" : "R1",
"mapFields" : {
"R1_0" : {
"localhost_8085" : "MASTER",
"localhost_8086" : "SLAVE",
"localhost_8087" : "SLAVE"
},
"R1_1" : {
"localhost_8085" : "SLAVE",
"localhost_8086" : "SLAVE",
"localhost_8087" : "MASTER"
},
"R1_2" : {
"localhost_8085" : "SLAVE",
"localhost_8086" : "MASTER",
"localhost_8087" : "SLAVE"
}
},
"listFields" : {
"R1_0" : [ "localhost_8085", "localhost_8086", "localhost_8087" ],
"R1_1" : [ "localhost_8087", "localhost_8085", "localhost_8086" ],
"R1_2" : [ "localhost_8086", "localhost_8085", "localhost_8087" ]
},
"simpleFields" : {
"IDEAL_STATE_MODE" : "AUTO",
"NUM_PARTITIONS" : "3",
"REBALANCE_MODE" : "SEMI_AUTO",
"REBALANCE_STRATEGY" : "DEFAULT",
"REPLICAS" : "3",
"STATE_MODEL_DEF_REF" : "MasterSlave",
"STATE_MODEL_FACTORY_NAME" : "DEFAULT"
}
}
ExternalView for R1:
{
"id" : "R1",
"mapFields" : {
"R1_0" : {
"localhost_8085" : "SLAVE",
"localhost_8086" : "MASTER",
"localhost_8087" : "SLAVE"
},
"R1_1" : {
"localhost_8085" : "SLAVE",
"localhost_8086" : "MASTER",
"localhost_8087" : "SLAVE"
},
"R1_2" : {
"localhost_8085" : "SLAVE",
"localhost_8086" : "MASTER",
"localhost_8087" : "SLAVE"
}
},
"listFields" : {
},
"simpleFields" : {
"BUCKET_SIZE" : "0",
"IDEAL_STATE_MODE" : "AUTO",
"NUM_PARTITIONS" : "3",
"REBALANCE_MODE" : "SEMI_AUTO",
"REBALANCE_STRATEGY" : "DEFAULT",
"REPLICAS" : "3",
"STATE_MODEL_DEF_REF" : "MasterSlave",
"STATE_MODEL_FACTORY_NAME" : "DEFAULT"
}
}
Regards,Mahesh