Is it possible to run varnish with both memory and disk storage? - Server Fault
Varnishのストレージバックエンドを複数指定する – Siguniang's Blog 2015
... -s primary=malloc,3G -s secondary=file,/tmp,16G $ sudo varnishadm storage.list Storage devices: storage.Transient = malloc storage.primary = malloc storage.secondary = file $ sudo varnishstat -1 | egrep 'SM..(primary|secondary)' SMA.primary.c_req 16569 5.05 Allocator requests SMA.primary.c_fail 0 0.00 Allocator failures SMA.primary.c_bytes 297023601 90500.79 Bytes allocated SMA.primary.c_freed 187672465 57182.35 Bytes freed SMA.primary.g_alloc 4033 . Allocations outstanding SMA.primary.g_bytes 109351136 . Bytes outstanding SMA.primary.g_space 3111874336 . Bytes available SMF.secondary.c_req 12960 3.95 Allocator requests SMF.secondary.c_fail 0 0.00 Allocator failures SMF.secondary.c_bytes 1566969856 477443.59 Bytes allocated SMF.secondary.c_freed 1068167168 325462.27 Bytes freed SMF.secondary.g_alloc 3664 . Allocations outstanding SMF.secondary.g_bytes 498802688 . Bytes outstanding SMF.secondary.g_space 16681066496 . Bytes available SMF.secondary.g_smf 3709 . N struct smf SMF.secondary.g_smf_frag 13 . N small free smf SMF.secondary.g_smf_large 32 . N large free smf
beresp.storage_hintが削除されました
beresp.storageで代用できます。
例えば今までset beresp.storage_hint = "foo";としていたのであれば
set beresp.storage = storage.foo;と変更すればよいです。
Varnish6.0.0がリリースされました – cat /dev/random > /dev/null & 2018
varnishd restart (FreeBSD)
/usr/local/etc/rc.d/varnishd restart
は checkconfig (-C でconfチェック) する。この際にストレージの空き容量が足りないと syntax is NOT ok になる。stop / start で回避