- 論壇徽章:
- 0
|
本帖最后由 huzi1986 于 2010-03-17 22:06 編輯
現(xiàn)有一項目是采用wccp + squid 做互聯(lián)網(wǎng)上的cache
網(wǎng)絡(luò)結(jié)構(gòu)是這樣
CISCO6507路由器 (開啟wccp協(xié)議) ----huawei交換機 ------------>squid
大致網(wǎng)絡(luò)圖
eth0 為外網(wǎng),eth1為內(nèi)網(wǎng)。用戶數(shù)據(jù)走eth1通過wccp+squid 來中轉(zhuǎn)
開始測試是沒有問題,之后內(nèi)外網(wǎng)地址發(fā)生過變換(wccp 和網(wǎng)絡(luò)是由cisco工程師來負責,我負責squid)。突然流量內(nèi)外網(wǎng)值出現(xiàn)異常情況()正好相反!現(xiàn)在是一臺硬設(shè)備用xen虛擬8個linux來跑的。8臺的Byte Hit Ratios都為負值,現(xiàn)貼一臺的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
復(fù)制代碼 |
|