LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Squid load balancing (http://www.linuxquestions.org/questions/linux-newbie-8/squid-load-balancing-836874/)

bentech4u 10-07-2010 11:34 PM

Squid load balancing
 
Hi

i want to make a squid load balancing.

i followed this tutorial http://wikis.sun.com/display/WebStac...+Load+Balancer

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

bentech4u 10-08-2010 12:43 AM

please help me.

bentech4u 10-08-2010 02:55 AM

no reply.? :(

nayoolwin 10-08-2010 03:21 AM

squid
 
Quote:

Originally Posted by bentech4u (Post 4121131)
Hi

i want to make a squid load balancing.

i followed this tutorial http://wikis.sun.com/display/WebStac...+Load+Balancer

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

cache_peer ........... 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 ........... 9090 0 no-query originserver round-robin

Fill in the blank *ip address*, that is your squid parent

example

my server is 192.168.1.1
my parent server is 203.64.81.56
i will fill 203.64.81.56

Tinkster 10-08-2010 04:17 PM

Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

http://www.linuxquestions.org/questi...ancing-836818/


All times are GMT -5. The time now is 08:32 AM.