Re: Nginx & comet: Как принять более 64K одновременных соединений ...

Eugene Batogov johnbat26 на gmail.com
Пт Дек 3 15:38:53 MSK 2010


OS: CentOs 5.5
uname -a:
Linux comp1 2.6.18-194.el5PAE #1 SMP Fri Apr 2 15:37:44 EDT 2010 i686 i686 i386 GNU/Linux
sysctl -p:
net.ipv4.ip_forward = 0                                                                                                                                                                                                                     
net.ipv4.conf.default.rp_filter = 1                                                                                                                                                                                                         
net.ipv4.conf.default.accept_source_route = 0                                                                                                                                                                                               
kernel.sysrq = 0                                                                                                                                                                                                                            
kernel.core_uses_pid = 1                                                                                                                                                                                                                    
net.ipv4.tcp_syncookies = 1                                                                                                                                                                                                                 
kernel.msgmnb = 65536                                                                                                                                                                                                                       
kernel.msgmax = 65536                                                                                                                                                                                                                       
kernel.shmmax = 4294967295                                                                                                                                                                                                                  
kernel.shmall = 268435456                                                                                                                                                                                                                   
net.ipv4.ip_local_port_range = 1025 65535                                                                                                                                                                                                   
net.ipv4.tcp_tw_recycle = 1                                                                                                                                                                                                                 
net.ipv4.tcp_fin_timeout = 3                                                                                                                                                                                                                
net.core.netdev_max_backlog = 10000                                                                                                                                                                                                         
net.core.somaxconn = 262144                                                                                                                                                                                                                 
net.ipv4.tcp_max_syn_backlog = 262144                                                                                                                                                                                                       
net.ipv4.tcp_max_tw_buckets = 720000                                                                                                                                                                                                        
net.ipv4.tcp_timestamps = 1                                                                                                                                                                                                                 
net.ipv4.tcp_tw_reuse = 1                                                                                                                                                                                                                   
net.ipv4.tcp_keepalive_time = 1800                                                                                                                                                                                                          
net.ipv4.tcp_keepalive_probes = 7                                                                                                                                                                                                           
net.ipv4.tcp_keepalive_intvl = 30                                                                                                                                                                                                           
net.core.wmem_max = 33554432                                                                                                                                                                                                                
net.core.rmem_max = 33554432
net.core.rmem_default = 8388608
net.core.wmem_default = 4194394
net.ipv4.tcp_rmem = 4096 8388608 16777216
net.ipv4.tcp_wmem = 4096 4194394 16777216
net.ipv4.tcp_mem = 50576   64768   98152
net.ipv4.tcp_orphan_retries = 3
net.ipv4.tcp_max_orphans = 65536
fs.file-max = 999999
vm.swappiness = 20
-----------
Нагрузку давал с двух машин.
С одной 40K и  с другой 40K
-- 
Best Regards, Eugene Batogov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx-ru/attachments/20101203/0b727545/attachment-0001.html>


Подробная информация о списке рассылки nginx-ru