<div dir="ltr"><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">You can tweak the access log entries with <a href="http://nginx.org/en/docs/http/ngx_http_log_module.html#log_format" target="_blank">log_format</a> to include the upstream server, so you will know which upstream(s) each request got served by.<br><br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">As a manual, simple, test case, I would create a specific, testing location on each of the upstream serving information uniquely identifying them. See the <a href="http://nginx.org/en/docs/http/ngx_http_rewrite_module.html#return" target="_blank">return</a> directive to simply send some basic HTTP codes and attached messages.<br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">Refreshing your browser (or using an automated crawler hitting your front-end for testing purpose) will give you those answers to check how requests are being balanced.<br></div><div class="gmail_extra"><div><div><font size="1"><span style="color:rgb(102,102,102)">---<br></span><b><span style="color:rgb(102,102,102)">B. R.</span></b><span style="color:rgb(102,102,102)"></span></font></div></div>
<br><div class="gmail_quote">On Sun, Jan 11, 2015 at 12:23 PM, ST <span dir="ltr"><<a href="mailto:smntov@gmail.com" target="_blank">smntov@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
how can I verify that load balancing really works? I have 2 servers with<br>
nginx, one of them functions as a LoadBalancer and redirects requests<br>
either on itself or on the other server(by default round-robin). When I<br>
look on the traffic using jnettop it looks like both servers are<br>
loaded(while the LB is loaded more), but if I check traffic statistics<br>
with my server provider I see that the LB server shows ca. 233Gb while<br>
the other server only 0.012Gb in the same period. What is the rigth way<br>
to verify it?<br>
<br>
Thank you.<br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div><br></div></div>