{"id":7966,"date":"2013-04-15T16:58:33","date_gmt":"2013-04-15T07:58:33","guid":{"rendered":"http:\/\/labs.gree.jp\/blog\/?p=7966"},"modified":"2021-04-27T15:04:02","modified_gmt":"2021-04-27T06:04:02","slug":"post7966","status":"publish","type":"post","link":"https:\/\/labs.gree.jp\/blog\/2013\/04\/7966\/","title":{"rendered":"Varnish\u3067\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u3092\u66f8\u3053\u3046\uff01"},"content":{"rendered":"<p>\u306f\u3058\u3081\u307e\u3057\u3066\u3001\u30b5\u30fc\u30d0\u57fa\u76e4\u30c1\u30fc\u30e0\u306e\u7530\u4e2d\u7965\u5e73(@xcir)\u3067\u3059\u3002<br \/>\n\u6700\u8fd1\u5165\u793e\u3057\u307e\u3057\u3066\u3001\u30c1\u30fc\u30e0\u3067\u306f\u3044\u308f\u306a\u3061\u3083\u3093\u3068\u547c\u3070\u308c\u3066\u3044\u307e\u3059\u3002\u3088\u308d\u3057\u304f\u304a\u9858\u3044\u3057\u307e\u3059\u3002<\/p>\n<p>\u5165\u793e\u3057\u3066\u304b\u3089GREE\u306e\u914d\u4fe1\u30b7\u30b9\u30c6\u30e0\u3092Varnish Cache\uff08\u4ee5\u4e0bVarnish\uff09\u306b\u7f6e\u304d\u63db\u3048\u308b\u4ed5\u4e8b\u3092\u3057\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u5c11\u3057\u524d\u306b\u554f\u984c\u306a\u304f\u5c71\u3092\u8d85\u3048\u307e\u3057\u305f\u3002<br \/>\n\u305d\u3053\u3067\u4eca\u56de\u5229\u7528\u3057\u305fVarnish\u306e\u7279\u306b\u30c6\u30b9\u30c8\u6a5f\u80fd\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3057\u3088\u3046\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001\u4eca\u56de\u306e\u8aac\u660e\u306b\u5229\u7528\u3059\u308bVersion\u306f3.0.3\u3067\u3059\u3002<\/p>\n<h4 id=\"hs_0780bd3a0a1f9587816889fea1c86890_header_0\">Varnish\u3068\u306f<\/h4>\n<p>VCL\u3068\u3044\u3046\u30c9\u30e1\u30a4\u30f3\u56fa\u6709\u8a00\u8a9e\u3092\u3082\u3061\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u3082\u3067\u304d\u308b\u9ad8\u901f\u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u3067\u3059\u3002<br \/>\nif\u6587\u304c\u66f8\u3051\u308b\u306e\u3067\u67d4\u8edf\u306b\u8a18\u8ff0\u3057\u3084\u3059\u3044\u3068\u3044\u3046\u7279\u5fb4\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u305f\u3068\u3048\u3070\/admin\/\u4ee5\u4e0b\u306b\u8a31\u53ef\u3057\u305fIP\u4ee5\u5916\u304b\u3089\u306e\u30a2\u30af\u30bb\u30b9\u306f\u5f3e\u304f\u3068\u8a00\u3063\u305f\u3053\u3068\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"superpre \">\nif(req.url ~ \"^\/admin\/\" && client.ip !~ local){\n  error 403;\n}<\/pre>\n<p>Varnish\u3092\u5168\u304f\u77e5\u3089\u306a\u3044\u4eba\u3067\u3082\u306a\u3093\u3068\u306a\u304f\u308f\u304b\u308b\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\uff1f<br \/>\n<\/p>\n<h4 id=\"hs_0780bd3a0a1f9587816889fea1c86890_header_1\">varnishtest\u3068\u306f<\/h4>\n<p>Varnish\u672c\u4f53\u306e\u30ec\u30b0\u30ec\u30c3\u30b7\u30e7\u30f3\u30c6\u30b9\u30c8\u3092\u884c\u3046\u305f\u3081\u306b\u4f5c\u3089\u308c\u305f\u3082\u306e\u3067\u3001\u540c\u6642\u306b\u30a2\u30af\u30bb\u30b9\u304c\u6765\u305f\u6642\u3067\u3082\u554f\u984c\u306a\u304f\u30ec\u30b9\u30dd\u30f3\u30b9\u3067\u304d\u308b\u304b\u306a\u3069300\u500b\u8fd1\u3044\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u5225\u306b\u672c\u4f53\u5c02\u7528\u3068\u3044\u3046\u308f\u3051\u3067\u3082\u306a\u3044\u305f\u3081\u3001VCL\u3092\u8a18\u8ff0\u3057\u305f\u969b\u306b\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u304a\u304f\u3068\u4fbf\u5229\u3067\u3059\u3002<br \/>\n\u3053\u306e\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u306fVarnish Test Code\u3068\u3044\u3046\u3053\u3068\u3067\u62e1\u5f35\u5b50\u3082vtc\u3001\u5185\u90e8\u3067\u3082vtc\u3068\u547c\u3070\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\n\u3057\u304b\u3057varnishtest\u306f\u30b3\u30de\u30f3\u30c9\u306e\u4e2d\u3067\u3082\u3042\u307e\u308a\u30e1\u30b8\u30e3\u30fc\u306a\u5b58\u5728\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<br \/>\n\u7406\u7531\u306fman varnishtest\u306b\u3042\u308b\u306e\u3067\u898b\u3066\u307f\u307e\u3057\u3087\u3046<\/p>\n<pre class=\"superpre \">\nSCRIPTS\n       The script language used for Varnishtest is not a strictly defined language. The best reference for writing scripts is the  varnishtest  program\nitself.  In  the  Varnish\n       source code repository, under bin\/varnishtest\/tests\/, all the regression tests for Varnish are kept.<\/pre>\n<pre class=\"superpre \">\n\u610f\u8a33\uff1a\n\u6587\u6cd5\u306f\u53b3\u5bc6\u306b\u5b9a\u7fa9\u3055\u308c\u3066\u306a\u3044\u3088\uff01\u7279\u306b\u4f7f\u3044\u65b9\u306e\u30de\u30cb\u30e5\u30a2\u30eb\u306a\u3093\u3066\u306a\u3044\u3088\uff01\uff01\u672c\u4f53\u306e\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u3092\u9811\u5f35\u3063\u3066\u8aad\u3082\u3046\uff01\uff01\uff01<\/pre>\n<ul>\n<li>\u8a73\u7d30\u306a\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u304c\u516c\u5f0f\u306b\u5b58\u5728\u3057\u306a\u3044\u3002<\/li>\n<li>\u898b\u3066\u306d\u3068\u8a00\u3063\u3066\u308b\u672c\u4f53\u306e\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u3067\u3082\u4f7f\u308f\u308c\u3066\u3044\u306a\u3044\u30b3\u30de\u30f3\u30c9\u304c\u3042\u308b\u3002<\/li>\n<li>\uff08\u79c1\u306e\u89b3\u6e2c\u7bc4\u56f2\u3067\u306f\uff09\u6d77\u5916\u306e\u30d6\u30ed\u30b0\u3067\u3082\u4f59\u308a\u8a73\u3057\u304f\u53d6\u308a\u4e0a\u3052\u3089\u308c\u3066\u3044\u306a\u3044\u3002<\/li>\n<\/ul>\n<p>\u305d\u3093\u306a\u7406\u7531\u3067\u305d\u3082\u305d\u3082\u5b58\u5728\u304c\u77e5\u3089\u308c\u3066\u306a\u3044\u4e0a\u7d1a\u8005\u5411\u3051\u30b3\u30de\u30f3\u30c9\u3067\u3059\u3002<\/p>\n<p>\u547d\u4ee4\u6570\u3082\u30b3\u30de\u30f3\u30c9\u6570\u3082\u591a\u3044\u306e\u3067\u5168\u3066\u7d39\u4ecb\u3059\u308b\u306e\u3067\u306f\u306a\u304fVCL\u3092\u30c7\u30d0\u30c3\u30b0\u3059\u308b\u4e0a\u3067\u77e5\u3063\u3066\u304a\u304f\u3068\u4fbf\u5229\u306avarnishtest\u306e\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n<h4 id=\"hs_0780bd3a0a1f9587816889fea1c86890_header_2\">\u57fa\u672c\u7684\u306a\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9(vtc)\u306e\u69cb\u9020<\/h4>\n<p>\u4ee5\u4e0b\u304c\u5358\u7d14\u306avtc\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"superpre \">\nvarnishtest \"example\"\n\nserver s1 {\n    rxreq\n    expect req.url == \"\/\"\n    txresp\n}\nserver s1 -start\n\nvarnish v1 -vcl+backend {\n    sub vcl_recv {\n        return(lookup);\n    }\n} -start\n\nclient c1 {\n    txreq -url \"\/\"\n    rxresp\n    expect resp.status        == 200\n} -run<\/pre>\n<p>vtc\u306f\u4e0a\u304b\u3089\u9806\u306b\u5b9f\u884c\u3055\u308c\u3001\u307e\u305f\u69cb\u9020\u3068\u3057\u30662\u968e\u5c64\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\n\u3088\u304f\u4f7f\u3046\u30b3\u30de\u30f3\u30c9\u3068\u3057\u3066<\/p>\n<table>\n<tr>\n<th>\u30b3\u30de\u30f3\u30c9\u540d<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<tr>\n<td>varnishtest<\/td>\n<td>\u30c6\u30b9\u30c8\u306e\u30bf\u30a4\u30c8\u30eb\u3092\u8a18\u8ff0\u3059\u308b<\/td>\n<\/tr>\n<tr>\n<td>server<\/td>\n<td>HTTP\u30b5\u30fc\u30d0\u306e\u632f\u308b\u821e\u3044\u3092\u8a18\u8ff0\u3001\u57fa\u672c\u7684\u306b\u30aa\u30ea\u30b8\u30f3\u3068\u3057\u3066\u4f7f\u3046<\/td>\n<\/tr>\n<tr>\n<td>varnish<\/td>\n<td>Varnish\u30b5\u30fc\u30d0\u306e\u632f\u308b\u821e\u3044\u3092\u8a18\u8ff0\u3001VCL\u306a\u3069\u3092\u8a18\u8ff0<\/td>\n<\/tr>\n<tr>\n<td>client<\/td>\n<td>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u632f\u308b\u821e\u3044\u3092\u8a18\u8ff0<\/td>\n<\/tr>\n<\/table>\n<p>\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u305d\u308c\u305e\u308c\u306e\u95a2\u4fc2\u306f<br \/>\n<a href=\"http:\/\/labs.gree.jp\/blog\/2013\/04\/7966\/image2013-4-12-13-6-20\/\" rel=\"attachment wp-att-8096\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2013\/04\/image2013-4-12-13-6-20.png\" alt=\"\" title=\"image2013-4-12 13-6-20\" width=\"239\" height=\"261\" class=\"alignnone size-full wp-image-8096\" srcset=\"https:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2013\/04\/image2013-4-12-13-6-20.png 239w, https:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2013\/04\/image2013-4-12-13-6-20-183x200.png 183w\" sizes=\"auto, (max-width: 239px) 100vw, 239px\" \/><\/a><br \/>\n\u3068\u306a\u308a\u307e\u3059\u3002<br \/>\nserver\u306f\u30aa\u30ea\u30b8\u30f3\u306e\u5f79\u5272\u3092\u3059\u308b\u3068\u8003\u3048\u3066\u3082\u3089\u3048\u3070\u308f\u304b\u308a\u3084\u3059\u3044\u3068\u304a\u3082\u3044\u307e\u3059\u3002<\/p>\n<h5 id=\"hs_0780bd3a0a1f9587816889fea1c86890_header_3\">server<\/h5>\n<p>\u307e\u305aserver\u306e\u7b87\u6240\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"superpre \">\nserver s1 {\n    rxreq\n    expect req.url == \"\/\"\n    txresp\n}\nserver s1 -start<\/pre>\n<p>{\uff5e}\u3067\u56f2\u307e\u308c\u305f\u7b87\u6240\u3067\u3053\u306eHTTP\u30b5\u30fc\u30d0\u3067\u4f55\u3092\u3059\u308b\u304b\u3092\u5b9a\u7fa9\u3057\u3066\u3044\u307e\u3059\u3002\uff08\u5f8c\u3067\u89e3\u8aac\uff09<br \/>\n\u6b21\u306b\u300cserver s1 -start\u300d\u3068\u3042\u308a\u307e\u3059\u304c\u3001\u3053\u3053\u3067HTTP\u30b5\u30fc\u30d0\u3092\u8d77\u52d5\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h5 id=\"hs_0780bd3a0a1f9587816889fea1c86890_header_4\">varnish<\/h5>\n<p>\u6b21\u306bvarnish\u306e\u7b87\u6240\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"superpre \">\nvarnish v1 -vcl+backend {\n    sub vcl_recv {\n        return(lookup);\n    }\n} -start<\/pre>\n<p>-vcl+backend{\uff5e}\u3068\u3042\u308a\u307e\u3059\u3002<br \/>\n\u3053\u3053\u306e-vcl+backend\u306fVCL\u306e\u8a18\u8ff0\u3092\u542b\u3080\u3053\u3068\u3068\u3001\u5148\u306b\u6307\u5b9a\u3057\u305f\u300cserver s1\u300d\u3092\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u3068\u3057\u3066\u81ea\u52d5\u7684\u306b\u88dc\u5b8c\u3059\u308b\u4e8b\u3092\u8868\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u305d\u3057\u3066-start\u306e\u3068\u3053\u308d\u3067Varnish\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002<br \/>\n\u5148\u307b\u3069\u306eserver\u306e\u6307\u5b9a\u3067\u306f-start\u3092\u5225\u3067\u66f8\u304d\u307e\u3057\u305f\u304c\u3053\u306e\u3088\u3046\u306b\u540c\u6642\u306b\u6307\u5b9a\u3082\u53ef\u80fd\u3067\u3059\u3002<br \/>\n\u306a\u306e\u3067\u5148\u307b\u3069\u306eserver\u306e\u8a2d\u5b9a\u3082<\/p>\n<pre class=\"superpre \">\nserver s1 {\n...\n} -start<\/pre>\n<p>\u3068\u8a00\u3063\u305f\u98a8\u306b\u8a18\u8ff0\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<h5 id=\"hs_0780bd3a0a1f9587816889fea1c86890_header_5\">client<\/h5>\n<p>\u305d\u3057\u3066\u6700\u5f8c\u306bclient\u3067\u3059<\/p>\n<pre class=\"superpre \">\nclient c1 {\n    txreq -url \"\/\"\n    rxresp\n    expect resp.status        == 200\n} -run<\/pre>\n<p>\u3053\u308c\u3082\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u632f\u308b\u821e\u3044\u3092\u8a18\u8ff0\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306f\u30b5\u30fc\u30d0\u3067\u306f\u306a\u3044\u306e\u3067-start(\u8d77\u52d5)\u3067\u306f\u306a\u304f-run(\u5b9f\u884c)\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<h5 id=\"hs_0780bd3a0a1f9587816889fea1c86890_header_6\">server(2\u968e\u5c64\u76ee)<\/h5>\n<p>\u3055\u3066\u6b21\u306b2\u968e\u5c64\u76ee\u3067\u3059\u3002server\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"superpre \">\nserver s1 {\n    rxreq\n    expect req.url == \"\/\"\n    txresp\n}<\/pre>\n<p>\u3053\u308c\u3089\u3092\u8a00\u8449\u306b\u76f4\u3057\u3066\u307f\u308b\u3068<\/p>\n<pre class=\"superpre \">\nserver s1 {\n    \u30ea\u30af\u30a8\u30b9\u30c8\u3092\u53d7\u3051\u4ed8\u3051\u308b\uff08\uff1d\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u6765\u308b\u307e\u3067\u30d6\u30ed\u30c3\u30af\u3059\u308b\uff09\n    \u30ea\u30af\u30a8\u30b9\u30c8\u3055\u308c\u305fURL\u304c\u300c\/\u300d\u3068\u4e00\u81f4\u3057\u3066\u3044\u308b\u304b\u8a55\u4fa1\u3059\u308b\n    \u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u884c\u3046\n}<\/pre>\n<p>\u3068\u3044\u3063\u305f\u611f\u3058\u3067\u3059\u3002<\/p>\n<h5 id=\"hs_0780bd3a0a1f9587816889fea1c86890_header_7\">client(2\u968e\u5c64\u76ee)<\/h5>\n<p>\u6b21\u306bclient\u3067\u3059\u3002<\/p>\n<pre class=\"superpre \">\nclient c1 {\n    txreq -url \"\/\"\n    rxresp\n    expect resp.status        == 200\n} -run<\/pre>\n<p>\u3053\u308c\u3082\u8a00\u8449\u306b\u76f4\u3057\u3066\u307f\u308b\u3068<\/p>\n<pre class=\"superpre \">\nclient c1 {\n    Varnish\u306b\u300c\/\u300d\u3092\u30ea\u30af\u30a8\u30b9\u30c8\u3059\u308b\n    \u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u5f85\u3064\n    \u30ec\u30b9\u30dd\u30f3\u30b9\u306e\u30b9\u30c6\u30fc\u30bf\u30b9\u30b3\u30fc\u30c9\u304c200\u304b\u3069\u3046\u304b\u3092\u8a55\u4fa1\u3059\u308b\n} -run<\/pre>\n<p>\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<h5 id=\"hs_0780bd3a0a1f9587816889fea1c86890_header_8\">\u307e\u3068\u3081<\/h5>\n<p>\u4e00\u9023\u306e\u6d41\u308c\u3092\u66f8\u3044\u3066\u307f\u308b\u3068<br \/>\n<a href=\"http:\/\/labs.gree.jp\/blog\/2013\/04\/7966\/seq\/\" rel=\"attachment wp-att-8093\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2013\/04\/seq-501x400.png\" alt=\"\" title=\"seq\" width=\"501\" height=\"400\" class=\"alignnone size-medium wp-image-8093\" srcset=\"https:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2013\/04\/seq-501x400.png 501w, https:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2013\/04\/seq-250x200.png 250w, https:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2013\/04\/seq.png 786w\" sizes=\"auto, (max-width: 501px) 100vw, 501px\" \/><\/a><br \/>\n\u3068\u306a\u308a\u307e\u3059\u3002(\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u5927\u304d\u304f\u306a\u308a\u307e\u3059)<br \/>\n\u4ee5\u4e0a\u304cvtc\u306e\u57fa\u672c\u7684\u306a\u52d5\u304d\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3 id=\"hs_0780bd3a0a1f9587816889fea1c86890_header_9\">\u30ed\u30b0\u306e\u8aad\u307f\u65b9<\/h3>\n<p>\u53d6\u308a\u6562\u3048\u305a\u5148\u307b\u3069\u306evtc\u3092varnishtest\u3067\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u3087\u3046<\/p>\n<pre class=\"superpre \">\n$ sudo varnishtest example.vtc\n#     top  TEST example.vtc passed (0.525)<\/pre>\n<p>\u3053\u308c\u304c\u6210\u529f\u3057\u305f\u6642\u306e\u30ed\u30b0\u3067\u3059\u3002<\/p>\n<p>\u9006\u306b\u5931\u6557\u3057\u305f\u6642\u306f<\/p>\n<pre class=\"superpre \">\n$ sudo varnishtest example_ng.vtc\n**** top   0.0 macro def varnishd=varnishd\n**** top   0.0 macro def pwd=\/******\n**** top   0.0 macro def topbuild=\/******\/..\/..\n**** top   0.0 macro def bad_ip=10.255.255.255\n**** top   0.0 macro def tmpdir=\/tmp\/vtc.15733.0ad434d9\n*    top   0.0 TEST example_ng.vtc starting\n***  top   0.0 varnishtest\n*    top   0.0 TEST example ng\n***  top   0.0 server\n***  top   0.0 server\n**   s1    0.0 Starting server\n**** s1    0.0 macro def s1_addr=127.0.0.1\n**** s1    0.0 macro def s1_port=34773\n**** s1    0.0 macro def s1_sock=127.0.0.1 34773\n*    s1    0.0 Listen on 127.0.0.1 34773\n***  top   0.0 varnish\n**   s1    0.0 Started on 127.0.0.1 34773\n**   v1    0.0 Launch\n***  v1    0.0 CMD: cd ${pwd} && ${varnishd} -d -d -n \/tmp\/vtc.15733.0ad434d9\/v1 -l 10m,1m,- -p auto_restart=off -p syslog_cli_traffic=off -a '127.0.0.1:0' -S \/tmp\/vtc.15733.0ad434d9\/v1\/_S -M '127.0.0.1 33434' -P \/tmp\/vtc.15733.0ad434d9\/v1\/varnishd.pid -sfile,\/tmp\/vtc.15733.0ad434d9\/v1,10M\n***  v1    0.0 CMD: cd \/****** && varnishd -d -d -n \/tmp\/vtc.15733.0ad434d9\/v1 -l 10m,1m,- -p auto_restart=off -p syslog_cli_traffic=off -a '127.0.0.1:0' -S \/tmp\/vtc.15733.0ad434d9\/v1\/_S -M '127.0.0.1 33434' -P \/tmp\/vtc.15733.0ad434d9\/v1\/varnishd.pid -sfile,\/tmp\/vtc.15733.0ad434d9\/v1,10M\n***  v1    0.0 PID: 15739\n***  v1    0.0 debug| Platform: Linux,*****,x86_64,-sfile,-smalloc,-hcritbit\\n\n***  v1    0.0 debug| 200 240     \\n\n***  v1    0.0 debug| -----------------------------\\n\n***  v1    0.0 debug| Varnish Cache CLI 1.0\\n\n***  v1    0.0 debug| -----------------------------\\n\n***  v1    0.0 debug| Linux,*****,x86_64,-sfile,-smalloc,-hcritbit\\n\n***  v1    0.0 debug| \\n\n***  v1    0.0 debug| Type 'help' for command list.\\n\n***  v1    0.0 debug| Type 'quit' to close CLI session.\\n\n***  v1    0.0 debug| Type 'start' to launch worker process.\\n\n***  v1    0.0 debug| \\n\n**** v1    0.1 CLIPOLL 1 0x1 0x0\n***  v1    0.1 CLI connection fd = 9\n***  v1    0.1 CLI RX  107\n**** v1    0.1 CLI RX| zzdqyzamxgvyjajjyblnszxiqekgyfvx\\n\n**** v1    0.1 CLI RX| \\n\n**** v1    0.1 CLI RX| Authentication required.\\n\n**** v1    0.1 CLI TX| auth 2ce6468bdf71a0af7fde8538d0f06ea17d6771bbfa5b72254df73aec6cfc7b5c\\n\n***  v1    0.1 CLI RX  200\n**** v1    0.1 CLI RX| -----------------------------\\n\n**** v1    0.1 CLI RX| Varnish Cache CLI 1.0\\n\n**** v1    0.1 CLI RX| -----------------------------\\n\n**** v1    0.1 CLI RX| Linux,*****,x86_64,-sfile,-smalloc,-hcritbit\\n\n**** v1    0.1 CLI RX| \\n\n**** v1    0.1 CLI RX| Type 'help' for command list.\\n\n**** v1    0.1 CLI RX| Type 'quit' to close CLI session.\\n\n**** v1    0.1 CLI RX| Type 'start' to launch worker process.\\n\n**** v1    0.1 CLI TX| vcl.inline vcl1 << %XJEIFLH|)Xspa8P\\n\n**** v1    0.1 CLI TX| backend s1 { .host = \"127.0.0.1\"; .port = \"34773\"; }\\n\n**** v1    0.1 CLI TX| \\n\n**** v1    0.1 CLI TX| \\n\n**** v1    0.1 CLI TX|     sub vcl_recv {\\n\n**** v1    0.1 CLI TX|         return(lookup);\\n\n**** v1    0.1 CLI TX|     }\\n\n**** v1    0.1 CLI TX| \\n\n**** v1    0.1 CLI TX| %XJEIFLH|)Xspa8P\\n\n***  v1    0.3 CLI RX  200\n**** v1    0.3 CLI RX| VCL compiled.\n**** v1    0.3 CLI TX| vcl.use vcl1\n***  v1    0.3 CLI RX  200\n**   v1    0.3 Start\n**** v1    0.3 CLI TX| start\n***  v1    0.3 debug| child (15752) Started\\n\n**** v1    0.3 vsl|     0 CLI          - Rd vcl.load \"vcl1\" .\/vcl.1Nua0t2R.so\n**** v1    0.3 vsl|     0 CLI          - Wr 200 36 Loaded \".\/vcl.1Nua0t2R.so\" as \"vcl1\"\n**** v1    0.3 vsl|     0 CLI          - Rd vcl.use \"vcl1\"\n**** v1    0.3 vsl|     0 CLI          - Wr 200 0\n**** v1    0.3 vsl|     0 CLI          - Rd start\n**** v1    0.3 vsl|     0 Debug        - Acceptor is epoll\n**** v1    0.3 vsl|     0 CLI          - Wr 200 0\n***  v1    0.3 CLI RX  200\n***  v1    0.3 wait-running\n**** v1    0.3 CLI TX| status\n***  v1    0.3 debug| Child (15752) said Child starts\\n\n***  v1    0.3 debug| Child (15752) said SMF.s0 mmap'ed 10485760 bytes of 10485760\\n\n**** v1    0.3 vsl|     0 WorkThread   - 0x7f4f9b3f4ac0 start\n**** v1    0.3 vsl|     0 WorkThread   - 0x7f4f9abf3ac0 start\n**** v1    0.3 vsl|     0 WorkThread   - 0x7f4f9a3f2ac0 start\n**** v1    0.3 vsl|     0 WorkThread   - 0x7f4f99bf1ac0 start\n**** v1    0.3 vsl|     0 WorkThread   - 0x7f4f993f0ac0 start\n**** v1    0.3 vsl|     0 WorkThread   - 0x7f4f98befac0 start\n**** v1    0.3 vsl|     0 WorkThread   - 0x7f4f983eeac0 start\n**** v1    0.3 vsl|     0 WorkThread   - 0x7f4f97bedac0 start\n**** v1    0.3 vsl|     0 WorkThread   - 0x7f4f973ecac0 start\n**** v1    0.3 vsl|     0 WorkThread   - 0x7f4f96bebac0 start\n***  v1    0.3 CLI RX  200\n**** v1    0.3 CLI RX| Child in state running\n**** v1    0.3 CLI TX| debug.xid 1000\n***  v1    0.4 CLI RX  200\n**** v1    0.4 CLI RX| XID is 1000\n**** v1    0.4 CLI TX| debug.listen_address\n***  v1    0.4 CLI RX  200\n**** v1    0.4 CLI RX| 127.0.0.1 52004\\n\n**   v1    0.4 Listen on 127.0.0.1 52004\n**** v1    0.4 macro def v1_addr=127.0.0.1\n**** v1    0.4 macro def v1_port=52004\n**** v1    0.4 macro def v1_sock=127.0.0.1 52004\n***  top   0.4 client\n**   c1    0.4 Starting client\n**   c1    0.4 Waiting for client\n***  c1    0.4 Connect to 127.0.0.1 52004\n***  c1    0.4 connected fd 10 from 127.0.0.1 55785 to 127.0.0.1 52004\n***  c1    0.4 txreq\n**** c1    0.4 txreq| GET \/ HTTP\/1.1\\r\\n\n**** c1    0.4 txreq| \\r\\n\n***  s1    0.4 accepted fd 4\n***  s1    0.4 rxreq\n**** s1    0.4 rxhdr| GET \/ HTTP\/1.1\\r\\n\n**** s1    0.4 rxhdr| X-Varnish: 1001\\r\\n\n**** s1    0.4 rxhdr| Accept-Encoding: gzip\\r\\n\n**** s1    0.4 rxhdr| Host: 127.0.0.1\\r\\n\n**** s1    0.4 rxhdr| \\r\\n\n**** s1    0.4 http[ 0] | GET\n**** s1    0.4 http[ 1] | \/\n**** s1    0.4 http[ 2] | HTTP\/1.1\n**** s1    0.4 http[ 3] | X-Varnish: 1001\n**** s1    0.4 http[ 4] | Accept-Encoding: gzip\n**** s1    0.4 http[ 5] | Host: 127.0.0.1\n**** s1    0.4 bodylen = 0\n***  s1    0.4 expect\n**** s1    0.4 EXPECT req.url (\/) == \/ (\/) match\n***  s1    0.4 txresp\n**** s1    0.4 txresp| HTTP\/1.1 200 Ok\\r\\n\n**** s1    0.4 txresp| Content-Length: 0\\r\\n\n**** s1    0.4 txresp| \\r\\n\n***  s1    0.4 shutting fd 4\n**   s1    0.4 Ending\n***  c1    0.4 rxresp\n**** c1    0.4 rxhdr| HTTP\/1.1 200 Ok\\r\\n\n**** c1    0.4 rxhdr| Content-Length: 0\\r\\n\n**** c1    0.4 rxhdr| Accept-Ranges: bytes\\r\\n\n**** c1    0.4 rxhdr| Date: Mon, 15 Apr 2013 00:20:30 GMT\\r\\n\n**** c1    0.4 rxhdr| X-Varnish: 1001\\r\\n\n**** c1    0.4 rxhdr| Age: 0\\r\\n\n**** c1    0.4 rxhdr| Via: 1.1 varnish\\r\\n\n**** c1    0.4 rxhdr| Connection: keep-alive\\r\\n\n**** c1    0.4 rxhdr| \\r\\n\n**** c1    0.4 http[ 0] | HTTP\/1.1\n**** c1    0.4 http[ 1] | 200\n**** c1    0.4 http[ 2] | Ok\n**** c1    0.4 http[ 3] | Content-Length: 0\n**** c1    0.4 http[ 4] | Accept-Ranges: bytes\n**** c1    0.4 http[ 5] | Date: Mon, 15 Apr 2013 00:20:30 GMT\n**** c1    0.4 http[ 6] | X-Varnish: 1001\n**** c1    0.4 http[ 7] | Age: 0\n**** c1    0.4 http[ 8] | Via: 1.1 varnish\n**** c1    0.4 http[ 9] | Connection: keep-alive\n**** c1    0.4 bodylen = 0\n***  c1    0.4 expect\n---- c1    0.4 EXPECT resp.status (200) == 404 (404) failed\n*    top   0.4 RESETTING after example_ng.vtc\n**   s1    0.4 Waiting for server\n**** s1    0.4 macro undef s1_addr\n**** s1    0.4 macro undef s1_port\n**** s1    0.4 macro undef s1_sock\n**** v1    0.4 vsl|     0 CLI          - Rd debug.xid 1000\n**** v1    0.4 vsl|     0 CLI          - Wr 200 11 XID is 1000\n**** v1    0.4 vsl|     0 CLI          - Rd debug.listen_address\n**** v1    0.4 vsl|     0 CLI          - Wr 200 16 127.0.0.1 52004\n\n**** v1    0.4 vsl|    11 SessionOpen  c 127.0.0.1 55785 127.0.0.1:0\n**** v1    0.4 vsl|    11 ReqStart     c 127.0.0.1 55785 1001\n**** v1    0.4 vsl|    11 RxRequest    c GET\n**** v1    0.4 vsl|    11 RxURL        c \/\n**** v1    0.4 vsl|    11 RxProtocol   c HTTP\/1.1\n**** v1    0.4 vsl|    11 VCL_call     c recv\n**** v1    0.4 vsl|    11 VCL_return   c lookup\n**** v1    0.4 vsl|    11 VCL_call     c hash\n**** v1    0.4 vsl|    11 Hash         c \/\n**** v1    0.4 vsl|    11 Hash         c 127.0.0.1\n**** v1    0.4 vsl|    11 VCL_return   c hash\n**** v1    0.4 vsl|    11 VCL_call     c miss\n**** v1    0.4 vsl|    11 VCL_return   c fetch\n**** v1    0.4 vsl|    13 BackendOpen  b s1 127.0.0.1 57395 127.0.0.1 34773\n**** v1    0.4 vsl|    11 Backend      c 13 s1 s1\n**** v1    0.4 vsl|    13 TxRequest    b GET\n**** v1    0.4 vsl|    13 TxURL        b \/\n**** v1    0.4 vsl|    13 TxProtocol   b HTTP\/1.1\n**** v1    0.4 vsl|    13 TxHeader     b X-Varnish: 1001\n**** v1    0.4 vsl|    13 TxHeader     b Accept-Encoding: gzip\n**** v1    0.4 vsl|    13 TxHeader     b Host: 127.0.0.1\n**** v1    0.4 vsl|    13 RxProtocol   b HTTP\/1.1\n**** v1    0.4 vsl|    13 RxStatus     b 200\n**** v1    0.4 vsl|    13 RxResponse   b Ok\n**** v1    0.4 vsl|    13 RxHeader     b Content-Length: 0\n**** v1    0.4 vsl|    11 TTL          c 1001 RFC 120 -1 -1 1365985231 0 0 0 0\n**** v1    0.4 vsl|    11 VCL_call     c fetch\n**** v1    0.4 vsl|    11 VCL_return   c deliver\n**** v1    0.4 vsl|    11 ObjProtocol  c HTTP\/1.1\n**** v1    0.4 vsl|    11 ObjResponse  c Ok\n**** v1    0.4 vsl|    13 Fetch_Body   b 4(length) cls 0 mklen 1\n**** v1    0.4 vsl|    13 Length       b 0\n**** v1    0.4 vsl|    13 BackendReuse b s1\n**** v1    0.4 vsl|    11 VCL_call     c deliver\n**** v1    0.4 vsl|    11 VCL_return   c deliver\n**** v1    0.4 vsl|    11 TxProtocol   c HTTP\/1.1\n**** v1    0.4 vsl|    11 TxStatus     c 200\n**** v1    0.4 vsl|    11 TxResponse   c Ok\n**** v1    0.4 vsl|    11 TxHeader     c Content-Length: 0\n**** v1    0.4 vsl|    11 TxHeader     c Accept-Ranges: bytes\n**** v1    0.4 vsl|    11 TxHeader     c Date: Mon, 15 Apr 2013 00:20:30 GMT\n**** v1    0.4 vsl|    11 TxHeader     c X-Varnish: 1001\n**** v1    0.4 vsl|    11 TxHeader     c Age: 0\n**** v1    0.4 vsl|    11 TxHeader     c Via: 1.1 varnish\n**** v1    0.4 vsl|    11 TxHeader     c Connection: keep-alive\n**** v1    0.4 vsl|    11 Length       c 0\n**** v1    0.4 vsl|    11 ReqEnd       c 1001 1365985230.747681856 1365985230.748583317 0.000089407 0.000833035 0.000068426\n**** v1    0.5 vsl|    11 Debug        c herding\n**   v1    1.4 Wait\n**   v1    1.4 R 15739 Status: 0000\n*    top   1.4 TEST example_ng.vtc FAILED\n\n#     top  TEST example_ng.vtc FAILED (1.428) exit=1<\/pre>\n<p>\u5931\u6557\u3059\u308b\u305f\u3081\u306b\u30ec\u30b9\u30dd\u30f3\u30b9\u306e\u30b9\u30c6\u30fc\u30bf\u30b9\u304c404\u3067\u306a\u3051\u308c\u3070\u30a8\u30e9\u30fc\u3068\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"superpre \">\nclient c1 {\n    txreq -url \"\/\"\n    rxresp\n    expect resp.status        == 404\u3000\u2605\u3053\u3053\u3092\u5909\u3048\u305f\n} -run<\/pre>\n<p>\u975e\u5e38\u306b\u9577\u304f\u3066\u4f55\u304c\u4f55\u3060\u304b\u308f\u304b\u308a\u307e\u305b\u3093\u304c\u3001\u5927\u4f53\u898b\u308b\u3079\u304d\u30dd\u30a4\u30f3\u30c8\u306f\u540c\u3058\u306a\u306e\u3067\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n<h4 id=\"hs_0780bd3a0a1f9587816889fea1c86890_header_10\">\u30ed\u30b0\u30d5\u30a9\u30fc\u30de\u30c3\u30c8<\/h4>\n<p>man\u306b\u8a18\u8f09\u3055\u308c\u3066\u3044\u308b\u901a\u308a\u3001varnishtest\u306b\u306f\u53b3\u5bc6\u306a\u5b9a\u7fa9\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u305d\u306e\u305f\u3081\u82e5\u5e72\u63fa\u308c\u304c\u3042\u308a\u3001\u5fc5\u305a\u3057\u3082\u5f53\u3066\u306f\u307e\u308b\u3082\u306e\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<table>\n<tr>\n<th>log\u306e\u30ec\u30d9\u30eb(0\uff5e4)<\/th>\n<th>\u51fa\u529b\u3057\u305f\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u540d\u524d<\/th>\n<th>\u7d4c\u904e\u6642\u9593<\/th>\n<th>\u30e1\u30c3\u30bb\u30fc\u30b8<\/th>\n<\/tr>\n<tr>\n<td> *                     <\/td>\n<td>top                              <\/td>\n<td>1.4                      <\/td>\n<td>TEST example_ng.vtc FAILED<\/td>\n<\/tr>\n<\/table>\n<h5 id=\"hs_0780bd3a0a1f9587816889fea1c86890_header_11\">\u30ec\u30d9\u30eb\u306b\u3064\u3044\u3066<\/h5>\n<p>log\u306e\u30ec\u30d9\u30eb\u304c\u4e0a\u304c\u308b\u307b\u3069\u8a73\u7d30\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<table>\n<tr>\n<th>\u30ec\u30d9\u30eb<\/th>\n<th>\u8868\u8a18<\/th>\n<th>\u5185\u5bb9                               <\/th>\n<th>\u4f8b<\/th>\n<\/tr>\n<tr>\n<td>0      <\/td>\n<td> #    <\/td>\n<td>\u30c6\u30b9\u30c8\u304c\u6210\u529f\u3057\u305f                    <\/td>\n<td> #     top  TEST example.vtc passed (0.498)<\/td>\n<\/tr>\n<tr>\n<td>0      <\/td>\n<td> ---- <\/td>\n<td>\u30c6\u30b9\u30c8\u304c\u5931\u6557\u3057\u305f\u539f\u56e0\u306a\u3069\u306e\u91cd\u8981\u306a\u30ed\u30b0<\/td>\n<td> ---- c1    0.4 EXPECT resp.status (200) == 404 (404) failed<\/td>\n<\/tr>\n<tr>\n<td>1      <\/td>\n<td> *    <\/td>\n<td>\u5404\u7a2e\u30b3\u30de\u30f3\u30c9\u306e\u30ed\u30b0               <\/td>\n<td> *    top   1.4 TEST example_ng.vtc FAILED<\/td>\n<\/tr>\n<tr>\n<td>2      <\/td>\n<td> **   <\/td>\n<td>\u5404\u7a2e\u30b3\u30de\u30f3\u30c9\u306e\u30ed\u30b0          <\/td>\n<td> **   s1    0.0 Starting server<\/td>\n<\/tr>\n<tr>\n<td>3      <\/td>\n<td> ***  <\/td>\n<td>\u5404\u7a2e\u30b3\u30de\u30f3\u30c9\u306e\u30ed\u30b0          <\/td>\n<td> ***  s1    0.4 rxreq<\/td>\n<\/tr>\n<tr>\n<td>4      <\/td>\n<td> **** <\/td>\n<td>\u5404\u7a2e\u30b3\u30de\u30f3\u30c9\u306e\u30ed\u30b0             <\/td>\n<td> **** s1    0.4 http[ 0] \uff5c GET<\/td>\n<\/tr>\n<\/table>\n<p>VCL\u306e\u30c6\u30b9\u30c8\u306e\u5834\u5408\u3067\u306f\u3001\u30ec\u30d9\u30eb0\u30684\u306e\u30ed\u30b0\u3092\u898b\u308c\u3070\u57fa\u672c\u7684\u306b\u89e3\u6c7a\u3059\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<h6 id=\"hs_0780bd3a0a1f9587816889fea1c86890_header_12\">\u629c\u7c8b\u4f8b<\/h6>\n<pre class=\"superpre \">\n**** c1    0.4 rxhdr| HTTP\/1.1 200 Ok\\r\\n\n**** c1    0.4 rxhdr| Content-Length: 0\\r\\n\n**** c1    0.4 rxhdr| Accept-Ranges: bytes\\r\\n\n**** c1    0.4 rxhdr| Date: Mon, 15 Apr 2013 00:20:30 GMT\\r\\n\n**** c1    0.4 rxhdr| X-Varnish: 1001\\r\\n\n**** c1    0.4 rxhdr| Age: 0\\r\\n\n**** c1    0.4 rxhdr| Via: 1.1 varnish\\r\\n\n**** c1    0.4 rxhdr| Connection: keep-alive\\r\\n\n**** c1    0.4 rxhdr| \\r\\n\n**** c1    0.4 http[ 0] | HTTP\/1.1\n**** c1    0.4 http[ 1] | 200\u3000\u2605\u5931\u6557\u3057\u305f\u539f\u56e0\uff08\u30b9\u30c6\u30fc\u30bf\u30b9\u304c200\uff09\n**** c1    0.4 http[ 2] | Ok\n**** c1    0.4 http[ 3] | Content-Length: 0\n**** c1    0.4 http[ 4] | Accept-Ranges: bytes\n**** c1    0.4 http[ 5] | Date: Mon, 15 Apr 2013 00:20:30 GMT\n**** c1    0.4 http[ 6] | X-Varnish: 1001\n**** c1    0.4 http[ 7] | Age: 0\n**** c1    0.4 http[ 8] | Via: 1.1 varnish\n**** c1    0.4 http[ 9] | Connection: keep-alive\n**** c1    0.4 bodylen = 0\n---- c1    0.4 EXPECT resp.status (200) == 404 (404) failed\u3000\u2605expect\u5931\u6557<\/pre>\n<h5 id=\"hs_0780bd3a0a1f9587816889fea1c86890_header_13\">\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u540d\u524d\u306b\u3064\u3044\u3066<\/h5>\n<table>\n<tr>\n<th>\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u540d<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<tr>\n<td>top<\/td>\n<td>varnishtest\u304c\u767a\u884c\u3059\u308b\u30ed\u30b0<\/td>\n<\/tr>\n<tr>\n<td>s\uff5e<\/td>\n<td>server\u304c\u767a\u884c\u3059\u308b\u30ed\u30b0<\/td>\n<\/tr>\n<tr>\n<td>v\uff5e<\/td>\n<td>varnish\u304c\u767a\u884c\u3059\u308b\u30ed\u30b0<\/td>\n<\/tr>\n<tr>\n<td>c\uff5e<\/td>\n<td>client\u304c\u767a\u884c\u3059\u308b\u30ed\u30b0<\/td>\n<\/tr>\n<\/table>\n<p>server,varnish,client\u306e\u540d\u524d\u306f<\/p>\n<pre class=\"superpre \">\nserver s1 {<\/pre>\n<p>\u306es1\u90e8\u5206\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u307e\u305f\u3053\u306e\u540d\u524d\u306f\u305d\u308c\u305e\u308cs,v,c\u304b\u3089\u59cb\u307e\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u4f8b\u3048\u3070server\u306e\u5b9a\u7fa9\u3067<\/p>\n<pre class=\"superpre \">\nserver origin1 {<\/pre>\n<p>\u3068\u3057\u305f\u5834\u5408\u306fvtc\u306e\u30a8\u30e9\u30fc\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3 id=\"hs_0780bd3a0a1f9587816889fea1c86890_header_14\">\u30b3\u30de\u30f3\u30c9\u5fdc\u7528\u7de8<\/h3>\n<p>\u3044\u307e\u307e\u3067\u3001\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u3068\u30ed\u30b0\u306e\u8aad\u307f\u65b9\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3057\u305f\u3002<br \/>\n\u3057\u304b\u3057\u3001vcl\u3092\u30c7\u30d0\u30c3\u30b0\u3059\u308b\u306e\u306b\u4fbf\u5229\u306a\u30b3\u30de\u30f3\u30c9\u304c\u4ed6\u306b\u3082\u3042\u308b\u306e\u3067\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n<h4 id=\"hs_0780bd3a0a1f9587816889fea1c86890_header_15\">server\u30b3\u30de\u30f3\u30c9<\/h4>\n<table>\n<tr>\n<th>\u30b3\u30de\u30f3\u30c9\u540d<\/th>\n<th>\u8aac\u660e<\/th>\n<th>\u4f7f\u3044\u65b9\u4f8b<\/th>\n<\/tr>\n<tr>\n<td> -repeat <\/td>\n<td>{\uff5e}\u3067\u56f2\u307e\u308c\u305f\u90e8\u5206\u3092\u6307\u5b9a\u56de\u6570\u5b9f\u884c\u3059\u308b<\/td>\n<td> -repeat 2<\/td>\n<\/tr>\n<tr>\n<td> -listen <\/td>\n<td>\u30a2\u30c9\u30ec\u30b9\u3068\u30dd\u30fc\u30c8\u3092\u6307\u5b9a\u3059\u308b<\/td>\n<td> -listen \"localhost:9821\"<\/td>\n<\/tr>\n<tr>\n<td> -start <\/td>\n<td>\u30b5\u30fc\u30d0\u3092\u958b\u59cb\u3059\u308b<\/td>\n<td> -start<\/td>\n<\/tr>\n<\/table>\n<p>\u3053\u3053\u3067\u91cd\u8981\u306a\u306e\u304c-repeat\u3067\u3059\u3002<\/p>\n<pre class=\"superpre \">\nserver s1 {\n    rxreq\n    txresp\n} -start<\/pre>\n<p>\u3068\u6307\u5b9a\u3057\u305f\u5834\u5408\u3001server\u306f\u4f55\u56de\u3067\u3082\u30ec\u30b9\u30dd\u30f3\u30b9\u3059\u308b\u308f\u3051\u3067\u306f\u306a\u304f1\u56de\u306e\u307f\u30ec\u30b9\u30dd\u30f3\u30b9\u3057\u307e\u3059\u3002<br \/>\n\u305d\u306e\u305f\u3081\u30012\u56de\u4ee5\u4e0aserver\u304c\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u53d7\u3051\u4ed8\u3051\u308b\u5834\u5408\u306f<\/p>\n<pre class=\"superpre \">\nserver s1 {\n    rxreq\n    txresp\n    rxreq\n    txresp\n} -start<\/pre>\n<p>\u304b<\/p>\n<pre class=\"superpre \">\nserver s1 -repeat 2 {\n    rxreq\n    txresp\n} -start<\/pre>\n<p>\u3068\u3044\u3063\u305f\u69d8\u306b\u66f8\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u56de\u6570\u306f\u5b9f\u969b\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u56de\u6570\u3088\u308a\u591a\u3081\u306b\u6307\u5b9a\u3057\u3066\u3082\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<h4 id=\"hs_0780bd3a0a1f9587816889fea1c86890_header_16\">varnish\u30b3\u30de\u30f3\u30c9<\/h4>\n<table>\n<tr>\n<th>\u30b3\u30de\u30f3\u30c9\u540d<\/th>\n<th>\u8aac\u660e<\/th>\n<th>\u4f7f\u3044\u65b9\u4f8b<\/th>\n<\/tr>\n<tr>\n<td> -storage <\/td>\n<td>\u30b9\u30c8\u30ec\u30fc\u30b8\u3092\u6307\u5b9a\u3059\u308b<\/td>\n<td> -storage \"-smalloc,1m\"<\/td>\n<\/tr>\n<tr>\n<td> -arg <\/td>\n<td>\u8d77\u52d5\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u6307\u5b9a<\/td>\n<td> -arg \"-p thread_pool_stack=262144\"<\/td>\n<\/tr>\n<tr>\n<td> -cli <\/td>\n<td> CLI\u30b3\u30de\u30f3\u30c9\u767a\u884c <\/td>\n<td> -cli \"vcl.list\"<\/td>\n<\/tr>\n<tr>\n<td> -vcl <\/td>\n<td> VCL\u3092\u5b9a\u7fa9\u3059\u308b <\/td>\n<td> -vcl {...}<\/td>\n<\/tr>\n<tr>\n<td> -vcl+backend <\/td>\n<td> VCL\u3092\u5b9a\u7fa9\u3059\u308b(default\u306e\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u3092\u81ea\u52d5\u751f\u6210) <\/td>\n<td> -vcl+backend {...}<\/td>\n<\/tr>\n<tr>\n<td> -start <\/td>\n<td>varnish\u3092\u958b\u59cb\u3059\u308b<\/td>\n<td> -start<\/td>\n<\/tr>\n<tr>\n<td> -stop <\/td>\n<td>varnish\u3092\u505c\u6b62\u3059\u308b<\/td>\n<td> -stop<\/td>\n<\/tr>\n<\/table>\n<h4 id=\"hs_0780bd3a0a1f9587816889fea1c86890_header_17\">client\u30b3\u30de\u30f3\u30c9<\/h4>\n<table>\n<tr>\n<th>\u30b3\u30de\u30f3\u30c9\u540d<\/th>\n<th>\u8aac\u660e<\/th>\n<th>\u4f7f\u3044\u65b9\u4f8b<\/th>\n<\/tr>\n<tr>\n<td> -repeat <\/td>\n<td>{\uff5e}\u3067\u56f2\u307e\u308c\u305f\u90e8\u5206\u3092\u6307\u5b9a\u56de\u6570\u5b9f\u884c\u3059\u308b<\/td>\n<td> -repeat 2<\/td>\n<\/tr>\n<tr>\n<td> -connect <\/td>\n<td>\u63a5\u7d9a\u5148\u3092\u6307\u5b9a<\/td>\n<td> -connect \"localhost:9821\"<\/td>\n<\/tr>\n<tr>\n<td> -run <\/td>\n<td>\u958b\u59cb\u3059\u308b<\/td>\n<td> -run<\/td>\n<\/tr>\n<\/table>\n<h4 id=\"hs_0780bd3a0a1f9587816889fea1c86890_header_18\">client\u3068server\u306e{...}\u3067\u4f7f\u3046\u30b3\u30de\u30f3\u30c9<\/h4>\n<table>\n<tr>\n<th>\u30b3\u30de\u30f3\u30c9\u540d<\/th>\n<th>\u30b3\u30de\u30f3\u30c9\u306e\u30aa\u30d7\u30b7\u30e7\u30f3<\/th>\n<th>server<\/th>\n<th>client<\/th>\n<th>\u8aac\u660e<\/th>\n<th>\u4f7f\u3044\u65b9\u4f8b<\/th>\n<\/tr>\n<tr>\n<td>timeout <\/td>\n<td> <\/td>\n<td>\u2714<\/td>\n<td>\u2714<\/td>\n<td>\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u79d2\u6570\u3092\u6307\u5b9a<\/td>\n<td>timeout 10<\/td>\n<\/tr>\n<tr>\n<td>txreq <\/td>\n<td> <\/td>\n<td> <\/td>\n<td>\u2714<\/td>\n<td>\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u4fe1<\/td>\n<td> txreq -url \"\/\"<\/td>\n<\/tr>\n<tr>\n<td> <\/td>\n<td>-url <\/td>\n<td> <\/td>\n<td>\u2714<\/td>\n<td>\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u4fe1(url\u6307\u5b9a)<\/td>\n<td> txreq -url \"\/\"<\/td>\n<\/tr>\n<tr>\n<td> <\/td>\n<td>-req <\/td>\n<td> <\/td>\n<td>\u2714<\/td>\n<td>\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u4fe1(\u30e1\u30bd\u30c3\u30c9\u6307\u5b9a)<\/td>\n<td> txreq -req \"POST\" -url \"\/\" <\/td>\n<\/tr>\n<tr>\n<td> <\/td>\n<td>-proto <\/td>\n<td> <\/td>\n<td>\u2714<\/td>\n<td>\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u4fe1(\u30d7\u30ed\u30c8\u30b3\u30eb\u6307\u5b9a)<\/td>\n<td> txreq -proto HTTP\/1.0 -url \"\/\" <\/td>\n<\/tr>\n<tr>\n<td> <\/td>\n<td>-hdr <\/td>\n<td> <\/td>\n<td>\u2714<\/td>\n<td>\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u4fe1(\u30d8\u30c3\u30c0\u6307\u5b9a)<\/td>\n<td> txreq -hdr \"hoge: hoge\" -hdr \"mage: mage\" -url \"\/\" <\/td>\n<\/tr>\n<tr>\n<td> <\/td>\n<td>-body <\/td>\n<td> <\/td>\n<td>\u2714<\/td>\n<td>\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u4fe1(\u30dc\u30c7\u30a3\u6307\u5b9a)<\/td>\n<td> txreq -req \"POST\" -url \"\/\" -body {hello}<\/td>\n<\/tr>\n<tr>\n<td>rxreq <\/td>\n<td> <\/td>\n<td>\u2714<\/td>\n<td> <\/td>\n<td>\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u53d7\u4fe1<\/td>\n<td> rxreq<\/td>\n<\/tr>\n<tr>\n<td>txresp <\/td>\n<td> <\/td>\n<td>\u2714<\/td>\n<td> <\/td>\n<td>\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u9001\u4fe1<\/td>\n<td> txresp<\/td>\n<\/tr>\n<tr>\n<td> <\/td>\n<td>-proto <\/td>\n<td>\u2714<\/td>\n<td> <\/td>\n<td>\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u9001\u4fe1(\u30d7\u30ed\u30c8\u30b3\u30eb\u6307\u5b9a)<\/td>\n<td> txresp -proto HTTP\/1.0  <\/td>\n<\/tr>\n<tr>\n<td> <\/td>\n<td>-hdr <\/td>\n<td>\u2714<\/td>\n<td> <\/td>\n<td>\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u9001\u4fe1(\u30d8\u30c3\u30c0\u6307\u5b9a)<\/td>\n<td> txresp -hdr \"hoge: hoge\" -hdr \"mage: mage\"  <\/td>\n<\/tr>\n<tr>\n<td> <\/td>\n<td>-body <\/td>\n<td>\u2714<\/td>\n<td> <\/td>\n<td>\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u9001\u4fe1(\u30dc\u30c7\u30a3\u6307\u5b9a)<\/td>\n<td> txresp -body {hello}<\/td>\n<\/tr>\n<tr>\n<td> <\/td>\n<td>-status <\/td>\n<td>\u2714<\/td>\n<td> <\/td>\n<td>\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u9001\u4fe1(\u30b9\u30c6\u30fc\u30bf\u30b9\u6307\u5b9a)<\/td>\n<td> txresp -status 404 <\/td>\n<\/tr>\n<tr>\n<td>rxresp <\/td>\n<td> <\/td>\n<td> <\/td>\n<td>\u2714<\/td>\n<td>\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u53d7\u4fe1<\/td>\n<td> rxresp<\/td>\n<\/tr>\n<tr>\n<td>expect <\/td>\n<td> <\/td>\n<td>\u2714<\/td>\n<td>\u2714<\/td>\n<td>\u5f0f\u3092\u8a55\u4fa1\u3059\u308b<\/td>\n<td> expect req.url == \"\/\"<\/td>\n<\/tr>\n<tr>\n<td>send <\/td>\n<td> <\/td>\n<td>\u2714<\/td>\n<td>\u2714<\/td>\n<td>\u305d\u306e\u307e\u307e\u9001\u4fe1<\/td>\n<td> send \"HTTP\/1.1 200 Ok\\r\\nConnection: close\\r\\n\\r\\n\"<\/td>\n<\/tr>\n<tr>\n<td>sendhex <\/td>\n<td> <\/td>\n<td>\u2714<\/td>\n<td>\u2714<\/td>\n<td>\u305d\u306e\u307e\u307e\u9001\u4fe1(16\u9032\u8868\u8a18)<\/td>\n<td> sendhex \"2e 51 30 36 54 30 b0 b4\"<\/td>\n<\/tr>\n<tr>\n<td>delay <\/td>\n<td> <\/td>\n<td>\u2714<\/td>\n<td>\u2714<\/td>\n<td>\u30b9\u30ea\u30fc\u30d7\u3059\u308b<\/td>\n<td> delay 1<\/td>\n<\/tr>\n<tr>\n<td>loop <\/td>\n<td> <\/td>\n<td>\u2714<\/td>\n<td>\u2714<\/td>\n<td>{...}\u3067\u56f2\u3093\u3060\u7b87\u6240\u3092\u6307\u5b9a\u56de\u6570\u30eb\u30fc\u30d7\u3059\u308b<\/td>\n<td> loop 2 {...}<\/td>\n<\/tr>\n<\/table>\n<p>expect\u3067\u4f7f\u3048\u308b\u6f14\u7b97\u5b50\u306f\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3067\u3059<\/p>\n<table>\n<tr>\n<th>\u6f14\u7b97\u5b50<\/th>\n<\/tr>\n<tr>\n<td>==<\/td>\n<\/tr>\n<tr>\n<td>!=<\/td>\n<\/tr>\n<tr>\n<td>><\/td>\n<\/tr>\n<tr>\n<td><<\/td>\n<\/tr>\n<tr>\n<td>>=<\/td>\n<\/tr>\n<tr>\n<td><=<\/td>\n<\/tr>\n<\/table>\n<p>delay\u3067\u306f\u4ee5\u4e0b\u306e\u8868\u8a18\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<table>\n<tr>\n<th>\u8868\u8a18<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<tr>\n<td>delay 1<\/td>\n<td>1\u79d2\u30b9\u30ea\u30fc\u30d7<\/td>\n<\/tr>\n<tr>\n<td>delay 1.5<\/td>\n<td>1.5\u79d2\u30b9\u30ea\u30fc\u30d7<\/td>\n<\/tr>\n<tr>\n<td>delay .5<\/td>\n<td>0.5\u79d2\u30b9\u30ea\u30fc\u30d7<\/td>\n<\/tr>\n<\/table>\n<h4 id=\"hs_0780bd3a0a1f9587816889fea1c86890_header_19\">shell\u30b3\u30de\u30f3\u30c9<\/h4>\n<p>shell\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"superpre \">\nshell \"echo hello\"<\/pre>\n<p>\u3068\u3044\u3063\u305f\u98a8\u306b\u4f7f\u7528\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<h3 id=\"hs_0780bd3a0a1f9587816889fea1c86890_header_20\">\u8d77\u52d5\u30aa\u30d7\u30b7\u30e7\u30f3<\/h3>\n<p>varnish\u30c6\u30b9\u30c8\u81ea\u4f53\u306e\u8d77\u52d5\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u3059<\/p>\n<table>\n<tr>\n<th>\u30aa\u30d7\u30b7\u30e7\u30f3\u540d<\/th>\n<th>\u8aac\u660e<\/th>\n<th>\u4f7f\u3044\u65b9<\/th>\n<\/tr>\n<tr>\n<td>-D<\/td>\n<td>\u30de\u30af\u30ed\u6307\u5b9a\uff08\u5f8c\u8ff0\uff09<\/td>\n<td>-Dkey=val<\/td>\n<\/tr>\n<tr>\n<td>-n<\/td>\n<td>\u30c6\u30b9\u30c8\u3092\u6307\u5b9a\u56de\u6570\u7e70\u308a\u8fd4\u3059<\/td>\n<td>-n 2<\/td>\n<\/tr>\n<tr>\n<td>-j<\/td>\n<td>\u30c6\u30b9\u30c8\u3092\u4e26\u5217\u3067\u52d5\u304b\u3059<\/td>\n<td>-j 2<\/td>\n<\/tr>\n<\/table>\n<p>varnishtest\u306f\u7d50\u69cb\u6642\u9593\u304c\u304b\u304b\u308b\u306e\u3067\u4e26\u5217\u3067\u52d5\u304b\u3057\u305f\u304f\u306a\u308a\u307e\u3059\u304c\u3001\u91cd\u3044\u306e\u30672,3\u3050\u3089\u3044\u3067\u7559\u3081\u3066\u304a\u304f\u306e\u304c\u826f\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<h3 id=\"hs_0780bd3a0a1f9587816889fea1c86890_header_21\">\u30de\u30af\u30ed\u306b\u3064\u3044\u3066<\/h3>\n<p>vtc\u4e2d\u306b<\/p>\n<pre class=\"superpre \">\ninclude \"${vclpath}\/default.vcl\";<\/pre>\n<p>\u3068\u3044\u3063\u305f\u98a8\u306b\u8a18\u8ff0\u3057\u3066\u304a\u3044\u3066<\/p>\n<pre class=\"superpre \">\nvarnishtest -Dvclpath=\/etc\/varnish example.vtc<\/pre>\n<p>\u3068\u5b9f\u884c\u3059\u308b\u3068\u3001\u7f6e\u63db\u3055\u308c\u3066<\/p>\n<pre class=\"superpre \">\ninclude \"\/etc\/varnish\/default.vcl\";<\/pre>\n<p>\u4e0a\u8a18\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u975e\u5e38\u306b\u4fbf\u5229\u3067\u3059\u304c\u4f8b\u3048\u3070vcl\u306einclude\u3092\u4f7f\u3063\u305f\u5148\u306b\u3064\u3044\u3066\u306f\u7f6e\u63db\u3055\u308c\u306a\u3044\u306e\u3067\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<p>\u307e\u305f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u5b9a\u7fa9\u3055\u308c\u308b\u3082\u306e\u3068\u3057\u3066<\/p>\n<table>\n<tr>\n<th>\u30de\u30af\u30ed\u540d<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<tr>\n<td>pwd <\/td>\n<td>\u73fe\u5728\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea<\/td>\n<\/tr>\n<tr>\n<td>date <\/td>\n<td>\u73fe\u5728\u6642\u523b<\/td>\n<\/tr>\n<tr>\n<td>tmpdir <\/td>\n<td>\u3053\u306e\u30c6\u30b9\u30c8\u3067\u4f7f\u3063\u3066\u308b\u30c6\u30f3\u30dd\u30e9\u30ea\u30c7\u30a3\u30ec\u30af\u30c8\u30ea<\/td>\n<\/tr>\n<tr>\n<td>[server\u540d]_sock <\/td>\n<td>\u6307\u5b9aserver\u306e\u30a2\u30c9\u30ec\u30b9\u30fb\u30dd\u30fc\u30c8<\/td>\n<\/tr>\n<tr>\n<td>[varnish\u540d]_sock <\/td>\n<td>\u6307\u5b9avarnish\u306e\u30a2\u30c9\u30ec\u30b9\u30fb\u30dd\u30fc\u30c8<\/td>\n<\/tr>\n<\/table>\n<p>\u306a\u3069\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h3 id=\"hs_0780bd3a0a1f9587816889fea1c86890_header_22\">\u305d\u306e\u4ed6\u8a18\u8ff0\u3059\u308b\u969b\u306e\u7559\u610f\u70b9\u306a\u3069<\/h3>\n<h4 id=\"hs_0780bd3a0a1f9587816889fea1c86890_header_23\">server,varnish,client\u306b\u3064\u3044\u3066<\/h4>\n<p>\u5fc5\u305a3\u3064\u304c\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002server\u304c\u306a\u304f\u3066\u3082\u3044\u3044\u3067\u3059\u3057\u3001varnish\u304c\u306a\u304f\u3066\u3082OK\u3067\u3059\u3002<\/p>\n<h4 id=\"hs_0780bd3a0a1f9587816889fea1c86890_header_24\">\u30b3\u30e1\u30f3\u30c8\u306b\u3064\u3044\u3066<\/h4>\n<p>vtc\u4e2d\u306b\u30b3\u30e1\u30f3\u30c8\u3092\u5165\u308c\u305f\u3044\u5834\u5408\u306f\u5148\u982d\u884c\u306b#\u3092\u5165\u308c\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h4 id=\"hs_0780bd3a0a1f9587816889fea1c86890_header_25\">\u8907\u6570\u884c\u306e\u30c6\u30ad\u30b9\u30c8\u306e\u4f7f\u3044\u65b9<\/h4>\n<p>\u30c6\u30ad\u30b9\u30c8\u306f\u901a\u5e38\"...\"\u3067\u56f2\u307e\u308c\u305f\u7bc4\u56f2\u3067\u3059\u304c\u3001\u8907\u6570\u884c\u3092\u6307\u5b9a\u3057\u305f\u3044\u5834\u5408\u306f{...}\u3067\u56f2\u3080\u3053\u3068\u3067\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<h5 id=\"hs_0780bd3a0a1f9587816889fea1c86890_header_26\">\u5358\u4e00\u884c<\/h5>\n<pre class=\"superpre \">\n\"hoge\"<\/pre>\n<h5 id=\"hs_0780bd3a0a1f9587816889fea1c86890_header_27\">\u8907\u6570\u884c<\/h5>\n<pre class=\"superpre \">\n{\nhoge\nfuga\n}<\/pre>\n<h4 id=\"hs_0780bd3a0a1f9587816889fea1c86890_header_28\">\u8b0e\u306e\u30a8\u30e9\u30fc\u3078\u306e\u5bfe\u51e6(Syntax)<\/h4>\n<pre class=\"superpre \">\n---- top   0.0 Unknown command: \"rxreq\"<\/pre>\n<p>rxreq\u306f\u3042\u308b\u306e\u306b\u30a8\u30e9\u30fc\u306b\u306a\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002\u5927\u62b5\u306e\u5834\u5408\u306f\u524d\u306e\u884c\u306b\u554f\u984c\u304c\u3042\u308b\u30b1\u30fc\u30b9\u304c\u591a\u3044\u3067\u3059\u3002<\/p>\n<h5 id=\"hs_0780bd3a0a1f9587816889fea1c86890_header_29\">NG\u30d1\u30bf\u30f3<\/h5>\n<pre class=\"superpre \">\nserver s1{\n    rxreq\n    txresp\n}-start<\/pre>\n<h5 id=\"hs_0780bd3a0a1f9587816889fea1c86890_header_30\">OK\u30d1\u30bf\u30f3<\/h5>\n<pre class=\"superpre \">\nserver s1 {\n    rxreq\n    txresp\n}-start<\/pre>\n<p>\u9055\u3044\u306fs1\u3068{\u306e\u9593\u306b\u30b9\u30da\u30fc\u30b9\u304c\u3042\u308b\u3053\u3068\u306a\u306e\u3067\u3059\u304c\u3001\u3053\u3046\u3044\u3046\u3068\u3053\u308d\u304c\u5f31\u3044\u306e\u3067\u3088\u304f\u308f\u304b\u3089\u306a\u3044\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u5834\u5408\u306f\u30b9\u30da\u30fc\u30b9\u7701\u7565\u3057\u3066\u3044\u306a\u3044\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044<\/p>\n<h4 id=\"hs_0780bd3a0a1f9587816889fea1c86890_header_31\">\u7570\u5e38\u7d42\u4e86\u6642<\/h4>\n<p>ctrl+c\u3067\u7d42\u4e86\u3055\u305b\u305f\u3068\u304d\u3084\u4f55\u3089\u304b\u306e\u539f\u56e0\u3067\u7570\u5e38\u7d42\u4e86\u3057\u305f\u5834\u5408\u306f\u3001\/tmp\u306bvtc.\uff5e\u3067\u59cb\u307e\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u6b8b\u3063\u3066\u3044\u308b\u30b1\u30fc\u30b9\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u6848\u5916\u30b5\u30a4\u30ba\u304c\u5927\u304d\u3044\u306e\u3067\u524a\u9664\u3059\u308b\u3068\u826f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<h3 id=\"hs_0780bd3a0a1f9587816889fea1c86890_header_32\">\u307e\u3068\u3081<\/h3>\n<p>\u4ee5\u4e0a\u304cvarnishtest\u306e\u4f7f\u3044\u65b9\u3067\u3057\u305f\u3002<br \/>\n\u5b9f\u306f\u3001\u4ed6\u306b\u3082sema\uff08\u30bb\u30de\u30d5\u30a9\u3092\u4f7f\u3063\u305f\u540c\u671f\uff09\u306a\u3069\u306e\u30b3\u30de\u30f3\u30c9\u3082\u3042\u308b\u306e\u3067\u3059\u304c\u3001VCL\u3092\u30c6\u30b9\u30c8\u3059\u308b\u5834\u5408\u306f\u3053\u308c\u3050\u3089\u3044\u77e5\u3063\u3066\u304a\u3051\u3070\u5341\u5206\u3060\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\nvarnish\u306f\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u3088\u3046\u306b\u8907\u96d1\u306a\u6761\u4ef6\u3082\u66f8\u304f\u3053\u3068\u304c\u3067\u304d\u308b\u305f\u3081\u3001\u8a00\u3063\u3066\u3057\u307e\u3046\u3068\u30d0\u30b0\u304c\u6df7\u5165\u3057\u3084\u3059\u3044\u3068\u3082\u8a00\u3048\u307e\u3059\u3002<br \/>\n\u305d\u306e\u305f\u3081\u3046\u307e\u304fvarnishtest\u3092\u4f7f\u3046\u3068\u826f\u3044\u306e\u3067\u306f\u306a\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<hr>\n<h3 id=\"hs_0780bd3a0a1f9587816889fea1c86890_header_33\">\u53c2\u8003\u30da\u30fc\u30b8<\/h3>\n<p><a href=\"https:\/\/www.varnish-cache.org\/\">Varnish Cache\u516c\u5f0f\u30da\u30fc\u30b8<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u307e\u3057\u3066\u3001\u30b5\u30fc\u30d0\u57fa\u76e4\u30c1\u30fc\u30e0\u306e\u7530\u4e2d\u7965\u5e73(@xcir)\u3067\u3059\u3002 \u6700\u8fd1\u5165\u793e\u3057\u307e\u3057\u3066\u3001\u30c1\u30fc\u30e0\u3067\u306f\u3044\u308f\u306a\u3061\u3083\u3093\u3068\u547c\u3070\u308c\u3066\u3044\u307e\u3059\u3002\u3088\u308d\u3057\u304f\u304a\u9858\u3044\u3057\u307e\u3059\u3002 \u5165\u793e\u3057\u3066\u304b\u3089GREE\u306e\u914d\u4fe1\u30b7\u30b9\u30c6\u30e0\u3092Varnish Cache\uff08\u4ee5\u4e0bVarn [&hellip;]<\/p>\n","protected":false},"author":136,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[9],"tags":[52],"class_list":["post-7966","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-info","tag-varnish-cache"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/posts\/7966","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/users\/136"}],"replies":[{"embeddable":true,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/comments?post=7966"}],"version-history":[{"count":3,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/posts\/7966\/revisions"}],"predecessor-version":[{"id":21176,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/posts\/7966\/revisions\/21176"}],"wp:attachment":[{"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/media?parent=7966"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/categories?post=7966"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/tags?post=7966"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}