You also must be sure to have two separated caches directories. I have
done it in my work and I can tell you that it take some work to be done.
As you mentioned, you must have two config files, two cache directories
(as I said), and they must run in two pid files.
It is also imperative that each instance listen to different ports, so
be sure that yours "squid.config" files port configuration don't use the
same port.
It will be good think to change the "/etc/init.d/squid" script, so that
both instances will be up on restarts. You must change the script by
yours configurations in the "squid.conf" files.
At last, if the squids instances are running in a multiprocessor
machine, you should use the "taskset" command to set each instance to a
different CPU.
With this method you can have as many instances as you should like, and
have free HD space for the different caches.....
Hope it's all, and that i haven't forgot anything.
Bye,
David Lawson escreveu:
Make sure you have a different PID file, among other things, defined.
I'd guess that's your problem though.
--Dave
On Jun 12, 2008, at 4:59 PM, Michael St. Laurent wrote:
Is there a way to run a second instance of Squid? I've specified a
different config file for the other instance but it refused to start
because one instance was already running.
--
Michael St. Laurent
Hartwell Corporation
Systems Administrator
Zope Corp.
540-361-1722
david@xxxxxxxx
--
Marcos Camões Bourgeaiseau - KIKO
================================================
e-mail pessoal: mcbourgeaiseau@xxxxxxxxx
e-mail institucional: marcoscamoes@xxxxxxxxxxxxx