Post A17s4azLRDRcfm3GOe by adfeno@ecodigital.social
(DIR) More posts by adfeno@ecodigital.social
(DIR) Post #A16QrwIhmu9NTJVpUO by wolf480pl@mstdn.io
2020-11-11T22:44:11Z
0 likes, 0 repeats
I've been testing my webapp with ab and saw a weird oscillating load asymmetry between the backends...Any idea why this could be happening?I'm load balancing between the backends using nginx's least_conn.
(DIR) Post #A17raLb46CvmFVGtjk by adfeno@ecodigital.social
2020-11-12T15:18:12Z
0 likes, 0 repeats
@wolf480pl I know little about #Nginx and nothing about this “ab”, but make sure that all the things make requests locally rather than “road-tripping” through wide address resolution. If you use local absolute addresses (either through local IP, #mDNS / #Zeroconf / #Bonjour) that is also fine as long as you don't expose these those in the webpage (because they won't work of course).
(DIR) Post #A17rpyscKNjYQXw67s by wolf480pl@mstdn.io
2020-11-12T15:21:04Z
0 likes, 0 repeats
@adfeno ab is a benchmarking tool from apache2-utils. It generates a lot of requests to test your webserver.The backends do not generate any requests. Those graphs only show the "external traffic" generated with ab.
(DIR) Post #A17rzHmtOmzvfshAoK by wolf480pl@mstdn.io
2020-11-12T15:22:45Z
0 likes, 0 repeats
@adfeno oooh, you mean the load balancer shouldn't use DNS resolution... well, it's using internal hostnames resolved to internal IPs using internal DNS server, but I'll make sure it doesn't check the DNS too often
(DIR) Post #A17s4azLRDRcfm3GOe by adfeno@ecodigital.social
2020-11-12T15:23:40Z
0 likes, 0 repeats
@wolf480pl Also, if using #mDNS / #Zeroconf / #Bonjour, make sure that any address resolution software or facility (such as #NSCd and #NSSwitch ) are set so that “minimal mDNS” is queried before DNS and returns when things are not found, before passing on to DNS of course. This is mostly the default, but it's better to check.