Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4715

Best practices for upgrading application server

$
0
0

When upgrading the applications behind haproxy I’ve been putting the specific backend into maintenance mode in haproxy, then upgrading the application and finally bringing up the backend in haproxy.

This is a bit cumbersome in our configuration management environment and it would be easier to just take the application server down and allow haproxy to fail over that backend. If haproxy checks backends every 15 seconds, will:

  1. some requests keep going to the dead backend for up to 15 seconds?
  2. haproxy notice the dead backend on the first request and mark it offline, but still lose that one request.
  3. haproxy notice the dead backend on the first request and mark it offline, and reroute that request to a good backend

If the answer is (3) and we lose no traffic at all, then we can do away with the cumbersome process of marking the backend as in maintenance.

Setup
haproxy 2.2.14
FreeBSD 11
Jetty powered application server
HTTP passthrough with SSL offloading on haproxy

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4715

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>