Apache LoadBalancer распределяется неравномерно - PullRequest
0 голосов
/ 26 февраля 2020

У меня есть Apache 2.2 LB, который я пытаюсь понять, почему весь трафик c идет в основном на IP 137. Я подумал, что это потому, что, возможно, время перезапуска, так как время работы было меньше, чем у других, поэтому я сделал сброс на другом сервере, ожидая, что трафик от c до go, но без изменений в этом поведении.

Эти это набор серверов, которые получают аудиофайлы в огромном количестве, и сейчас у нас есть bottle шейка в этом процессе, и я думаю, что это связано в основном со всеми трафиками c, просто идущими на один сервер.

LB HTTPD:

Server version: Apache/2.2.15 (Unix)
Server built:   Mar  3 2015 12:06:14
Server's Module Magic Number: 20051115:25
Server loaded:  APR 1.3.9, APR-Util 1.3.9
Compiled using: APR 1.3.9, APR-Util 1.3.9
Architecture:   64-bit
Server MPM:     Prefork
  threaded:     no
    forked:     yes (variable process count)
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/prefork"
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_SYSVSEM_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D DYNAMIC_MODULE_LIMIT=128
 -D HTTPD_ROOT="/etc/httpd"
 -D SUEXEC_BIN="/usr/sbin/suexec"
 -D DEFAULT_PIDLOG="run/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_LOCKFILE="logs/accept.lock"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"

Моя конфигурация балансировщика:

<Proxy balancer://webdav>
    #ProxySet lbmethod=bybusyness
    BalancerMember http://172.29.164.136
    BalancerMember http://172.29.164.137
    BalancerMember http://172.29.164.138
    BalancerMember http://172.29.164.139
    </Proxy>
    ProxyPass /webdav/recordings balancer://webdav/files
    ProxyPass /webdav/dest2 balancer://webdav/dest2

137 Сервер:

Current Time: Tuesday, 25-Feb-2020 18:29:36 EST
Restart Time: Sunday, 23-Feb-2020 20:28:34 EST
Parent Server Config. Generation: 2
Parent Server MPM Generation: 1
Server uptime: 1 day 22 hours 1 minute 2 seconds
Server load: 76.81 78.78 78.97
Total accesses: 198038 - Total Traffic: 30.7 GB
CPU Usage: u1421.57 s18323.6 cu0 cs0 - 11.9% CPU load
1.2 requests/sec - 194.3 kB/second - 162.5 kB/request
100 requests currently being processed, 0 idle workers
PID Connections Threads Async connections
total   accepting   busy    idle    writing keep-alive  closing
14445   26  yes 25  0   0   0   1
14473   27  yes 25  0   0   0   2
14389   25  yes 25  0   0   0   1
14390   25  yes 25  0   0   0   0
Sum 103     100 0   0   0   4
WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW

Другой сервер (136)

Server Version: Apache/2.4.6 (CentOS)
Server MPM: event
Server Built: Aug 8 2019 11:41:18
Current Time: Tuesday, 25-Feb-2020 09:59:49 EST
Restart Time: Sunday, 23-Feb-2020 09:50:57 EST
Parent Server Config. Generation: 2
Parent Server MPM Generation: 1
Server uptime: 2 days 8 minutes 51 seconds
Server load: 0.90 1.09 1.29
Total accesses: 240307 - Total Traffic: 37.9 GB
CPU Usage: u1066.29 s11453.1 cu0 cs0 - 7.22% CPU load
1.39 requests/sec - 229.2 kB/second - 165.3 kB/request
3 requests currently being processed, 97 idle workers
PID Connections Threads Async connections
total   accepting   busy    idle    writing keep-alive  closing
4034    0   yes 0   25  0   0   0
4118    1   yes 1   24  0   0   0
4062    1   yes 2   23  0   0   0
4063    0   yes 0   25  0   0   0
Sum 2       3   97  0   0   0
______________________________W_____________________________W___
W___________________________________

Может кто-нибудь, пожалуйста, помогите мне понять, почему это поведение? Все серверы имеют одинаковую конфигурацию HW

...