Better HN
topnewbestaskshowjobs
Log inSign up

nickramirez

187 karma · joined Sep 14, 2018 (8y ago) · 23 submissions

Submissions

1.

HAProxy Is Resilient to the HTTP/2 Continuation Flood(haproxy.com ↗)

2 points · by nickramirez · 2y ago · discuss

2.

HAProxy 2.9 further extends performance, flexibility, and observability(haproxy.com ↗)

3 points · by nickramirez · 2y ago · discuss

comment 3y ago · link · parent

If getting Let's Encrypt to work with HAProxy is your only struggle, you'll soon overcome it and be loving HAProxy. And there are multiple ways to set up Let's Encrypt, if you don't want to use acme.sh. For example, you could use certbot. There are blog posts that cover that pretty well.

4.

HAProxy is not affected by the HTTP/2 Rapid Reset Attack(haproxy.com ↗)

166 points · by nickramirez · 3y ago · 33 comments

comment 3y ago · link · parent

You can think of it as having layers of redundancy.

* Retries are one layer. By default set to 3 retries. HAProxy will retry the failed connection or request with the same server.

* "option redispatch" is another layer. If HAProxy can't connect to a server that is reporting as healthy, it will send the request to a different server.

* health checks are a layer. HAProxy removes unresponsive servers from load balancing.

* Backup servers are another layer. If all servers fail their health checks and are down, then backup servers come online to service requests.

All these things can be enabled in combination, and it would reduce the chance of a client getting a server error.

To answer your question, HAProxy will not connect with a server that is down (failed all its health checks). It will not retry with it either.

comment 5y ago · link · parent

kzrdude, great feedback. These big version announcements gather the attention of people who may not be familiar with HAProxy and so, I'd say they are a unique case where we should introduce the product for newcomers.

7.

Use HAProxy Response Policies to Stop Threats(haproxy.com ↗)

4 points · by nickramirez · 6y ago · discuss

8.

Enable TLS with Let’s Encrypt and the HAProxy Kubernetes Ingress Controller(haproxy.com ↗)

4 points · by nickramirez · 6y ago · discuss

9.

Get to Know the HAProxy Process Manager(haproxy.com ↗)

10 points · by nickramirez · 6y ago · discuss

10.

Announcing HAProxy 2.2(haproxy.com ↗)

8 points · by nickramirez · 6y ago · 5 comments

11.

Load Balancing PHP-FPM with HAProxy and FastCGI(haproxy.com ↗)

5 points · by nickramirez · 6y ago · discuss

comment 7y ago · link · parent

The HAProxy Data Plane API performs a validation check: it sends the -c flag to the HAProxy process before reloading to make sure that it is a valid configuration. If the configuration is invalid, the changes will not take effect and you will see errors in your console or log. With transactions, it's not quite stateless (as HTTP is). Transactions provide a way to make multiple changes and apply them with a single commit. The main benefit of an API is towards program-ability (is that a word?), in which configuring HAProxy can be controlled by "control plane" software, slick looking UIs, tools like Ansible, etc. in an automated way. You can also generate client-side code from the API, such as for Go/Python/[insert language] coding. It goes beyond the use case of "I'm a human who wants to control HAProxy manually or with templates".

comment 7y ago · link · parent

Try the haproxytech images, which are updated for 2.0: https://hub.docker.com/search?q=haproxytech&type=image. There is also information on using the ingress controller here: https://www.haproxy.com/documentation/hapee/1-9r1/traffic-ma...

comment 7y ago · link · parent

The HAProxy Kubernetes Ingress Controller (https://github.com/haproxytech/kubernetes-ingress) uses the same Go library that the API is layered on top of: the "client-native" library. https://github.com/haproxytech/client-native

comment 7y ago · link · parent

It was fun writing this blog post because the API covers a lot of ground in terms of what can be done programmatically with the configuration. I've wanted something like this for integrating into a CD pipeline, for example.

comment 7y ago · link · parent

In fact there is a software-based Enterprise version of HAProxy that is subscription based.

comment 7y ago · link · parent

Although HAProxy is not a web server, it does have Small Object Caching so files can be cached on the proxy. https://www.haproxy.com/blog/whats-new-haproxy-1-8/#http-sma...

comment 7y ago · link · parent

With the Data Plane API, expect to see tighter integration with Consul. For now, there is this integration https://www.haproxy.com/blog/building-a-service-mesh-with-ha...

comment 7y ago · link · parent

HAProxy can proxy HTTP/2 at Layer 4 or at Layer 7, to get all the HTTP message data and perform routing based on that, etc.

comment 7y ago · link · parent

What open-source NGINX lacks that open-source HAProxy has:

* ACL rules with full support for logical if statements [1]

* active health checks

* end-to-end HTTP/2 [2]

* Robust logging or a dashboard with metrics

* The ability to read env variables

* session stickiness

* DNS service discovery [3]

These are just things I'm aware of, there could be a lot more.

HAProxy has shown itself to perform better for certain users such as Booking.com [4]

[1] https://www.nginx.com/resources/wiki/start/topics/depth/ifis... [2] https://trac.nginx.org/nginx/ticket/923 [3] https://danielparker.me/haproxy/nginx/comparison/nginx-vs-ha... [4] https://events.static.linuxfound.org/sites/events/files/slid...

comment 7y ago · link · parent

I'm one of the co-authors. Any questions? Happy to try to answer.

comment 7y ago · link · parent

As the author, any questions I might be able to answer, let me know.