make varnish don't start a subprocess

Dag-Erling Smørgrav des at des.no
Fri Mar 20 19:14:30 CET 2009


Harald Friessnegger <harald at webmeisterei.com> writes:
> when i start varnishd i'll find two varnishd processes running
> afterwards:

Yes.

> is there a way to run varnish as a single process?

No.

> the varnishd started by supervisor just needs 5% memory and gets
> restarted if it grows above a certain limit. the subprocess eats up my
> RAM and can't be conrolled by supervisor.

The parent will restart it if you kill it (but doing so will flush the
cache).  However, varnishd doesn't "eat memory", unless there is a bug.
You should read varnishd(1) and figure out how to select the storage
backend and how to limit the size of the cache.

DES
-- 
Dag-Erling Smørgrav - des at des.no



More information about the varnish-misc mailing list