{"id":3176,"date":"2016-03-18T12:33:59","date_gmt":"2016-03-18T03:33:59","guid":{"rendered":"https:\/\/cloud.sakura.ad.jp\/news\/?p=3176"},"modified":"2022-06-15T13:19:04","modified_gmt":"2022-06-15T04:19:04","slug":"auto-scaling","status":"publish","type":"post","link":"https:\/\/cloud.sakura.ad.jp\/news\/2016\/03\/18\/auto-scaling\/","title":{"rendered":"\u3010TIPS\u3011\u3055\u304f\u3089\u306e\u30af\u30e9\u30a6\u30c9\u3067Auto Scaling"},"content":{"rendered":"<pre>[2022\u5e746\u670815\u65e5\u8ffd\u8a18]\r\n\u672c\u8a18\u4e8b\u306e\u300csaklient-autoscaling-demo\u300d\u306b\u3064\u304d\u307e\u3057\u3066\u306f\u3001\u73fe\u5728\u300c\u975e\u63a8\u5968\u300d\u3068\u306a\u3063\u3066\u304a\u308a\u307e\u3059\u3002\r\n\u305d\u306e\u305f\u3081\u30aa\u30fc\u30c8\u30b9\u30b1\u30fc\u30eb\u3092\u3054\u5e0c\u671b\u306e\u5834\u5408\u306f\u3001\u540c\u69d8\u306e\u6a5f\u80fd\u3068\u306a\u308b\u300c<a href=\"https:\/\/manual.sakura.ad.jp\/cloud\/autoscale\/autoscale.html\" target=\"_blank\" rel=\"noopener noreferrer\">\u30aa\u30fc\u30c8\u30b9\u30b1\u30fc\u30eb\uff08\u30aa\u30fc\u30d7\u30f3\u30d9\u30fc\u30bf\u7248\uff09<\/a>\u300d\u3092\u3054\u6d3b\u7528\u304f\u3060\u3055\u3044\u3002<\/pre>\n<p>\u3053\u306e\u305f\u3073\u300c\u3055\u304f\u3089\u306e\u30af\u30e9\u30a6\u30c9\u300d\u3067\u306f\u3001\u30b5\u30fc\u30d0\u3078\u306e\u30a2\u30af\u30bb\u30b9\u304c\u5897\u52a0\u3057\u305f\u969b\u306b\u30b5\u30fc\u30d0\u3092\u81ea\u52d5\u3067\u8ffd\u52a0\u3059\u308b\u30b9\u30b1\u30fc\u30eb\u30a2\u30a6\u30c8\u3068\u3001\u8ca0\u8377\u304c\u6e1b\u5c11\u3057\u305f\u969b\u306b\u30b9\u30b1\u30fc\u30eb\u30a2\u30a6\u30c8\u3057\u305f\u30b5\u30fc\u30d0\u3092\u524a\u9664\u3059\u308b\u30b9\u30b1\u30fc\u30eb\u30a4\u30f3\u3092\u81ea\u52d5\u3067\u884c\u3046\u300cAutoScaling\u300d\u306e\u30c7\u30e2\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u516c\u958b\u3057\u307e\u3057\u305f\u3002\u672c\u8a18\u4e8b\u3067\u306f\u300c\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u300d\u30a2\u30d7\u30e9\u30a4\u30a2\u30f3\u30b9\u3068\u300c\u30af\u30ed\u30fc\u30f3\u6a5f\u80fd\u300d\u3092\u7d44\u307f\u5408\u308f\u305b\u305fAutoScaling\u306e\u4ed5\u7d44\u307f\u3068\u624b\u9806\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<br \/>\n<!--more--><\/p>\n<p>\u203b\u30c7\u30e2\u30d7\u30ed\u30b0\u30e9\u30e0\u306fgithub\u4e0a\u3067\u516c\u958b\u3057\u3066\u304a\u308a\u307e\u3059\u3002\u8a73\u7d30\u306f\u4ee5\u4e0bURL\u3092\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\u3002<br \/>\n<a href=\"https:\/\/github.com\/sakura-internet\/saklient-autoscaling-demo\">https:\/\/github.com\/sakura-internet\/saklient-autoscaling-demo<\/a><br \/>\n\u203b\u30c7\u30e2\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u5b9f\u884c\u306b\u3088\u308a\u3001\u8ab2\u91d1\u5bfe\u8c61\u306e\u30ea\u30bd\u30fc\u30b9\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002\u4e88\u671f\u3057\u306a\u3044\u53f0\u6570\u306e\u30b5\u30fc\u30d0\u304c\u4f5c\u6210\u3055\u308c\u60f3\u5b9a\u5916\u306e\u8ab2\u91d1\u304c\u767a\u751f\u3057\u305f\u7b49\u306e\u5834\u5408\u3067\u3082\u3001\u5f0a\u793e\u3067\u306f\u3054\u5bfe\u5fdc\u3044\u305f\u3057\u304b\u306d\u307e\u3059\u3002\u305d\u306e\u70b9\u3092\u3054\u7559\u610f\u306e\u4e0a\u3001\u5b9f\u884c\u3057\u3066\u3044\u305f\u3060\u304f\u3088\u3046\u306b\u304a\u9858\u3044\u3044\u305f\u3057\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h1>1. \u4eca\u56de\u306e\u69cb\u6210<\/h1>\n<p>\u4eca\u56de\u306f\u3001\u521d\u671f\u72b6\u614b\u3068\u3057\u3066\u4ee5\u4e0b\u306e\u69cb\u6210\u3092\u60f3\u5b9a\u3057\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/cloud.sakura.ad.jp\/news\/wp-content\/uploads\/2016\/03\/1.png\" rel=\"attachment wp-att-3177\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3177\" src=\"https:\/\/cloud.sakura.ad.jp\/news\/wp-content\/uploads\/2016\/03\/1.png\" alt=\"1\" width=\"369\" height=\"386\" srcset=\"https:\/\/cloud.sakura.ad.jp\/news\/wp-content\/uploads\/2016\/03\/1.png 369w, https:\/\/cloud.sakura.ad.jp\/news\/wp-content\/uploads\/2016\/03\/1-287x300.png 287w\" sizes=\"auto, (max-width: 369px) 100vw, 369px\" \/><\/a><\/p>\n<p>\u300c\u30eb\u30fc\u30bf\uff0b\u30b9\u30a4\u30c3\u30c1\u300d\u3092\u4f5c\u6210\u3057\u3001\u305d\u306e\u914d\u4e0b\u306b1\u53f0\u306e\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u30681\u53f0\u306e\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u304c\u63a5\u7d9a\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u203b\u300c\u30eb\u30fc\u30bf\uff0b\u30b9\u30a4\u30c3\u30c1\u300d\u306e\u4f5c\u6210\u3084\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u69cb\u6210\u306e\u64cd\u4f5c\u65b9\u6cd5\u306b\u3064\u3044\u3066\u306f\u3001<a href=\"https:\/\/help.sakura.ad.jp\/app\/answers\/detail\/a_id\/2515\">\u516c\u5f0f\u30de\u30cb\u30e5\u30a2\u30eb<\/a>\u3084\u3055\u304f\u3089\u306e\u30ca\u30ec\u30c3\u30b8<a href=\"http:\/\/knowledge.sakura.ad.jp\/beginner\/1343\/\">\u300c\u30eb\u30fc\u30bf\uff0b\u30b9\u30a4\u30c3\u30c1\u3092\u4f7f\u3063\u305f\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u69cb\u7bc9\u3057\u3066\u307f\u3088\u3046\u300d<\/a>\u304c\u53c2\u8003\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u30a2\u30af\u30bb\u30b9\u304c\u9591\u6563\u3068\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3053\u306e\u69cb\u6210\u3067\u904b\u7528\u3057\u307e\u3059\u304c\u3001\u30a2\u30af\u30bb\u30b9\u306e\u5897\u5927\u306b\u3088\u308a1\u53f0\u306e\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u3067\u306f\u634c\u304d\u304d\u308c\u306a\u304f\u306a\u3063\u305f\u5834\u5408\u306f\u5e73\u884c\u3057\u3066\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u3092\u8ffd\u52a0\u3057\u3001\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u306b\u3088\u308b\u8ca0\u8377\u5206\u6563\u3092\u56f3\u308a\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/cloud.sakura.ad.jp\/news\/wp-content\/uploads\/2016\/03\/2.png\" rel=\"attachment wp-att-3178\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3178\" src=\"https:\/\/cloud.sakura.ad.jp\/news\/wp-content\/uploads\/2016\/03\/2.png\" alt=\"2\" width=\"479\" height=\"384\" srcset=\"https:\/\/cloud.sakura.ad.jp\/news\/wp-content\/uploads\/2016\/03\/2.png 479w, https:\/\/cloud.sakura.ad.jp\/news\/wp-content\/uploads\/2016\/03\/2-300x241.png 300w\" sizes=\"auto, (max-width: 479px) 100vw, 479px\" \/><\/a><\/p>\n<p>\u3053\u306e\u3088\u3046\u306b\u3001\u540c\u4e00\u306e\u6027\u80fd\u3092\u6301\u3064\u6a5f\u5668\u3092\u8ffd\u52a0\u3057\u3066\u8ca0\u8377\u3092\u5206\u6563\u3055\u305b\u308b\u3053\u3068\u3092\u300c\u30b9\u30b1\u30fc\u30eb\u30a2\u30a6\u30c8\u300d\u3068\u547c\u3073\u307e\u3059\u3002\u307e\u305f\u3001\u8ca0\u8377\u304c\u6e1b\u5c11\u3057\u305f\u969b\u306b\u30b9\u30b1\u30fc\u30eb\u30a2\u30a6\u30c8\u3057\u305f\u30b5\u30fc\u30d0\u3092\u524a\u9664\u3059\u308b\u3053\u3068\u3092\u300c\u30b9\u30b1\u30fc\u30eb\u30a4\u30f3\u300d\u3068\u547c\u3073\u307e\u3059\u3002\u3055\u304f\u3089\u306e\u30af\u30e9\u30a6\u30c9\u3067\u306f\u4eee\u60f3\u7684\u306b\u30b9\u30a4\u30c3\u30c1\u3084\u30b5\u30fc\u30d0\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u306e\u3067\u3001\u30b9\u30b1\u30fc\u30eb\u30a2\u30a6\u30c8\u3055\u305b\u308b\u5834\u5408\u3082\u7d20\u65e9\u304f\u69cb\u6210\u304c\u53ef\u80fd\u3067\u3042\u308a\u3001\u7269\u7406\u74b0\u5883\u306e\u3088\u3046\u306b\u3042\u3089\u304b\u3058\u3081\u6a5f\u6750\u3092\u7528\u610f\u3059\u308b\u5fc5\u8981\u3082\u3042\u308a\u307e\u305b\u3093\u3002\u307e\u305f\u3001\u30af\u30e9\u30a6\u30c9\u3067\u306f\u30b5\u30fc\u30d0\u306e\u6642\u9593\u8ab2\u91d1\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u5fc5\u8981\u306a\u3068\u304d\u306b\u5fc5\u8981\u306a\u6570\u3060\u3051\u30b9\u30b1\u30fc\u30eb\u30a2\u30a6\u30c8\u3055\u305b\u3001\u8ca0\u8377\u304c\u6e1b\u5c11\u3057\u305f\u969b\u306b\u30b9\u30b1\u30fc\u30eb\u30a4\u30f3\u3055\u305b\u308b\u3053\u3068\u3067\u3001\u30b3\u30b9\u30c8\u306e\u9069\u6b63\u5316\u3092\u56f3\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30b9\u30b1\u30fc\u30eb\u30a2\u30a6\u30c8\u30fb\u30b9\u30b1\u30fc\u30eb\u30a4\u30f3\u306b\u3088\u308b\u4f38\u7e2e\u81ea\u5728\u306a\u30b7\u30b9\u30c6\u30e0\u69cb\u6210\u306f\u3001\u30af\u30e9\u30a6\u30c9\u306e\u30e1\u30ea\u30c3\u30c8\u3092\u3088\u308a\u6d3b\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u624b\u6cd5\u3068\u8a00\u3048\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u3055\u304f\u3089\u306e\u30af\u30e9\u30a6\u30c9\u3067\u306f\u3001\u3053\u308c\u307e\u3067\u300c\u30b9\u30b1\u30fc\u30eb\u30a2\u30a6\u30c8\u300d\u300c\u30b9\u30b1\u30fc\u30eb\u30a4\u30f3\u300d\u3068\u3082\u306b\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u30d1\u30cd\u30eb\u304b\u3089\u64cd\u4f5c\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3057\u305f\u304c\u3001\u4eca\u56de\u3054\u7d39\u4ecb\u3059\u308b\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30e9\u30a4\u30d6\u30e9\u30ea\u300cSaklient\u300d\u3092\u6d3b\u7528\u3057\u305f\u30aa\u30fc\u30c8\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0\u30c4\u30fc\u30eb\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u4e00\u9023\u306e\u4f5c\u696d\u3092\u5b8c\u5168\u81ea\u52d5\u5316\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h1>2. \u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u306e\u8a2d\u5b9a<\/h1>\n<p>\u6700\u521d\u306b\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u306e\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002\u4f5c\u6210\u3057\u305f\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u306f\u3001\u5de6\u5074\u306e\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u300c\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u300d\u3092\u9078\u629e\u3057\u307e\u3059\u3002\u3053\u3053\u3067\u4f5c\u6210\u6e08\u307f\u306e\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u306e\u4e00\u89a7\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001\u8a72\u5f53\u306e\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u884c\u3092\u30c0\u30d6\u30eb\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/cloud.sakura.ad.jp\/news\/wp-content\/uploads\/2016\/03\/WS000284.jpg\" rel=\"attachment wp-att-3179\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-3179\" src=\"https:\/\/cloud.sakura.ad.jp\/news\/wp-content\/uploads\/2016\/03\/WS000284-300x85.jpg\" alt=\"WS000284\" width=\"300\" height=\"85\" srcset=\"https:\/\/cloud.sakura.ad.jp\/news\/wp-content\/uploads\/2016\/03\/WS000284-300x85.jpg 300w, https:\/\/cloud.sakura.ad.jp\/news\/wp-content\/uploads\/2016\/03\/WS000284-768x217.jpg 768w, https:\/\/cloud.sakura.ad.jp\/news\/wp-content\/uploads\/2016\/03\/WS000284.jpg 1021w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u306e\u60c5\u5831\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001\u4e0a\u90e8\u306e\u300cVIP\u8a2d\u5b9a\u300d\u30bf\u30d6\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002VIP\u306f\u5916\u90e8\u304b\u3089\u306e\u63a5\u7d9a\u3092\u53d7\u3051\u6301\u3064\u4eee\u60f3IP\u30a2\u30c9\u30ec\u30b9(Virtual IP address)\u306e\u3053\u3068\u3067\u3001\u3053\u306eIP\u30a2\u30c9\u30ec\u30b9\u3078\u306e\u63a5\u7d9a\u304c\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u306b\u3088\u308a\u914d\u4e0b\u306e\u8907\u6570\u306e\u30b5\u30fc\u30d0\u306b\u5206\u6563\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u521d\u671f\u72b6\u614b\u3067\u306f\u4f55\u3082\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u306a\u3044\u306e\u3067\u3001\u53f3\u4e0b\u306e\u300c\u8ffd\u52a0\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3001VIP\u306e\u8ffd\u52a0\u4f5c\u696d\u3092\u59cb\u3081\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/cloud.sakura.ad.jp\/news\/wp-content\/uploads\/2016\/03\/WS000286.jpg\" rel=\"attachment wp-att-3180\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-3180\" src=\"https:\/\/cloud.sakura.ad.jp\/news\/wp-content\/uploads\/2016\/03\/WS000286-300x86.jpg\" alt=\"WS000286\" width=\"300\" height=\"86\" srcset=\"https:\/\/cloud.sakura.ad.jp\/news\/wp-content\/uploads\/2016\/03\/WS000286-300x86.jpg 300w, https:\/\/cloud.sakura.ad.jp\/news\/wp-content\/uploads\/2016\/03\/WS000286-768x220.jpg 768w, https:\/\/cloud.sakura.ad.jp\/news\/wp-content\/uploads\/2016\/03\/WS000286.jpg 1018w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u8a2d\u5b9a\u30c0\u30a4\u30a2\u30ed\u30b0\u30dc\u30c3\u30af\u30b9\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001\u3053\u3053\u3067VIP\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u4eca\u56de\u306e\u69cb\u6210\u4f8b\u3067\u306f\u4ee5\u4e0b\u306e\u5024\u3092\u5165\u529b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>&nbsp;<\/p>\n<table>\n<tbody>\n<tr>\n<th nowrap=\"nowrap\">VIP\u30a2\u30c9\u30ec\u30b9<\/th>\n<td>\u300c\u30eb\u30fc\u30bf\uff0b\u30b9\u30a4\u30c3\u30c1\u300d\u3067\u6255\u3044\u51fa\u3055\u308c\u305fIP\u30a2\u30c9\u30ec\u30b9\u306e\u3046\u30611\u500b\u3092\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u304c\u53d7\u3051\u6301\u3064\u4eee\u60f3IP\u30a2\u30c9\u30ec\u30b9\u306b\u5272\u308a\u5f53\u3066\u3001\u305d\u306eIP\u30a2\u30c9\u30ec\u30b9\u3092\u5165\u529b\u3057\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<th nowrap=\"nowrap\">\u30dd\u30fc\u30c8\u756a\u53f7<\/th>\n<td>\u4eee\u60f3IP\u30a2\u30c9\u30ec\u30b9\u3067\u7740\u4fe1\u3092\u53d7\u3051\u308b\u30dd\u30fc\u30c8\u756a\u53f7\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u4eca\u56de\u306f\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b7\u30f3\u30b0\u5148\u306f\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u306e\u305f\u3081\u300c80\u300d\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<th nowrap=\"nowrap\">\u30c1\u30a7\u30c3\u30af\u9593\u9694<\/th>\n<td>\u5b9f\u30b5\u30fc\u30d0\u306e\u6b7b\u6d3b\u76e3\u8996\u3092\u5b9f\u884c\u3059\u308b\u9593\u9694\u3092\u79d2\u6570\u3067\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u4eca\u56de\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u300c10\u300d(10\u79d2)\u3092\u8a2d\u5b9a\u3057\u307e\u3057\u305f\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u8a2d\u5b9a\u304c\u5b8c\u4e86\u3059\u308b\u3068\u3001VIP\u8a2d\u5b9a\u306e\u30ea\u30b9\u30c8\u306b\u4eca\u56de\u8a2d\u5b9a\u3057\u305fVIP\u8a2d\u5b9a\u304c\u8ffd\u52a0\u3055\u308c\u307e\u3059\u3002\u7d9a\u3044\u3066\u3001VIP\u306b\u7740\u4fe1\u3057\u305f\u63a5\u7d9a\u306e\u632f\u308a\u5206\u3051\u5148\u3068\u306a\u308b\u5b9f\u30b5\u30fc\u30d0\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002VIP\u3054\u3068\u306b\u30bf\u30d6\u304c\u8ffd\u52a0\u3055\u308c\u308b\u306e\u3067\u3001\u4eca\u56de\u8a2d\u5b9a\u3057\u305fVIP\u306e\u30bf\u30d6\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/cloud.sakura.ad.jp\/news\/wp-content\/uploads\/2016\/03\/WS000290.jpg\" rel=\"attachment wp-att-3188\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-3188\" src=\"https:\/\/cloud.sakura.ad.jp\/news\/wp-content\/uploads\/2016\/03\/WS000290-300x73.jpg\" alt=\"WS000290\" width=\"300\" height=\"73\" srcset=\"https:\/\/cloud.sakura.ad.jp\/news\/wp-content\/uploads\/2016\/03\/WS000290-300x73.jpg 300w, https:\/\/cloud.sakura.ad.jp\/news\/wp-content\/uploads\/2016\/03\/WS000290-768x187.jpg 768w, https:\/\/cloud.sakura.ad.jp\/news\/wp-content\/uploads\/2016\/03\/WS000290.jpg 893w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u3053\u306e\u753b\u9762\u3067\u306f\u8a2d\u5b9a\u6e08\u307f\u306e\u5b9f\u30b5\u30fc\u30d0\u306e\u30ea\u30b9\u30c8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u304c\u3001\u3053\u3061\u3089\u3082\u521d\u671f\u72b6\u614b\u3067\u306f\u3072\u3068\u3064\u3082\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u306a\u3044\u306e\u3067\u300c\u8ffd\u52a0\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u8ffd\u52a0\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/cloud.sakura.ad.jp\/news\/wp-content\/uploads\/2016\/03\/WS000291.jpg\" rel=\"attachment wp-att-3189\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-3189\" src=\"https:\/\/cloud.sakura.ad.jp\/news\/wp-content\/uploads\/2016\/03\/WS000291-300x63.jpg\" alt=\"WS000291\" width=\"300\" height=\"63\" srcset=\"https:\/\/cloud.sakura.ad.jp\/news\/wp-content\/uploads\/2016\/03\/WS000291-300x63.jpg 300w, https:\/\/cloud.sakura.ad.jp\/news\/wp-content\/uploads\/2016\/03\/WS000291-768x162.jpg 768w, https:\/\/cloud.sakura.ad.jp\/news\/wp-content\/uploads\/2016\/03\/WS000291.jpg 890w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u8a2d\u5b9a\u30c0\u30a4\u30a2\u30ed\u30b0\u30dc\u30c3\u30af\u30b9\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001\u3053\u3053\u3067\u5b9f\u30b5\u30fc\u30d0\u306e\u60c5\u5831\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u4eca\u56de\u306e\u69cb\u6210\u4f8b\u3067\u306f\u4ee5\u4e0b\u306e\u5024\u3092\u5165\u529b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>&nbsp;<\/p>\n<table>\n<tbody>\n<tr>\n<th nowrap=\"nowrap\">IP\u30a2\u30c9\u30ec\u30b9<\/th>\n<td>\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b7\u30f3\u30b0\u5148\u306e\u30b5\u30fc\u30d0(\u4eca\u56de\u306f\u30eb\u30fc\u30bf\uff0b\u30b9\u30a4\u30c3\u30c1\u914d\u4e0b\u306e\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0)\u306eIP\u30a2\u30c9\u30ec\u30b9\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<th nowrap=\"nowrap\">\u76e3\u8996\u65b9\u6cd5<\/th>\n<td>IP\u30a2\u30c9\u30ec\u30b9\u3001\u30dd\u30fc\u30c8\u756a\u53f7\u3067\u6307\u5b9a\u3057\u305f\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b7\u30f3\u30b0\u5148\u30b5\u30fc\u30d0\u306e\u76e3\u8996\u65b9\u6cd5\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u3053\u306e\u76e3\u8996\u8a2d\u5b9a\u3067\u7570\u5e38\u306e\u3042\u308b\u30b5\u30fc\u30d0\u306f\u632f\u308a\u5206\u3051\u5148\u304b\u3089\u9664\u5916\u3055\u308c\u307e\u3059\u3002\u4eca\u56de\u306f\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u306a\u306e\u3067\u76e3\u8996\u65b9\u6cd5\u306b\u300chttp\u300d\u3092\u6307\u5b9a\u3057\u3001\u76e3\u8996\u5bfe\u8c61\u30d1\u30b9\u3068\u30ec\u30b9\u30dd\u30f3\u30b9\u30b3\u30fc\u30c9\u306f\u305d\u308c\u305e\u308c\u300c\/\u300d\u3068\u300c200\u300d\u3092\u8a2d\u5b9a\u3057\u307e\u3057\u305f\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u8a2d\u5b9a\u304c\u5b8c\u4e86\u3059\u308b\u3068\u3001VIP\u8a2d\u5b9a\u306e\u30ea\u30b9\u30c8\u306b\u4eca\u56de\u8a2d\u5b9a\u3057\u305fVIP\u8a2d\u5b9a\u304c\u8ffd\u52a0\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/cloud.sakura.ad.jp\/news\/wp-content\/uploads\/2016\/03\/WS000294.jpg\" rel=\"attachment wp-att-3190\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-3190\" src=\"https:\/\/cloud.sakura.ad.jp\/news\/wp-content\/uploads\/2016\/03\/WS000294-300x88.jpg\" alt=\"WS000294\" width=\"300\" height=\"88\" srcset=\"https:\/\/cloud.sakura.ad.jp\/news\/wp-content\/uploads\/2016\/03\/WS000294-300x88.jpg 300w, https:\/\/cloud.sakura.ad.jp\/news\/wp-content\/uploads\/2016\/03\/WS000294-768x226.jpg 768w, https:\/\/cloud.sakura.ad.jp\/news\/wp-content\/uploads\/2016\/03\/WS000294.jpg 878w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u306a\u304a\u3001\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u306f\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u30d1\u30cd\u30eb\u3067\u306e\u4e00\u9023\u306e\u8a2d\u5b9a\u5f8c\u306b\u5b9f\u969b\u306e\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u306b\u8a2d\u5b9a\u3092\u6295\u5165\u3059\u308b\u4ed5\u7d44\u307f\u3068\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u300c\u53cd\u6620\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u8a2d\u5b9a\u5185\u5bb9\u3092\u53cd\u6620\u3055\u305b\u307e\u3059(\u307e\u3060\u8d77\u52d5\u3057\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u96fb\u6e90\u64cd\u4f5c\u30e1\u30cb\u30e5\u30fc\u3088\u308a\u300c\u8d77\u52d5\u300d\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044)\u3002<\/p>\n<p>\u8a2d\u5b9a\u5b8c\u4e86\u5f8c\u3001\u4eee\u60f3IP\u30a2\u30c9\u30ec\u30b9\u3068\u3057\u3066\u8a2d\u5b9a\u3057\u305fIP\u30a2\u30c9\u30ec\u30b9\u306b\u63a5\u7d9a\u3059\u308b\u3068\u3001\u5b9f\u30b5\u30fc\u30d0\u3068\u3057\u3066\u767b\u9332\u3057\u305f1\u53f0\u306e\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u304b\u3089\u306e\u5fdc\u7b54\u3068\u3057\u3066\u30a6\u30a7\u30d6\u30da\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h1>3. 1\u53f0\u76ee\u306e\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u306e\u4f5c\u6210\u30fb\u8a2d\u5b9a<\/h1>\n<p>&nbsp;<\/p>\n<h3>\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u4f5c\u6210\u6642\u306e\u7559\u610f\u70b9<\/h3>\n<p>1\u53f0\u76ee\u306e\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u3092\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u30d1\u30cd\u30eb\u304b\u3089\u4f5c\u6210\u3057\u307e\u3059\u3002\u30b5\u30fc\u30d0\u4f5c\u6210\u6642\u306b\u7559\u610f\u3059\u3079\u304d\u4e8b\u9805\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<br \/>\n\u30fb\u30b5\u30fc\u30d0\u306f\u3001\u524d\u9805\u3067\u4f5c\u6210\u3057\u305f\u300c\u30eb\u30fc\u30bf\uff0b\u30b9\u30a4\u30c3\u30c1\u300d\u306b\u63a5\u7d9a\u3057\u3066\u304f\u3060\u3055\u3044<br \/>\n\u30fb\u30b5\u30fc\u30d0\u306b\u306f<\/p>\n<pre><code>autoscaling-demo<\/code><\/pre>\n<p>\u30bf\u30b0\u3092\u4ed8\u4e0e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n<p>&nbsp;<\/p>\n<h3>DSR\u65b9\u5f0f\u5bfe\u5fdc\u306e\u305f\u3081\u306e\u8a2d\u5b9a\u5909\u66f4\u624b\u9806<\/h3>\n<p>\u3055\u304f\u3089\u306e\u30af\u30e9\u30a6\u30c9\u3067\u63d0\u4f9b\u3059\u308b\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u306fDSR\u65b9\u5f0f\u3067\u52d5\u4f5c\u3059\u308b\u305f\u3081\u3001\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b7\u30f3\u30b0\u5148\u306e\u30b5\u30fc\u30d0\u3067\u306f\u30eb\u30fc\u30d7\u30d0\u30c3\u30af\u30a2\u30c9\u30ec\u30b9\u306b\u4eee\u60f3IP\u30a2\u30c9\u30ec\u30b9\u3092\u8a2d\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u30021\u53f0\u76ee\u306e\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u3067\u306f\u3001\u30af\u30ed\u30fc\u30f3\u306b\u3088\u308a\u8ffd\u52a0\u3059\u308b\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3082\u517c\u306d\u3066\u3053\u306e\u8a2d\u5b9a\u3092\u6295\u5165\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p>\u203b\u4ee5\u4e0b\u306e\u4f8b\u3067\u306f\u3001CentOS6\u7cfb\u3092\u60f3\u5b9a\u3057\u305f\u624b\u9806\u3068\u3057\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3>sysctl.conf\u3078\u306e\u8a2d\u5b9a\u8ffd\u52a0<\/h3>\n<p>\u30eb\u30fc\u30d7\u30d0\u30c3\u30af\u30a2\u30c9\u30ec\u30b9\u306b\u8a2d\u5b9a\u3057\u305f\u4eee\u60f3IP\u30a2\u30c9\u30ec\u30b9\u3067ARP\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u5fdc\u7b54\u3057\u306a\u3044\u3088\u3046\u306b\u30ab\u30fc\u30cd\u30eb\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\/etc\/sysctl.conf\u30d5\u30a1\u30a4\u30eb\u306b\u4ee5\u4e0b\u306e2\u884c\u306e\u8a2d\u5b9a\u3092\u8ffd\u8a18\u3057\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<pre><code>\r\nnet.ipv4.conf.all.arp_ignore = 1\r\nnet.ipv4.conf.all.arp_announce = 2\r\n<\/code><\/pre>\n<p>\u8a2d\u5b9a\u5f8c\u3001&#8221;sysctl -p&#8221;\u30b3\u30de\u30f3\u30c9\u3067\u8a2d\u5b9a\u3092\u53cd\u6620\u3057\u307e\u3059\u3002<\/p>\n<h3>lo:0\u30c7\u30d0\u30a4\u30b9\u306e\u4f5c\u6210<\/h3>\n<p>\u65b0\u305f\u306blo:0\u30c7\u30d0\u30a4\u30b9\u3092\u4f5c\u6210\u3057\u3001\u4eee\u60f3IP\u30a2\u30c9\u30ec\u30b9(\u4eca\u56de\u306e\u69cb\u6210\u4f8b\u3067\u306f203.0.113.8)\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\/etc\/sysconfig\/network-scripts\/ifcfg-lo:0\u30d5\u30a1\u30a4\u30eb\u3092\u65b0\u898f\u306b\u4f5c\u6210\u3057\u3001\u4ee5\u4e0b\u306e\u5185\u5bb9\u3092\u8a18\u8f09\u3057\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<pre><code>DEVICE=lo:0\r\nIPADDR=<i>\u4eee\u60f3IP\u30a2\u30c9\u30ec\u30b9<\/i>\r\nNETMASK=255.255.255.255\r\n<\/code><\/pre>\n<p>\u8a2d\u5b9a\u5f8c\u3001&#8221;ifup lo:0&#8243;\u30b3\u30de\u30f3\u30c9\u3067\u8a2d\u5b9a\u3092\u53cd\u6620\u3057\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3>\u305d\u306e\u4ed6\u306e\u8a2d\u5b9a<\/h3>\n<p>\u30b5\u30fc\u30d0\u3068\u3057\u3066\u5fc5\u8981\u306a\u30b5\u30fc\u30d3\u30b9\u306e\u8d77\u52d5\u8a2d\u5b9a\u3084\u30b3\u30f3\u30c6\u30f3\u30c4\u3001\u30c7\u30fc\u30bf\u306e\u8ee2\u9001\u3092\u884c\u3044\u307e\u3059\u3002\u4eca\u56de\u306e\u4f8b\u3067\u306f\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u306e\u305f\u3081\u3001Apache\u3092\u52d5\u4f5c\u3055\u305b\u3001\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u516c\u958b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u8ee2\u9001\u3055\u305b\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h1>4. AutoScaling\u7528\u76e3\u8996\u30b5\u30fc\u30d0\u306e\u6e96\u5099<\/h1>\n<p>\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u3092\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0\u3057\u3066AutoScaling\u3055\u305b\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3055\u305b\u308b\u30b5\u30fc\u30d0\u3092\u7528\u610f\u3057\u307e\u3059\u3002\u4eca\u56de\u306e\u4f8b\u3067\u306f\u30af\u30e9\u30a6\u30c9\u4e0a\u306b\u30b5\u30fc\u30d0\u3092\u4f5c\u6210\u3057\u3066\u5b9f\u884c\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u30d1\u30cd\u30eb\u304b\u3089\u30b5\u30fc\u30d0\u3092\u4f5c\u6210\u3057\u3001\u4ee5\u4e0b\u306e\u624b\u9806\u306b\u6cbf\u3063\u3066\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3057\u307e\u3059\u3002<br \/>\n\u203b\u4ee5\u4e0b\u624b\u9806\u306f\u300c\u3055\u304f\u3089\u306e\u30af\u30e9\u30a6\u30c9\u300d\u4e0a\u306bCentOS6.7\u306e\u30d1\u30d6\u30ea\u30c3\u30af\u30a2\u30fc\u30ab\u30a4\u30d6\u3092\u4f7f\u7528\u3057\u3066\u4f5c\u6210\u3057\u305f\u4eee\u60f3\u30b5\u30fc\u30d0\u306b\u3066\u52d5\u4f5c\u78ba\u8a8d\u3057\u3066\u3044\u308b\u624b\u9806\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3>rbenv\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>\u30c7\u30e2\u30d7\u30ed\u30b0\u30e9\u30e0\u306fRuby 2.1.4\u3067\u52d5\u4f5c\u3059\u308b\u305f\u3081\u3001rbenv\u3092\u4f7f\u7528\u3057\u3066\u6307\u5b9a\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<p>rbenv\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u5fc5\u8981\u306a\u4f9d\u5b58\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre><code>\r\n# yum install -y openssl-devel readline-devel zlib-devel\r\n<\/code><\/pre>\n<p>rbenv\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre><code>\r\n# git clone https:\/\/github.com\/sstephenson\/rbenv.git ~\/.rbenv\r\n# echo 'export PATH=\"$HOME\/.rbenv\/bin:$PATH\"' &gt;&gt; ~\/.bash_profile\r\n# echo 'eval \"$(rbenv init -)\"' &gt;&gt; ~\/.bash_profile\r\n# exec $SHELL -l\r\n# rbenv --version\r\nrbenv 1.0.0-19-g29b4da7\r\n# git clone https:\/\/github.com\/sstephenson\/ruby-build.git ~\/.rbenv\/plugins\/ruby-build\r\n<\/code><\/pre>\n<p>Ruby 2.1.4\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre><code>\r\n# rbenv install -v 2.1.4\r\n# rbenv rehash\r\n# rbenv versions\r\n  2.1.4\r\n# rbenv global 2.1.4\r\n<\/code><\/pre>\n<p>Ruby 2.1.4\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre><code>\r\n# ruby -v\r\nruby 2.1.4p265 (2014-10-27 revision 48166) [x86_64-linux]\r\n<\/code><\/pre>\n<p>&nbsp;<\/p>\n<h3>Saklient\u3068\u30c7\u30e2\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>\u30c7\u30e2\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u306f\u3055\u304f\u3089\u306e\u30af\u30e9\u30a6\u30c9\u3092API\u7d4c\u7531\u3067\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3059\u308b\u305f\u3081\u306b<br \/>\n<a href=\"http:\/\/sakura-internet.github.io\/saklient.doc\/\" target=\"_blank\" rel=\"noopener noreferrer\">Saklient<\/a>\u3068\u547c\u3070\u308c\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u306e\u3067\u3001bundler\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<pre><code>\r\n# gem install bundler\r\n# cd \/usr\/local\/src\/\r\n# git clone https:\/\/github.com\/sakura-internet\/saklient-autoscaling-demo.git\r\n# cd saklient-autoscaling-demo\/\r\n# bundle install --path vendor\/bundle\r\n<\/code><\/pre>\n<p>&nbsp;<\/p>\n<h3>\u30c7\u30e2\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u8a2d\u5b9a<\/h3>\n<p>\u30c7\u30e2\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u52d5\u4f5c\u3055\u305b\u308b\u305f\u3081\u306e\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002<br \/>\nconfig.yml.sample\u3092\u30b3\u30d4\u30fc\u3057\u3066config.yml\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<pre><code>\r\n# cd \/usr\/local\/src\/saklient-autoscaling-demo\/config\r\n# cp config.yml.example config.yml\r\n<\/code><\/pre>\n<p>config.yml\u30d5\u30a1\u30a4\u30eb\u3092\u4ee5\u4e0b\u306e\u901a\u308a\u66f8\u304d\u63db\u3048\u307e\u3059\u3002<\/p>\n<pre><code>\r\n# vi config.yml\r\n<\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre><code>\r\n# \u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u30d1\u30cd\u30eb\u3088\u308a\u4f5c\u6210\u3057\u305fAPI\u30ad\u30fc\u3092\u6307\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\r\n# https:\/\/secure.sakura.ad.jp\/cloud\/iaas\/#!\/pref\/apikey\/ \u3088\u308a\u4f5c\u6210\u3067\u304d\u307e\u3059\r\ntoken: [ACCESS TOKEN]\r\nsecret: [ACCESS TOKEN SECRET]\r\n\r\n# \u30ea\u30bd\u30fc\u30b9\u3092\u4f5c\u6210\u3059\u308b\u30be\u30fc\u30f3\u3092\u6307\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\r\n# tk1a(\u6771\u4eac\u7b2c1), is1a(\u77f3\u72e9\u7b2c1), is1b(\u77f3\u72e9\u7b2c2), tk1v(Sandbox)\r\nzone: [ZONE ID]\r\n\r\n# \u4f5c\u6210\u3057\u305f\u30b5\u30fc\u30d0,\u30b9\u30a4\u30c3\u30c1,\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u306e\u30ea\u30bd\u30fc\u30b9ID\u3092\u6307\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\r\nbase_server_id: [\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u306e\u30ea\u30bd\u30fc\u30b9ID]\r\nswytch_id: [\u30eb\u30fc\u30bf\uff0b\u30b9\u30a4\u30c3\u30c1\u306e\u30ea\u30bd\u30fc\u30b9ID]\r\nlb_id: [\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u306e\u30ea\u30bd\u30fc\u30b9ID]\r\n<\/code><\/pre>\n<p>&nbsp;<\/p>\n<h1>4. \u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u3092\u8ffd\u52a0(\u30b9\u30b1\u30fc\u30eb\u30a2\u30a6\u30c8)\u3057\u3066\u307f\u308b<\/h1>\n<p>\u3053\u308c\u307e\u3067\u306e\u4f5c\u696d\u3067\u5192\u982d\u306e\u56f3\u306e\u901a\u308a\u306e\u6700\u5c0f\u69cb\u6210\u306e\u6e96\u5099\u304c\u6574\u3044\u307e\u3057\u305f\u306e\u3067<br \/>\nAutoScaling\u30c7\u30e2\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<pre><code>\r\n# cd \/usr\/local\/src\/saklient-autoscaling-demo\/\r\n# bundle ex .\/bin\/demo\r\nsearching servers\r\nsearching base server\r\nsearching source disk\r\nsearching swytch\r\nsearching loadbalancer\r\n[monitor][YYYY-MM-DD XX:XX:XX] ***** start *****\r\n[monitor][YYYY-MM-DD XX:XX:XX] cpu_times =&gt; []\r\n<\/code><\/pre>\n<p>\u5b9f\u969b\u306b\u30aa\u30fc\u30c8\u30b9\u30b1\u30fc\u30eb\u3059\u308b\u69d8\u5b50\u3092\u78ba\u8a8d\u3059\u308b\u306b\u306f\u3001\u30b5\u30fc\u30d0\u306b\u8ca0\u8377\u3092\u304b\u3051\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u672c\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u306fCPU-TIME\u3092\u76e3\u8996\u3057\u3066\u3044\u308b\u305f\u3081\u3001CPU\u306b\u8ca0\u8377\u3092\u304b\u3051\u308b\u4f8b\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u305f\u4e0a\u3067\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre><code>\r\n# openssl speed\r\n<\/code><\/pre>\n<p>\u30c7\u30e2\u30d7\u30ed\u30b0\u30e9\u30e0\u306f5\u5206\u9593\u9694\u3067CPU-TIME\u3092\u76e3\u8996\u3057\u3001\u30b9\u30b1\u30fc\u30eb\u30a2\u30a6\u30c8\u30fb\u30b9\u30b1\u30fc\u30eb\u30a4\u30f3\u3092\u884c\u3044\u307e\u3059\u3002<br \/>\n\u4e0b\u8a18\u306fCPU-TIME\u4e0a\u6607\u3092\u691c\u77e5\u3057\u30aa\u30fc\u30c8\u30b9\u30b1\u30fc\u30eb\u30a2\u30a6\u30c8\u304c\u884c\u308f\u308c\u305f\u5834\u5408\u306e\u8868\u793a\u4f8b\u3067\u3059\u3002<\/p>\n<pre><code>\r\n# bundle ex .\/bin\/demo\r\nsearching servers\r\nsearching base server\r\nsearching source disk\r\nsearching swytch\r\nsearching loadbalancer\r\n[monitor][YYYY-MM-DD XX:XX:XX] ***** start *****\r\n[monitor][YYYY-MM-DD XX:XX:XX] cpu_times =&gt; [0.036666666667]\r\n[monitor][YYYY-MM-DD XX:XX:XX] sum_time =&gt; 0.036666666667\r\n[monitor][YYYY-MM-DD XX:XX:XX] ave_time =&gt; 0.036666666667\r\n[monitor][YYYY-MM-DD XX:XX:XX] cpu_times =&gt; [0.036666666667]\r\n[monitor][YYYY-MM-DD XX:XX:XX] sum_time =&gt; 0.036666666667\r\n[monitor][YYYY-MM-DD XX:XX:XX] ave_time =&gt; 0.036666666667\r\n[monitor][YYYY-MM-DD XX:XX:XX] cpu_times =&gt; [0.66]\r\n[monitor][YYYY-MM-DD XX:XX:XX] sum_time =&gt; 0.66\r\n[monitor][YYYY-MM-DD XX:XX:XX] ave_time =&gt; 0.66\r\n[monitor][YYYY-MM-DD XX:XX:XX] &lt;&lt; scale out start &gt;&gt;\r\nadd a server to loadbalancer\r\n[monitor][YYYY-MM-DD XX:XX:XX] &lt;&lt; scale out end &gt;&gt;\r\n[monitor][YYYY-MM-DD XX:XX:XX] cpu_times =&gt; [0.58333333333]\r\n[monitor][YYYY-MM-DD XX:XX:XX] cpu_times =&gt; [0.036666666667]\r\n<\/code><\/pre>\n<p>&nbsp;<\/p>\n<h6>\u30b9\u30b1\u30fc\u30eb\u30a2\u30a6\u30c8\u524d\u306e\u69cb\u6210<\/h6>\n<p><a href=\"https:\/\/cloud.sakura.ad.jp\/news\/wp-content\/uploads\/2016\/03\/mod-WS000295.jpg\" rel=\"attachment wp-att-3194\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3194\" src=\"https:\/\/cloud.sakura.ad.jp\/news\/wp-content\/uploads\/2016\/03\/mod-WS000295.jpg\" alt=\"mod-WS000295\" width=\"204\" height=\"175\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<h6>\u30b9\u30b1\u30fc\u30eb\u30a2\u30a6\u30c8\u5f8c\u306e\u69cb\u6210<\/h6>\n<p><a href=\"https:\/\/cloud.sakura.ad.jp\/news\/wp-content\/uploads\/2016\/03\/mod-WS000296.jpg\" rel=\"attachment wp-att-3193\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3193\" src=\"https:\/\/cloud.sakura.ad.jp\/news\/wp-content\/uploads\/2016\/03\/mod-WS000296.jpg\" alt=\"mod-WS000296\" width=\"306\" height=\"179\" \/><\/a><\/p>\n<p>\u76e3\u8996\u5bfe\u8c61\u306e\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u306e\u8ca0\u8377\u304c\u4e0b\u304c\u308b\u3068\u3001\u30b9\u30b1\u30fc\u30eb\u30a2\u30a6\u30c8\u3057\u305f\u30b5\u30fc\u30d0\u3092\u81ea\u52d5\u7684\u306b\u524a\u9664\u3057\u307e\u3059(\u30aa\u30fc\u30c8\u30b9\u30b1\u30fc\u30eb\u30a4\u30f3)\u3002<\/p>\n<pre><code>\r\n[monitor][YYYY-MM-DD XX:XX:XX] cpu_times =&gt; [0.043333333333, 0.046666666667]\r\n[monitor][YYYY-MM-DD XX:XX:XX] sum_time =&gt; 0.09\r\n[monitor][YYYY-MM-DD XX:XX:XX] ave_time =&gt; 0.045\r\n[monitor][YYYY-MM-DD XX:XX:XX] &gt;&gt; scale in start &lt;&lt; removing a server removing a lb_server [monitor][YYYY-MM-DD XX:XX:XX] &gt;&gt; scale in end &lt;&lt;\r\n<\/code><\/pre>\n<h6>\u30b9\u30b1\u30fc\u30eb\u30a4\u30f3\u5f8c\u306e\u69cb\u6210<\/h6>\n<p><a href=\"https:\/\/cloud.sakura.ad.jp\/news\/wp-content\/uploads\/2016\/03\/mod-WS000295.jpg\" rel=\"attachment wp-att-3194\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3194\" src=\"https:\/\/cloud.sakura.ad.jp\/news\/wp-content\/uploads\/2016\/03\/mod-WS000295.jpg\" alt=\"mod-WS000295\" width=\"204\" height=\"175\" \/><\/a><\/p>\n<p>\u3044\u304b\u304c\u3067\u3057\u305f\u3067\u3057\u3087\u3046\u304b\u3002API\u3092\u6d3b\u7528\u3044\u305f\u3060\u304f\u3053\u3068\u3067\u3053\u306e\u3088\u3046\u306a\u4f5c\u696d\u3082\u81ea\u52d5\u5316\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u306e\u3067\u3001\u662f\u975e\u3053\u306e\u6a5f\u4f1a\u306b\u8a66\u3057\u3066\u3044\u305f\u3060\u3051\u308c\u3070\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p><a class=\"alpha\" href=\"http:\/\/cloud.sakura.ad.jp\/\" rel=\"attachment wp-att-475\"><img loading=\"lazy\" decoding=\"async\" style=\"border: none;\" title=\"sacloudsignupbtn\" src=\"\/wp-content\/themes\/fukuchi\/images\/sacloudsignupbtn2.png\" alt=\"\" width=\"600\" height=\"80\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>[2022\u5e746\u670815\u65e5\u8ffd\u8a18] \u672c\u8a18\u4e8b\u306e\u300csaklient-autoscaling-demo\u300d\u306b\u3064\u304d\u307e\u3057\u3066\u306f\u3001\u73fe\u5728\u300c\u975e\u63a8\u5968\u300d\u3068\u306a\u3063\u3066\u304a\u308a\u307e\u3059\u3002 \u305d\u306e\u305f\u3081\u30aa\u30fc\u30c8\u30b9\u30b1\u30fc\u30eb\u3092\u3054\u5e0c\u671b\u306e\u5834\u5408\u306f\u3001\u540c\u69d8\u306e\u6a5f\u80fd\u3068\u306a\u308b\u300c\u30aa\u30fc\u30c8\u30b9\u30b1\u30fc\u30eb\uff08\u30aa\u30fc\u30d7\u30f3\u30d9\u30fc\u30bf\u7248\uff09\u300d\u3092\u3054\u6d3b\u7528\u304f\u3060\u3055\u3044\u3002 \u3053\u306e\u305f\u3073\u300c\u3055\u304f\u3089\u306e\u30af\u30e9\u30a6\u30c9\u300d\u3067\u306f\u3001\u30b5\u30fc\u30d0\u3078\u306e\u30a2\u30af\u30bb\u30b9\u304c\u5897\u52a0\u3057\u305f\u969b\u306b\u30b5\u30fc\u30d0\u3092\u81ea\u52d5\u3067\u8ffd\u52a0\u3059\u308b\u30b9\u30b1\u30fc\u30eb\u30a2\u30a6\u30c8\u3068\u3001\u8ca0\u8377\u304c\u6e1b\u5c11\u3057\u305f\u969b\u306b\u30b9\u30b1\u30fc\u30eb\u30a2\u30a6\u30c8\u3057\u305f\u30b5\u30fc\u30d0\u3092\u524a\u9664\u3059\u308b\u30b9\u30b1\u30fc\u30eb\u30a4\u30f3\u3092\u81ea\u52d5\u3067\u884c\u3046\u300cAutoScaling\u300d\u306e\u30c7\u30e2\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u516c\u958b\u3057\u307e\u3057\u305f\u3002\u672c\u8a18\u4e8b\u3067\u306f\u300c\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u300d\u30a2\u30d7\u30e9\u30a4\u30a2\u30f3\u30b9\u3068\u300c\u30af\u30ed\u30fc\u30f3\u6a5f\u80fd\u300d\u3092\u7d44\u307f\u5408\u308f\u305b\u305fAutoScaling\u306e\u4ed5\u7d44\u307f [&hellip;]<\/p>\n","protected":false},"author":70,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[],"class_list":["post-3176","post","type-post","status-publish","format-standard","hentry","category-tips"],"_links":{"self":[{"href":"https:\/\/cloud.sakura.ad.jp\/news\/wp-json\/wp\/v2\/posts\/3176","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cloud.sakura.ad.jp\/news\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloud.sakura.ad.jp\/news\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloud.sakura.ad.jp\/news\/wp-json\/wp\/v2\/users\/70"}],"replies":[{"embeddable":true,"href":"https:\/\/cloud.sakura.ad.jp\/news\/wp-json\/wp\/v2\/comments?post=3176"}],"version-history":[{"count":8,"href":"https:\/\/cloud.sakura.ad.jp\/news\/wp-json\/wp\/v2\/posts\/3176\/revisions"}],"predecessor-version":[{"id":17644,"href":"https:\/\/cloud.sakura.ad.jp\/news\/wp-json\/wp\/v2\/posts\/3176\/revisions\/17644"}],"wp:attachment":[{"href":"https:\/\/cloud.sakura.ad.jp\/news\/wp-json\/wp\/v2\/media?parent=3176"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloud.sakura.ad.jp\/news\/wp-json\/wp\/v2\/categories?post=3176"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloud.sakura.ad.jp\/news\/wp-json\/wp\/v2\/tags?post=3176"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}