LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Closed Thread
 
Search this Thread
Old 10-08-2010, 12:34 AM   #1
bentech4u
LQ Newbie
 
Registered: Feb 2009
Posts: 27

Rep: Reputation: 0
Unhappy 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
 
Old 10-08-2010, 01:43 AM   #2
bentech4u
LQ Newbie
 
Registered: Feb 2009
Posts: 27

Original Poster
Rep: Reputation: 0
please help me.

Last edited by bentech4u; 10-08-2010 at 03:54 AM.
 
Old 10-08-2010, 03:55 AM   #3
bentech4u
LQ Newbie
 
Registered: Feb 2009
Posts: 27

Original Poster
Rep: Reputation: 0
no reply.?
 
Old 10-08-2010, 04:21 AM   #4
nayoolwin
LQ Newbie
 
Registered: Jun 2010
Location: Myanmar, Yangon
Posts: 4

Rep: Reputation: 0
Smile squid

Quote:
Originally Posted by bentech4u View Post
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
 
Old 10-08-2010, 05:17 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,005
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
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/
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Squid load balancing bentech4u Linux - Software 1 10-08-2010 12:31 AM
[SOLVED] Squid Load Balancing isururj Linux - Networking 1 12-11-2009 08:28 AM
Load balancing through squid proxy server punit1985 Linux - Newbie 3 11-02-2008 02:51 AM
Squid Load Balancing drmouse1981 Linux - Server 1 04-14-2007 03:31 AM
squid with load balancing (?) no2nt Linux - Networking 1 09-12-2001 10:25 AM


All times are GMT -5. The time now is 07:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration