Skip to content

(DEPRECATED!, use redis sentinel instead!) A redis clone of mysql_role_swap, which automatically promote slave to master.

Notifications You must be signed in to change notification settings

cofyc/redis_role_swap

Repository files navigation

Redis role swap

This is a redis clone of mysql_role_swap, which automatically promote slave to master as this docs described.

You must use virtual ip to use this script.

How to setup virtual ip on gentoo, you can refer to this link: http://www.gentoo-wiki.info/HOWTO_Setup_Bonded_ethernet_adapters#Kernel_Configuration

Install dependencies

  • iproute2 (/sbin/ip)
  • ruby
  • ruby bundle install

Usage

./redis_role_swap.rb -c cluster.yml

References

About

(DEPRECATED!, use redis sentinel instead!) A redis clone of mysql_role_swap, which automatically promote slave to master.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published