What to do best performance at varnish?

Dag-Erling Smørgrav des at linpro.no
Tue Jul 24 10:35:35 CEST 2007

"Monty Ree" <chulmin2 at hotmail.com> writes:
> - which Cache file size is required?

At least as large as your working set.  Beyond that, you run into the
law of diminishing returns, unless you expect your working set to grow
over time.

> - Dual CPU and large RAM would be good to performance?


> - which value is required VARNISH_MAX_THREADS, VARNISH_MIN_THREADS?

Leave them unchanged.  Keep an eye on n_wrk_overflow and n_wrk_drop in
varnishstat; if they increase rapidly under normal working conditions,
increase thread_pool_max.  If n_wrk_overflow increases but n_wrk_drop
doesn't, consider increasing thread_pool_min.  If your traffic comes in
bursts, increasing thread_pool_timeout might help, but in most cases it

> - any sysctl tuning?

No more than is generally recommended for the amount of memory you have
and the amount of network traffic you expect.

Dag-Erling Smørgrav
Senior Software Developer
Linpro AS - www.linpro.no

More information about the varnish-misc mailing list