Hi Leela,

Are your resources all in SemiAuto mode? SemiAuto mode assignment is based
on your preference list in your IdealState list fields. If you want to
spread it out, you have to change your preference list node order for
different partitions.

If you are using FullAuto mode, you will not have this problem.

best,

Junkai

On Fri, Nov 3, 2017 at 5:35 PM, leela maheswararao <
leela_mahesh...@yahoo.com.invalid> wrote:

> 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
>

Reply via email to