August 2017
Intermediate to advanced
278 pages
8h 53m
English
To further aid in tracing and testing load balancer configurations, we can add some additional headers in for testing. This allows us to then see further information as to which upstream server processed the request, as well as how long it took. Here are the additional headers I added for testing:
add_header upstream-addr $upstream_addr; add_header upstream-connect-time $upstream_connect_time;
If it's a production system, you can enable this only when a conditional flag is set, as we detailed in Chapter 5, Logging.
This allows us to see which upstream server processed our request ($upstream_addr) and how long it took to connect to the upstream server ($upstream_connect_time). This helps to give an indication as to where any ...
Read now
Unlock full access