Why varnish caches as the cache is stopped?

Nicolas Delmas colas.delmas at gmail.com
Sun Dec 13 10:42:16 CET 2015


Hi,

If you don't need to modify header you could make a return(pipe) instead of
à return(pass).

Maybe this could resolve your problem.
Le 12 déc. 2015 11:40 AM, "georgi.int at gmail.com" <georgi.int at gmail.com> a
écrit :

> Hello,
> I want to use varnish only as a proxy server, not to cache and have the
> following in the configuration which should stop the cache completely in
> vcl recv:
>
>   if (req.http.Authorization || req.http.Cookie) {
>          return (pass);
>      }
> }
>
> the age header is 0, so it should not cache, but I notice that
> varnish_storage.bin is full although, so something is cached - right? On
> some servers with 32 GB ram29 is full and when I restart varnish the ram is
> no more used, but I am not sure it these two things are linked. Here is my
> /etc/sysconfig/varnish:
>
> # # The minimum number of worker threads to start
> VARNISH_MIN_THREADS=50
>
> # # The Maximum number of worker threads to start
> VARNISH_MAX_THREADS=1000
>
> # # Idle timeout for worker threads
> VARNISH_THREAD_TIMEOUT=120
>
> # # Cache file location
> VARNISH_STORAGE_FILE=/usr/local/varnish/lib/varnish_storage.bin
>
> # # Cache file size: in bytes, optionally using k / M / G / T suffix,
> # # or in percentage of available disk space using the % suffix.
> VARNISH_STORAGE_SIZE=1G
>
> # # Backend storage specification
> VARNISH_STORAGE="file,${VARNISH_STORAGE_FILE},${VARNISH_STORAGE_SIZE}"
>
> # # Default TTL used when the backend does not specify one
> VARNISH_TTL=120
>
> # # Varnish username
> VARNISHUSER=varnish
>
> # # Varnish group name
> VARNISHGROUP=varnish
>
> DAEMON_OPTS="-a ${VARNISH_LISTEN_ADDRESS}:${VARNISH_LISTEN_PORT} \
>              -T
> ${VARNISH_ADMIN_LISTEN_ADDRESS}:${VARNISH_ADMIN_LISTEN_PORT} \
>              -f ${VARNISH_VCL_CONF} \
>              -S ${VARNISH_SECRET_FILE} \
>              -s file,${VARNISH_STORAGE_FILE},${VARNISH_STORAGE_SIZE}"
>
>
>
> My questions are 1) does my conviguration stop completely the cache and
> why then storage.bin is full?
> 2) Why varnish eat so much ram - because of many requests, wrong
> configuration or?
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20151213/1b0fbcdf/attachment.html>


More information about the varnish-misc mailing list