XRedis is ctrip redis branch. Ctrip is a leading provider of travel services including accommodation reservation, transportation ticketing, packaged tours and corporate travel management.
- all features of redis 3.0.7 are inherited.
- xslaveof command support
- psync2 support
Suppose that redis slave is connectted to redis master(ip1 port1
), at the mean time command slaveof ip2 port2
is sent to this slave. Then redis will do the following:
- Slave try this full resynchronization at the cron time(one time per second by default)
xslaveof ip port
is a promotion for slaveof
:
- Slave try this partial resynchronization as soon as possible
Here is the document for psync2
* 命令 `refullsync`
force all slaves reconnect itself, and fullsync with slaves
WARN: dangerous, you have to know what you are doing when using this comman
config set slave-repl-all yes
config set slave-repl-all no
- Config remain in memory, never persist to disk
- Cofig will automatically become yes when server become master