- 论坛徽章:
- 0
|
本帖最后由 huzi1986 于 2010-03-17 22:06 编辑
现有一项目是采用wccp + squid 做互联网上的cache
网络结构是这样
CISCO6507路由器 (开启wccp协议) ----huawei交换机 ------------>squid
大致网络图
eth0 为外网,eth1为内网。用户数据走eth1通过wccp+squid 来中转
开始测试是没有问题,之后内外网地址发生过变换(wccp 和网络是由cisco工程师来负责,我负责squid)。突然流量内外网值出现异常情况()正好相反!现在是一台硬设备用xen虚拟8个linux来跑的。8台的Byte Hit Ratios都为负值,现贴一台的mgr::info的信息
squid 版本为squid2.7 stable 7
- [root@cache1 ~]# /usr/local/squid2.7/bin/squidclient -h localhost -p 3128 mgr:info
- HTTP/1.0 200 OK
- Server: squid/2.7.STABLE7
- Date: Wed, 17 Mar 2010 12:57:52 GMT
- Content-Type: text/plain
- Expires: Wed, 17 Mar 2010 12:57:52 GMT
- X-Cache: MISS from cache1.lovebsd.com
- Via: 1.0 cache1.lovebsd.com:3128 (squid/2.7.STABLE7)
- Connection: close
- Squid Object Cache: Version 2.7.STABLE7
- Start Time: Wed, 17 Mar 2010 01:07:30 GMT
- Current Time: Wed, 17 Mar 2010 12:57:52 GMT
- Connection information for squid:
- Number of clients accessing cache: 8928
- Number of HTTP requests received: 3845503
- Number of ICP messages received: 29514404
- Number of ICP messages sent: 29518544
- Number of queued ICP replies: 0
- Request failure ratio: 0.00
- Average HTTP requests per minute since start: 5413.3
- Average ICP messages per minute since start: 83100.9
- Select loop called: 89649053 times, 0.475 ms avg
- Cache information for squid:
- Request Hit Ratios: 5min: 43.3%, 60min: 44.4%
- Byte Hit Ratios: 5min: -102.1%, 60min: -71.3%
- Request Memory Hit Ratios: 5min: 12.9%, 60min: 12.0%
- Request Disk Hit Ratios: 5min: 35.5%, 60min: 39.6%
- Storage Swap size: 62665332 KB
- Storage Mem size: 2097052 KB
- Mean Object Size: 30.40 KB
- Requests given to unlinkd: 685362
- Median Service Times (seconds) 5 min 60 min:
- HTTP Requests (All): 0.07409 0.07014
- Cache Misses: 0.32154 0.33943
- Cache Hits: 0.00000 0.00000
- Near Hits: 0.07825 0.09219
- Not-Modified Replies: 0.00000 0.00000
- DNS Lookups: 0.04048 0.04048
- ICP Queries: 0.00185 0.00145
- Resource usage for squid:
- UP Time: 42622.619 seconds
- CPU Time: 1610.809 seconds
- CPU Usage: 3.78%
- CPU Usage, 5 minute avg: 7.35%
- CPU Usage, 60 minute avg: 7.59%
- Process Data Segment Size via sbrk(): 3161232 KB
- Maximum Resident Size: 0 KB
- Page faults with physical i/o: 1
- Memory usage for squid via mallinfo():
- Total space in arena: -1051760 KB
- Ordinary blocks: -1070411 KB 0 blks
- Small blocks: 0 KB 0 blks
- Holding blocks: 0 KB 0 blks
- Free Small blocks: 16942 KB
- Free Ordinary blocks: 1708 KB
- Total in use: -1070411 KB 102%
- Total free: 18650 KB -1%
- Total size: -1051760 KB
- Memory accounted for:
- Total accounted: 2562900 KB
- memPoolAlloc calls: 530438129
- memPoolFree calls: 520857193
- File descriptor usage for squid:
- Maximum number of file descriptors: 65536
- Largest file desc currently in use: 1717
- Number of file desc currently in use: 1555
- Files queued for open: 0
- Available number of file descriptors: 63981
- Reserved number of file descriptors: 100
- Store Disk files open: 60
- IO loop method: epoll
- Internal Data Structures:
- 2061793 StoreEntries
- 123072 StoreEntries with MemObjects
- 122735 Hot Object Cache Items
- 2061431 on-disk objects
复制代码 |
|