5 mar 2012

Cuando agrandar la cache de Varnish

Según el manual de Varnish Sizing your cache

"Watch the n_lru_nuked counter with varnishstat or some other tool. If you have a lot of LRU activity then your cache is evicting objects due to space constraints and you should consider increasing the size of the cache."

Para obtener el valor del contador n_lru_nuked, desde la consola de comando tipeamos lo siguiente:
hosts@user#> varnishstat -f n_lru_nuked -1
hosts@user#> n_lru_nuked 0 . N LRU nuked objects
Si el este valor es demasiado grande, deberíamos agrandar la cache.
P/D: Cuanto serán estos umbrales cualitativos ? Eso lo dejo para actualizarlo en la próxima.