News for hackers. Stuff that matters.
Re:Dynamic Configuration with the HAProxy Runtime API by sandGorgon on Tuesday December 05, 2017 @02:24PM (#15854859)
Anybody know why companies like cloudflare use nginx versus haproxy as their public facing infrastructure (https://github.com/cloudflare/sslconfig) ?

It always seems to me as if haproxy was the superior tool with worse UX/configurability than nginx.

Re:Dynamic Configuration with the HAProxy Runtime API by markonen on Tuesday December 05, 2017 @03:33PM (#15855548)
Cloudflare is (among other things) a CDN/cache. haproxy does not cache.
Re:Dynamic Configuration with the HAProxy Runtime API by mcarney23 on Tuesday December 05, 2017 @04:44PM (#15856317)
It does now !
Re:Dynamic Configuration with the HAProxy Runtime API by burntrelish1273 on Tuesday December 05, 2017 @10:51PM (#15858316)
I wouldn't use it. Use the right tool for the right job.

Nginx is good at caching but Varnish is often better.

HAProxy is far better suited to providing load-balanced HA. Regarding this article, this API makes is ideal to dynamically-reconfigure HAproxy, adding and removing servers on-the-fly, which is super-useful in production.

Re:Dynamic Configuration with the HAProxy Runtime API by manigandham on Tuesday December 05, 2017 @09:41PM (#15858076)
Only at the most minimal layer, meant for favicon.ico requests and the like. They are explicit about not becoming a cache or web server.
Re:Dynamic Configuration with the HAProxy Runtime API by liulantao on Tuesday December 05, 2017 @09:48PM (#15858103)
Nginx has widely used modules, business logic can be run in the same worker process with proxy. And it is easy to find enough developers to develop a relatively complex business support system based on nginx module system.

Haproxy itself is efficient as a proxy, however, developing a business system requires a lot of interaction between proxy and the business control processes.

Re:Dynamic Configuration with the HAProxy Runtime API by tyingq on Tuesday December 05, 2017 @03:00PM (#15855244)
Probably just timing. Nginx had support for things like ssl termination, http/2 earlier than haproxy.
Re:Dynamic Configuration with the HAProxy Runtime API by ianamartin on Wednesday December 06, 2017 @03:49AM (#15859607)
I'm not sure why companies with a budget would use it, but if you want health-checks without paying, you use HAProxy. nginx excludes this for the open source version. Which really makes me unhappy. But so it goes.

I use both in my applications. nginx for reverse proxy on my python boxes and HAProxy to manage all of them.

Re:Dynamic Configuration with the HAProxy Runtime API by nailer on Tuesday December 05, 2017 @04:03PM (#15855943)
nginx has more development activity. Eg, nginx has had http/2 support for a couple of years, HAProxy has for a couple of days. HAProxy is excellent - even it's stats module costs a couple of thousand bucks for a proprietary module per instance on nginx - but nginx seems to move faster.
Re:Dynamic Configuration with the HAProxy Runtime API by nailer on Tuesday December 05, 2017 @04:23PM (#15856146)

    $ echo "help<command></command>" | socat stdio /var/run/hapee-lb.sock
    $ echo "help<command></command>" | socat stdio tcp4-connect:127.0.0.1:9999
Seems a bit weird, there's no XML anywhere else. Wonder if it's a markup issue on the page.
Re:Dynamic Configuration with the HAProxy Runtime API by mcdevilkiller on Tuesday December 05, 2017 @04:34PM (#15856237)
It has been changed now
Re:Dynamic Configuration with the HAProxy Runtime API by feelin_googley on Tuesday December 05, 2017 @04:59PM (#15856434)
It is useful to be able to add/delete ACLs without restart.

Wish we could modify settings such as "use_backend", "backend" and "server" the same way.

Maybe there is a workaround.

Re:Dynamic Configuration with the HAProxy Runtime API by KasKrout on Wednesday December 06, 2017 @04:45AM (#15859835)
You can change the server settings using the "set server" command, but I think it is not possible yet to change use_backend.
Re:Dynamic Configuration with the HAProxy Runtime API by feelin_googley on Wednesday December 06, 2017 @12:06PM (#15862728)
Note I mean individual server settings for each backend in the backend section.
Re:Dynamic Configuration with the HAProxy Runtime API by JeanMarcS on Tuesday December 05, 2017 @10:27PM (#15858220)
I’m not sure I understand well: is the api only accessible from socket ? It can’t be piloted from another container/vm/vps/whatever one use ?

Or did I misread this ?

Re:Dynamic Configuration with the HAProxy Runtime API by lgas on Tuesday December 05, 2017 @11:54PM (#15858639)
It's accessible via TCP as well as unix sockets, so accessible from anywhere.
Re:Dynamic Configuration with the HAProxy Runtime API by JeanMarcS on Wednesday December 06, 2017 @09:08PM (#15867031)
Great ! Thank you for your answer.