an open source daemon that implements the VRRP standard.

learn more… | top users | synonyms

7
votes
3answers
4k views

Prevent VRRP Master from becoming Master once it has failed

I have two machines (A and B, A is Master) running VRPP (from keepalived) for a Virtual IP. How can I prevent A from becoming Master again if it has failed and come back up (for whatever reason)? ...
6
votes
1answer
3k views

Logging Verbosity in Keepalived.conf?

My keepalived VIP on one of my routers stopped responding. I still saw it on the primary router and not the secondary router as I would expect, and I could ping the regular IPs. As soon as I restarted ...
6
votes
2answers
1k views

keepalived issues on xen domU

I cannot manage to run keepalived correctly on xen domU. I am following this link for configuration, and it works great on some local VM (running with KVM). If I set up the exact same configuration, ...
4
votes
1answer
5k views

Keepalived for more than 20 virtual addresses

I have set up keepalived on two Debian machines for high availability, but I've run into the maximum number of virtual IP's I can assign to my vrrp_instance. How would I go about configuring and ...
4
votes
2answers
1k views

UCARP: prevent the original master from taking over the VIP when it comes back after failure?

Keepalived can do this by combining the nopreempt option and the BACKUP state on the both nodes: Prevent VRRP Master from becoming Master once it has failed Prevent master to fall back to master ...
4
votes
1answer
2k views

haproxy and keepalived on Amazon EC2

The new Amazon Opsworks service uses haproxy rather than Amazon's own very limited elastic load-balancer so I started investigating haproxy as a better option for load-balancing our web app servers, ...
4
votes
1answer
1k views

connection sync suggestions with HAproxy and keepalived

I managed to get HAproxy working in a failover configuration as suggested on the architecture.txt document using keepalived. I used CentOS 5.5, HAproxy rpm (haproxy-1.3.25-1.el5) from epel repo, and ...
3
votes
2answers
2k views

Keepalived over GRE tunnel for failover on VPS environment

I'm running an application on Linode. Their network does not support multicasting. Many tools used for failover (keepalived, spread/wackamole, hearbeat) require multicast to work (as far as I know). ...
3
votes
2answers
584 views

When a server IP changes, do exising TCP (e.g. http/mysql) connections remain running

We have some PHP-FPM servers and when they need a database connection, they connect to an HAProxy server which selects them a database server to use and the connection opens. When we then want to ...
3
votes
1answer
278 views

Virtual IP Failover when machine is overloaded

We have been using keepalived in combination with a virtual IP address for two years now. In the rare case that a machine crashes this works very well. But when there are issues on the box itself we ...
3
votes
1answer
2k views

Keepalived not sending mutlicast advertisments

I have two systems, both VMs. The are configured to use Bridged networking. I am trying to get keepalived to manage ownership of a VIP - 10.190.1.230. I have tried two versions of keepalived-1.2.2 and ...
2
votes
2answers
1k views

keepalived shutdown - does not run “notify” hook on daemon shutdown

I'm running keepalived under Debian (Lenny, Squeeze) in a fairly simple setup, I'm just (ab)using it as a VRRP daemon to decide the mastership between two equal machines for some virtual IPs. All the ...
2
votes
2answers
2k views

Both servers running keepalived become master

After a network failure,both servers running keepalived become master. When the network is reestablished, both keep the MASTER state. What could be causing it? Edited: Another information that ...
2
votes
4answers
2k views

keepalived nopreempt option not working

I want to use nopreempt option with keepalived vrrp setting to run backup node as master when master goes down and again reback into network. I setup nopreempt option in both servers and set state as ...
2
votes
1answer
87 views

Keepalived (LVS) + SPDY

I've got Keepalived configured with LVS to spread the load between four Nginx web servers (RR mode, no persistence connections). I was planning to enable SPDY however it seems that SPDY sets up a ...
2
votes
2answers
1k views

HAProxy/Keepalived vrrp set up in AWS EC2 with EIP (Basic EC2)

I am a newbie to CentOS/Linux/HAProxy/Keepalived, so I have had a lot to learn over the past few days! I have 2 CentOS 6.5 servers in Amazon AWS running on their own EC2 Micro instances. I also have ...
2
votes
1answer
301 views

ipvsadm lists a few hosts by IP only, rest by name

We use keepalived to manage our Linux Virtual Server (LVS) load balancer. The LVS VIPs are setup to use a FWMARK as configured in iptables. virtual_server fwmark 300000 { delay_loop 10 ...
2
votes
2answers
685 views

Prevent master to fall back to master after failure

I'm using keepalived to setup a virtual ip that points to a master server. When a failover happens it should point the virtual ip to the backup, and the IP should stay there until I manually enable ...
2
votes
1answer
1k views

KeepAliveD, Rackspace Cloud, Unicast - both LB's enter MASTER state…?

I have set up two HAProxy Load Balancers in an Active->Passive pair. KeepAliveD will be used for failover between MASTER and BACKUP servers. Like most clouds, Multicast is not supported so I cannot ...
2
votes
0answers
437 views

Keepalived not re-adding real servers

I'm trying to setup a simple virtual server in Keepalived and when the servers get removed from the pool, they do not get re-added automatically. In the Keepalived server syslog I see: Oct 01 ...
1
vote
1answer
2k views

View Current State of Keepalived

Is there a way to view the current state (Master/Backup) in a command line on a server instance? Thanks.
1
vote
1answer
137 views

Why state is needed for keepalived

From the doc ! MASTER and BACKUP state are determined by the priority ! even if you specify MASTER as the state, the state will ! be voted on by priority (so if your state is MASTER but your ! ...
1
vote
2answers
296 views

Adding IPs to Keepalived

What is the proper way to add IP addresses to a keepalived vrrp_instance without have the IPs flop around or drop for a second?
1
vote
1answer
81 views

How would you set up multiple SSL terminating Haproxy instances, which are themselves load balanced?

I've been doing a great deal of research and experimentation on this, and I'm really running into a wall: I'm trying to set up HAProxy as the reverse proxy for a high-availability environment. All ...
1
vote
1answer
181 views

keepalived track_script doesn't seem to run

I'm hoping someone can see what I'm doing wrong and offer help to get a keepalived track_script to run. I have the priority set to 101 on the vrrp_instance of the primary keepalived box and 100 on ...
1
vote
1answer
220 views

Keepalived load balancing MySQL. Backup server time-out

Dear beloved people at ServerFault. I'm trying (and failing) to setup a load balanced MySQL server array. Please enlighten me, show me the error in my ways. Current setup: two MySQL servers with ...
1
vote
1answer
329 views

Keepalived sync daemon

I've enabled lvs_sync_daemon_interface option however it looks like sync daemon is not working Active node: [MASTER:~]# ipvsadm -Lnc IPVS connection entries pro expire state source ...
1
vote
1answer
917 views

Any problems with having an active/active HAProxy setup with Keepalived

Apologies if this has been asked before, but I can't seem to find much on it. We're going to be using HAProxy to load balance our MariaDB Galera Cluster. All the articles/tutorials I have seen on ...
1
vote
1answer
5k views

HAproxy 503 Service Unavailable No server is available to handle this request

I'm new to this load balancing scenario and I'm being tasked to figure out how to make this load balancing works. My environment: Centos 6.4 64 Bit Webserver: Lighttpd All running in ESXI virtual ...
1
vote
2answers
1k views

Per-packet round-robin load balancing for UDP

I need to load-balance UDP traffic between a number of "realservers" and do it in a truly round-robin fashion. I've started with keepalived, but unexpectedly discovered, that LVS treats UDP traffic as ...
1
vote
1answer
449 views

Loadbalance nginx proxies with keepalived possible?

I was wondering if I could load balance 2 nginx proxies with keepalived. I have already established high availability for 2 proxies in MASTER - BACKUP setup with keepalived. So Failover is working ...
1
vote
1answer
461 views

IP failover on different subnets

I have two real servers, on different subnets, each one with a permanent IP, and with a failover IP that can be used by either server. The hoster provides an API with which I can assign the failover ...
1
vote
2answers
755 views

keepalived questions (requirements, abilities, limitations)

1) What are keepalived's (physical/network) requirements? Does the two (or more) keepalived' nodes need to be connected to the same switch? (something related to broadcasting maybe). 2) Can ...
1
vote
0answers
11 views

Keepliaved not loading IPv6 lvs rules on boot

When starting Keepalived manually, it correctly populates LVS tables as seen by: ipvsadm However, when I boot the machine - only IPv4 rules are added. If I restart the keepliaved server manually ...
1
vote
1answer
143 views

Keepalived track_script + nopreempt doesn't seems to work

I have 2 instances in AWS running keepalived. Each one runs an HAProxy process. I'd like to monitor HAProxy, and in case it fails, fall back to the lesser prioritized node. But if the previous MASTER ...
1
vote
1answer
152 views

should a virtual interface clash with keepalived?

I was working on a server today, debian squeeze. After testing this on two staging servers, I added a virtual network interface to /etc/network/interfaces like this: # The primary network interface ...
1
vote
0answers
132 views

Keepalived configurations

I installed keepalived on two firewalls to provide fail over. I'm not sure if the following configurations are correct (see configurations below). Sometimes I have problems to reach the websites ...
1
vote
1answer
298 views

keepalived - no connect and doesn't listen on ports?

Following servers: ....:100::10 mysql1 master ....:100::20 mysql2 master ....:100::30 loadbalancer (keepalived) with virtual ip ...:100::40 Config: vrrp_instance V1 { state MASTER ...
1
vote
0answers
146 views

Keepalived, Junos, and ARP caching

I'm trying to configure an active-passive stunnel setup, with the aid of Keepalived, for a public IP address at our company datacenter. I would like to know if a router or switch reconfiguration is ...
1
vote
0answers
369 views

keepalived config is not working correctly with virtualbox vms

my keepalived configuration is not working correctly. I have two virtual testing machines (virtualbox) to try some things out with keepalived/vrrp. Bot can ping each other flawlessly (internal ...
1
vote
1answer
840 views

keepalived 2 VIP and 2 servers

Is it possible to configure keepalived in a such way? In normal state VIP_1 assigned to SERVER_1 and VIP_2 assigned to SERVER_2 on server failure all VIP's going to working server, and after failed ...
1
vote
1answer
404 views

Compare HTTP load balacing using HAProxy & Nginx

My requirements: Weighted RR load balancing NO need sticky session support NO need SSL NO need HTTP 1.1 to backend So effectively I just need very simple HTTP load balacing!! My Boss asked to try ...
1
vote
0answers
154 views

keepalived - service not available on the 'passive' host

I've got ip failover configured on two hosts for a mysql (percona) cluster with keepalived; the failover works as expected, but I cannot access the service from the host that is passive or in ...
0
votes
3answers
714 views

keepalived wont start

I have compiled and configured keepalived but it won't start. This is my very basic config; vrrp_sync_group PUBLIC_WEB_IPS { group { public_http_ip_lan ...
0
votes
1answer
2k views

Keepalived's virtual_router_id - should it be unique per node?

I have two nodes running keepalived, and two VIP, e.g. Node 1 Node 2 VIP1 VIP2 So in each node, I have two definition of vrrp_instance, so I assume the two vrrp_instance in my ...
0
votes
1answer
24 views

Keepalived configuration for VRRP

I am trying to understand if there is a relation between garp_master_delay and advert_int. In all the configurations I saw, advert_int was less than garp_master_delay. Is there any reason for this? ...
0
votes
2answers
3k views

Both servers running keepalived become master and have a same Virtual IP

Both two servers started keepalived, and the BACKUP server transited to MASTER STATE immediately. both two became MASTER now. Both two nodes are sending VRRP advertisement msg. on master server: ...
0
votes
1answer
547 views

Keepalived configuration - To set MASTER/BACKUP or EQUAL

Now this is something which has been on my mind since I started stetting up our load balancers. Would you use the MASTER/BACKUP configurations for keepalived if both your HAProxy servers were the ...
0
votes
1answer
205 views

keepalived failover virtual ip parameters

I have two servers (A-master and B-backup) with one virtual ip. I need to assign the virtual ip to server B in case server A fails. For this I'm trying to configure keepalived. server A virtual ip ...
0
votes
2answers
113 views

Keepalived loses VIP upon power cycle of master

I have two servers running Keepalived 1.2.7 with hostnames left and right. Here are the configs: # keepalived.conf on left vrrp_instance VI_1 { state MASTER interface eth1 ...