Advantage of using HAProxy AND Keepalived vs just Keepalived
Asked Answered
T

2

14

As per the (verbose) topic, are there any advantages over using a Keepalived & HAProxy as an HA webserver loadbalancer vs a pure keepalived solution?

Truc answered 27/3, 2015 at 2:39 Comment(0)
N
25

Keepalived is working in layer 4 so doesn't have layer 7 knowledge at all. By using HAProxy and Keepalived together you can get benefit of having some options that HAProxy provides in layer 7 like Stickiness, Sampling and converting information, ACLs and conditions, Content switching, Stick-tables, Formated strings, HTTP rewriting and redirection, Server protection, etc.

If you only need to have a load balancer without any manipulating or any high level decision (layer 7) you can use only Keepalived and it will be faster because it works in layer 4.

Neology answered 11/11, 2015 at 17:5 Comment(0)
S
0

Administrators can use both Keepalived and HAProxy together for a more robust and scalable high availability environment. Using the speed and scalability of HAProxy to perform load balancing for HTTP and other TCP-based services in conjunction with Keepalived failover services, administrators can increase availability by distributing load across real servers as well as ensuring continuity in the event of router unavailability by performing failover to backup routers.

keepalived and haproxy

Steels answered 15/10, 2022 at 2:24 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.