Ticket #1559 (closed defect: duplicate)

Opened 3 months ago

Last modified 1 week ago

cannot limit servers kbytes a second

Reported by: kyle.d.cannon@gmail.com Assigned to: jan
Priority: highest Milestone: 1.5.0
Component: core Version: 1.5.x-svn
Severity: critical Keywords:
Cc: Blocking:
Need Feedback: 1

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!

Attachments

1.jpg (72.0 kB) - added by anonymous on 02/24/2008 07:26:17 PM.

Change History

02/12/2008 05:54:07 AM changed by anonymous

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" )
#  )
}




02/24/2008 07:26:17 PM changed by anonymous

  • attachment 1.jpg added.

04/02/2008 03:04:26 PM changed by paul.dubs@gmail.com

  • priority changed from highest to high.
  • component changed from mod_proxy_backend_fastcgi to core.
  • severity changed from normal to critical.

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.

04/05/2008 01:39:22 PM changed by anonymous

  • priority changed from high to highest.
  • pending set to 1.

Can someone at least comment on that?

05/06/2008 09:26:49 AM changed by stbuehler

  • status changed from new to closed.
  • resolution set to duplicate.

Add/Change #1559 (cannot limit servers kbytes a second)




Change Properties
Action