]> git.ipfire.org Git - thirdparty/squid.git/commit - src/cf.data.pre
Start a configurable number of "main" Squid processes. Each process
authorAlex Rousskov <rousskov@measurement-factory.com>
Thu, 4 Mar 2010 06:25:18 +0000 (23:25 -0700)
committerAlex Rousskov <rousskov@measurement-factory.com>
Thu, 4 Mar 2010 06:25:18 +0000 (23:25 -0700)
commit007d775dbdfb6458fb0c1c8210470e40b504dd50
tree9f8eb0764d6f9e281ac87b6236814e48e727bb61
parentf0b807c28451739a64972b954baa87dc1490a904
Start a configurable number of "main" Squid processes. Each process
does what a regular Squid daemon does. Listening conflicts are resolved
using a temporary hack (incrementing the port number for each process).

Restart dying processes as needed, maintaining the old overall daemon
restart logic and quitting on frequent repeated failures or successful
daemon completion.

Needs more work to polish restarting code, to share common resources
such as listening ports, to unify reporting, including logging. CPU
core affinity and process specialization need to be configurable.
src/cache_cf.cc
src/cf.data.pre
src/main.cc
src/structs.h