<p dir="ltr"><br>
On Dec 12, 2015 11:36, "<a href="mailto:georgi.int@gmail.com">georgi.int@gmail.com</a>" <<a href="mailto:georgi.int@gmail.com">georgi.int@gmail.com</a>> wrote:<br>
><br>
> Hello,<br>
> 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:<br>
><br>
>   if (req.http.Authorization || req.http.Cookie) {<br>
>          return (pass);<br>
>      }<br>
> }<br>
><br>
> 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:<br>
><br>
> # # The minimum number of worker threads to start<br>
> VARNISH_MIN_THREADS=50<br>
><br>
> # # The Maximum number of worker threads to start<br>
> VARNISH_MAX_THREADS=1000<br>
><br>
> # # Idle timeout for worker threads<br>
> VARNISH_THREAD_TIMEOUT=120<br>
><br>
> # # Cache file location<br>
> VARNISH_STORAGE_FILE=/usr/local/varnish/lib/varnish_storage.bin<br>
><br>
> # # Cache file size: in bytes, optionally using k / M / G / T suffix,<br>
> # # or in percentage of available disk space using the % suffix.<br>
> VARNISH_STORAGE_SIZE=1G<br>
><br>
> # # Backend storage specification<br>
> VARNISH_STORAGE="file,${VARNISH_STORAGE_FILE},${VARNISH_STORAGE_SIZE}"<br>
><br>
> # # Default TTL used when the backend does not specify one<br>
> VARNISH_TTL=120<br>
><br>
> # # Varnish username<br>
> VARNISHUSER=varnish<br>
><br>
> # # Varnish group name<br>
> VARNISHGROUP=varnish<br>
><br>
> DAEMON_OPTS="-a ${VARNISH_LISTEN_ADDRESS}:${VARNISH_LISTEN_PORT} \<br>
>              -T ${VARNISH_ADMIN_LISTEN_ADDRESS}:${VARNISH_ADMIN_LISTEN_PORT} \<br>
>              -f ${VARNISH_VCL_CONF} \<br>
>              -S ${VARNISH_SECRET_FILE} \<br>
>              -s file,${VARNISH_STORAGE_FILE},${VARNISH_STORAGE_SIZE}"<br>
><br>
><br>
><br>
> My questions are 1) does my conviguration stop completely the cache and why then storage.bin is full?<br>
> 2) Why varnish eat so much ram - because of many requests, wrong configuration or?<br>
><br>
> _______________________________________________<br>
> varnish-misc mailing list<br>
> <a href="mailto:varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a><br>
> <a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a></p>
<p dir="ltr">Hi,</p>
<p dir="ltr">The best way to investigate here is to look at the varnishlog and check if indeed you end up in hit or miss instead of pass.<br>
</p>