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.

239 questions
0
votes
1 answer

keepalived doing a lot of TCP DUP ACK and TCP Retransmission

I'm trying to replicate the setup our hosting provider have done for our load balancer, which is using keepalived. So I have one "load balancer", running CentOS 6 and keepalived 1.2.7, with two Web servers running Ubuntu 12.04 LTS and Apache 2.2. If…
0
votes
1 answer

IP-based load balancing on external and internal interface

I have a certain distributed (as in, multiple components on multiple machines) service, that should be made available from the outside world. So, in LVS terminology, the clients are "on the internet", while the realservers are in the private…
shylent
  • 812
  • 11
  • 22
0
votes
1 answer

Can I use virtual IP in EC2 VPC?

I'm trying to get keepalived working in Amazon's EC2 VPC. But I cannot. Is it possible to use virtual IP in EC2 VPC? Or how can I use keepalived in EC2 VPC?
Sato
  • 449
  • 2
  • 9
  • 17
0
votes
1 answer

Keepalived: Highest weight only scheduling

I have a keepalived setup with three servers behind an ip. One is setup as a sorry server and only serves the maintenance pages, the other two are actual app servers. We would like it setup so that traffic only routes to the one server until it goes…
R. S.
  • 1,714
  • 12
  • 19
0
votes
1 answer

Keepalived in ring architecture, or other better approach

I have three load balancer (LB1, LB2, LB3) and plan to use ring architecture for active-active setup, e.g. LB1 LB2 LB3 IP1 IP2 IP3 Idea as below: If LB1 failed, IP1 will be floated to IP2 If LB2 failed, IP2 will be floated to IP3 If…
Howard
  • 2,135
  • 13
  • 48
  • 72
0
votes
3 answers

keepalived not starting and complaining about not set virtual id

I installed on a ubuntu 12.10 server the keepalived package and configured it, but it complains later in the syslog, that a virtual id must be set Keep alive configuration # Define the script used to check if haproxy is still working vrrp_script…
mlaug
  • 202
  • 1
  • 4
  • 12
0
votes
2 answers

Is it not possible to use keepalived in EC2

The problem is two of my EC2 instances (ha proxy) need to bind a single virtual IP if I want to use keepalived, but they are not possible in EC2 as only a single instance can use a elastic IP at a given time, so it is not possible, right?
0
votes
1 answer

keepalived doesn't listen on virtual IP

I'm learning to use keepalived; for now within a single machine - just to make sure the forwarding works. I've started a mock webserver listening on 192.168.56.200:8080. It just replies with the hostname. $ curl…
jkff
  • 293
  • 1
  • 5
  • 10
0
votes
1 answer

Is there a way to tell keepalived to make a health check immediately?

We have a high-availability setup in which lvs distributes requests between a set of backend servers ('realservers' in LVS-speak). LVS is managed by keepalived. Each realserver exposes a health check resource over HTTP (basically, if you say GET…
Tom Anderson
  • 407
  • 3
  • 12
0
votes
1 answer

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 same hardware specs? Or, would you use the EQUAL…
fenneh
  • 88
  • 9
0
votes
1 answer

How to configuration keepalived on Amazon EC2?

I rad some article. Keepalived over GRE tunnel for failover on VPS environment http://blog.killtheradio.net/how-tos/keepalived-haproxy-and-failover-on-the-cloud-or-any-vps-without-multicast/ but, I don't know how to configuration? and How to call…
oeegee
  • 1
  • 2
0
votes
0 answers

keepalived - "broadcast storm" - failover - backup server freeze

I run a keepalived failover configuration. If a failover happens the backup server gets unresponsive (console & network) all the VIPs gets unresponsive too. When the master comes back the situation gets back to normal after a minute or so - it seems…
Dave.
  • 1
0
votes
1 answer

Keepalived how to define VIPs that persist across reboots, on both master and backup nodes?

I'm trying to find a way to persits the keepalived virtual ips across the cluster, on master and backup nodes. By default, keepalived only activates the virtual ip, on the node that is playing the master role. All the other nodes will have it…
Yonoss
  • 137
  • 5
0
votes
0 answers

Keepalived load balancing not working on Fedora 38 - 2 nodes(VMs) setup

I am trying to set up keepalived load balancing on a system setup composed of 2 fedora 38 VMs. I've already setup a VIP on these 2 machines, which works as expected. Now I am trying to set up load balancing, but this part doen't want to work. My…
Yonoss
  • 137
  • 5
0
votes
1 answer

How to configure Keepalived to act as L4 load balancer via direct routing method

Trying to achieve L4 load balancing via Keepalived in front of HAProxy that will act as L7 load balancer. Both Keepalived and HAProxy are on separate machines. I managed to get everything in the below image working but when I try to send a request…
Mo Ali
  • 101
  • 1