Project

General

Profile

Bug #907

mod_proxy_core fails if proxy-core.balancer is not set, but no warnings

Added by Anonymous almost 13 years ago. Updated about 12 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
core
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Missing in 1.5.x:

Description

I was trying to get mod_proxy_core to work with the fastcgi magnet.c tool and kept running into:


src/mod_proxy_core.c.1288: (trace) backlog: all backends are down, putting /test.lua (4) into backlog

and such...

The revision is r1457 of /trunk.

However... after a stroke of genius, I put proxy-core.balancer = "round-robin" in the configuration file and it worked. There was no warning about the configurations, so I assumed it was correct.

Proposed resolutions:
  • A warning/error be issued when the balancer is not set.
  • A default balancer be set... perhaps based upon some ruleset such as protocol, # of backends/etc

-- Thomas Harning Jr. <harning

History

#1

Updated by Anonymous almost 13 years ago

Example non-working config:


server.port = 8080
server.modules = ( "mod_proxy_core" )

$HTTP["url"] =~ "\.lua$" {
    proxy-core.protocol = "fastcgi" 
    proxy-core.backends = ("127.0.0.1:9000")
}

Example working config:


server.port = 8080
server.modules = ( "mod_proxy_core" )

$HTTP["url"] =~ "\.lua$" {
    proxy-core.balancer = "round-robin" 
    proxy-core.protocol = "fastcgi" 
    proxy-core.backends = ("127.0.0.1:9000")
}

-- Thomas Harning Jr. <harning

#2

Updated by jakabosky over 12 years ago

  • Status changed from New to Fixed
  • Resolution set to fixed

fixed in r1520 lighttpd will not start if proxy-core.balancer is not set and proxy-core.protocol is set.

Also available in: Atom