cofyc / redis_role_swap

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.


Languages

Language:Ruby 92.7%Language:Shell 7.3%