Katran: A high-performance layer 4 load balancer
11–20 of 22 posts
Re: Katran: A high-performance layer 4 load balancer
#12What is the difference with IPVS kernel module in Linux? Both are layer 4 load balancers and IPVS has come a long time and is proven to be good. Any performance comparisons available?
Re: Katran: A high-performance layer 4 load balancer
#13http://prototype-kernel.readthedocs.io/en/latest/networking/...
I’m actually working on porting XDP into the Xen net front end driver to see if I can’t get something like this working in AWS. If I do it, I’ll likely post an example about it here:
https://github.com/newtools/ebpf
As an aside cloudflare is using that repo for an XDP load balancer as well.
Re: Katran: A high-performance layer 4 load balancer
#14Fun project. Would anyone actually ever run something like this in production over something like HAProxy?
There are also various other benefits, but network layer balancers do have their own share of downsides as well. Like you need to have pretty big control over your infra in order to use them (generally speaking it's not feasible to use them in public clouds), configuration is more complex, they won't do TLS for you etc.
Re: Katran: A high-performance layer 4 load balancer
#15Fun project. Would anyone actually ever run something like this in production over something like HAProxy?
The problem this solves is is when you are using haproxy but need redundancy or a single server is no longer capable of handling the load and you need to scale out to 2+ servers.
You could run 4 haproxy servers and use round robin DNS to load balance between them, but as they say, this has the problem of:
> compared to DNS it doesn't need to wait for TTL to redirect traffic from failed L7 lb.
Many people likely use anycast/ECMP for this case, but that has the other issue they mention:
> compared to anycast-based solution, L4 lbs are more resilient to the networking related issues (which triggers mass ECMP reshuffle)/ enable better handling of adding/removing of L7 lbs from the pool as well as provide better support for unequal load balancing.
Re: Katran: A high-performance layer 4 load balancer
#16This is where Facebook actually does some good... their open source efforts are really good... https://github.com/facebookincubator And... https://github.com/facebook
Re: Katran: A high-performance layer 4 load balancer
#17Fun project. Would anyone actually ever run something like this in production over something like HAProxy?
HAProxy and network layer load balancers are very different kind of beasts. HAProxy requires, for example, you to return your traffic via HAProxy which can make HAProxy a bottleneck, requests are usually smaller than responses. HAProxy will also require you to terminate your connections which will make you lose your source IP address if you cannot get it using proxy protocol. There are also various other benefits, bu…
[0] https://www.haproxy.com/blog/layer-4-load-balancing-nat-mode...
Re: Katran: A high-performance layer 4 load balancer
#18Fun project. Would anyone actually ever run something like this in production over something like HAProxy?
This doesn't really replace something like haproxy. In the diagrams, the "real" servers that they are load balancing to are L7 load balancers like HAProxy (using https://github.com/facebook/proxygen most likely) The problem this solves is is when you are using haproxy but need redundancy or a single server is no longer capable of handling the load and you need to scale out to 2+ servers. You could run 4 haproxy serve…
Re: Katran: A high-performance layer 4 load balancer
#19Earlier quoted context omitted.
This doesn't really replace something like haproxy. In the diagrams, the "real" servers that they are load balancing to are L7 load balancers like HAProxy (using https://github.com/facebook/proxygen most likely) The problem this solves is is when you are using haproxy but need redundancy or a single server is no longer capable of handling the load and you need to scale out to 2+ servers. You could run 4 haproxy serve…
Why does nobody in this thread seem to realize that HAProxy works just fine over layer 4?
Re: Katran: A high-performance layer 4 load balancer
#20Earlier quoted context omitted.
This doesn't really replace something like haproxy. In the diagrams, the "real" servers that they are load balancing to are L7 load balancers like HAProxy (using https://github.com/facebook/proxygen most likely) The problem this solves is is when you are using haproxy but need redundancy or a single server is no longer capable of handling the load and you need to scale out to 2+ servers. You could run 4 haproxy serve…
Why does nobody in this thread seem to realize that HAProxy works just fine over layer 4?
Please describe how HAProxy running in l4 mode is a solution to this problem.