Questions tagged [keepalived]

an open source daemon that implements the VRRP standard.

The keepalived project is an open source implementation of the VRRP protocol as well as a configuration interface to the Linux ipvs framework. VRRP is based on Cisco's proprietary Hot Standby Router Protocol (HSRP) concepts. When these two portions of the application are used in concert, a pair of linux servers can be a stable, low-cost alternative to commercial load balancers.

Cisco has claimed that VRRP is protected under HSRP patents, so using keepalived is legally questionable.

233 questions
5
votes
2 answers

Start keepalived without IP on interface?

I want to use keepalived on an interface that will get an IP at some point but will not have one initially, can I set this up somehow in the config? If I try to start it now keepalived errors out as keepalived doesn't know what source IP address to…
Paul
  • 253
  • 3
  • 8
5
votes
1 answer

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, providing session fail-over, etc. I got haproxy…
5
votes
1 answer

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 keepalived rpm (keepalived-1.1.15-0.el5.centos)…
golemwashere
  • 724
  • 1
  • 10
  • 21
4
votes
1 answer

Meaning of virtual_ipaddress_excluded in keepalived configuration

I had some problems with my keepalived configuration and found the answer in this post: Keepalived for more than 20 virtual addresses But I am not sure about the difference between virtual_ipaddress and virtual_ipaddress_excluded? Can anyone explain…
chris911
  • 41
  • 1
  • 2
4
votes
1 answer

How to use Docker with HAProxy+Keepalived?

I want to practise in creation of high-available web-application using multiple Docker containers on one machine. I launch several web-servers within Docker containers. Say, three servers rest1, rest2 and rest3. I use Docker with HAProxy balancer,…
4
votes
1 answer

Centos 7 - Keepalived Linux Virtual Server is not working

Environment: Centos 7 Keepalived Machine I enp0s3 --> 192.168.1.38 (connects to the outside world) en0s8 --> 192.168.100.101 (connects to internal network) Machine II enp0s3 --> 192.168.100.102 default gw --> 192.168.100.101 Machine II enp0s3…
Chayemor
  • 151
  • 1
  • 5
4
votes
1 answer

keepalived: 2nd VRRP_Script never seems to run

I'm trying to implement keepalived on 3 mongodb boxes, the idea is that if mongod on one of the boxes goes down or we need to move the primary node to another system for some reason our application doesn't need to be reconfigured. The…
grahamjgreen
  • 841
  • 2
  • 8
  • 12
4
votes
1 answer

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 interface eth0 lvs_sync_daemon_inteface eth0 …
da_didi
  • 255
  • 4
  • 11
4
votes
7 answers

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: [root@zhsq1 ~]# tcpdump -c 3 -i em1 host…
riverhuang82
  • 93
  • 1
  • 1
  • 5
4
votes
2 answers

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 a "connection" (whatever that is in terms of…
shylent
  • 792
  • 10
  • 22
4
votes
1 answer

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 virtualbox network). VM 1 (MASTER): eth0:…
carrot
  • 77
  • 1
  • 1
  • 10
3
votes
1 answer

keepalived: what are the `fo` and `mh` lvs scheduling algorithms?

The parameter virtual_server.lvs_sched in keepalived.conf supports two options for which I can't find an explanation: fo and md. Does anyone know their meaning?
Younes
  • 233
  • 1
  • 6
3
votes
1 answer

How to set up tcp check with keepalived?

Trying to set up HA bastion servers. Failover, load balancing is not needed. Two servers running debian. bastion01 and bastion02. 192.168.0.10 and 192.168.0.11. Floating IP is 192.168.0.12. I started out with these configs: bastion01: global_defs { …
cat pants
  • 2,139
  • 10
  • 33
  • 44
3
votes
1 answer

keepalived - Virtual is not routing my requests to real servers

I'm playing around with keepalived and running that setup on my master node: vrrp_instance VI_1 { state MASTER interface eth0 virtual_router_id 51 priority 150 advert_int 1 authentication { auth_type PASS …
Tom
  • 31
  • 1
  • 3
3
votes
2 answers

Why is keepalived running two MASTER nodes in my Sticky VIP configuration?

I have keepalived setup (floating VIP) in front of haproxy on each of my three-node galera cluster nodes. When I restart keepalived on any given node, sometimes I end up with two nodes running in MASTER (as evidenced by the…
Server Fault
  • 3,454
  • 7
  • 48
  • 88
1
2
3
15 16