Hi,

I’ve been wondering how requests are balanced across the multiple haproxy 
instances in multiprocess mode. Because we see some of our 16 haproxy process 
get more load than the other ones:

14725 root       20   0  162M  100M  1416 R 100.  0.3  4:42.18 
/usr/sbin/haproxy -D -f /etc/haproxy/haproxy.cfg -p /var/run/haproxy.pid -sf 
13510 13511 13512 13513 13514 13515 13516 13517 13518 13519 13520 13521 13522 
13523 13524 13525
14726 root       20   0  158M 98144  1404 R 100.  0.3  4:06.36 
/usr/sbin/haproxy -D -f /etc/haproxy/haproxy.cfg -p /var/run/haproxy.pid -sf 
13510 13511 13512 13513 13514 13515 13516 13517 13518 13519 13520 13521 13522 
13523 13524 13525
14724 root       20   0  135M 74916  1368 D 38.0  0.2  3:38.87 
/usr/sbin/haproxy -D -f /etc/haproxy/haproxy.cfg -p /var/run/haproxy.pid -sf 
13510 13511 13512 13513 13514 13515 13516 13517 13518 13519 13520 13521 13522 
13523 13524 13525
14712 root       20   0 86720 30336  1272 S 13.0  0.1  0:36.20 
/usr/sbin/haproxy -D -f /etc/haproxy/haproxy.cfg -p /var/run/haproxy.pid -sf 
13510 13511 13512 13513 13514 13515 13516 13517 13518 13519 13520 13521 13522 
13523 13524 13525
14722 root       20   0 98416 35424  1308 S  7.0  0.1  1:02.10 
/usr/sbin/haproxy -D -f /etc/haproxy/haproxy.cfg -p /var/run/haproxy.pid -sf 
13510 13511 13512 13513 13514 13515 13516 13517 13518 13519 13520 13521 13522 
13523 13524 13525
14721 root       20   0 87748 25152  1328 S  4.0  0.1  0:16.78 
/usr/sbin/haproxy -D -f /etc/haproxy/haproxy.cfg -p /var/run/haproxy.pid -sf 
13510 13511 13512 13513 13514 13515 13516 13517 13518 13519 13520 13521 13522 
13523 13524 13525
14717 root       20   0 85268 28732  1284 S  3.0  0.1  0:07.17 
/usr/sbin/haproxy -D -f /etc/haproxy/haproxy.cfg -p /var/run/haproxy.pid -sf 
13510 13511 13512 13513 13514 13515 13516 13517 13518 13519 13520 13521 13522 
13523 13524 13525
14716 root       20   0 85404 28900  1208 S  2.0  0.1  0:11.24 
/usr/sbin/haproxy -D -f /etc/haproxy/haproxy.cfg -p /var/run/haproxy.pid -sf 
13510 13511 13512 13513 13514 13515 13516 13517 13518 13519 13520 13521 13522 
13523 13524 13525
14718 root       20   0 84792 28244  1208 S  2.0  0.1  0:10.12 
/usr/sbin/haproxy -D -f /etc/haproxy/haproxy.cfg -p /var/run/haproxy.pid -sf 
13510 13511 13512 13513 13514 13515 13516 13517 13518 13519 13520 13521 13522 
13523 13524 13525
14719 root       20   0 85284 28808  1280 S  2.0  0.1  0:10.13 
/usr/sbin/haproxy -D -f /etc/haproxy/haproxy.cfg -p /var/run/haproxy.pid -sf 
13510 13511 13512 13513 13514 13515 13516 13517 13518 13519 13520 13521 13522 
13523 13524 13525
14720 root       20   0 87768 25084  1228 S  2.0  0.1  0:21.96 
/usr/sbin/haproxy -D -f /etc/haproxy/haproxy.cfg -p /var/run/haproxy.pid -sf 
13510 13511 13512 13513 13514 13515 13516 13517 13518 13519 13520 13521 13522 
13523 13524 13525
18064 root       20   0  110M  2828  1216 R  1.0  0.0  0:00.11 htop
14713 root       20   0 86672 30372  1244 S  1.0  0.1  0:22.60 
/usr/sbin/haproxy -D -f /etc/haproxy/haproxy.cfg -p /var/run/haproxy.pid -sf 
13510 13511 13512 13513 13514 13515 13516 13517 13518 13519 13520 13521 13522 
13523 13524 13525
14723 root       20   0  142M 82096  1408 R  1.0  0.2  3:37.78 
/usr/sbin/haproxy -D -f /etc/haproxy/haproxy.cfg -p /var/run/haproxy.pid -sf 
13510 13511 13512 13513 13514 13515 13516 13517 13518 13519 13520 13521 13522 
13523 13524 13525
14715 root       20   0 85988 29448  1208 S  1.0  0.1  0:06.89 
/usr/sbin/haproxy -D -f /etc/haproxy/haproxy.cfg -p /var/run/haproxy.pid -sf 
13510 13511 13512 13513 13514 13515 13516 13517 13518 13519 13520 13521 13522 
13523 13524 13525


We are doing ssl termination at haproxy 1.5-dev19, our default section:
global
  daemon
  maxconn 131072
  spread-checks 2
  stats socket /var/run/haproxy.sock
  stats bind-process 1
  nbproc 16


defaults
  mode http
  option splice-response
  option splice-request
  option httplog
  option forwardfor
  option http-server-close
  option tcp-smart-accept
  option tcp-smart-connect
  timeout connect 5000ms
  timeout client 30000ms
  timeout server 300000ms
  timeout http-request 20000ms
  bind-process 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16

Is this a normal behaviour?

Best regards,

Annika

---
Systemadministration

Travian Games GmbH
Wilhelm-Wagenfeld-Str. 22
80807 München
Germany

www.traviangames.de<http://www.traviangames.de/>

Sitz der Gesellschaft München
AG München HRB: 173511
Geschäftsführer: Siegfried Müller
USt-IdNr.: DE246258085

Diese Email einschließlich ihrer Anlagen ist vertraulich und nur für den
Adressaten bestimmt. Wenn Sie nicht der vorgesehene Empfänger sind,
bitten wir Sie, diese Email mit Anlagen unverzüglich und vollständig zu
löschen und uns umgehend zu benachrichtigen.

This email and its attachments are strictly confidential and are
intended solely for the attention of the person to whom it is addressed.
If you are not the intended recipient of this email, please delete it
including its attachments immediately and inform us accordingly.

Reply via email to