Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 7th July 2012, 03:20 AM
sevmax Offline
Registered User
 
Join Date: Jan 2008
Posts: 32
macoschrome
Smile keepalived + redis failover

Hi,
I'm working on running 2 redis nodes as failover cluster.
Keepalived migrating VirtualIP successfully, but still not clear how to run command on slave to be a master during failover.

Here is a config:
Code:
! Configuration File for keepalived

global_defs {
   notification_email {
        root@example.com
   }
   notification_email_from redis1_keepalived@example.com
   smtp_server 127.0.0.1
   smtp_connect_timeout 30
   router_id keepalived_on_redis
}

vrrp_script chk_redis {                                 
    script "kill -0 `cat /var/run/redis.pid`"       
    interval 2                                          
}

vrrp_instance VI_1 {
    state MASTER
    interface bond0
    virtual_router_id 10
    priority 101

    advert_int 1
    authentication {
        auth_type PASS
        auth_pass 12345678
    }
    virtual_ipaddress {
        1.2.3.4 label bond0:0
    }
    track_script {
           chk_redis
    }

notify_fault "redis-server /etc/redis.conf; redis-cli slaveof no one"
}
Please advice how to configure master/slave to run redis-cli command properly on failover and then restore slave status on restoring master. Thanks!
Reply With Quote
Reply

Tags
failover, keepalived, redis

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem installing keepalived on FC5!! visham Using Fedora 1 18th May 2007 12:01 PM


Current GMT-time: 04:25 (Thursday, 20-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat