Keepalived - Possible with OpenVZ

Shaun

Renowned Member
Mar 10, 2016
12
2
68
59
Hi,

Is it possible yo use keepalived for HA with OpenVZ containers or will it only work with KVM? I see that I cannot set net.ipv4.ip_nonlocal_bind=1 within a container.

I haven't been able to find much info on the net which makes me think that it might be a problem

I have been testing with KVM and this is working, but I would like to use it with OpenVZ containers.

Using ProxMox 3.4 currently.
 
Supp,

I am working on HA network solution and i was thinking of implementing carp or keepalived.
Would you like to share your working configuration?

I thought the linux networking acted funky with multicast needed vor the virtual ip's, and openvswitch is still a no go with multicast.
 
Hi,

What I did was to setup two small KVM instances with Keepalived running in them with HAProxy and then pointed these to my backend web servers running in OpenVZ containers.

Works like a charm.
 
Good to hear this works on proxmox.

I already got my setup working with ucarp, because i needed to give KVM instances a public ip with a shared gateway accross the proxmox nodes. Maybe in the future i will tackle keepalived or plain CARP for balancing.

thnqx for the information.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!