Tag Info

Hot answers tagged


source is indeed an odd choice, unless your appservers are supposed to have session persistence with DB slaves. That's for you to figure out, though. leastconn is usually a very good choice if performance of each server (both appserver and database) is not absolutely steady. This depends on the details of your application and platform. (E.g., a Java based ...


Yelp shared a more sophisticated approach based on meticulous testing. True Zero Downtime HAProxy Reloads tl;dr use Linux tc (traffic control) and iptables to temporarily queue SYN packets while HAProxy is reloading and has two pids attached to the same port (SO_REUSEPORT). Cheers to Yelp for sharing such amazing insights.


You can now do this http://nginx.org/en/docs/http/ngx_http_log_module.html The if parameter (1.7.0) enables conditional logging. A request will not be logged if the condition evaluates to “0” or an empty string map $request_uri $loggable { / 0; /healthcheck.html 0; default 1; } server { ... access_log /var/log/nginx/access.log combined ...

Only top voted, non community-wiki answers of a minimum length are eligible