{"id":11302,"date":"2020-07-11T07:08:20","date_gmt":"2020-07-10T22:08:20","guid":{"rendered":"http:\/\/www.code-magagine.com\/?p=11302"},"modified":"2023-05-27T18:14:57","modified_gmt":"2023-05-27T09:14:57","slug":"%e3%80%90aws%e3%80%91%e3%80%8celb%e3%80%8d%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6","status":"publish","type":"post","link":"http:\/\/www.code-magagine.com\/?p=11302","title":{"rendered":"\u3010AWS\u3011\u300cELB\u300d\u3001\u69cb\u7bc9\u624b\u9806"},"content":{"rendered":"<h2>ELB\u3068\u306f\uff1f<\/h2>\n<p>Web\u30b5\u30fc\u30d0\u30fc\u304c2\u53f0\u3042\u308b\u5834\u5408\u306b\u30a2\u30af\u30bb\u30b9\u3092\u5206\u6563\u3059\u308b<span style=\"color: #ff0000;\"><strong>\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5<\/strong><\/span>\u306e\u5f79\u5272\u3092\u3057\u307e\u3059\u3002<\/p>\n<h2>\u6982\u8981<\/h2>\n<h3>\u8907\u6570\u306eEC2\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306b\u8ca0\u8377\u5206\u6563\u3092\u3057\u307e\u3059\u3002<\/h3>\n<h3>\u8907\u6570\u306eAZ\u306b\u3042\u308b\u8907\u6570\u306eEC2\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u4e2d\u304b\u3089\u6b63\u5e38\u306a\u30bf\u30fc\u30b2\u30c3\u30c8\u306b\u306e\u307f\u632f\u308a\u5206\u3051\u307e\u3059\u3002\uff08\u30d8\u30eb\u30b9\u30c1\u30a7\u30c3\u30af\uff09<\/h3>\n<p><span style=\"color: #ff0000;\"><strong>\u8907\u6570\u306eAZ\u306b\u632f\u308a\u5206\u3051\u308b\u969b<\/strong><\/span>\u306b\u6700\u3082\u52b9\u679c\u3092\u767a\u63ee\u3057\u307e\u3059\u3002\u8907\u6570\u3042\u308bEC2\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u4e2d\u3067\u6b63\u5e38\u306b\u7a3c\u50cd\u3057\u3066\u3044\u308b\u30b5\u30fc\u30d0\u30fc\u306b\u632f\u308a\u5206\u3051\u307e\u3059\u3002<\/p>\n<h3>SSL\u30bf\u30fc\u30df\u30cd\u30fc\u30b7\u30e7\u30f3\u3068\u3057\u3066\u306e\u5f79\u5272<\/h3>\n<p>ELB\u306b\u8a3c\u660e\u66f8\u3092\u30a2\u30bf\u30c3\u30c1\u3059\u308b\u3053\u3068\u3067\u3001\u901a\u4fe1\u306e\u6697\u53f7\u5316\u8907\u5408\u5316\u3092\u884c\u3063\u3066\u304f\u308c\u3066EC2\u306f\u672c\u6765\u306e\u5f79\u5272\u306b\u5c02\u5ff5\u3067\u304d\u307e\u3059\u3002\u3061\u306a\u307f\u306b\u3001\u8a3c\u660e\u66f8\u306f<span style=\"color: #ff0000;\"><strong>AWS Certificate Manager(ACM)<\/strong><\/span>\u3067\u4f5c\u6210\u3059\u308c\u3070\u7121\u6599\u306b\u306a\u308a\u307e\u3059\u3002\uff08\u7121\u6599\u306e\u8a3c\u660e\u66f8\u306fLet's Encrypt\u304c\u6709\u540d\u3060\u304c\u3001ACM\u306f\u30b3\u30f3\u30bd\u30fc\u30eb\u304b\u3089\u30dd\u30c1\u30dd\u30c1\u64cd\u4f5c\u304c\u3067\u304d\u308b\u306e\u3067\u7c21\u5358\u3067\u3059\u3002\uff09<\/p>\n<h2>\u7279\u5fb4<\/h2>\n<h3>\u30b9\u30b1\u30fc\u30e9\u30d6\u30eb\uff08\u30aa\u30fc\u30c8\u30b9\u30b1\u30fc\u30eb\uff09<\/h3>\n<p>ELB\u81ea\u4f53\u3082\u8ca0\u8377\u306b\u5fdc\u3058\u3066\u81ea\u52d5\u3067\u30b9\u30b1\u30fc\u30eb\u30a2\u30a6\u30c8\u30fb\u30b9\u30b1\u30fc\u30eb\u30a4\u30f3\u3057\u307e\u3059\u3002\u5927\u91cf\u306e\u30a2\u30af\u30bb\u30b9\u304c\u6765\u3066\u3082ELB\u306e\u51e6\u7406\u304c\u8ffd\u3044\u3064\u304b\u306a\u3044\u3068\u3044\u3046\u3053\u3068\u304c\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<h3>AZ\u3092\u307e\u305f\u304c\u308b\u69cb\u6210<\/h3>\n<p>ELB\u3092\u5229\u7528\u3059\u308b\u5834\u5408\u306f\u4e00\u3064\u306e\u30ea\u30fc\u30b8\u30e7\u30f3\u3092\u9078\u3093\u3067\u3001\u305d\u306e\u30ea\u30fc\u30b8\u30e7\u30f3\u5185AZ\u3092\u307e\u305f\u304c\u308b\u3088\u3046\u306b\u69cb\u6210\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u540d\u524d\u89e3\u6c7a<\/h3>\n<p>DNS\u540d\u3092\u5272\u308a\u5f53\u3066\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3001ELB\u3078\u306e\u63a5\u7d9a\u30dd\u30a4\u30f3\u30c8\u3078\u306e\u30a2\u30af\u30bb\u30b9\u306bDNS\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<h3>\u5b89\u4fa1\u306a\u5f93\u91cf\u8ab2\u91d1<\/h3>\n<p>\u5f93\u91cf\u8ab2\u91d1\u3067\u5229\u7528\u53ef\u80fd<\/p>\n<h3>\u30de\u30cd\u30fc\u30b8\u30c9\u30b5\u30fc\u30d3\u30b9<\/h3>\n<p>\u904b\u7528\u304c\u697d<\/p>\n<h2>\u5185\u5916\u306e\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u7a2e\u985e<\/h2>\n<p>2\u7a2e\u985e\u306b\u5206\u304b\u308c\u307e\u3059\u3002\u5916\u90e8\u3082\u5185\u90e8\u3082\u3069\u3061\u3089\u306e\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u3082\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8IP\u30a2\u30c9\u30ec\u30b9\u3092\u5bfe\u8c61\u306b\u3059\u308b\u306e\u3067Web\u30b5\u30fc\u30d0\u306b\u30d1\u30d6\u30ea\u30c3\u30afIP\u30a2\u30c9\u30ec\u30b9\u3092\u8a2d\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<h3>\u5916\u90e8\u5411\u3051ELB<\/h3>\n<p>\u5916\u90e8\u901a\u4fe1\u306e\u30d0\u30e9\u30f3\u30b7\u30f3\u30b0\u306b\u4f7f\u308f\u308c\u307e\u3059\u3002<\/p>\n<h3>\u5185\u90e8\u5411\u3051ELB<\/h3>\n<p>\u5185\u90e8\u901a\u4fe1\u306e\u30d0\u30e9\u30f3\u30b7\u30f3\u30b0\u306b\u4f7f\u308f\u308c\u307e\u3059\u3002\u30aa\u30f3\u30d7\u30ec\u3067\u306f\u5185\u90e8\u306e\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u306f\u3042\u307e\u308a\u4f7f\u308f\u308c\u306a\u3044\u3067\u3057\u3087\u3046\u304c\u3001AWS\u3067\u306f\u57fa\u672c\u7684\u306a\u8a2d\u8a08\u30d1\u30bf\u30fc\u30f3\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>\u30a2\u30a4\u30c9\u30eb\u30bf\u30a4\u30e0\u306e\u8a2d\u5b9a<\/h2>\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u306760\u79d2\u3067\u3042\u308a\u300160\u79d2\u9593\u901a\u4fe1\u304c\u306a\u3051\u308c\u3070ELB\u304c\u30b3\u30cd\u30af\u30b7\u30e7\u30f3\u3092\u9589\u3058\u308b\u52d5\u304d\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>\u30ea\u30b9\u30ca\u30fc<\/h2>\n<h3>\u56f3<\/h3>\n<h4>\u8a2d\u8a08\u65b9\u91dd<\/h4>\n<ul>\n<li>DNS(Route53\u306a\u3069)\u3067\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3053\u3068\u3002<\/li>\n<li>ELB\u81ea\u4f53\u3092VPC\u5185\u3001\u30a2\u30d9\u30a4\u30e9\u30d3\u30ea\u30c6\u30a3\u30be\u30fc\u30f3\u5185\u306b\u914d\u7f6e\u3059\u308b\u3002<\/li>\n<li>ELB\u306f\u5916\u5074\u304b\u3089\u306e\u30a2\u30af\u30bb\u30b9\u3092\u53d7\u3051\u4ed8\u3051\u308b\u305f\u3081\u30d1\u30d6\u30ea\u30c3\u30af\u30b5\u30d6\u30cd\u30c3\u30c8\u306b\u914d\u7f6e\u3059\u308b\u3002<\/li>\n<li>\u30bf\u30fc\u30b2\u30c3\u30c8\u306f\u5916\u90e8\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3055\u305b\u308b\u5fc5\u8981\u304c\u306a\u3044\u306e\u3067\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u30b5\u30d6\u30cd\u30c3\u30c8\u306b\u914d\u7f6e\u3059\u308b\u3002<\/li>\n<\/ul>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-12788\" src=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2020\/07\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2021-01-10-14.01.40.png\" alt=\"\" width=\"440\" height=\"341\" srcset=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2020\/07\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2021-01-10-14.01.40.png 880w, http:\/\/www.code-magagine.com\/wp-content\/uploads\/2020\/07\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2021-01-10-14.01.40-300x233.png 300w, http:\/\/www.code-magagine.com\/wp-content\/uploads\/2020\/07\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2021-01-10-14.01.40-768x595.png 768w\" sizes=\"(max-width: 440px) 100vw, 440px\" \/><\/p>\n<h3>\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3092\u53d7\u3051\u4ed8\u3051\u308b\u30dd\u30fc\u30c8\u3068\u30d7\u30ed\u30c8\u30b3\u30eb\u3092\u8a2d\u5b9a\u3057\u3066\u304a\u304f\u3002<\/h3>\n<p>\u30ea\u30b9\u30ca\u30fc\u306b\u306f\u3042\u3089\u304b\u3058\u3081\u30dd\u30fc\u30c8\u3068\u30d7\u30ed\u30c8\u30b3\u30eb\u3092\u8a2d\u5b9a\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<h3>\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3092\u30bf\u30fc\u30b2\u30c3\u30c8\u30b0\u30eb\u30fc\u30d7\u3078\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3059\u308b\u3002<\/h3>\n<h4>\u30bf\u30fc\u30b2\u30c3\u30c8\u30b0\u30eb\u30fc\u30d7<\/h4>\n<p><span style=\"color: #ff0000;\"><strong>\u300c\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u306e\u9001\u4fe1\u5148\uff08\u6d41\u3059\u5bfe\u8c61\uff09\u300d<\/strong><\/span>\u306e\u3053\u3068\u3002EC2\u3001Lambda\u3001\u307e\u305f\u306f\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8IP\u30a2\u30c9\u30ec\u30b9\uff08\u30aa\u30f3\u30d7\u30ec\u30df\u30b9\u3092\u5bfe\u8c61\u306b\u3067\u304d\u308b\u3002\uff09\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>\u30eb\u30fc\u30eb<\/h2>\n<h3>\u30bf\u30fc\u30b2\u30c3\u30c8\u30b0\u30eb\u30fc\u30d7\u3001\u6761\u4ef6\u3001\u512a\u5148\u9806\u4f4d\u3092\u6307\u5b9a\u3057\u305f\u3082\u306e\u3002<\/h3>\n<h3>\u8a2d\u5b9a\u3057\u305f\u6761\u4ef6\u306b\u5408\u81f4\u3057\u305f\u5834\u5408\u3001\u8a2d\u5b9a\u3057\u305f\u30a2\u30af\u30b7\u30e7\u30f3\u304c\u5b9f\u884c\u3055\u308c\u308b\u3002<\/h3>\n<h2>\u30d8\u30eb\u30b9\u30c1\u30a7\u30c3\u30af<\/h2>\n<p>\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u9001\u4fe1\u5148\u306eEC2\u72b6\u614b\u304c\u6b63\u5e38\u304b\u76e3\u8996\u3059\u308b\u305f\u3081EC2\u304c\u4e00\u5b9a\u306e\u9593\u9694\u3067EC2\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u4fe1\u3057\u3066\u30c1\u30a7\u30c3\u30af\u306e\u7d50\u679c\u6b63\u5e38\u306e\u72b6\u614b\u306e\u307fEC2\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u4fe1\u3057\u307e\u3059\u3002<\/p>\n<h3>\u30ec\u30b9\u30dd\u30f3\u30b9\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8<\/h3>\n<p>\u30bf\u30fc\u30b2\u30c3\u30c8\u304b\u3089\u306e\u30ec\u30b9\u30dd\u30f3\u30b9\u304c\u8fd4\u3063\u3066\u3053\u306a\u3044\u5834\u5408\u306b\u5931\u6557\u3068\u307f\u306a\u3059\u79d2\u6570\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u30675\u79d2\u3002<\/p>\n<h3>\u30a4\u30f3\u30bf\u30fc\u30d0\u30eb<\/h3>\n<p>\u30d8\u30eb\u30b9\u30c1\u30a7\u30c3\u30af\u304c\u884c\u308f\u308c\u308b\u9593\u9694\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u306f30\u79d2\u30015\u79d2\u301c300\u79d2<\/p>\n<h3>HealthyThresholdCount<\/h3>\n<p>\u7570\u5e38\u306a\u30bf\u30fc\u30b2\u30c3\u30c8\u304c\u6b63\u5e38\u3067\u3042\u308b\u3068\u898b\u306a\u3055\u308c\u308b\u307e\u3067\u306b\u5fc5\u8981\u306a\u30d8\u30eb\u30b9\u30c1\u30a7\u30c3\u30af\u306e\u9023\u7d9a\u6210\u529f\u6570\u3001\u7bc4\u56f2\u306f2-10\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306f5<\/p>\n<h2>\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u306e\u7a2e\u985e<\/h2>\n<p>ELB\u3067\u9078\u629e\u3067\u304d\u308b\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u306b\u306f\u4e0b\u8a18\u306e3\u7a2e\u985e\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>Application Load Balancer<\/li>\n<li>Network Load Balancer<\/li>\n<li>Classic Load Balancer<\/li>\n<\/ul>\n<h3>Application Load Balancer<\/h3>\n<p>L7(\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30ec\u30a4\u30e4\u30fc\uff1aHTTP\u3001HTTPS\u3001HTTP\/2)\u3067\u8ca0\u8377\u5206\u6563\u3059\u308b\u5834\u5408\u306b\u4f7f\u3044\u307e\u3059\u3002Web\u30b5\u30fc\u30d3\u30b9\u3092\u4f5c\u6210\u3059\u308b\u969b\u306f\u57fa\u672c\u7684\u306b\u306f\u3053\u306e\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u3092\u9078\u3073\u307e\u3059\u3002\u30b9\u30b1\u30fc\u30eb\u3059\u308b\u3068IP\u30a2\u30c9\u30ec\u30b9\u304c\u5909\u308f\u3063\u3066\u3057\u307e\u3046\u306e\u3067\u30a2\u30af\u30bb\u30b9\u3059\u308b\u969b\u306f\u5fc5\u305a\u72ec\u81ea\u30c9\u30e1\u30a4\u30f3\u3067\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>Network Load Balancer<\/h3>\n<p>L4(TCP\u3001UDP\u3001TLS)\u3067\u8ca0\u8377\u5206\u6563\u3059\u308b\u5834\u5408\u306b\u4f7f\u3044\u307e\u3059\u3002\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u901a\u4fe1\u7d4c\u8def\u3092\u5206\u6563\u3067\u304d\u307e\u3059\u3002\u884c\u304d\u306e\u7d4c\u8def\u306f\u300cApplication Load Balancer\u300d\u3068\u540c\u3058\u3067\u3059\u304c\u3001\u5e30\u308a\u306e\u7d4c\u8def\u304c\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u3092\u4ecb\u3055\u305a\u306b\u76f4\u63a5\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306b\u901a\u4fe1\u3092\u8fd4\u3057\u307e\u3059\u3002\u306a\u306e\u3067<span style=\"color: #ff0000;\"><strong>Application Load Balancer\u306b\u6bd4\u3079\u308b\u3068\u3088\u308a\u9045\u5ef6\u304c\u306a\u3044\u901a\u4fe1\u3092\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002\u9ad8\u3044\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u6c42\u3081\u308b\u306e\u3067\u3042\u308c\u3070\u3053\u3061\u3089\u3092\u4f7f\u3063\u305f\u65b9\u304c\u826f\u3044\u3067\u3059\u304c\u3001\u666e\u901a\u306eWeb\u30b5\u30fc\u30d3\u30b9\u3092\u4f5c\u308b\u306e\u3067\u3042\u308c\u3070\u300cApplication Load Balancer\u300d\u3067\u5341\u5206\u3067\u3057\u3087\u3046\u3002<\/strong><\/span>\u306a\u304a\u3001\u30a2\u30af\u30bb\u30b9\u3057\u3066\u3082IP\u306f\u5909\u308f\u3089\u306a\u3044\u306e\u3067\u5fc5\u305a\u3057\u3082\u72ec\u81ea\u30c9\u30e1\u30a4\u30f3\u3092\u4f7f\u308f\u306a\u304f\u3066\u3082\u826f\u3044\u3067\u3059\u3002<\/p>\n<h3>Classic Load Balancer<\/h3>\n<p>Network Load Balancer\u306b\u8fd1\u3044\u3067\u3059\u304c\u3001\u65e7\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u306a\u308b\u306e\u3067\u57fa\u672c\u7684\u306b\u306f\u9078\u3070\u306a\u304f\u3066\u3082\u826f\u3044\u3067\u3057\u3087\u3046\u3002\u30b9\u30b1\u30fc\u30eb\u3059\u308b\u3068IP\u30a2\u30c9\u30ec\u30b9\u304c\u5909\u308f\u3063\u3066\u3057\u307e\u3046\u306e\u3067\u30a2\u30af\u30bb\u30b9\u3059\u308b\u969b\u306f\u5fc5\u305a\u72ec\u81ea\u30c9\u30e1\u30a4\u30f3\u3067\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>\u69cb\u7bc9\u306e\u30dd\u30a4\u30f3\u30c8<\/h2>\n<h3>\u30a2\u30d9\u30a4\u30e9\u30d3\u30ea\u30c6\u30a3\u30be\u30fc\u30f3\u3092\u8de8\u3063\u3066\u914d\u7f6e\u3059\u308b\u3053\u3068<\/h3>\n<p>\u3042\u308b\u30a8\u30ea\u30a2\u304c\u30c0\u30e1\u306b\u306a\u3063\u3066\u3044\u3066\u3082\u5225\u306e\u30a8\u30ea\u30a2\u3067\u7a3c\u50cd\u3092\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>Web\u30b5\u30fc\u30d0\u3092\u30b9\u30c6\u30fc\u30c8\u30ec\u30b9\u306b\u69cb\u7bc9\u3059\u308b\u3053\u3068<\/h3>\n<p>Web\u30b5\u30fc\u30d0\u30fc\u306b\u72b6\u614b\u3092\u6301\u305f\u305b\u306a\u3044\u3088\u3046\u306b\u69cb\u7bc9\u3059\u308b\u3053\u3068\u3067\u3059\u3002\u6301\u305f\u305b\u308b\u30c7\u30fc\u30bf\u306f\u5fc5\u305aDB\u30b5\u30fc\u30d0\u30fc\u3092\u5225\u9014\u69cb\u7bc9\u3059\u308b\u7b49\u3001\u5225\u30b5\u30fc\u30d0\u30fc\u306b\u5206\u3051\u308b\u3068\u826f\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<h3>Web\u30b5\u30fc\u30d0\u306eKeep-alive\u306e\u30bf\u30a4\u30e0\u3092\u9577\u304f\u3059\u308b\u3002<\/h3>\n<p>Web\u30b5\u30fc\u30d0\u306fKeep-alive\u306e\u8a2d\u5b9a\u3092\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u306e\u30a2\u30a4\u30c9\u30eb\u30bf\u30a4\u30e0\u3088\u308a\u3082\u9577\u304f\u3059\u308b\u3053\u3068\u304c\u63a8\u5968\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>\u30b5\u30fc\u30d0\u30fc\u3092\u5197\u9577\u5316\u3059\u308b\u3002<\/h2>\n<h3>\u65b0\u3057\u304f\u5197\u9577\u5316\u3059\u308b\u305f\u3081\u306e\u30b5\u30d6\u30cd\u30c3\u30c8\u3092\u4f5c\u6210\u3059\u308b\u3002<\/h3>\n<p>\u3059\u3067\u306b\u5197\u9577\u5316\u3057\u305f\u3044\u30b5\u30fc\u30d0\u30fc\u3092\u4f5c\u6210\u3057\u3066\u3044\u308b\u30ea\u30fc\u30b8\u30e7\u30f3\u306eVPC\u5185\u306b\u65b0\u3057\u304f\u30b5\u30d6\u30cd\u30c3\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u4f5c\u6210\u3059\u308b\u969b\u306f\u3001\u5197\u9577\u5316\u5bfe\u8c61\u306e\u30b5\u30fc\u30d0\u30fc\u304c\u914d\u7f6e\u3057\u3066\u3042\u308bAZ\u3068\u306f\u5225\u306e\u30a2\u30d9\u30a4\u30e9\u30d3\u30ea\u30c6\u30a3\u30be\u30fc\u30f3\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/p>\n<h3>AMI\u30a4\u30e1\u30fc\u30b8\u3092\u4f5c\u6210\u3059\u308b\u3002<\/h3>\n<p>\u300cEC2\u2192\u30a2\u30af\u30b7\u30e7\u30f3\u2192\u30a4\u30e1\u30fc\u30b8\u2192\u30a4\u30e1\u30fc\u30b8\u306e\u4f5c\u6210\u300d\u3067\u300c\u30a4\u30e1\u30fc\u30b8\u540d\u300d\u3060\u3051\u5165\u529b\u3057\u3066\u300c\u30a4\u30e1\u30fc\u30b8\u306e\u4f5c\u6210\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n<h3>AMI\u304b\u3089\u8d77\u52d5\u3059\u308b\u3002<\/h3>\n<p><span style=\"color: #ff0000;\"><strong>\u300c\u30a4\u30e1\u30fc\u30b8\u2192AMI\u300d<\/strong><\/span>\u306b\u3066\u4f5c\u6210\u3055\u308c\u305fAMI\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002\u300c\u8d77\u52d5\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u65b0\u3057\u304fEC2\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u305d\u306e\u969b\u306f\u4e0b\u8a18\u306e\u70b9\u306b\u6ce8\u610f\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<ul>\n<li>\u30b5\u30d6\u30cd\u30c3\u30c8\u306f\u5148\u307b\u3069\u4f5c\u6210\u3057\u305f\u30b5\u30d6\u30cd\u30c3\u30c8\u3092\u9078\u629e\u3059\u308b\u3002<\/li>\n<li>\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7\u306f\u65e2\u5b58\u306eWeb\u30b5\u30fc\u30d0\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7\u3092\u4f7f\u3044\u307e\u3057\u3087\u3046\u3002<\/li>\n<li>\u30ad\u30fc\u30da\u30a2\u3082\u65e2\u5b58\u3067\u4f7f\u3063\u3066\u3044\u308b\u30ad\u30fc\u30da\u30a2\u3092\u305d\u306e\u307e\u307e\u6d41\u7528\u3059\u308b\u3068\u826f\u3044\u3067\u3057\u3087\u3046\u3002<\/li>\n<\/ul>\n<h2>\u69cb\u7bc9\u624b\u9806<\/h2>\n<h3>ELB\u306e\u4f5c\u6210\uff1a\u624b\u98061\uff1a\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u30fc\u306e\u8a2d\u5b9a<\/h3>\n<h4>\u540d\u524d<\/h4>\n<p>\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u306e\u540d\u524d\u3092\u5165\u529b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h4>\u30b9\u30ad\u30fc\u30e0<\/h4>\n<p>Web\u30b5\u30fc\u30d0\u30fc\u3092\u5197\u9577\u5316\u3057\u305f\u3044\u306e\u3067\u3042\u308c\u3070\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u5411\u3051\u3092\u9078\u629e\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h4>\u30ea\u30b9\u30ca\u30fc<\/h4>\n<p>\u63a5\u7d9a\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u30d7\u30ed\u30bb\u30b9\u306b\u306a\u308a\u307e\u3059\u3002Web\u30b5\u30fc\u30d0\u3067\u3042\u308c\u3070HTTP\u306e80\u756a\u3067\u826f\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<h4>VPC<\/h4>\n<p>\u5bfe\u8c61\u306eVPC\u3092\u9078\u3073\u307e\u3059\u3002<\/p>\n<h4>\u30a2\u30d9\u30a4\u30e9\u30d3\u30ea\u30c6\u30a3\u30fc\u30be\u30fc\u30f3<\/h4>\n<p>\u5197\u9577\u5316\u3057\u305f\u3044AZ\u3092\u305d\u308c\u305e\u308c\u9078\u629e\u3057\u307e\u3059\u3002<\/p>\n<h3>ELB\u306e\u4f5c\u6210\uff1a\u624b\u98062\uff1a\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u8a2d\u5b9a\u306e\u69cb\u6210<\/h3>\n<p>\u7279\u306b\u305d\u306e\u307e\u307e\u3067\u5927\u4e08\u592b\u3067\u3059\u3002<\/p>\n<h3>ELB\u306e\u4f5c\u6210\uff1a\u624b\u98063\uff1a\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7\u306e\u8a2d\u5b9a<\/h3>\n<p>\u65b0\u3057\u3044\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002Web\u30b5\u30fc\u30d0\u30fc\u306e\u5834\u5408\u306fHTTP\u30a2\u30af\u30bb\u30b9\u3092\u30d5\u30eb\u30aa\u30fc\u30d7\u30f3\u3059\u308b\u3088\u3046\u306a\u8a2d\u5b9a\u3068\u3059\u308b\u3068\u826f\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<h3>ELB\u306e\u4f5c\u6210\uff1a\u624b\u98064\uff1a\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u8a2d\u5b9a<\/h3>\n<h4>\u30bf\u30fc\u30b2\u30c3\u30c8<\/h4>\n<p>EC2\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u9078\u3073\u307e\u3059\u3002<\/p>\n<h4>\u30d7\u30ed\u30c8\u30b3\u30eb<\/h4>\n<p>HTTP:80\u3092\u9078\u3073\u307e\u3059\u3002<\/p>\n<h3>\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u4f5c\u6210\u5f8c<\/h3>\n<h4>\u6b63\u5e38\u6642\u306e\u52d5\u4f5c\u78ba\u8a8d<\/h4>\n<p>alb\uff08\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\uff09\u306eURL\u304c\u3067\u304d\u307e\u3059\u3002\u5b9f\u969b\u306b\u3001\u4f55\u5ea6\u3082\u30a2\u30af\u30bb\u30b9\u3057\u3066\u307f\u308c\u3070\u308f\u304b\u308a\u307e\u3059\u304c\u3001<span style=\"color: #ff0000;\"><strong>\u30a2\u30af\u30bb\u30b9\u3059\u308b\u5ea6\u306b\u5225\u306e\u5197\u9577\u5316\u3055\u308c\u305f\u30b5\u30fc\u30d0\u30fc\u3078\u30a2\u30af\u30bb\u30b9\u304c\u81ea\u52d5\u7684\u306b\u632f\u308a\u5206\u3051\u304c\u884c\u308f\u308c\u307e\u3059\u3002<\/strong><\/span><\/p>\n<p>\u305f\u3060\u3001\u3053\u306e\u307e\u307e\u3067\u306fURL\u306e\u30c9\u30e1\u30a4\u30f3\u540d\u304c\u52d5\u7684\u306b\u751f\u6210\u3055\u308c\u305f\u7121\u6a5f\u8cea\u306a\u7269\u306b\u306a\u3063\u3066\u3057\u307e\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u5b9f\u52d9\u3067\u904b\u7528\u3059\u308b\u5834\u5408\u306f\u72ec\u81ea\u30c9\u30e1\u30a4\u30f3\u3092\u53d6\u5f97\u3057\u3066Route53\u306eA\u30ec\u30b3\u30fc\u30c9\u306e\u30a8\u30a4\u30ea\u30a2\u30b9\u306e\u5024\u306b\u751f\u6210\u3055\u308c\u305f\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u306eURL\u3092\u6307\u5b9a\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h4>\u30b5\u30fc\u30d0\u505c\u6b62\u6642\u306e\u52d5\u4f5c\u78ba\u8a8d<\/h4>\n<p>\u5b9f\u969b\u306b\u3001\u3069\u3061\u3089\u304b\u306eEC2\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u505c\u6b62\u3055\u305b\u3066URL\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u307f\u308c\u3070\u308f\u304b\u308b\u306e\u3067\u3059\u304c\u3001ELB\u306e\u30d8\u30eb\u30b9\u30c1\u30a7\u30c3\u30af\u6a5f\u80fd\u304c\u50cd\u3044\u3066\u30b5\u30fc\u30d0\u30fc\u304cunhelthy\u3068\u5224\u5b9a\u3055\u308c\u632f\u308a\u5206\u3051\u304c\u884c\u308f\u308c\u306a\u304f\u306a\u308a\u307e\u3059\u3002\u30b9\u30c6\u30fc\u30bf\u30b9\u304chelthy\u3068\u306a\u3063\u3066\u3044\u308b\u30b5\u30fc\u30d0\u306e\u307f\u306b\u30a2\u30af\u30bb\u30b9\u3092\u904b\u3076\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"ELB\u3068\u306f\uff1f Web\u30b5\u30fc\u30d0\u30fc\u304c2\u53f0\u3042\u308b\u5834\u5408\u306b\u30a2\u30af\u30bb\u30b9\u3092\u5206\u6563\u3059\u308b\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u306e\u5f79\u5272\u3092\u3057\u307e\u3059\u3002 \u6982\u8981 \u8907\u6570\u306eEC2\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306b\u8ca0\u8377\u5206\u6563\u3092\u3057\u307e\u3059\u3002 \u8907\u6570\u306eAZ\u306b\u3042\u308b\u8907\u6570\u306eEC2\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u4e2d\u304b\u3089\u6b63\u5e38\u306a\u30bf\u30fc\u30b2\u30c3\u30c8\u306b\u306e\u307f\u632f\u308a [&hellip;]","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[80],"tags":[],"_links":{"self":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/11302"}],"collection":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11302"}],"version-history":[{"count":17,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/11302\/revisions"}],"predecessor-version":[{"id":20113,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/11302\/revisions\/20113"}],"wp:attachment":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11302"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11302"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11302"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}