by jbergstroem · 9y ago · 0 comments
You can interact with haproxy via lua[1] or use etcd to have traefik load its configuration[2].
Seeing how [as others also mentioned] nginx seems to favor pro customers in terms of functionality, it would only seem wise to choose another proxy/load balancer for your next project.
[1]: http://www.arpalert.org/src/haproxy-lua-api/1.7/#Proxy.serve...
There are projects like the one I'm working on [3] that implement dynamic proxies using OpenResty.
[1]: https://github.com/openresty/lua-nginx-module [2]: https://github.com/openresty/lua-nginx-module#balancer_by_lu... [3]: https://github.com/3scale/apicast/
HAProxy reloads don't interrupt existing connections (unless you want it to).
There is a ~microsecond downtime in accepting new connections. https://engineeringblog.yelp.com/2015/04/true-zero-downtime-...
https://nginx.org/en/docs/ngx_core_module.html#worker_shutdo...
Or paying $2500/instance/year for nginx plus.
Maybe nginx isn't better than haproxy for many purposes. But updating configuration isn't the reason :)
If you're at a scale where logging into each server from your control node 'hurts', then you're still going to hurt with all the config other than nginx anyway.
See https://www.nginx.com/products/on-the-fly-reconfiguration/
https://httpd.apache.org/docs/2.4/howto/reverse_proxy.html#m...