Redis replication order or priority ?

65 views
Skip to first unread message

Fabio Molinari

unread,
Jan 20, 2017, 12:59:30 PM1/20/17
to Redis DB
In Redis configuration is possible to configure "slave-priority" to set priority for slaves promotion to master in case of failover by sentinel.

This priority is applied also when master replicate data to slaves after a write ?

For example, I've this schema:

  | MASTER | slave-priority = 10

  | SLAVE 1 |  slave-priority = 20

  | SLAVE 2 |  slave-priority = 30
  
Now MASTER receive a SET, the if OK start replication to SLAVE 1 and then to SLAVE 2 ?
Or the replication order is random ?

Thanks.

The Real Bill

unread,
Jan 21, 2017, 6:28:52 PM1/21/17
to Redis DB
Sentinel priority only has to do with selection of a promotable slave. Redis masters do not solicit information from a sentinel on replicatio. Replication is "managed" by each slave in a sense. Each slave connects and essentially subscribes to a stream of data modification commands. There is no explicit ordering because the master doesn't differentiate, it simply sends the data.
Reply all
Reply to author
Forward
0 new messages