Hello. I'm looking for some articles how to optimize lighttpd for image hosting service. Thank you in advance.
on 30.04.2008 08:28
on 30.04.2008 21:43
Azo wrote: > I'm looking for some articles how to optimize lighttpd for image hosting > service. Add following to /etc/sysctl.conf # These ensure that TIME_WAIT ports either get reused or closed fast. net.ipv4.tcp_fin_timeout = 1 net.ipv4.tcp_tw_recycle = 1 # TCP memory net.core.rmem_max = 16777216 net.core.rmem_default = 16777216 net.core.netdev_max_backlog = 262144 net.core.somaxconn = 262144 net.ipv4.tcp_syncookies = 1 net.ipv4.tcp_max_orphans = 262144 net.ipv4.tcp_max_syn_backlog = 262144 net.ipv4.tcp_synack_retries = 2 net.ipv4.tcp_syn_retries = 2 # For Large File Hosting Servers net.core.wmem_max = 1048576 net.ipv4.tcp_wmem = 4096 87380 524288 In lighttpd.conf, add server.max-keep-alive-requests = 4 server.max-keep-alive-idle = 4 server.event-handler = "linux-sysepoll" server.network-backend = "linux-sendfile" server.max-fds = 8192 server.stat-cache-engine = "fam" That will work fine with image hosting. http://www.videosharingscript.com/image-hosting/optimizing-lighttpd-for-image-hosting/
on 01.05.2008 10:11
Thank you! Just one more question - what exactly means "Large File Hosting Servers" ?
on 01.05.2008 18:35
Azo wrote: > Thank you! > > Just one more question - what exactly means "Large File Hosting Servers" > ? That is only needed if you serve large files. But you can use the same settings for image hosting servers as it will not affect performance anyway.

