Ticket #106 (new 优化) — at Initial Version
squid缓存不一致问题
| Reported by: | chenchongqi | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 2012报价库5.0 |
| Component: | 报价库 | Version: | 报价库5.0 |
| Keywords: | squid,缓存 | Cc: | |
| Due Date: |
Description
- 问题
报价库前台做了squid缓存,但是实际上会存在squid缓存不一致的情况,因为按照正常hash去某台squid的时候,这台squid有可能队列满、响应超时等,这时候会重新hash到另一台squid去,导致同一个url会同时在多台squid有缓存,那么我们在浏览器反复刷的时候,看到的内容可能会不一致,在某段时间应用有异常的时候尤其明显。
2012/04/15 08:56:42 [error] 9054#0: *1040065103 upstream timed out 110: Connection timed out) while reading upstream, client: 192.168.237.58, server: product.pconline.com.cn, request: "GET /mobile/samsung/ HTTP/1.0", upstream: "http://192.168.239.64:8001/mobile/samsung/", host: "product.pconline.com.cn", referrer: http://product.pconline.com.cn/mobile/nokia/"
Note: See
TracTickets for help on using
tickets.
![(please configure the [header_logo] section in trac.ini)](http://www1.pconline.com.cn/hr/2009/global/images/logo.gif)