If you manage many objects with high traffic , Varnish get a swap (although it rare)
Varnish 3 have new parameter “shortlived”.
This parameter description is
Objects created with TTL shorter than this are always put in transient storage.
transient storage is malloc storage.
[code=’plain’]
storage.list
200
Storage devices:
storage.Transient =*** malloc ***
storage.s0 = malloc
[/code]
Question
How much use memory to this settings?
[code=’plain’]
-s malloc,100M
[/code]
Answer
All your memory are belong to us.
If your sometimes use transient storage, memory does not swap.
But, unlimited is disgust.
Let’s limit the transient storage size.
[code=’plain’]
-s Transient=malloc,100M \
-s malloc,100M
[/code]
This settings is limit to transient storage size to 100MB
note:Do not only transient storage settings, is an error.
[code=’plain’]
**request 57 MB file 10 repeats
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
12011 varnish 20 0 860m 599m 1184 S 62.4 29.9 0:18.33 varnishd (unlimit)
12083 varnish 20 0 354m 93m 1208 S 0.0 4.7 0:04.18 varnishd (limit)
[/code]
note:Don’t you set to storage size below your one contents max size.
If contents size is over the storage size, is 503 error.
—
I’m not good at English.