我的番茄炒蛋
生活如此精彩,挑战无处不在!

导航

 

2009年12月26日

摘要: 1、COSSwillnotfunctionwithoutlargefilesupport(off_tis4byteslong.Pleasereconsiderrecompilingsquidwith--with-large-filesBungledsquid_webcache.conf。。。。。。。检查是否在编译squid的时候未加入--with-large-files选项,如果是,重新加入此选项... 阅读全文
posted @ 2009-12-26 10:29 bluesky 阅读(1345) 评论(0) 推荐(0)
 
摘要: squid的日志很重要。常常要了解的,其中最重要的就是命中率啦,不然反向代理做的用就不大。#cat access.log|gawk ‘{print $4}’|sort|uniq -c|sort -nr9568 TCP_IMS_HIT/3046313 TCP_HIT/2002133 TCP_MISS/2001568 TCP_MISS/206587 TCP_MEM_HIT/20... 阅读全文
posted @ 2009-12-26 10:26 bluesky 阅读(774) 评论(0) 推荐(0)
 
摘要: # vi squid.confclient_db onacl allow_clientIP src 211.*.*.2acl OverConnLimit maxconn 20http_access allow allow_clientIP OverConnLimithttp_access deny OverConnLimit# 从我公司访问网站不限制并发,其他客户端限制20个并发。 阅读全文
posted @ 2009-12-26 10:24 bluesky 阅读(1503) 评论(0) 推荐(0)
 
摘要: Linux下高并发的squid服务器,TCP TIME_WAIT套接字数量经常达到两、三万,服务器很容易被拖死。通过修改Linux内核参数,可以减少Squid服务器的TIME_WAIT套接字数量。vi /etc/sysctl.conf  增加以下几行:引用net.ipv4.tcp_fin_timeout = 30net.ipv4.tcp_keepalive_time = 1200net.ipv4.... 阅读全文
posted @ 2009-12-26 10:23 bluesky 阅读(214) 评论(0) 推荐(0)
 
摘要: inotify监听+rsyncsearch from google/opt/inotify/bin/inotifywait -mrq -e create,move,delete,modify /test/www | while read file;dorsync -uahqzt --delete --password-file=/etc/swd/rsync.secrets /test/www/ w... 阅读全文
posted @ 2009-12-26 09:49 bluesky 阅读(190) 评论(0) 推荐(0)
 
摘要: 知道问题所在,pf的确有默认设置,man 过pf.conf后查到了原因。#pfctl -a ***************************************TIMEOUTS:tcp.first 30stcp.opening 5stcp.established 18000stcp.closing 60stcp.finwait 30stcp.closed 30stcp.tsdiff 10... 阅读全文
posted @ 2009-12-26 09:39 bluesky 阅读(429) 评论(0) 推荐(0)