[Varnish] #1605: Resize a storage backend at runtime

Varnish varnish-bugs at varnish-cache.org
Thu Oct 9 13:00:42 CEST 2014

#1605: Resize a storage backend at runtime
 Reporter:  mattrobenolt  |       Type:  enhancement
   Status:  new           |   Priority:  normal
Milestone:                |  Component:  varnishd
  Version:  unknown       |   Severity:  normal
 Keywords:                |
 I talked about this with phk in IRC a while back, so documenting here.

 It would be really awesome to be able to size up/down the storage backend
 without restarting and dumping the whole cache.

 Typically, this is really only important when you're initially trying to
 size your cache correctly.

 Say you get a machine with 96G of RAM dedicated to varnish, and we want to
 tune it just right without waste or going over.

 My process today is such that I set our -smalloc to ~50% of RAM and let
 the cache fill up until it starts evicting objects because of space
 (n_lru_nuked). Then I increase, and try again, but I need to start with an
 empty cache every time.

 Increasing the cache size should be much easier to handle, since it's just
 adding more space. But downsizing would require immediately evicting all
 the old objects until achieving the desired size.

Ticket URL: <https://www.varnish-cache.org/trac/ticket/1605>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator

More information about the varnish-bugs mailing list