bentech4u |
10-07-2010 03:56 PM |
Squid load balancing
Hi
i want to make a squid load balancing
this is my squid.conf (a part)
Code:
cache_peer 127.0.0.1 parent 9090 0 no-query originserver name=server_1
acl sites_server_1 dstdomain www.benvin.com
cache_peer_access server_1 allow sites_server_1
cache_peer 127.0.0.1 parent 9090 0 no-query originserver round-robin
cache_peer 127.0.0.1 parent 8080 0 no-query originserver name=server_2
acl sites_server_2 dstdomain www.benvin.net
cache_peer_access server_2 allow sites_server_2
cache_peer 127.0.0.1 parent 8080 0 no-query originserver round-robin
in my pc i installed 2 web server's..is there any way to balance load to two websserver's on a single system..?
when i re-started my squid service,i got an error like this..
Code:
[root@server Documents]# service squid restart
Stopping squid: [FAILED]
Starting squid: [FAILED]
2010/10/07 23:14:56| Processing Configuration File: /etc/squid/squid.conf (depth 0)
FATAL: ERROR: cache_peer 127.0.0.1 specified twice
Squid Cache (Version 3.1.8): Terminated abnormally.
CPU Usage: 0.006 seconds = 0.003 user + 0.003 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
please help me..i am a beginner
thanks
Ben
|