Project

General

Profile

Actions

Bug #1729

closed

carp hash balancing not working properly

Added by frieder over 16 years ago. Updated over 8 years ago.

Status:
Obsolete
Priority:
High
Category:
mod_proxy_backend_http
Target version:
ASK QUESTIONS IN Forums:

Description

We're using mod_proxy_backend_http for balancing image requests to our squids with balance type carp.
One Backend gets ~ 10x more requests then the other..

My config:
server.modules += ( "mod_proxy_core", "mod_proxy_backend_http")

$HTTPurl =~ "^/xa/" {
proxy-core.balancer = "carp"
proxy-core.protocol = "http"
proxy-core.allow-x-sendfile = "enable"
proxy-core.backends = ( "192.168.66.201:82" )
proxy-core.max-pool-size = 256
}

$HTTPurl =~ "^/xb/s/" {
proxy-core.balancer = "carp"
proxy-core.protocol = "http"
proxy-core.allow-x-sendfile = "enable"
proxy-core.backends = ( "192.168.66.206:82", "192.168.66.205:82" )
proxy-core.max-pool-size = 1024
}

$HTTPurl =~ "^/xb/n/" {
...}

My problem is with the /xb/s balancing: i attach two munin graphics from our squids (both using excactly the same hardware and config) - one has about 200-300 req/s, the other 20-30.
/xa is hit hard with 1000-1500req/s and works fine - so my backends aren't the problem..


Files

squid205_requests-week.png (29.1 KB) squid205_requests-week.png first munin graph frieder, 2008-07-22 10:25
squid206_requests-week.png (30.8 KB) squid206_requests-week.png seond munin graph frieder, 2008-07-22 10:26
Actions #1

Updated by frieder over 16 years ago

/server-statistics:

proxy-core.0.backends."192.168.66.201:82".load: 0
proxy-core.0.backends."192.168.66.201:82".pool_size: 0
proxy-core.0.backends."192.168.66.201:82".requests: 96345
proxy-core.0.backends."192.168.66.201:82".requests_failed: 0
proxy-core.0.backlogged: 0
proxy-core.1.backends."192.168.66.205:82".load: 0
proxy-core.1.backends."192.168.66.205:82".pool_size: 0
proxy-core.1.backends."192.168.66.205:82".requests: 2507276
proxy-core.1.backends."192.168.66.205:82".requests_failed: 0
proxy-core.1.backends."192.168.66.206:82".load: 0
proxy-core.1.backends."192.168.66.206:82".pool_size: 7
proxy-core.1.backends."192.168.66.206:82".requests: 40270544
proxy-core.1.backends."192.168.66.206:82".requests_failed: 0
proxy-core.1.backlogged: 0
proxy-core.2.backends."192.168.66.202:82".load: 0
proxy-core.2.backends."192.168.66.202:82".pool_size: 2
proxy-core.2.backends."192.168.66.202:82".requests: 6538500
proxy-core.2.backends."192.168.66.202:82".requests_failed: 0
proxy-core.2.backends."192.168.66.203:82".load: 0
proxy-core.2.backends."192.168.66.203:82".pool_size: 3
proxy-core.2.backends."192.168.66.203:82".requests: 5842223
proxy-core.2.backends."192.168.66.203:82".requests_failed: 0
proxy-core.2.backlogged: 0
proxy-core.requests: 55254888

Actions #2

Updated by Anonymous about 16 years ago

-- Chris Bolt <chrisbolt

Actions #3

Updated by gstrauss over 8 years ago

  • Description updated (diff)
  • Assignee deleted (jan)
  • Missing in 1.5.x set to Yes
Actions #4

Updated by gstrauss over 8 years ago

  • Status changed from New to Obsolete
Actions

Also available in: Atom