150 points · by golan · 12y ago · 48 comments
This is basically done by moving the balancing between workers into the master, instead of calling `accept()` concurrently from the workers.
iptables -I INPUT -p tcp -m multiport —dports 80,443 —syn -j DROP && sleep 0.5 && \
/etc/init.d/haproxy reload;
iptables -D INPUT -p -tcp -m multiport —dports 80,443 —syn -j DROP
Source: https://medium.com/@Drew_Stokes/actual-zero-downtime-with-ha...we're still using stunnel for ssl, have been waiting for positive reports to let haproxy do it, but are optimistic.
The bud is built on the top of the libuv, which empowers the node.js.
However, you need to run it in multi-process - I found 16 to be a good number. The only drawback is that any monitoring you do is on whichever process you happen to connect to when you check, so you need to multiply by the number of total processes to get accurate numbers. Not sure why the monitoring is per-process, but it's a bit of a pain.
Based on this: http://haproxy.debian.net/
That does mean that there are a lot of people who want AWS to support some particular feature. But having seen how featuritis can really ruin a code base, I'm glad they're conservative; I want my infrastructure to be very reliable.
[1] https://github.com/eucalyptus/architecture/blob/master/featu...
Basically, bud can load the certificates and private keys for a domain name on the fly, without putting all of them into configuration.
- [MINOR] checks: add PostgreSQL health check
A bit silent, but this is a very interesting change for us.This article does sound to me like SSL support in haproxy is brand new: http://seanmcgary.com/posts/using-sslhttps-with-haproxy