Size of the url for the varnish hash
Jennings, Raymond
raymond.jennings at nytimes.com
Tue Apr 8 17:31:47 CEST 2014
I think what you want is this:
SHM_RECLEN=1024
I have this value in my /etc/sysconfig/varnish and is used at the bottom to
start varnishd
DAEMON_OPTS="-a ${VARNISH_LISTEN_ADDRESS}:${VARNISH_LISTEN_PORT} \
-f ${VARNISH_VCL_CONF} \
-T
${VARNISH_ADMIN_LISTEN_ADDRESS}:${VARNISH_ADMIN_LISTEN_PORT} \
-t ${VARNISH_TTL} \
-w
${VARNISH_MIN_THREADS},${VARNISH_MAX_THREADS},${VARNISH_THREAD_TIMEOUT} \
-p shm_reclen=${SHM_RECLEN} \
-p http_req_hdr_len=${HTTP_REQ_HDR_LEN} \
-p idle_send_timeout=${IDLE_SEND_TIMEOUT} \
-u varnish -g varnish \
-S ${VARNISH_SECRET_FILE} \
-s ${VARNISH_STORAGE}"
When varnishd is running you should something like (see the shm_reclen
parameter):
root 9095 1 0 11:19 ? 00:00:00 /usr/sbin/varnishd -P
/var/run/varnish.pid -a :80 -f /etc/varnish/default.vcl -T
10.242.217.220:6082 -t 2400 -w 1,1000,120 -p shm_reclen=1024 -p
http_req_hdr_len=17408 -p idle_send_timeout=40 -u varnish -g varnish -S
/etc/varnish/secret -s file,/var/lib/varnish/varnish_storage.bin,9G
On Tue, Apr 8, 2014 at 11:19 AM, Edward Zambrano <edward at alatest.com> wrote:
> Hello,
>
> Reading the logs from the varnishncsa daemon I realized that the url top
> size is 255, even though that the url reaching the backend is larger (it
> has many GET parameters). also checking the Hash entries from the
> barnishlog I see that is only using the first 255 characters.... I'm
> looking how to increase the size and I found some related issue here
> https://www.varnish-cache.org/trac/ticket/1016 but I'm reading the
> description of those parameters in
> https://www.varnish-cache.org/docs/3.0/reference/varnishd.html and it
> doesn't look related to my problem (in the apache logs of my backend
> servers I can see that the URL is arriving correctly, with more than 255
> characters)
>
> Could you please tell me how to increase that limitation?
>
> thanks!
>
> _______________________________________________
> 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/20140408/0c3b231b/attachment.html>
More information about the varnish-misc
mailing list