{"id":411,"date":"2011-06-09T00:47:40","date_gmt":"2011-06-08T15:47:40","guid":{"rendered":"http:\/\/blog.xcir.net\/?p=411"},"modified":"2011-08-31T02:27:17","modified_gmt":"2011-08-30T17:27:17","slug":"varnishcache3-0beta2%e3%81%8c%e3%83%aa%e3%83%aa%e3%83%bc%e3%82%b9%e3%81%95%e3%82%8c%e3%81%be%e3%81%97%e3%81%9f","status":"publish","type":"post","link":"https:\/\/blog.xcir.net\/?p=411","title":{"rendered":"VarnishCache3.0beta2\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u307e\u3057\u305f"},"content":{"rendered":"<p>VarnishCache3.0\u306e\u03b2\uff12\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u307e\u3057\u305f\u3002<br \/>\n\u30d0\u30b0\u30d5\u30a3\u30c3\u30af\u30b9\u3060\u3051\u3067\u306f\u306a\u304f\u3066\u5c11\u3057\u65b0\u6a5f\u80fd\u3082\u3042\u308a\u307e\u3059\u3002<br \/>\n<!--more--><\/p>\n<p><a href=\"http:\/\/www.varnish-cache.org\/releases\/varnish-cache-3.0-beta2\">Varnish Cache 3.0 beta 2<\/a><\/p>\n<blockquote><p>documentation updates, particularly for the standard VMOD.<\/p><\/blockquote>\n<p>vmod_std\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u66f4\u65b0\u3057\u307e\u3057\u305f\u3002<\/p>\n<blockquote><p>varnishncsa now ignores piped requests, since there&#8217;s generally too<br \/>\nlittle information for us to do anything sensible with them.<\/p><\/blockquote>\n<p>varnishncsa\u3067\u306fpipe\u52d5\u4f5c\u6642\u306b\u30ed\u30b0\u304c\u51fa\u306a\u3044\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<blockquote><p>the VCL compiler is now stricter in enforcing no duplication of backends or probes.<\/p><\/blockquote>\n<p>VCL\u30b3\u30f3\u30d1\u30a4\u30e9\u306f\u91cd\u8907\u3057\u305f\u540d\u524d\u3092\u6301\u3064\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u30fbprobe\u306e\u6307\u5b9a\u3092\u8a31\u5bb9\u3057\u306a\u304f\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u4eca\u307e\u3067\uff082.1\u7cfb\u307e\u3067\uff09\u306f<\/p>\n<pre class=\"brush: plain; \">\n\r\nbackend default {\r\n.host = &quot;127.0.0.1&quot;;\r\n.port = &quot;80&quot;;\r\n.probe = {\r\n.url = &quot;\/test.jpg&quot;;\r\n.timeout = 0.3 s;\r\n.window = 8;\r\n.threshold = 3;\r\n.initial = 3;\r\n.initial = 3;\r\n\r\n}\r\n}\r\n\n<\/pre>\n<p>\u3082VCL\u30b3\u30f3\u30d1\u30a4\u30e9\u306f\u901a\u3063\u3066\u3044\u305f\u306e\u3067\u3059\u304c<br \/>\n\u3053\u3093\u306a\u611f\u3058\u3067\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059<\/p>\n<pre class=\"brush: bash; \">\n\r\n[root@localhost ~]# varnishd  -d -f \/etc\/varnish\/default.vcl -C\r\nMessage from VCC-compiler:\r\nField &#039;initial&#039; redefined at:\r\n(&#039;input&#039; Line 52 Pos 6)\r\n.initial = 3;\r\n-----#######-----\r\n\r\nFirst defined at:\r\n(&#039;input&#039; Line 51 Pos 6)\r\n.initial = 3;\r\n-----#######-----\r\n\r\nIn backend specification starting at:\r\n(&#039;input&#039; Line 43 Pos 1)\r\nbackend default {\r\n#######----------\r\n\r\nRunning VCC-compiler failed, exit 1\r\n\n<\/pre>\n<p>\u3061\u306a\u307f\u306bACL\u3082\u3067\u3059<\/p>\n<blockquote><p>the stats command has been removed from the CLI interface as it did not work well with the new dynamic counters.<\/p><\/blockquote>\n<p>CLI\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u3067stats\u30b3\u30de\u30f3\u30c9\u304c\u524a\u9664\u3055\u308c\u307e\u3057\u305f\u3002<br \/>\n\u65b0\u3057\u304f\u8ffd\u52a0\u3055\u308c\u305f\u52d5\u7684\u306a\u30ab\u30a6\u30f3\u30bf\u3067\u4e0a\u624b\u304f\u52d5\u304b\u306a\u304b\u3063\u305f\u305f\u3081\u3067\u3059\u3002<\/p>\n<blockquote><p>VCL now has vcl_init and vcl_fini functions that are called when a VCL is loaded or unloaded. This can be used for initialising VMODs.<\/p><\/blockquote>\n<p>VCL\u304c\u30ed\u30fc\u30c9\u30fb\u30a2\u30f3\u30ed\u30fc\u30c9\u3055\u308c\u308b\u3068\u304d\u306b\u3001\u305d\u308c\u305e\u308cvcl_init\u3068vcl_fini\u30d5\u30a1\u30f3\u30af\u30b7\u30e7\u30f3\u304c\u547c\u3070\u308c\u307e\u3059\u3002<br \/>\nVMOD\u306e\u521d\u671f\u5316\u306a\u3069\u306b\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u50d5\u304c\u8a66\u3057\u305f\u9650\u308a\u3060\u3068vcl_init,vcl_fini\u304c\u547c\u3070\u308c\u308b\u30d1\u30bf\u30f3\u306f\u4ee5\u4e0b\u3067\u3059<\/p>\n<table>\n<tr >\n<th> <\/th>\n<th>vcl_init<\/th>\n<th>vcl_fini<\/th>\n<\/tr>\n<tr >\n<th>\/etc\/init.d\/varnish start<\/th>\n<td>\u2714<\/td>\n<td>\u3000<\/td>\n<\/tr>\n<tr >\n<th>\/etc\/init.d\/varnish restart<\/th>\n<td>\u2714<\/td>\n<td>\u3000<\/td>\n<\/tr>\n<tr >\n<th>\/etc\/init.d\/varnish reload<\/th>\n<td>\u2714<\/td>\n<td>\u3000<\/td>\n<\/tr>\n<tr >\n<th>\/etc\/init.d\/varnish stop<\/th>\n<td>\u3000<\/td>\n<td>\u3000<\/td>\n<\/tr>\n<tr >\n<th>start(CLI)<\/th>\n<td>\u2714<\/td>\n<td>\u3000<\/td>\n<\/tr>\n<tr >\n<th>stop(CLI)<\/th>\n<td>\u3000<\/td>\n<td>\u3000<\/td>\n<\/tr>\n<tr >\n<th>vcl.load(CLI)<\/th>\n<td>\u2714<\/td>\n<td>\u3000<\/td>\n<\/tr>\n<tr >\n<th>vcl.discard(CLI)<\/th>\n<td>\u3000<\/td>\n<td>\u2714<\/td>\n<\/tr>\n<tr >\n<th>vcl.use(CLI)<\/th>\n<td>\u3000<\/td>\n<td>\u3000<\/td>\n<\/tr>\n<\/table>\n<p>\u660e\u793a\u7684\u306bVCL\u3092\u524a\u9664\u3059\u308b\u3068\u304d\u3057\u304bvcl_fini\u304c\u547c\u3070\u308c\u306a\u3044\u3063\u307d\u3044\u306e\u3067\u666e\u901a\u306b\u518d\u8d77\u52d5\u3068\u304b\u3061\u3087\u3063\u3068\u5b50\u30d7\u30ed\u30bb\u30b9\u3092\u30fb\u30fb\u3068\u304b\u306a\u4f7f\u3044\u65b9\u306b\u306f\u6ce8\u610f\u304c\u5fc5\u8981\u3060\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u307e\u305fvcl_init,fini\u5185\u3067vmod_std\u306elog\u3092\u5229\u7528\u3057\u3088\u3046\u3068\u3057\u305f\u3089\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u5358\u306b\u30ed\u30fc\u30c9\u3055\u308c\u3066\u3044\u306a\u3044\u306e\u304b\u305d\u308c\u3068\u3082\u4f9d\u5b58\u3059\u308b\u95a2\u6570\u304c\u4f7f\u3048\u306a\u3044\u72b6\u614b\u306a\u306e\u304b\u306f\u308f\u304b\u308a\u307e\u305b\u3093\u304c<br \/>\nvmod\u3092\u5229\u7528\u3059\u308b\u969b\u3082\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<p>\u6765\u9031\uff11\uff16\u65e5\u306e\u6b63\u5f0f\u30ea\u30ea\u30fc\u30b9\u304c\u697d\u3057\u307f\u3067\u3059\u306d\u30fc<\/p>\n<p>&#8212;-<br \/>\n\u307e\u305f<a href=\"http:\/\/twitter.com\/#!\/hmsk\">@hmsk<\/a>\u3055\u3093\u4e3b\u50ac\u3067Varnish\u52c9\u5f37\u4f1a Tokyo.vcl\u304c\uff11\uff18\u65e5\u306e\u571f\u66dc\u306b\u30af\u30c3\u30af\u30d1\u30c3\u30c9\u3055\u3093\u3067\u3042\u308a\u307e\u3059\u3002<br \/>\n\u4eca\u56de\u306e3.0\u30ea\u30ea\u30fc\u30b9\u3067\u4e16\u754c\u5404\u5730\u3067\u884c\u308f\u308c\u308b\u30ea\u30ea\u30fc\u30b9\u30d1\u30fc\u30c6\u30a3\u30fc\u306e\u4e00\u74b0\u3068\u3057\u3066\u884c\u308f\u308c\u307e\u3059\u3002<\/p>\n<p>\u50d5\u3082\u4ee5\u4e0b\u306e\u30c6\u30fc\u30de\u3067\u8a71\u3059\u4e88\u5b9a\u3067\u3059\u3002<\/p>\n<blockquote><p>\u65e2\u306b2.0\/2.1.X\u3067\u904b\u7528\u3057\u3066\u308b\u65b9\u5411\u3051\u306e3.0\u3078\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u306e\u4ed5\u65b9(\u4eee)<\/p><\/blockquote>\n<p>\u3082\u3057\u304b\u3057\u305f\u30893.0\u306e\u65b0\u6a5f\u80fd\u306b\u3064\u3044\u3066\u3082\u8a71\u3059\u304b\u3082\u3057\u308c\u306a\u3044\u3067\u3059\uff01<br \/>\n\u8208\u5473\u304c\u6709\u308b\u65b9\u306f\u305c\u3072\u305c\u3072\uff01<br \/>\n<a href=\"http:\/\/atnd.org\/events\/16681\">Varnish\u52c9\u5f37\u4f1a Tokyo.vcl<\/a><\/p>\n<p>\u4eca\u5f8c\u3082\u3053\u306e\u3088\u3046\u306a\u52c9\u5f37\u4f1a\u304c\u3042\u308b\u3068\u3044\u3044\u3067\u3059\u306d<\/p>\n<div class='wp_social_bookmarking_light'>        <div class=\"wsbl_hatena\"><a href='\/\/b.hatena.ne.jp\/add?mode=confirm&url=https%3A%2F%2Fblog.xcir.net%2F%3Fp%3D411&title=VarnishCache3.0beta2%E3%81%8C%E3%83%AA%E3%83%AA%E3%83%BC%E3%82%B9%E3%81%95%E3%82%8C%E3%81%BE%E3%81%97%E3%81%9F' title='\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0' rel=nofollow class='wp_social_bookmarking_light_a' target=_blank><img src='https:\/\/blog.xcir.net\/wp-content\/plugins\/wp-social-bookmarking-light\/public\/images\/hatena.gif' alt='\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0' title='\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0' width='16' height='12' class='wp_social_bookmarking_light_img' \/><\/a><\/div>        <div class=\"wsbl_hatena_users\"><a href='\/\/b.hatena.ne.jp\/entry\/https:\/\/blog.xcir.net\/?p=411' title='\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af - VarnishCache3.0beta2\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u307e\u3057\u305f' rel=nofollow class='wp_social_bookmarking_light_a' target=_blank><img src='\/\/b.hatena.ne.jp\/entry\/image\/https:\/\/blog.xcir.net\/?p=411' alt='\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af - VarnishCache3.0beta2\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u307e\u3057\u305f' title='\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af - VarnishCache3.0beta2\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u307e\u3057\u305f'   class='wp_social_bookmarking_light_img' \/><\/a><\/div>        <div class=\"wsbl_facebook\"><a href='http:\/\/www.facebook.com\/share.php?u=https%3A%2F%2Fblog.xcir.net%2F%3Fp%3D411&t=VarnishCache3.0beta2%E3%81%8C%E3%83%AA%E3%83%AA%E3%83%BC%E3%82%B9%E3%81%95%E3%82%8C%E3%81%BE%E3%81%97%E3%81%9F' title='Facebook \u306b\u30b7\u30a7\u30a2' rel=nofollow class='wp_social_bookmarking_light_a' target=_blank><img src='https:\/\/blog.xcir.net\/wp-content\/plugins\/wp-social-bookmarking-light\/public\/images\/facebook.png' alt='Facebook \u306b\u30b7\u30a7\u30a2' title='Facebook \u306b\u30b7\u30a7\u30a2' width='16' height='16' class='wp_social_bookmarking_light_img' \/><\/a><\/div>        <div class=\"wsbl_linkedin\"><a href='\/\/www.linkedin.com\/shareArticle?mini=true&url=https%3A%2F%2Fblog.xcir.net%2F%3Fp%3D411&title=VarnishCache3.0beta2%E3%81%8C%E3%83%AA%E3%83%AA%E3%83%BC%E3%82%B9%E3%81%95%E3%82%8C%E3%81%BE%E3%81%97%E3%81%9F' title='LinkedIn \u306b\u30b7\u30a7\u30a2' rel=nofollow class='wp_social_bookmarking_light_a' target=_blank><img src='https:\/\/blog.xcir.net\/wp-content\/plugins\/wp-social-bookmarking-light\/public\/images\/linkedin.png' alt='LinkedIn \u306b\u30b7\u30a7\u30a2' title='LinkedIn \u306b\u30b7\u30a7\u30a2' width='16' height='16' class='wp_social_bookmarking_light_img' \/><\/a><\/div>        <div class=\"wsbl_twitter\"><a href=\"https:\/\/twitter.com\/share\" class=\"twitter-share-button\" data-url=\"https:\/\/blog.xcir.net\/?p=411\" data-text=\"VarnishCache3.0beta2\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u307e\u3057\u305f\" data-lang=\"ja\">Tweet<\/a><\/div><\/div>\n<br class='wp_social_bookmarking_light_clear' \/>\n","protected":false},"excerpt":{"rendered":"<p>VarnishCache3.0\u306e\u03b2\uff12\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u307e\u3057\u305f\u3002 \u30d0\u30b0\u30d5\u30a3\u30c3\u30af\u30b9\u3060\u3051\u3067\u306f\u306a\u304f\u3066\u5c11\u3057\u65b0\u6a5f\u80fd\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[5,21,32],"class_list":["post-411","post","type-post","status-publish","format-standard","hentry","category-3","tag-varnish","tag-varnish3-0beta2","tag-32","category-3-id","post-seq-1","post-parity-odd","meta-position-corners","fix"],"_links":{"self":[{"href":"https:\/\/blog.xcir.net\/index.php?rest_route=\/wp\/v2\/posts\/411","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.xcir.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.xcir.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.xcir.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.xcir.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=411"}],"version-history":[{"count":24,"href":"https:\/\/blog.xcir.net\/index.php?rest_route=\/wp\/v2\/posts\/411\/revisions"}],"predecessor-version":[{"id":694,"href":"https:\/\/blog.xcir.net\/index.php?rest_route=\/wp\/v2\/posts\/411\/revisions\/694"}],"wp:attachment":[{"href":"https:\/\/blog.xcir.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=411"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.xcir.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=411"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.xcir.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=411"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}