Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [keepalived]

an open source daemon that implements the VRRP standard.

0
votes
0answers
19 views

keepalived not promoting BACKUP to MASTER in multi-instance configuration

I'm trying to make a multi-instance keepalived to control a master-replica pair of tarantool servers and setup VIPs. Server state itself is managed outside keepalived. Keepalived should only manage ...
0
votes
0answers
21 views

Can't connect to MySQL cluster from HAProxy + keepalived cluster

I'm new to clustering. I'm trying to configure keepalived in HA with HAProxy and MySQL cluster (+2 NDB cluster node). Configuration with 1 HAProxy (without keepalived and virtual ip address) seems to ...
1
vote
1answer
38 views

Keepalived using direct routing on ipv6

I'm considering adding a keepalived load balancer to our infrastructure but I have some requirements which seem to be outside the normal configuration. All our servers have public IP addresses, both ...
0
votes
1answer
55 views

Alias address on aws ec2 between different availability zones

i have a setup: Orange - is availability zones(AZ). in each AZ there is by 2 subnets: 10.0.1.0/27 & 10.0.0.0/27 10.0.1.32/27 & 10.0.0.32/27 And i'm trying to set up VRRP (it like round ...
0
votes
1answer
11 views

keepalived service is not down despite I turned it down

For high availability I have two servers: 172.24.4.51 and 172.24.4.52 and virutal ip is 172.24.4.53. The master is 172.24.4.51 and backup is 172.24.4.52. I'm on 172.24.4.51 and then I made systemctl ...
1
vote
0answers
30 views

Keepalived_vrrp issue

Configuration debian version 9.7 architecture ppc64 Issue I am running keepalived and i am encountering an issue with IPVS, here are the logs : Feb 16 17:02:35 srv Keepalived_vrrp[10109]: IPVS: ...
0
votes
0answers
29 views

Keepalived - How to configure ifcfg-eth1 config files on both servers with only a VIP?

Trying to setup 2 physical log collector servers with keepalived so it sends data to eth1 on server A and if server A goes down it flips over to server B's eth1. I've setup keepalived many times on ...
7
votes
5answers
516 views

keepalived doesn't detect loss of virtual IP

I'm using keepalived to switch a floating IP between two VMs. /etc/keepalived/keepalived.conf on VM 1: vrrp_instance VI_1 { state MASTER interface ens160 virtual_router_id 101 ...
0
votes
1answer
240 views

How to get haproxy and keepalived working on the same device as an emqx broker

I'm rather new to this, so please be patient. My setup is essentially thre devices using mqtt, connecting through two brokers both running emqx. Both emqx brokers are also supposed to be set up as ...
3
votes
1answer
170 views

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?
0
votes
0answers
39 views

HAProxy and Keepalived IP assignment

As per the figure below, suppose there are two load balancers bundled together using Keepalived. My question is: does each LB have to get public IPs (namely 10.0.0.3 and .4) assigned to their public ...
0
votes
0answers
15 views

Connecting DNS service provider to Keepalived virtual IP

I'm trying to create the following infrastructure to create a highly available data service (accessible via web) which has two webservices behind two haproxies: Now as noted in red: What IP address ...
0
votes
0answers
29 views

Virtual IP between server behind NAT and server with network directly

I have two VMs and I need make Virtual IP between these servers. But first VMs behind NAT and second has IP directly. Can I do this with keepalived? But I coudn't find any information how I can do ...
1
vote
1answer
224 views

Kolla OpenStack deployment fails with “haproxy : Waiting for virtual IP to appear”

I'm trying to deploy OpenStack Queens with kolla-ansible (7.0.0) on Ubuntu hosts, following the official guide. After successful bootstrap-servers and precheck the deploy command fails: RUNNING ...
0
votes
0answers
20 views

keepalived HA: float VIP when a service failure doesn't work

As an HA implementation, I have configured keepalived in CentOS7. 1st CentOS BOX, Having httpd -80, Mysql - 3306 and Keepalived + LVS (ipvsadm) as the MASTER, Priority 101 2nd CentOS BOX, Having ...
1
vote
0answers
113 views

multiple networks in keepalived configuration

I have two router(lxc containers) seated in the distribution layer of my network and I want to implement HA for them. The routers have 114 network interfaces and I want that they share a virtual ip ...
1
vote
0answers
52 views

Conditional Takeover with Keepalived

Have a bit of an odd situation. I need to set up a singular VIP with keepalived that will bounce among machines as they fail/come down, etc. I have four total servers, each running a database ...
2
votes
0answers
177 views

Keepalived forwarding UDP traffic to one node via NAT

I am having issues with load balancing UDP Syslog to my Graylog cluster nodes. At first everything seemed to work normal but it seems that traffic is flowing for 99% to one of the two nodes. I have ...
0
votes
1answer
317 views

HA Squid with Keepalived

We're trying to setup two HA services: Explicit forwarding proxy using Squid (port 8080) SMTP relay to Office365 using Postfix For both setups we have 2 VM's with a default Debian 7 install, and I'...
2
votes
0answers
382 views

IPVS (keepalived) doesn't balance UDP connections

I have two load balancer with Debian 8 and three Graylog server with Debian 9. Every server in my network sends logs via rsyslog to a virtual server configured on the LB. The connection is UDP. The ...
0
votes
0answers
555 views

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 ...
0
votes
0answers
55 views

What is the meaning of the keyword lvs_id in the keepalived configuration file?

What is the meaning of the keyword lvs_id in the keepalived configuration file? The definition on the documentation simply states: "specify the name of the LVS director " Which does not indicate ...
0
votes
0answers
111 views

Using keepalived in two subnets - Or alternative

I want to create a failover cluster with two redhat machines using keepalived. Unfortunately the two members of the cluster will be hosted on different locations with different IP-subnets (10.1.x.x on ...
0
votes
0answers
414 views

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 ...
0
votes
1answer
335 views

How To enable KeepAlived

I have compiled and configured keepalived on my raspberry but it won't start. When I try systemctl enable keepalived I got error ------------------------------------------------------- root@haproxy:/...
0
votes
0answers
24 views

Keepalived not starting when running in FIPS mode

I'm trying to run keepalived on a CentOS 7 server with FIPS mode enabled, but the process fails to start because of the following error: OpenSSL internal error, assertion failed: Digest MD5 ...
1
vote
2answers
468 views

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 ...
0
votes
1answer
247 views

Transparent HAProxy, clients cannot connect

I have problems with transparent HAProxy. I use Centos 7 with ius-repo, so compiled with tproxy support. No fancy things here, just the basics. Flat IP space, no routing involved (yet). Have other ...
0
votes
0answers
35 views

No DNS When VRRP Active

Have a two node HAProxy cluster running using KeepaliveD for VRRP. Everything works well with the exception that it seems I can't resolve DNS requests for the node that is acting as the MASTER (...
0
votes
1answer
271 views

Keepalived loadbalancing with Nginx not working with only backup Nginx alive after Master Nginx dies

I am using 2 Nginx servers on 2 different machines with Keepalived installed respectively on both machines. Below is the configuration for both Keepalived. MASTER KEEPALIVED vrrp_instance VI_1 { ...
0
votes
0answers
142 views

How to make slave server take over VIP when master reboot with “keepalived”

I'm using keepalived and read through the keepalived.conf.SYNOPSIS. I tried everything, it feels like. What ever I do, I can't make my backup server take over the VIP faster then 10 sec, when the ...
0
votes
0answers
48 views

Iptables - Routing is happening before OUTPUT Chain when it involves loopback traffic

I am implementing a High Availability (HA) service with keepalived (VRRP). This HA is supposed to work only for the application running on port 443, so we are not failing over the whole server, ...
0
votes
1answer
589 views

Keepalived - How to change master owner when node goes down?

Hello I would like to know if there any possibilities with keepalived to : change master owner when node goes down ? In order to illustrate my question : [standard behavior] Keepalived cluster with ...
2
votes
1answer
1k views

Why am i encoutering a split brain issue in keepalived?

When I start my BACKUP keepalived instance it also assumes the MASTER State as you can see below: Mar 28 02:38:05 localhost Keepalived_vrrp[23527]: VRRP_Instance(VI_01) Entering BACKUP STATE Mar 28 ...
1
vote
0answers
283 views

Can you use peacemaker with keepalived as communication layer?

I'm new to HA topic and I'm trying to get some bigger picture here. I have 2 hosts that run few services - mostly nginx and NFS for other servers. My primary goal was to make nginx redundant. As I ...
1
vote
0answers
298 views

Spurious traffic hitting Keepalived

We use Keepalived (running on RHEL 7) to manage shared IP addresses on our 3 HAProxy servers. Each server has 2 interfaces, one with a public IP and one with a private IP. We are migrating from a pair ...
0
votes
1answer
931 views

Why doesn't keepalived track_script restart keepalived when HAProxy drops out?

UPDATE: seems to need a custom track script to actually failover and restart when HAProxy dies. Posted as answer. I have keepalived (plus VIP) + haproxy + galera_node (on the same host, config below) ...
1
vote
1answer
1k views

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 ...
0
votes
0answers
367 views

keepalived failover downtime

I have a simple setup with keepalived configured on 2 Ubuntu 16.04 servers (VMWare VM's) I have a VIP shared between the hosts and everything is working fine. When I stop or restart one server the ...
0
votes
1answer
76 views

keepalived relocation not happening

I have a problem with Keepalived. If my application process goes down due to some reason, keepalived fail over the VIP to backup node. However, if the process fails again on backup node its not ...
0
votes
0answers
314 views

the best haproxy architecture?

I have two servers running ldap with replication between them, now i need to install a loadbalancer, so what i have in mind is: vm1: ldap1 vm2: ldap1(replication) vm3: haproxy1 + keepalived vm4: ...
1
vote
0answers
258 views

HAProxy 1.7 Config Check

I hope you can help. I currently have haproxy 1.7.9 compiled with Tproxy on centos 7. This is used to load balance 6 proxy servers for internet access on the back end. It is setup as a one arm nat ...
0
votes
1answer
658 views

Cannot reach keepalived VIP from other machines in the same network

I am working in bare metal environment trying to setup HA loadbalancing using keepalived. When I try to ping the VIP which I given in keepalived config file from other machines in the same network its ...
3
votes
1answer
684 views

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 ...
0
votes
1answer
438 views

How can a server respond with a different IP (Virtual IP) when using Keepalived?

I have been studying Keepalived for High Availability purposes. I have some fundamental questions concerning TCP/IP behavior when Keepalived is in place. With Keepalived, clients can access the ...
-1
votes
2answers
270 views

How does loadbalancers like haproxy and keepalived implement failover/high-availability for themselves, in case the machine they are running dies? [closed]

I'm trying to understand how my load balance software does not become a single-point-of-failure. Do load-balancing software usually support failover/ha for themselves?
0
votes
0answers
248 views

Keepalived triggers failover while MASTER node is healthy

I have a Master/Slave setup of Keepalived in AWS for Haproxy and EIP is being used as VIP. Once in a while backup server triggers failover yet MASTER node is healthy. Following are corresponding logs. ...
0
votes
1answer
54 views

Smooth transfer of service IP to backup system

I'm trying to research the best way to find a HA solution plus (little) load balancing for our TCP services. All solutions I found (e.g. HAProxy, LVS) use a master machine which holds the TCP service ...
0
votes
1answer
1k views

Keepalived VIP is active on both servers

I have configured keepalived on two RHEL 7 servers as below Primary server vrrp_instance VI_1 { state MASTER interface eth0 virtual_router_id 51 priority 100 advert_int 1 ...
1
vote
0answers
1k views

MySQL HA+LB: Keepalived+HAProxy vs Keepalived alone

Scenario For my application, I'd like to have highly available MySQL/MariaDB setup. I find the Galera Cluster to be interesting in this case because of automatic data redundancy and immediate ...