Live data from Hacker News

What’s new in HAProxy 1.6

blog.haproxy.com

31–40 of 42 posts

Re: What’s new in HAProxy 1.6

#31
post #2

Nice. It supports lua and mail alerts on changing servers now...

The mail thing seems like a not healthy growth of functionality. Most people already have logging infrastructure in place for this. Unix philosophy and all that.

Sending email alerts probably take very little code. Receiving mail is where the complexity is.

Re: What’s new in HAProxy 1.6

#32
post #9

Earlier quoted context omitted.

Varnish is a good HTTP caching server, but with the rise of HTTPS and soon HTTP/2 I'm not sure it'll change since last time I heard its developers don't intend to support TLS at all.

I disagree, Poul-Henning Kamp's HTTPS/HTTP2 rant is well known, but he's not going to abandon the project. He has steered it to follow the unix ideals of doing one thing well. They (varnish) forked stud and bought it up to date as hitch [1] which covers TLS. At some point they will incorporate HTTP2 once the demand is there. https://github.com/varnish/hitch

Poul-Henning Kamp's HTTPS/HTTP2 rant ->https://queue.acm.org/detail.cfm?id=2716278

Re: What’s new in HAProxy 1.6

#33
post #16
post #11

As an HAProxy user, support for logging to stdout (and hence journald) would be great. Currently HAProxy users on the major Linux distros either have to use it in debug mode or have a second log server just for the purposes of running HAProxy. Otherwise I love HAProxy!

HAProxy is not linux-specific. We have a POSIX logging facility, and HAProxy works just fine with syslog. If journald has problems with syslog, it's basically journald's problem.

In the spirit of avoiding code duplication and making daemontools-like process supervisors happy (that includes systemd for these purposes), I greatly appreciate when logs can be sent to stderr

If the admin wants the logs in syslog, 2>&1 | logger or similar. If the admin wants to use multilog, s6-log, or journald, that's also easy.

(For the same reasons, daemons should not include daemonization routines but should run in the foreground. If I want it in the background, I'll arrange for my process supervisor to start it.)

Re: What’s new in HAProxy 1.6

#34

Earlier quoted context omitted.

Yeah, there's a mix of awesome and what? stuff. > Since 1.6, HAProxy can forge SSL certificate on the fly! Yes, you can use HAProxy with your company’s CA to inspect content. > Device Identification (Considering it seems you need a proprietary lib) > mailers > lua > Processing of HTTP request body All seem to be be moving away from what HAProxy is/was. It's not an application server. It's not a webserver. It's not a…

Lua is kinda awesome, though. Use it with plenty of common sense and it can be a very powerful tool.

I guess part of my concern with Lua was the example on the linked article. It seems to be able to interface with most of the system and not just as a content source, which makes more sense.

Re: What’s new in HAProxy 1.6

#35
post #29

Earlier quoted context omitted.

Neither seems like good functionality to add to HAProxy. They both seem superfluous and almost antithetical to what it was in 1.5. Why is it nice?

I can see some value to Lua; it allows for more complex routing rules in a way that's comfortable for a programmer. (This is pretty much what I use Lua for in nginx, too.) Mail, though--yeah, nope.

I guess part of my concern with Lua was the example on the linked article. It seems to be able to interface with most of the system and not just as a content source, which makes more sense.

Re: What’s new in HAProxy 1.6

#36
Something I've always wanted to do but from what I can see is impossible in Apache is simply limit the number of connections a single IP can have open at once.

Is this possible with HAProxy? If it is, the documentation doesn't make it clear how.

Re: What’s new in HAProxy 1.6

#37
post #36

Something I've always wanted to do but from what I can see is impossible in Apache is simply limit the number of connections a single IP can have open at once. Is this possible with HAProxy? If it is, the documentation doesn't make it clear how.

Well its possible with nginx for sure, havent used apache in about 10 years now (first lighttpd then nginx) i think, after switching to nginx no going back.

Haproxy btw is fantastic too, useful for hiding real location of web server from attacks

Re: What’s new in HAProxy 1.6

#38
post #16

Earlier quoted context omitted.

HAProxy is not linux-specific. We have a POSIX logging facility, and HAProxy works just fine with syslog. If journald has problems with syslog, it's basically journald's problem.

In the spirit of avoiding code duplication and making daemontools-like process supervisors happy (that includes systemd for these purposes), I greatly appreciate when logs can be sent to stderr If the admin wants the logs in syslog, 2>&1 | logger or similar. If the admin wants to use multilog, s6-log, or journald, that's also easy. (For the same reasons, daemons should not include daemonization routines but should ru…

> (For the same reasons, daemons should not include daemonization routines but should run in the foreground. If I want it in the background, I'll arrange for my process supervisor to start it.)

If a daemon doesn't... daemonize into the background, it's no longer a daemon - just a process.

Silly loonix folks.

Please see the FreeBSD program daemon[1] or the FreeBSD handbook section 3.8[2].

[1] https://www.freebsd.org/cgi/man.cgi?query=daemon&apropos=0&s...

[2] https://www.freebsd.org/doc/handbook/basics-processes.html

Re: What’s new in HAProxy 1.6

#40

Cool, now we can use Device Identification feature to route mobile users to a different backend, also love the HTTP/2 connection sharing.

As always I'm skeptical of reliable device identification. Claiming to have it almost sounds like claiming to own a hen that lays golden eggs. Their blurb about it doesn't do much to convince me so far:

    Through our company, we have some customer who want us to integrate
    into HAProxy the ability to detect device type and characteristics and
    report it to the backend server. We got a couple of contributions from
    2 companies experts in this domain: 51 degrees and deviceatlas. You
    can now load those libraries in HAProxy in order to fully qualify a
    client capabilities and set up some headers your application server
    can rely on to adapt content delivered to the client or let the
    varnish cache server use it to cache multiple flavor of the same
    object based on client capabilities.

    More on this blog later on how to integrate each product.
But it would be a nice surprise if it performed well.
Post reply on HN