Re: [squid-users] Squid as LoadBalance

From: Jeff Pang <pangj_at_arcor.de>
Date: Tue, 1 Sep 2009 12:05:01 +0800

2009/9/1 Jones, Keven <Keven.Jones_at_ncr.com>:
>
> Does anyone know if this is sufficient squid.conf:
>
>
> cache_peer 172.19.23.91 parent 80 0 no-query originserver name=server_1
> acl sites_server_1 dstdomain img01.cprpt.com
> cache_peer_access server_1 allow sites_server_1
> cache_peer 172.19.23.92 parent 80 0 no-query originserver name=server_2
> acl sites_server_2 dstdomain img01.cprpt.com
> cache_peer_access server_2 allow sites_server_2
> cache_peer 172.19.23.91 parent 80 0 no-query originserver round-robin
> cache_peer 172.19.23.92 parent 80 0 no-query originserver round-robin
>
> To allow squid to provice cache for 2 web servers uitlizing one url ?
>

No. That should be:

cache_peer 172.19.23.91 parent 80 0 no-query originserver
name=server_1 round-robin
cache_peer 172.19.23.92 parent 80 0 no-query originserver
name=server_2 round-robin
acl sites_server_1 dstdomain img01.cprpt.com
cache_peer_access server_1 allow sites_server_1
cache_peer_access server_2 allow sites_server_1

Or you could use my perl module to create a reverse proxy with
loadbalancing quickly:

http://search.cpan.org/~pangj/Net-Squid-ReverseProxy-0.01/lib/Net/Squid/ReverseProxy.pm

HTH.
Received on Tue Sep 01 2009 - 04:05:13 MDT

This archive was generated by hypermail 2.2.0 : Tue Sep 01 2009 - 12:00:04 MDT