7月 132011
 

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.



storage.list
200
Storage devices:
        storage.Transient =*** malloc ***
        storage.s0 = malloc

Question

How much use memory to this settings?


-s malloc,100M

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.


-s Transient=malloc,100M \
-s malloc,100M

This settings is limit to transient storage size to 100MB

note:Do not only transient storage settings, is an error.


**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)

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.


 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)

このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください