RE: [squid-users] How to install Two Squids on the same FreeBSD box?

From: Edgard Haddad <edgard.haddad@dont-contact.us>
Date: Sat, 1 Jun 2002 16:31:47 +0300

Hi Joe,

I need to run identical Squids on the same machine. The machine is a
Compaq 4 x P3 550 MHZ. Currently one process of Squid is filling up one
processor while serving arround 150 req/s. Whynot take advantadge of
that powerfull machine by filling up another processor since the ip
stack is still 25% used only.
As I understand from you, I can run another copy of the same binary?
-I don't need any object cahing (I compiled it with nulldisk option)
-The same squid.conf can be used
-I will add another IP address as an alias on the NIC (no need to assign
another port)

So I assume I have to:
- copy the squid.conf and assign the copy another ip address and pid
filename
- use another squid.sh for starting the same binary another time).
Anything else I shall do?

Thank you,

Edgard B Haddad

-----Original Message-----
From: Joe Cooper [mailto:joe@swelltech.com]
Sent: Saturday, June 01, 2002 3:08 AM
To: Edgard Haddad
Cc: Aaron Seelye; squid-users@squid-cache.org
Subject: Re: [squid-users] How to install Two Squids on the same FreeBSD
box?

Do you need two different sets of compilation options, or will one
binary do?

I always just run multiple configurations off of the same binary. You
need to select different conf files from the command line, and each
specifies different ports, PID file, log files, and cache directories.

Edgard Haddad wrote:
> Hi Aaron,
>
> Actually it's true what you mentioned; it's a system dependent
> limitation, not squid's. In fact, I edited the makefile and added
under
> the configure options "--prefix=/usr/local/squid2" but when I run the
> "make install", it gives out that Squid is already registered as
> installed.... Any way to override this?
>
> Thank you,
>
> -----Original Message-----
> From: Aaron Seelye [mailto:AaronS@et-n-m.com]
> Sent: Saturday, June 01, 2002 12:26 AM
> To: Edgard Haddad; squid-users@squid-cache.org
> Subject: RE: [squid-users] How to install Two Squids on the same
FreeBSD
> box?
>
> Hi,
>
> You're running into a ports limitation, not a squid limitation. One
> possible work around for this is to install one via ports (as it
sounds
> you
> have), and another directly from the source under a different prefix
> than
> /usr/local (I'd suggest /usr/local/squid). You must be sure to either
> have
> them listen on differnent interfaces, and/or different ports as well.
>
> Aaron Seelye
>
>
>>-----Original Message-----
>>From: Edgard Haddad [mailto:edgard.haddad@sps.net.sa]
>>Sent: Friday, May 31, 2002 2:13 PM
>>To: squid-users@squid-cache.org
>>Subject: [squid-users] How to install Two Squids on the same FreeBSD
>>box?
>>
>>
>>Hello,
>>
>>Does anyone know how to install and run two copies of Squid-2.4 on the
>>same FreeBSD 4.5 box?
>>I'm using Squid as a content director. It routes requests to parent
>>caches depending on the content of the request. So no caching
>>is made at
>>all.
>>Actually I've built a test machine and installed the first
>>copy but the
>>second refuses to install since the first one is registered...
>>
>>Thank you,
>>Edd
>>
>>
>
>
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.362 / Virus Database: 199 - Release Date: 5/7/2002
>
>

-- 
Joe Cooper <joe@swelltech.com>
Web caching appliances and support.
http://www.swelltech.com
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.362 / Virus Database: 199 - Release Date: 5/7/2002
 
Received on Sat Jun 01 2002 - 07:31:11 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:08:23 MST