Bug #1559
closedcannot limit servers kbytes a second
Description
i cannot limit the servers connection because i am pulling 300mbit+ and i want to limit it to 150ish to save some cash. if possible can you tell me why its not working. here is my config file:
evasive.max-conns-per-ip = 3
#server.network-backend = "writev"
server.event-handler = "linux-sysepoll"
server.network-backend = "linux-aio-sendfile"
#server.kbytes-per-second = 700
server.max-keep-alive-requests = 500
server.max-keep-alive-idle = 400
server.max-read-idle = 400
server.max-write-idle = 400
server.bind = "216.240.146.62"
server.port = 80
server.username = "boxstr"
server.groupname = "boxstr"
server.pid-file = "/var/run/lighttpd.pid"
thats the core of the configuration file that i beleive you need to see.. im also running lighttpd 1.5 newest release and running mod_proxy for php
$PHYSICALexisting-path =~ "\.php$" {
proxy-core.balancer = "sqf"
proxy-core.protocol = "fastcgi"
proxy-core.allow-x-sendfile = "enable"
proxy-core.backends = ( "127.0.0.1:9000",
"127.0.0.1:9001",
"127.0.0.1:9002",
"127.0.0.1:9003",
"127.0.0.1:9004",
"127.0.0.1:9005",
"127.0.0.1:9006",
"127.0.0.1:9007",
)
proxy-core.max-pool-size = 10
)
if you can tell me why it wont limit that will be great or this is a bug... thanks!
-- kyle.d.cannon
Updated by Anonymous almost 17 years ago
im sorry... let me repaste my code:
server.errorlog = "/etc/lighttpd/logs/error.log" server.document-root = "/home/boxstr/public_html/" #accesslog.filename = "/etc/lighttpd/logs/lighttpd.log" #server.max-worker = 16 # set max workers to # of CPUs include_shell "echo server.max-worker=`grep -c '^processor' /proc/cpuinfo`" ## TESTING FOR UPLOAD FIX #server.max-request-size = 2097152 server.max-request-size = 5194304 evasive.max-conns-per-ip = 3 #server.network-backend = "writev" server.event-handler = "linux-sysepoll" server.network-backend = "linux-aio-sendfile" #server.kbytes-per-second = 700 server.max-keep-alive-requests = 500 server.max-keep-alive-idle = 400 server.max-read-idle = 400 server.max-write-idle = 400 server.bind = "216.240.146.62" server.port = 80 server.username = "boxstr" server.groupname = "boxstr" server.pid-file = "/var/run/lighttpd.pid" $PHYSICAL["existing-path"] =~ "\.php$" { proxy-core.balancer = "sqf" proxy-core.protocol = "fastcgi" proxy-core.allow-x-sendfile = "enable" proxy-core.backends = ( "127.0.0.1:9000", "127.0.0.1:9001", "127.0.0.1:9002", "127.0.0.1:9003", "127.0.0.1:9004", "127.0.0.1:9005", "127.0.0.1:9006", "127.0.0.1:9007", ) proxy-core.max-pool-size = 10 # proxy-core.rewrite-request = ( # "_pathinfo" => ( "\.php(/.*)" => "/rewrite.php?rewrite-url=$1" ) # ) }
Updated by Anonymous over 16 years ago
I have the same problem,
I use the latest SVN (From 01.04.08), and as soon as I activate server.kbytes-per-second, the downloads begin aborting at about 10% to 15%.
Lighty is used to serve static files.
-- paul.dubs
Updated by stbuehler over 16 years ago
- Status changed from New to Fixed
- Resolution set to duplicate
Also available in: Atom