Bo Yu
unread,Aug 5, 2009, 10:49:57 PM8/5/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mod_cache
Hi All,
I'm using lighttpd 1.4.23 with mod_cache 1.8.0 for static pic cache
service. But I encountered a problem: when I started lighty online, it
can just serve normally for 2-3 minutes, then the pics can't be
accessed. I found there were too many connections established to the
backend server( more than 30,000 ), therefore, the backend server
can't handle these too many connections/requests. Is there any
solution that can help release the connections to the backend server
very quickly? Don't talk to me about the hitrate, cause it's the first
time to start lighty+modcache as the cache server that it need to
create the cache content for the first time.
followed is my configuration:
server.modules =
("mod_redirect","mod_access","mod_status","mod_cache","mod_mem_cache","mod_proxy","mod_compress","mod_expire","mod_accesslog")
server.max-keep-alive-requests = 4
server.max-keep-alive-idle = 4
server.max-read-idle = 30
server.max-write-idle = 180
server.event-handler = "linux-sysepoll"
server.network-backend = "linux-sendfile"
server.max-fds = 65535
server.stat-cache-engine = "fam"
cache.support-queries = "enable"
cache.dynamic-mode = "enable"
cache.bases = ("/srv/lcache")
cache.max-memory-size = 1536
cache.refresh-pattern = (
"\.(?i)(flv)$" => "0 fetchall-for-range-request flv-streaming",
"\.(?i)(js|css|xml)$" => "10080″,
"\.(?i)(htm|html|shtml)$" => "10080″,
"\.(?i)(jpg|bmp|jpeg|gif|png)$" => "10080 use-memory″,
"\.(?i)(rar|zip|wmv|avi|mp3|ape|rm|mpeg|mpg|wma|asf|rmvb|flv)$" => "0
fetchall-for-range-request",
"." => "10080 update-on-refresh"
)
cache.purge-host = "^(192\.168\.)"
cache.ignore-hostname = "enable"
proxy.server = ( "/" =>
( "localhost" =>
(
"host" => "192.168.1.18",
"port" => 3080
)
)
)
proxy.worked-with-mod-cache = "enable"
Any help is much appreciated!