免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 6092 | 回复: 18
打印 上一主题 下一主题

[proxy] 各位有谁做过squid反向代理的squid集群? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-12-26 17:46 |只看该作者 |倒序浏览
各位有谁做过squid反向代理的squid集群?效果如何?

论坛徽章:
1
技术图书徽章
日期:2013-12-05 23:25:45
2 [报告]
发表于 2006-12-27 10:26 |只看该作者
效果很不错的啊。

用DNS

论坛徽章:
0
3 [报告]
发表于 2006-12-27 11:57 |只看该作者
我指的是Peering Squid Caches,呵呵。

论坛徽章:
0
4 [报告]
发表于 2006-12-27 11:58 |只看该作者
测试时发现,Squid没有在默认的3130端口监听,奇怪。

文档中,ICP默认走的是UDP 3130。

论坛徽章:
1
技术图书徽章
日期:2013-12-05 23:25:45
5 [报告]
发表于 2006-12-27 13:40 |只看该作者
那你可以看这里:
http://www.deckle.co.za/squid-us ... e_cache_peer_Option
The cache_peer Option
When communicating with a peer, Squid needs some basic information about how to talk to the machine; the hostname, what ports to send queries to, and so forth. The cache_peer config line does this. Let's look at an example line:

The cache_peer option is split into five fields. The first field (cache.domain.example) is the hostname or IP of the cache that is to be queried. The second field indicates the type of relationship, and must be set to either parent or sibling or multicast. The third field sets the HTTP port of the destination server, while the fourth sets the ICP (UDP) query port. The fifth field can contain more than zero or more keywords, although we only use one in the example above; the keyword default sets that the cache will be used as the default path to the outside world. If you compiled Squid to support HTCP, your cache will automatically attempt to connect to TCP port 4827 (there is currently no option to change this port value). Cache digests are transferred via the HTTP port specified on the cache_peer line.

论坛徽章:
0
6 [报告]
发表于 2006-12-27 16:44 |只看该作者
谢谢 HonestQiao,cache_peer参数设置不复杂,我在编译squid时未加支持HTCP选项。加了--enable-cahce-digests选项。

我的主要squid.conf是:
http_port 80
icp_port 3130

icp_access allow ALL

cache_peer test1.my.com  sibling 80 3130
cache_peer_access test1.my.com allow ALL

另一台服务器也做相同配置,但启动两台squid后,未见其在ICP端口监听,在cache.log及access.log中,也没见其向对方服务器发送ICP查询记录。

很奇怪。

论坛徽章:
1
技术图书徽章
日期:2013-12-05 23:25:45
7 [报告]
发表于 2006-12-27 17:33 |只看该作者
你看这个:
http://cisco.ccxx.net/cisco/440.html
实际的情况。

你要是不行,在仔细查查,可能什么地方有一点地设置偏差。

论坛徽章:
0
8 [报告]
发表于 2006-12-27 18:02 |只看该作者
经过反复测试,看来是squid不支持反向代理的ICP集群功能了。


httpd_accel_port 80
httpd_accel_host x.x.x.x
两行注释,并重启squid后,cache.log中出现了ICP的启动记录:
Accepting ICP messages at 0.0.0.0, port 3130, FD 9.

netstat -an 中也发现了3130的监听端口。

论坛徽章:
0
9 [报告]
发表于 2006-12-27 22:01 |只看该作者
LVS+squid应该是个不错的实现。

论坛徽章:
1
技术图书徽章
日期:2013-12-05 23:25:45
10 [报告]
发表于 2006-12-28 00:43 |只看该作者
原帖由 ydabing 于 2006-12-27 18:02 发表
经过反复测试,看来是squid不支持反向代理的ICP集群功能了。


httpd_accel_port 80
httpd_accel_host x.x.x.x
两行注释,并重启squid后,cache.log中出现了ICP的启动记录:
Accepting ICP messages at 0 ...


我翻了squid官方几年的mail,发现是有人成功的。
我这边正好要测试,近期。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP