{"id":1751,"date":"2015-01-25T20:26:00","date_gmt":"2015-01-25T11:26:00","guid":{"rendered":"http:\/\/blog.xcir.net\/?p=1751"},"modified":"2015-01-25T20:35:02","modified_gmt":"2015-01-25T11:35:02","slug":"varnish%e3%82%92%e5%a4%9a%e6%ae%b5%e3%81%ab%e3%81%99%e3%82%8b%e5%88%a9%e7%82%b9%e3%81%a8%e6%b3%a8%e6%84%8f%e3%81%99%e3%82%8b%e3%81%a8%e3%81%93%e3%82%8d","status":"publish","type":"post","link":"https:\/\/blog.xcir.net\/?p=1751","title":{"rendered":"Varnish\u3092\u591a\u6bb5\u306b\u3059\u308b\u5229\u70b9\u3068\u6ce8\u610f\u3059\u308b\u3068\u3053\u308d"},"content":{"rendered":"<p>\u5c0f\u30cd\u30bf\u3067\u3059<br \/>\nVarnish\u3092\u4f7f\u3046\u4e0a\u3067\u5197\u9577\u5316\u3092\u3069\u3046\u3057\u3088\u3046\u3068\u60a9\u3080\u3053\u3068\u304c\u591a\u3005\u6709\u308a\u307e\u3059\u3002<br \/>\n\u5358\u7d14\u306b\u6a2a\u306b\u4e26\u3079\u3066LB\u3067\u30d0\u30e9\u30f3\u30b7\u30f3\u30b0\u3057\u3066\u3082\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u540c\u671f\u3092\u3069\u3046\u3057\u3088\u3046\u3068\u3044\u3046\u554f\u984c\u306b\u3076\u3061\u5f53\u305f\u308a\u307e\u3059\u3002<br \/>\nVarnishSoftware\u304c\u30b5\u30d6\u30b9\u30af\u30ea\u30d7\u30b7\u30e7\u30f3\u3067\u63d0\u4f9b\u3057\u3066\u3044\u308b<a href=\"https:\/\/www.varnish-software.com\/what-is-varnish-plus\">VarnishPlus<\/a>\u3067\u306f\u540c\u4e00\u968e\u5c64\u306eVarnish\u306b\u304a\u3044\u3066\u30ad\u30e3\u30c3\u30b7\u30e5\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u884c\u3046<a href=\"https:\/\/www.varnish-software.com\/product\/varnish-high-availability\">Varnish High Availability<\/a>\u3068\u3044\u3046\u6a5f\u80fd\u304c\u5b58\u5728\u3057\u307e\u3059\u304c\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u7248\u306eVarnish\u3067\u306f\u5b58\u5728\u3057\u307e\u305b\u3093\u3002<br \/>\n\uff08VarnishPlus\u306b\u3064\u3044\u3066\u306f\u305d\u306e\u3046\u3061\u8a18\u4e8b\u66f8\u3053\u3046\u3068\u601d\u3044\u307e\u3059\uff09<br \/>\n\u5f37\u5f15\u306bVCL\u3067Squid\u306esibling\u306e\u3088\u3046\u306a\u52d5\u304d\u3092\u3059\u308b\u3088\u3046\u306b\u66f8\u304f\u3053\u3068\u3082\u51fa\u6765\u306a\u304f\u306a\u3044\u306e\u3067\u3059\u304c\u500b\u4eba\u7684\u306b\u306f\u30aa\u30b9\u30b9\u30e1\u3067\u304d\u307e\u305b\u3093\u3002<br \/>\n\u5e7e\u3064\u304b\u7406\u7531\u304c\u3042\u308b\u306e\u3067\u3059\u304c\u4e00\u756a\u5927\u304d\u3044\u7406\u7531\u304cRace condition\u306b\u9665\u308b\u304b\u3089\u3067\u3059\u3002<br \/>\nVarnish\u306f\u3053\u308c\u306fThundering Herd\u554f\u984c\u306b\u5bfe\u51e6\u3059\u308b\u305f\u3081\u306b\u540c\u6642\u306b\u540c\u3058\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u6765\u305f\u5834\u5408\u3067\u3082\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\/\u30aa\u30ea\u30b8\u30f3\u306b\u884c\u304f\u30ea\u30af\u30a8\u30b9\u30c8\u306f\u3072\u3068\u3064\u3067\u3059\u3002<br \/>\n\u7c21\u5358\u306b\u3044\u3046\u3068\u30ed\u30c3\u30af\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u306f\u5358\u4f53\u30b5\u30fc\u30d0\u3067\u306f\u3046\u307e\u304f\u52d5\u304d\u307e\u3059\u304c\u540c\u4e00\u968e\u5c64\u306b\u304a\u3044\u3066\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u540c\u671f\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u554f\u984c\u304c\u8d77\u304d\u307e\u3059\u3002<br \/>\n<a href=\"http:\/\/blog.xcir.net\/wp-content\/uploads\/2015\/01\/hib.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.xcir.net\/wp-content\/uploads\/2015\/01\/hib.png\" alt=\"hib\" width=\"374\" height=\"208\" class=\"aligncenter size-full wp-image-1765\" \/><\/a><br \/>\n\u56f3\u306e\u3088\u3046\u306b\u540c\u6642\u306b\u540c\u3058\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u6765\u3066\u3001\u3069\u3061\u3089\u3082\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u6301\u3063\u3066\u3044\u306a\u3044\u5834\u5408\u306bRace condition\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u3053\u308c\u3092\u9632\u3050\u305f\u3081\u306breq.hash_ignore_busy\u3092true\u306b\u3059\u308b\u3068\u3044\u3046\u624b\u3082\u3042\u308a\u307e\u3059\u304c\u53f0\u6570\u304c\u5897\u3048\u305f\u6642\u306b\u3069\u3046\u3059\u308b\u304b\u3068\u304b\u904b\u7528\u304c\u624b\u9593\u3067\u3059\u3057\u3001VCL\u3092\u30df\u30b9\u3063\u305f\u3089\u7834\u7dbb\u3059\u308b\u3088\u3046\u306a\u5371\u967a\u3092\u6301\u3064\u3079\u304d\u3067\u306f\u306a\u3044\u3068\u8003\u3048\u3066\u3044\u307e\u3059\u3002<br \/>\n\u3064\u307e\u308a\u540c\u4e00\u968e\u5c64\u306b\u304a\u3044\u3066\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u5b89\u5168\u304b\u3064\u7c21\u5358\u306b\u540c\u671f\u3059\u308b\u65b9\u6cd5\u306fVarnishPlus\u4ee5\u5916\u306b\u5b58\u5728\u3057\u307e\u305b\u3093\u3002<br \/>\n\u307e\u305f\u3001Varnish\u306frestart\u3059\u308b\u3068\u57fa\u672c\u7684\u306b\u30ad\u30e3\u30c3\u30b7\u30e5\u304c\u3059\u3079\u3066\u5439\u304d\u98db\u3073\u307e\u3059\u3002<br \/>\npersistent\u3082\u3042\u308b\u3058\u3083\u306a\u3044\u304b\u3068\u3044\u3046\u8a71\u3082\u3042\u308a\u307e\u3059\u304c\u975e\u63a8\u5968\u306b\u306a\u3063\u305f\u3046\u3048\u904b\u7528\u4e0a\u30b1\u30a2\u3059\u3079\u304d\u554f\u984c\u304c\u591a\u304f\u7656\u304c\u5f37\u904e\u304e\u3066\u666e\u901a\u306e\u4eba\u306b\u306f\u4f7f\u3044\u3065\u3089\u3044\u3067\u3059\u3002<\/p>\n<p>\u3053\u308c\u3089\u3082\u542b\u3081\u3066\u69d8\u3005\u306a\u554f\u984c\u306b\u5bfe\u51e6\u3059\u308b\u305f\u3081\u306b\u591a\u6bb5\u69cb\u6210\u3092\u7d44\u3080\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u5168\u4f53\u3067\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u540c\u671f<\/li>\n<li>\u91cd\u8907\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u3088\u308b\u30aa\u30ea\u30b8\u30f3\u8ca0\u8377<\/li>\n<li>\u30b5\u30fc\u30d0\u30c0\u30a6\u30f3\u6642\u306e\u30aa\u30ea\u30b8\u30f3\u8ca0\u8377<\/li>\n<li>\u52b9\u7387\u7684\u306a\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u4fdd\u6301<\/li>\n<\/ul>\n<p>\u4e0a\u8a18\u306f\u554f\u984c\u306e\u4e00\u90e8\u3067\u3059\u304c\uff11\u3064\u305a\u3064\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n<p><strong>\u5168\u4f53\u3067\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u540c\u671f<\/strong><br \/>\n\u5168\u4f53\u3067\u30ad\u30e3\u30c3\u30b7\u30e5\u304c\u540c\u671f\u3055\u308c\u3066\u3044\u308b\u3068\u3044\u3046\u3053\u3068\u306f\u3069\u3046\u3044\u3046\u3053\u3068\u3067\u3057\u3087\u3046\u304b\uff1f<br \/>\n\u3042\u304f\u307e\u3067\u500b\u4eba\u7684\u306a\u8003\u3048\u3067\u3059\u304c\u3001\u5168\u4f53\u3067TTL\u306e\u6574\u5408\u6027\u304c\u3068\u308c\u3066\u3044\u308b\u3053\u3068\u3060\u3068\u8003\u3048\u3066\u3044\u307e\u3059\u3002<br \/>\n\u4f8b\u3048\u3070TTL\u304c60\u79d2\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3068Varnish2\u53f0\u3067\u8003\u3048\u3066\u307f\u307e\u3057\u3087\u3046<\/p>\n<ol>\n<li>Varnish-1\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u30ad\u30e3\u30c3\u30b7\u30e5\u3055\u308c\u308b(TTL=60s)<\/li>\n<li>30\u79d2\u307e\u3064<\/li>\n<li>Varnish-2\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u30ad\u30e3\u30c3\u30b7\u30e5\u3055\u308c\u308b(TTL=<strong>30s<\/strong>)<\/li>\n<li>\u3055\u3089\u306b30\u79d2\u5f8c<\/li>\n<li>Varnish-1\/2\u4e21\u65b9\u3067\u30ad\u30e3\u30c3\u30b7\u30e5\u304cexpire\u3059\u308b<\/li>\n<\/ol>\n<p>\u3053\u3093\u306a\u304b\u3093\u3058\u3067\u3059\u3002<br \/>\n\u3064\u307e\u308a\u6700\u521d\u306b\u30a2\u30af\u30bb\u30b9\u3055\u308c\u305f\u6642\u9593\u3092\u5168\u4f53\u3067\u628a\u63e1\u3057\u3066\u3044\u3066\u3001TTL\u5185\u3067\u3042\u308c\u3070\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u4fdd\u6301\u3057\u3066\u3044\u306a\u3044\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3067\u3082\u7d4c\u904e\u6642\u9593\u3092\u6e1b\u7b97\u3057\u3066\u304a\u304f\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<br \/>\n\u3053\u308c\u306f\u9759\u7684\u30b3\u30f3\u30c6\u30f3\u30c4\u3067\u4e0a\u66f8\u304d\u3092\u3057\u306a\u3044\u306e\u3067\u3042\u308c\u3070\u3055\u307b\u3069\u8003\u3048\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u304c(\u6d88\u3055\u308c\u305f\u3089ban\u3059\u308c\u3070OK\uff09\u52d5\u7684\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u5834\u5408\u306f\u6ce8\u610f\u3092\u6255\u3046\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u3053\u3093\u306a\u30b1\u30fc\u30b9\u3092\u8003\u3048\u3066\u307f\u307e\u3057\u3087\u3046<\/p>\n<ul>\n<li>10\u5206\u6bce\u306b\u66f4\u65b0\u3055\u308c\u308b\u30e9\u30f3\u30ad\u30f3\u30b0\u30da\u30fc\u30b8\u304c\u3042\u308b<\/li>\n<li>\u3057\u304b\u3057\u5b9f\u969b\u306f\u30a2\u30af\u30bb\u30b9\u3055\u308c\u308b\u5ea6\u306b\u96c6\u8a08\u3055\u308c\u3066Varnish\u5074\u3067TTL\u309210\u5206\u3068\u3057\u3066\u3044\u308b<\/li>\n<\/ul>\n<p>\u3053\u306e\u5834\u5408\u3067\u540c\u671f\u304c\u3068\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u30a2\u30af\u30bb\u30b9\u306e\u5ea6\u306b\u6700\u65b0\u306e\u30e9\u30f3\u30ad\u30f3\u30b0\u3060\u3063\u305f\u308a\u3001\u5c11\u3057\u524d\u306e\u30e9\u30f3\u30ad\u30f3\u30b0\u3060\u3063\u305f\u308a\u3068\u76ee\u307e\u3050\u308b\u3057\u304f\u5909\u308f\u308b\u53ef\u80fd\u6027\u304c\u9ad8\u3044\u3067\u3059\u3002<br \/>\n\u305d\u3053\u3067\u591a\u6bb5\u69cb\u6210\u3067\u3059\u3002<br \/>\n<a href=\"http:\/\/blog.xcir.net\/wp-content\/uploads\/2015\/01\/tiv.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.xcir.net\/wp-content\/uploads\/2015\/01\/tiv.png\" alt=\"tiv\" width=\"425\" height=\"381\" class=\"aligncenter size-full wp-image-1776\" \/><\/a><br \/>\nVarnish\u306e\u6a19\u6e96\u3067\u7528\u610f\u3055\u308c\u3066\u3044\u308bdirector\u306f\u30e9\u30f3\u30c0\u30e0\u3084\u30cf\u30c3\u30b7\u30e5\u7b49\u3067\u632f\u308a\u5206\u3051\u304c\u53ef\u80fd\u3067\u3059\u3002<br \/>\nVarnish\u304c\u30ad\u30e3\u30c3\u30b7\u30e5\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u7279\u5b9a\u3059\u308b\u306e\u306f<a href=\"https:\/\/github.com\/varnish\/Varnish-Cache\/blob\/63728f8839d47b308fd269cfc5bac2d2ff8a7f16\/bin\/varnishd\/builtin.vcl#L87\">Host\u3068URL\u3092\u4f7f\u3063\u3066\u3044\u307e\u3059<\/a>\u3002(server.ip\u3082\u4f7f\u3063\u3066\u306f\u5c45\u307e\u3059\u304c\u3053\u3053\u3067\u306f\u4e00\u65e6\u7f6e\u3044\u3066\u304a\u304d\u307e\u3059)<br \/>\n\u305d\u3053\u3067\u540c\u3058\u30ad\u30fc\u3092\u4f7f\u3063\u3066\u30cf\u30c3\u30b7\u30e5\u632f\u308a\u5206\u3051\u3092\u884c\u3046\u3053\u3068\u3067\u540c\u3058Host\u3068URL\u3092\u4fdd\u3064\u5834\u5408\u306f\u5e38\u306b\u540c\u30582\u6bb5\u76ee\u306eVarnish\u306b\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; \">\n\r\nvcl 4.0;\r\nimport directors;\r\nprobe healthcheck {\r\n    .request =\r\n            &quot;GET \/healthcheck\/check.html HTTP\/1.1&quot;\r\n            &quot;Host: xxxx.xxxx&quot;\r\n            &quot;Connection: close&quot;;\r\n    .timeout           = 2s;\r\n    .window            = 5;\r\n    .threshold         = 3;\r\n    .interval          = 1s;\r\n}\r\n\r\nbackend ws01 {.probe=healthcheck;.host = &quot;192.168.1.1&quot;;.port = &quot;80&quot;;}\r\nbackend ws02 {.probe=healthcheck;.host = &quot;192.168.1.2&quot;;.port = &quot;80&quot;;}\r\n\r\nsub vcl_init{\r\n  new ws_hash = directors.hash();\r\n  ws_hash.add_backend(ws01, 1.0);\r\n  ws_hash.add_backend(ws02, 1.0);\r\n}\r\nsub vcl_recv{\r\n  set req.backend_hint = ws_hash.backend(req.url + &quot;:&quot; + req.http.host);\r\n}\r\n\n<\/pre>\n<p>Varnish\u306f\u30ad\u30e3\u30c3\u30b7\u30e5\u3057\u3066\u304b\u3089\u306e\u7d4c\u904e\u6642\u9593\u3067\u3042\u308bAge\u30d8\u30c3\u30c0\u3092\u30ec\u30b9\u30dd\u30f3\u30b9\u3057\u3001\u307e\u305f\u3053\u308c\u3092\u89e3\u91c8\u3057\u3066TTL\u304b\u3089\u6e1b\u7b97\u3057\u307e\u3059\u3002<br \/>\n\u3064\u307e\u308a\u56f3\u306e\u3088\u3046\u306a\u69cb\u6210\u3067Hash\u632f\u308a\u5206\u3051\u3092\u884c\u3063\u305f\u5834\u5408\uff08TTL\u306f60\u79d2\u3068\u3057\u307e\u3059\uff09<\/p>\n<ol>\n<li>(\u9ed2\u7dda)\/hoge\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3002<\/li>\n<li>1A\u306b\u30ad\u30e3\u30c3\u30b7\u30e5\u304c\u306a\u3044\u306e\u30672A\u306b\u30ea\u30af\u30a8\u30b9\u30c8<\/li>\n<ol>\n<li>2A\u306b\u30ad\u30e3\u30c3\u30b7\u30e5\u304c\u306a\u3044\u306e\u3067\u30aa\u30ea\u30b8\u30f3\u306b\u30ea\u30af\u30a8\u30b9\u30c8<\/li>\n<li>2A\u3067\u30ad\u30e3\u30c3\u30b7\u30e5\u3059\u308b(TTL=60s\/Age=0s)<\/li>\n<li>1A\u3067\u30ad\u30e3\u30c3\u30b7\u30e5\u3059\u308b(TTL=60s\/Age=0s)<\/li>\n<\/ol>\n<li>10\u79d2\u5f85\u3064<\/li>\n<li>(\u8d64\u7dda)\/hoge\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3002<\/li>\n<li>1B\u306b\u30ad\u30e3\u30c3\u30b7\u30e5\u304c\u306a\u3044\u306e\u30672A\u306b\u30ea\u30af\u30a8\u30b9\u30c8<\/li>\n<ol>\n<li>2A\u304c\u30ec\u30b9\u30dd\u30f3\u30b9(Age=10s)<\/li>\n<li>1B\u3067\u30ad\u30e3\u30c3\u30b7\u30e5\u3059\u308b(TTL=60s\/Age=10s)<\/li>\n<\/ol>\n<li>10\u79d2\u5f85\u3064<\/li>\n<li>(\u9752\u7dda)\/hoge\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3002<\/li>\n<li>1C\u306b\u30ad\u30e3\u30c3\u30b7\u30e5\u304c\u306a\u3044\u306e\u30672A\u306b\u30ea\u30af\u30a8\u30b9\u30c8<\/li>\n<ol>\n<li>2A\u304c\u30ec\u30b9\u30dd\u30f3\u30b9(Age=20s)<\/li>\n<li>1c\u3067\u30ad\u30e3\u30c3\u30b7\u30e5\u3059\u308b(TTL=60s\/Age=20s)<\/li>\n<\/ol>\n<li>40\u79d2\u5f8c<\/li>\n<li>1A\/1B\/1C\/2A\u306b\u304a\u3044\u3066TTL=Age\u3068\u306a\u308a\u30ad\u30e3\u30c3\u30b7\u30e5\u304cExpire\u3059\u308b<\/li>\n<\/ol>\n<p><small>(Expire\u5468\u8fba\u306e\u8a08\u7b97\u306f\u5909\u6570\u304c\u591a\u304f\u308f\u308a\u304b\u3057\u8907\u96d1\u306a\u3093\u3067\u3059\u304c\u3053\u3053\u3067\u306f\u5358\u7d14\u5316\u3057\u3066\u3044\u307e\u3059)<\/small><br \/>\n\u3053\u306e\u3088\u3046\u306b\u3059\u3079\u3066\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u540c\u6642\u306b\u6d88\u3048\u308b\u3053\u3068\u304c\u3042\u308b\u7a0b\u5ea6\u671f\u5f85\u3067\u304d\u307e\u3059\u3002<br \/>\n\u3053\u3053\u3067\u3042\u308b\u7a0b\u5ea6\u3068\u3057\u3066\u3044\u308b\u306e\u306fexpire\u524d\u306bnuke\u3057\u3066\u3057\u307e\u3063\u305f\u308a\u30011\u6bb5\u76ee\u306b\u884c\u304d\u6e21\u3063\u3066\u306a\u3044\u72b6\u614b\u30672\u6bb5\u76ee\u304c\u6b7b\u3093\u3060\u308a\u3057\u305f\u6642\u306e\u3053\u3068\u306f\u8003\u3048\u3066\u3044\u306a\u3044\u304b\u3089\u3067\u3059\u3002<br \/>\n\u3053\u308c\u3082\u8003\u616e\u306b\u5165\u308c\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u306f\u52d5\u7684\u30b3\u30f3\u30c6\u30f3\u30c4\u5074\u3067\u9069\u5207\u306a\u30d8\u30c3\u30c0\u3092\u3064\u3051\u308b\u5fc5\u8981\u304c\u3042\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n<p><strong>\u91cd\u8907\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u3088\u308b\u30aa\u30ea\u30b8\u30f3\u8ca0\u8377<\/strong><br \/>\nVarnish\u3092\u8907\u6570\u4e26\u3079\u308b\u7406\u7531\u306f\u3044\u304f\u3064\u304b\u3042\u308a\u307e\u3059\u3002\u5197\u9577\u69cb\u6210\u3092\u53d6\u308b\u305f\u3081\u306b\u3060\u3063\u305f\u308a\u3001\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u304c\u5897\u3048\u3066\u304d\u305f\u306e\u3067\u305d\u308c\u3092\u634c\u304f\u305f\u3081\u306e\u5897\u8a2d\u3060\u3063\u305f\u308a\u3067\u3059\u3002<br \/>\n<a href=\"http:\/\/blog.xcir.net\/wp-content\/uploads\/2015\/01\/dup.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.xcir.net\/wp-content\/uploads\/2015\/01\/dup.png\" alt=\"dup\" width=\"454\" height=\"270\" class=\"aligncenter size-full wp-image-1782\" \/><\/a><br \/>\n\u5358\u7d14\u306b\u6a2a\u306b\u4e26\u3079\u3066\u3057\u307e\u3046\u3068\u6700\u60aa\u3001\u540c\u3058\u30ea\u30af\u30a8\u30b9\u30c8\u3067\u6700\u5927\u4e26\u3079\u305f\u53f0\u6570\u5206\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u6765\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u3053\u308c\u3082\u591a\u6bb5\u69cb\u6210\u306b\u3059\u308b\u3053\u3068\u3067\u89e3\u6c7a\u3067\u304d\u307e\u3059\u3002<br \/>\n<a href=\"http:\/\/blog.xcir.net\/wp-content\/uploads\/2015\/01\/tiv.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.xcir.net\/wp-content\/uploads\/2015\/01\/tiv.png\" alt=\"tiv\" width=\"425\" height=\"381\" class=\"aligncenter size-full wp-image-1776\" \/><\/a><br \/>\n\u540c\u4e00\u30ea\u30af\u30a8\u30b9\u30c8\u306f2\u6bb5\u76ee\u3067\u5fc5\u305a\u540c\u4e00\u30b5\u30fc\u30d0\u3092\u7d4c\u7531\u3059\u308b\u305f\u3081\u306b1\u6bb5\u76ee\u304c\u3044\u304f\u3089\u5897\u3048\u3088\u3046\u3068\u3082\u30aa\u30ea\u30b8\u30f3\u306b\u884c\u304f\u30ea\u30af\u30a8\u30b9\u30c8\u306f1\u3064\u3067\u3059\u3002<\/p>\n<p><strong>\u30b5\u30fc\u30d0\u30c0\u30a6\u30f3\u6642\u306e\u30aa\u30ea\u30b8\u30f3\u8ca0\u8377<\/strong><br \/>\n\u30ad\u30e3\u30c3\u30b7\u30e5\u30b5\u30fc\u30d0\u304c\u843d\u3061\u308c\u3070\u5f53\u7136\u3067\u3059\u304c\u30ad\u30e3\u30c3\u30b7\u30e5\u304c\u7121\u304f\u306a\u308b\u306e\u3067\u518d\u5ea6\u30aa\u30ea\u30b8\u30f3\u306b\u53d6\u5f97\u3057\u306b\u884c\u304d\u307e\u3059\u3002<br \/>\n<a href=\"http:\/\/blog.xcir.net\/wp-content\/uploads\/2015\/01\/fail.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.xcir.net\/wp-content\/uploads\/2015\/01\/fail.png\" alt=\"fail\" width=\"399\" height=\"724\" class=\"aligncenter size-full wp-image-1790\" \/><\/a><br \/>\n\u30ad\u30e3\u30c3\u30b7\u30e5\u306b\u4f9d\u5b58\u3057\u3066\u3044\u308b\u30b7\u30b9\u30c6\u30e0\u307b\u3069\u30ad\u30e3\u30c3\u30b7\u30e5\u304c\u5439\u304d\u98db\u3093\u3060\u6642\u306b\u30aa\u30ea\u30b8\u30f3\u306e\u8ca0\u8377\u304c\u4e00\u6c17\u306b\u4e0a\u304c\u308a\u8ca0\u8377\u304c\u5897\u3048\u3001\u6700\u60aa\u306e\u5834\u5408\u9023\u9396\u969c\u5bb3\u306b\u306a\u308b\u3053\u3068\u304c\u6709\u308a\u307e\u3059\u3002<br \/>\n\u3057\u304b\u3057\u591a\u6bb5\u69cb\u6210\u3092\u7d44\u3093\u3067\u3044\u308b\u5834\u5408\u306f\u4f59\u308a\u5f71\u97ff\u3092\u53d7\u3051\u306a\u3044\u3001\u3082\u3057\u304f\u306f\u5f71\u97ff\u3092\u5c0f\u3055\u304f\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002<br \/>\n1\u6bb5\u76ee\u304c\u6b7b\u4ea1\u3057\u3066\u30822\u6bb5\u76ee\u304c\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u4fdd\u6301\u3057\u3066\u3044\u308b\u306e\u3067\u30aa\u30ea\u30b8\u30f3\u306e\u8ca0\u8377\u306f\u305d\u3053\u307e\u3067\u5897\u3048\u307e\u305b\u3093\u3002<br \/>\n\u540c\u3058\u3088\u3046\u306b2\u6bb5\u76ee\u304c\u6b7b\u4ea1\u3057\u3066\u30821\u6bb5\u76ee\u304c\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u4fdd\u6301\u3057\u3066\u3044\u308b\u306e\u3067\u30aa\u30ea\u30b8\u30f3\u306e\u8ca0\u8377\u306e\u4e0a\u304c\u308a\u65b9\u306f\u3042\u308b\u7a0b\u5ea6\u6291\u3048\u3089\u308c\u307e\u3059\u3002<\/p>\n<p><strong>\u52b9\u7387\u7684\u306a\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u4fdd\u6301<\/strong><br \/>\n1\u6bb5\u76ee\u306f\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304b\u3089\u306e\u6fc0\u3057\u3044\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u53d7\u3051\u308b\u305f\u3081\u3001\u9ad8\u901f\u306astorage(malloc\u3084SSD\/PCIeSSD\u306a\u3069\u306efile)\u304c\u5fc5\u8981\u3067\u3059\u3002<br \/>\n\u3053\u3053\u306f\u3044\u304f\u3089\u30b5\u30fc\u30d0\u3092\u5897\u3084\u3057\u3066\u3082\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u4fdd\u6301\u5bb9\u91cf\u306f\u5358\u4e00\u30b5\u30fc\u30d0\u3067\u306estorage\u30b5\u30a4\u30ba\u3068\u306a\u308a\u307e\u3059\u3002\u30e9\u30f3\u30c0\u30e0\u306b\u305d\u308c\u305e\u308c\u306e\u30b5\u30fc\u30d0\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3055\u308c\u308b\u305f\u3081\u3067\u3059\u3002<br \/>\n\u3082\u3061\u308d\u3093\u73fe\u91d1\u3067\u6bb4\u308b\u3068\u3044\u3046\u624b\u6bb5\u3082\u53d6\u308c\u306a\u304f\u306f\u306a\u3044\u306e\u3067\u3059\u304c\uff08\u50d5\u3092\u73fe\u91d1\u3067\u6bb4\u3063\u3066\u304f\u308c\u308b\u4eba\u52df\u96c6\u3057\u3066\u3044\u307e\u3059\uff09\u30011\u53f0\u843d\u3061\u308b\u3068\u308f\u308a\u304b\u3057\u88ab\u5bb3\u304c\u5927\u304d\u304f\u306a\u308a\u3084\u3059\u3044\u306e\u3067\u305d\u3053\u306f\u30d0\u30e9\u30f3\u30b9\u3092\u307f\u3066\u3084\u308b\u3079\u304d\u3067\u3057\u3087\u3046\u3002<br \/>\n\u591a\u6bb5\u69cb\u6210\u306e\u5834\u5408\u30672\u6bb5\u76ee\u306f\u591a\u5c11\u9045\u3044storage\u3067\u3082\u554f\u984c\u304c\u3042\u308a\u307e\u305b\u3093\u3002\uff08\u3068\u306f\u3044\u3063\u3066\u3082SSD\u306f\u307b\u3057\u3044\u3067\u3059\uff09<br \/>\n\u7406\u7531\u306f\u65e2\u306b1\u6bb5\u76ee\u3067\u3042\u308b\u7a0b\u5ea6\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u30b7\u30a7\u30fc\u30d6\u3057\u3066\u3044\u308b\u306e\u3068\u3001\u3088\u304f\u30a2\u30af\u30bb\u30b9\u3055\u308c\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff08\uff1d\u30db\u30c3\u30c8\u30c7\u30fc\u30bf\uff09\u306f\u307b\u307c\u307b\u307c1\u6bb5\u76ee\u306b\u96c6\u4e2d\u3059\u308b\u3053\u3068\u304c\u671f\u5f85\u3067\u304d\u308b\u305f\u3081\u5168\u4f53\u3067\u9ad8\u901f\u306b\u30ec\u30b9\u30dd\u30f3\u30b9\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<br \/>\n\u307e\u305f\u3001\u30cf\u30c3\u30b7\u30e5\u632f\u308a\u5206\u3051\u3092\u884c\u3046\u5834\u5408\u306f\u5f53\u7136\u3067\u3059\u304c2\u6bb5\u76ee\u3067\u91cd\u8907\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u6301\u3061\u307e\u305b\u3093\u3002<br \/>\n\u305d\u306e\u305f\u3081\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u4fdd\u6301\u5bb9\u91cf\u306f\u5358\u7d14\u306b\u8db3\u3057\u305f\u30b5\u30a4\u30ba\u3068\u306a\u308a\u3001\u3088\u308a\u30aa\u30ea\u30b8\u30f3\u306e\u8ca0\u8377\u8efd\u6e1b\u306b\u5f79\u306b\u7acb\u3061\u307e\u3059\u3002<\/p>\n<p>\u3053\u3053\u307e\u3067\u591a\u6bb5\u69cb\u6210\uff72\uff72\uff96\uff70\uff72\uff72\uff96\uff70\u3068\u3044\u3046\u8a71\u3092\u3057\u307e\u3057\u305f\u304c\u591a\u6bb5\u69cb\u6210\u3067\u3082\u6ce8\u610f\u3059\u3079\u304d\u3068\u3053\u308d\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>App\u3068Varnish\u304c\u540c\u5c45\u3057\u3066\u3044\u308b\u591a\u6bb5\u69cb\u6210\u306b\u304a\u3044\u3066\u306e\u632f\u308a\u5206\u3051\u306b\u3064\u3044\u3066<\/li>\n<\/ul>\n<p><strong>App\u3068Varnish\u304c\u540c\u5c45\u3057\u3066\u3044\u308b\u591a\u6bb5\u69cb\u6210\u306b\u304a\u3044\u3066\u306e\u632f\u308a\u5206\u3051\u306b\u3064\u3044\u3066<\/strong><br \/>\n<a href=\"http:\/\/blog.xcir.net\/wp-content\/uploads\/2015\/01\/sep.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.xcir.net\/wp-content\/uploads\/2015\/01\/sep.png\" alt=\"sep\" width=\"496\" height=\"452\" class=\"aligncenter size-full wp-image-1796\" \/><\/a><br \/>\n\u4f8b\u3048\u3070\u4e0a\u56f3\u306e\u3088\u3046\u306bOrigin(App)\u304c\u5206\u96e2\u3057\u3066\u3044\u308b\u30b1\u30fc\u30b9\u306f\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u304c<br \/>\n<a href=\"http:\/\/blog.xcir.net\/wp-content\/uploads\/2015\/01\/nsep.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.xcir.net\/wp-content\/uploads\/2015\/01\/nsep.png\" alt=\"nsep\" width=\"522\" height=\"415\" class=\"aligncenter size-full wp-image-1797\" \/><\/a><br \/>\n\u3053\u306e\u3088\u3046\u306b2\u6bb5\u76ee\u306eVarnish\u304cApp\u3068\u540c\u5c45\u3057\u3066\u3044\u308b\u30b1\u30fc\u30b9\u3092\u8003\u3048\u3066\u307f\u307e\u3057\u3087\u3046\u3002(2\u6bb5\u76ee\u306eVarnish\u306f\u5fc5\u305alocal\u306eapp\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3046)<br \/>\n\u5f53\u7136\u306a\u304c\u30891\u6bb5\u76ee\u306f\u30cf\u30c3\u30b7\u30e5\u3067\u632f\u308a\u5206\u3051\u3092\u884c\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\n\u305d\u3057\u3066<strong>\u52d5\u7684\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u5834\u5408\u306f\u3059\u3079\u3066\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u30ad\u30e3\u30c3\u30b7\u30e5\u51fa\u6765\u306a\u3044<\/strong>\u3053\u3068\u304c\u591a\u3044\u3067\u3059\u3002<br \/>\n\u3080\u3057\u308d\u30ad\u30e3\u30c3\u30b7\u30e5\u51fa\u6765\u306a\u3044\u3082\u306e\u304c\u591a\u3044\u30b1\u30fc\u30b9\u306e\u307b\u3046\u304c\u591a\u3044\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u5f53\u7136\u306a\u304c\u3089\u30ad\u30e3\u30c3\u30b7\u30e5\u51fa\u6765\u306a\u3044\u30ea\u30af\u30a8\u30b9\u30c8\u306f\u30aa\u30ea\u30b8\u30f3\u306b\u76f4\u6483\u3057\u307e\u3059\u3002<br \/>\n\u305d\u3057\u3066\u305f\u3044\u3066\u3044\u306e\u5834\u5408\u30ad\u30e3\u30c3\u30b7\u30e5\u51fa\u6765\u306a\u3044\u30ea\u30af\u30a8\u30b9\u30c8\u306f<\/p>\n<ul>\n<li>\u4f1a\u54e1\u60c5\u5831\u3092\u6271\u3063\u3066\u3044\u3066\u30e6\u30fc\u30b6\u6bce\u306b\u5185\u5bb9\u304c\u7570\u306a\u308b<\/li>\n<li>POST\u3084PUT\u306a\u3069\u305d\u3082\u305d\u3082\u30aa\u30ea\u30b8\u30f3\u306b\u78ba\u5b9f\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u901a\u3055\u306a\u3044\u3068\u884c\u3051\u306a\u3044<\/li>\n<li>\u306a\u3069\u306a\u3069<\/li>\n<\/ul>\n<p>\u3060\u3063\u305f\u308a\u3067\u3060\u3044\u305f\u3044\u540c\u3058URL\u3060\u3063\u305f\u308a\u3057\u307e\u3059\u3002<br \/>\nURL\u304c\u540c\u3058\u3068\u3044\u3046\u3053\u3068\u306f\u30cf\u30c3\u30b7\u30e5\u304c\u540c\u4e00\u3068\u3044\u3046\u3053\u3068\u306a\u306e\u3067\u8ca0\u8377\u304c\u5bc4\u308a\u307e\u3059\u3002<br \/>\n\u305b\u3063\u304b\u304f\u8ca0\u8377\u3092\u6e1b\u3089\u3059\u305f\u3081\u306b\u591a\u6bb5\u306b\u3057\u305f\u306e\u306b\u672c\u672b\u8ee2\u5012\u3068\u3044\u3048\u308b\u3067\u3057\u3087\u3046\u3002<br \/>\n\u3058\u3083\u3041\u3069\u3046\u3059\u308b\u304b\u3068\u3044\u3046\u3068\u30ad\u30e3\u30c3\u30b7\u30e5\u3059\u308b\u30ea\u30af\u30a8\u30b9\u30c8\u3068\u30ad\u30e3\u30c3\u30b7\u30e5\u3057\u306a\u3044\u30ea\u30af\u30a8\u30b9\u30c8\u3067\u632f\u308a\u5206\u3051\u3092\u5909\u3048\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n<pre class=\"brush: plain; \">\n\r\nvcl 4.0;\r\nimport directors;\r\nprobe healthcheck {\r\n    .request =\r\n            &quot;GET \/healthcheck\/check.html HTTP\/1.1&quot;\r\n            &quot;Host: xxxx.xxxx&quot;\r\n            &quot;Connection: close&quot;;\r\n    .timeout           = 2s;\r\n    .window            = 5;\r\n    .threshold         = 3;\r\n    .interval          = 1s;\r\n}\r\n\r\nbackend ws01 {.probe=healthcheck;.host = &quot;192.168.1.1&quot;;.port = &quot;80&quot;;}\r\nbackend ws02 {.probe=healthcheck;.host = &quot;192.168.1.2&quot;;.port = &quot;80&quot;;}\r\nbackend ws03 {.probe=healthcheck;.host = &quot;192.168.1.3&quot;;.port = &quot;80&quot;;}\r\nbackend ws04 {.probe=healthcheck;.host = &quot;192.168.1.4&quot;;.port = &quot;80&quot;;}\r\n\r\nsub vcl_init{\r\n  new ws_hash = directors.hash();\r\n  ws_hash.add_backend(ws01, 1.0);\r\n  ws_hash.add_backend(ws02, 1.0);\r\n  ws_hash.add_backend(ws03, 1.0);\r\n  ws_hash.add_backend(ws04, 1.0);\r\n\r\n  new ws_rand  = directors.random();\r\n  ws_rand.add_backend(ws01, 1.0);\r\n  ws_rand.add_backend(ws02, 1.0);\r\n  ws_rand.add_backend(ws03, 1.0);\r\n  ws_rand.add_backend(ws04, 1.0);\r\n}\r\nsub vcl_recv{\r\n  ...\r\n  if(\u30ad\u30e3\u30c3\u30b7\u30e5\u3059\u308b\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u5834\u5408){\r\n    \/\/\u30ad\u30e3\u30c3\u30b7\u30e5\u3059\u308b\r\n    set req.backend_hint = ws_hash.backend(req.url + &quot;:&quot; + req.http.host);\r\n    return(hash);\r\n  }else{\r\n    \/\/\u30ad\u30e3\u30c3\u30b7\u30e5\u3057\u306a\u3044\r\n    set req.backend_hint = ws_rand.backend();\r\n    return(pass);\r\n  }\r\n}\r\n\n<\/pre>\n<p><a href=\"http:\/\/blog.xcir.net\/wp-content\/uploads\/2015\/01\/hr.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.xcir.net\/wp-content\/uploads\/2015\/01\/hr.png\" alt=\"hr\" width=\"512\" height=\"336\" class=\"aligncenter size-full wp-image-1800\" \/><\/a><br \/>\n\u3053\u3046\u3059\u308b\u3053\u3068\u3067\u30ad\u30e3\u30c3\u30b7\u30e5\u3082\u52b9\u7387\u7684\u306b\u884c\u306a\u3048\u307e\u3059\u3057\u3001\u8ca0\u8377\u3082\u9069\u5207\u306b\u5272\u308a\u632f\u308a\u51fa\u6765\u307e\u3059\u3002<\/p>\n<p><strong>\u307e\u3068\u3081<\/strong><br \/>\n\u591a\u6bb5\u69cb\u6210\u3092\u884c\u3046\u3053\u3068\u3067\u5e78\u305b\u306b\u306a\u308c\u308b\u30dd\u30a4\u30f3\u30c8\u3092\u793a\u305b\u305f\u3093\u3058\u3083\u306a\u3044\u304b\u306a\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u3082\u3061\u308d\u3093\u30c7\u30e1\u30ea\u30c3\u30c8\u304c\u30bc\u30ed\u304b\u3068\u3044\u3046\u3068\u305d\u3046\u3067\u306f\u306a\u304f\u3001\u591a\u6bb5\u306b\u3059\u308b\u3053\u3068\u3067\u7d4c\u7531\u3059\u308b\u30b5\u30fc\u30d0\u304c\u5897\u3048\u308b\u305f\u3081\u305d\u306e\u5206latency\u306f\u60aa\u5316\u3057\u307e\u3059\u304c\u3001\u5927\u62b5\u306e\u5834\u5408\u306f\u305d\u308c\u3092\u88dc\u3046\u52b9\u679c\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<br \/>\n\u3053\u308c\u3089\u306e\u30e1\u30ea\u30c3\u30c8\u3084\u8003\u3048\u308b\u30dd\u30a4\u30f3\u30c8\u306f\u3054\u304f\u4e00\u90e8\u3067\u4ed6\u306b\u3082\u5730\u57df\u3092\u8003\u616e\u3057\u305f\u308a\u3068\u304b3\u6bb5\u76ee\u3064\u304f\u3063\u305f\u308a\u3068\u304b\u3001\u30db\u30c3\u30c8\u30c7\u30fc\u30bf\u5c02\u7528\u306e\u9694\u96e2\u3092\u4f5c\u3063\u305f\u308a\u3068\u304b\u3044\u308d\u3044\u308d\u884c\u3046\u3053\u3068\u306b\u3088\u3063\u3066\u3044\u308d\u3044\u308d\u9055\u3044\u307e\u3059\u3002<br \/>\n\u3053\u308c\u3089\u306e\u968e\u5c64\u69cb\u9020\u306f\u4f55\u3082\u81ea\u793e\u74b0\u5883\u3060\u3051\u3067\u7559\u307e\u308b\u308f\u3051\u3067\u306f\u306a\u304f\u3001\u5404CDN\u3082\u307e\u305f\u3072\u3068\u3064\u306e\u5c64\u3068\u8003\u3048\u3066\u6700\u9069\u306a\u69cb\u9020\u3092\u8003\u3048\u308b\u306e\u3082\u9762\u767d\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p><small>\u203b\u6ce8\u610f\u4e8b\u9805<br \/>\n\u73fe\u5728(4.0.2)\u306eVarnish\u3067\u3059\u304c\u30d8\u30eb\u30b9\u30c1\u30a7\u30c3\u30af\u3067\u5f15\u3063\u304b\u304b\u3063\u3066\u632f\u308a\u5206\u3051\u843d\u3068\u3055\u308c\u305f\u8ca0\u8377\u304c\u305d\u306e\u307e\u307e\u7279\u5b9a\u306e\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u306b\u5bc4\u308b\u3068\u3044\u3046<a href=\"https:\/\/www.varnish-cache.org\/trac\/ticket\/1658\">\u30d0\u30b0<\/a>\u304c\u6709\u308a\u307e\u3059\u3002<br \/>\nmaster\u3067\u306f\u4fee\u6b63\u3055\u308c\u3066\u3044\u307e\u3059\u304c4.0.3\u306b\u9069\u7528\u3055\u308c\u308b\u304b\u5fae\u5999\u306a\u306e\u3067\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<br \/>\n\u307e\u305f\u4fee\u6b63\u5f8c\u306b\u3064\u3044\u3066\u3082\u30cf\u30c3\u30b7\u30e5\u632f\u308a\u5206\u3051\u306b\u3064\u3044\u3066\u306ffail\u6642\u306e\u632f\u308a\u5206\u3051\u3067\u5168\u4f53\u3067\u518d\u8a08\u7b97\u304c\u8d70\u308b\u306e\u3067\u540c\u69d8\u306b\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<br \/>\n\u672c\u5bb6\u3067\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u63d0\u4f9b\u3059\u308b\u306e\u306f\u30b7\u30f3\u30d7\u30eb\u306b\u3057\u305f\u3044\u3068\u3044\u3046\u3053\u3068\u3067\u3044\u308f\u3086\u308bconsistent hashing\u306f\u30b5\u30dd\u30fc\u30c8\u3057\u306a\u3044\u3068\u8a00\u3063\u3066\u3044\u308b\u306e\u3067<br \/>\n\u305d\u306e\u3088\u3046\u306a\u6a5f\u80fd\u304c\u3042\u308bvmod(<a href=\"https:\/\/www.varnish-cache.org\/vmod\/vlsp-consistent-hashing-director-vmod\">vslp<\/a>)\u3092\u4f7f\u3046\u3068\u826f\u3044\u3068\u601d\u3044\u307e\u3059<\/small><\/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%3D1751&title=Varnish%E3%82%92%E5%A4%9A%E6%AE%B5%E3%81%AB%E3%81%99%E3%82%8B%E5%88%A9%E7%82%B9%E3%81%A8%E6%B3%A8%E6%84%8F%E3%81%99%E3%82%8B%E3%81%A8%E3%81%93%E3%82%8D' 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=1751' title='\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af - Varnish\u3092\u591a\u6bb5\u306b\u3059\u308b\u5229\u70b9\u3068\u6ce8\u610f\u3059\u308b\u3068\u3053\u308d' rel=nofollow class='wp_social_bookmarking_light_a' target=_blank><img src='\/\/b.hatena.ne.jp\/entry\/image\/https:\/\/blog.xcir.net\/?p=1751' alt='\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af - Varnish\u3092\u591a\u6bb5\u306b\u3059\u308b\u5229\u70b9\u3068\u6ce8\u610f\u3059\u308b\u3068\u3053\u308d' title='\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af - Varnish\u3092\u591a\u6bb5\u306b\u3059\u308b\u5229\u70b9\u3068\u6ce8\u610f\u3059\u308b\u3068\u3053\u308d'   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%3D1751&t=Varnish%E3%82%92%E5%A4%9A%E6%AE%B5%E3%81%AB%E3%81%99%E3%82%8B%E5%88%A9%E7%82%B9%E3%81%A8%E6%B3%A8%E6%84%8F%E3%81%99%E3%82%8B%E3%81%A8%E3%81%93%E3%82%8D' 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%3D1751&title=Varnish%E3%82%92%E5%A4%9A%E6%AE%B5%E3%81%AB%E3%81%99%E3%82%8B%E5%88%A9%E7%82%B9%E3%81%A8%E6%B3%A8%E6%84%8F%E3%81%99%E3%82%8B%E3%81%A8%E3%81%93%E3%82%8D' 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=1751\" data-text=\"Varnish\u3092\u591a\u6bb5\u306b\u3059\u308b\u5229\u70b9\u3068\u6ce8\u610f\u3059\u308b\u3068\u3053\u308d\" data-lang=\"ja\">Tweet<\/a><\/div><\/div>\n<br class='wp_social_bookmarking_light_clear' \/>\n","protected":false},"excerpt":{"rendered":"<p>\u5c0f\u30cd\u30bf\u3067\u3059 Varnish\u3092\u4f7f\u3046\u4e0a\u3067\u5197\u9577\u5316\u3092\u3069\u3046\u3057\u3088\u3046\u3068\u60a9\u3080\u3053\u3068\u304c\u591a\u3005\u6709\u308a\u307e\u3059\u3002 \u5358\u7d14\u306b\u6a2a\u306b\u4e26\u3079\u3066LB\u3067\u30d0\u30e9\u30f3\u30b7\u30f3\u30b0\u3057\u3066\u3082\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u540c\u671f\u3092\u3069\u3046\u3057\u3088\u3046\u3068\u3044\u3046\u554f\u984c\u306b\u3076\u3061\u5f53\u305f\u308a\u307e\u3059\u3002 VarnishSoftware\u304c\u30b5\u30d6\u30b9\u30af <a href='https:\/\/blog.xcir.net\/?p=1751' class='excerpt-more'>[&#8230;]<\/a><\/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,54],"class_list":["post-1751","post","type-post","status-publish","format-standard","hentry","category-3","tag-varnish","tag-varnish4-0-2","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\/1751","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=1751"}],"version-history":[{"count":50,"href":"https:\/\/blog.xcir.net\/index.php?rest_route=\/wp\/v2\/posts\/1751\/revisions"}],"predecessor-version":[{"id":1810,"href":"https:\/\/blog.xcir.net\/index.php?rest_route=\/wp\/v2\/posts\/1751\/revisions\/1810"}],"wp:attachment":[{"href":"https:\/\/blog.xcir.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1751"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.xcir.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1751"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.xcir.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1751"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}