Updating from 2.0.5 to 3.0.0 - some questions

kokoniimasu kokoniimasu at gmail.com
Sat Feb 18 04:48:39 CET 2012


Hi Jim,

>1) Changes from 2.1.5 to 3.0 beta 1 states:

[root at localhost ~]# varnishd
At least one of -d, -b, -f, -M, -S or -T must be specified
usage: varnishd [options]

...

    -l shl,free,fill             # Size of shared memory file
                                 #   shl: space for SHL records [80m]
                                 #   free: space for other allocations [1m]
                                 #   fill: prefill new file [+]

>2) I'm also a bit confused by this code in vcl_fetch:

Refer to this url.
https://www.varnish-cache.org/docs/trunk/faq/general.html#troubleshooting

>3) I've noted that a number of the parameter values I used to set have

If varnish's change parameter you want to know? (I'm sorry if I get it
wrong. I'm not good at English... training now)
This document may be relevant to you.
  http://blog.xcir.net/index.php/2011/07/vcl-and-parameter-changes-in-varnish-cache-3-0/

http_req_hdr_len is require special care.(if you wants very large
request header(~2kb))


>4) Is there additional doc I should review (besides

Refer to this url.
  https://www.varnish-cache.org/docs/trunk/installation/upgrade.html


I hope you find it informative.

--
Syohei Tanaka(@xcir)
http://xcir.net/

(:3[__])


2012年2月18日2:37 Jim Hayter <jim.hayter at gmail.com>:
> I am working on upgrading from Varnish 2.0.5 running on Ubuntu 9.10 to
> Varnish 3.0.0 running on Ubuntu 11.10.
>
> I have a few questions based on my reading of
> https://www.varnish-cache.org/trac/browser/doc/changes.rst
>
> 1) Changes from 2.1.5 to 3.0 beta 1 states:
>
>   - The -l (shared memory log file) argument has been changed, please
> see the varnishd manual for the new syntax.
>     'man varnishd' for 2.0.5 states:
>
>     -l shmlogsize
>                 Specify size of shmlog file.  Scaling suffixes like 'k', 'm'
>                 can be used up to (e)tabytes.  Default is 80 Megabytes.
>                 Specifying less than 8 Megabytes is unwise.
>
>    'man varnishd' for 3.0.0 states the same thing.  And it appears to
> be working.  What changed?
>
>
> 2) I'm also a bit confused by this code in vcl_fetch:
>
>    if (beresp.ttl <= 0s ||
>        beresp.http.Set-Cookie ||
>        beresp.http.Vary == "*") {
>        /*
>         * Mark as "Hit-For-Pass" for the next 2 minutes
>         */
>        set beresp.ttl = 120 s;
>        return (hit_for_pass);
>    }
>
>    What is the purpose of "set beresp.ttl = 120 s;" ?  So, the
> purpose is to mark as "Hit-For-Pass" for 2 minutes, but why is this
> done (what does it accomplish)?
>
> 3) I've noted that a number of the parameter values I used to set have
> become defaults.  I also noted the change to make thread_pool_min and
> thread_pool_max agree better.  Aside from these and some other changes
> (purge to ban, obj to beresp), are there particular changes I should
> look at closely to avoid problems when I update?
>
> 4) Is there additional doc I should review (besides
> https://www.varnish-cache.org/trac/browser/doc/changes.rst) that would
> help me avoid problems and understand what has changed?
>
> Thanks for any suggestions.
>
> Jim
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc



More information about the varnish-misc mailing list