{"id":21954,"date":"2022-07-15T19:00:38","date_gmt":"2022-07-15T10:00:38","guid":{"rendered":"https:\/\/labs.gree.jp\/blog\/?p=21954"},"modified":"2022-09-07T01:26:29","modified_gmt":"2022-09-06T16:26:29","slug":"post21654","status":"publish","type":"post","link":"https:\/\/labs.gree.jp\/blog\/2022\/07\/21954\/","title":{"rendered":"EC2\u304b\u3089Fargate\u3078\u306e\u79fb\u884c ~shadow proxy\u3068\u30ab\u30ca\u30ea\u30a2\u30ea\u30ea\u30fc\u30b9~"},"content":{"rendered":"<h1>EC2\u304b\u3089Fargate\u3078\u306e\u79fb\u884c ~shadow proxy\u3068\u30ab\u30ca\u30ea\u30a2\u30ea\u30ea\u30fc\u30b9~<\/h1>\r\n<p>\u3053\u3093\u306b\u3061\u306f\u3001\u30e1\u30c7\u30a3\u30a2\u4e8b\u696d\u3067\u30a8\u30f3\u30b8\u30cb\u30a2\u3092\u3057\u3066\u3044\u308b\u6728\u6751\u6d0b\u592a\u3067\u3059\u3002<\/p>\r\n<p><a href=\"https:\/\/techcon.gree.jp\/2021\/session\/Session-2\">\u6628\u5e74\u306eGREE Tech Conference<\/a>\u3067\u306f\u300cLIMIA\u300d\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u79fb\u884c\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u304a\u3051\u308b\u30b3\u30fc\u30c9\u306e\u81ea\u52d5\u4fee\u6b63\u306b\u3064\u3044\u3066\u8a71\u3055\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3057\u305f\u304c\u3001\u4eca\u56de\u306f\u540c\u6642\u306b\u884c\u3063\u305f\u30a4\u30f3\u30d5\u30e9\u79fb\u884c\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3044\u305f\u3057\u307e\u3059\u3002<\/p>\r\n<p>EC2\u304b\u3089Fargate\u3078\u306e\u79fb\u884c\u4f8b\u306f\u591a\u304f\u5b58\u5728\u3057\u3066\u3044\u308b\u3068\u306f\u601d\u3044\u307e\u3059\u304c\u3001\u4eca\u56de\u306e\u79fb\u884c\u3067\u306f\u5b89\u5168\u306a\u79fb\u884c\u306e\u305f\u3081\u306b\u3001shadow-proxy\u74b0\u5883\u3067\u306e\u79fb\u884c\u524d\u306e\u30c6\u30b9\u30c8\u3084EC2\u3068Fargate\u306e\u540c\u6642\u7a3c\u50cd\u306b\u3088\u308b\u30ab\u30ca\u30ea\u30a2\u30ea\u30ea\u30fc\u30b9\u306a\u3069\u3055\u307e\u3056\u307e\u306a\u5de5\u592b\u3092\u884c\u3044\u307e\u3057\u305f\u3002\u3053\u308c\u3089\u306e\u4e2d\u3067\u5f97\u3089\u308c\u305f\u77e5\u898b\u3084\u5931\u6557\u3092\u307e\u3068\u3081\u3089\u308c\u305f\u3089\u3068\u601d\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\r\n<h2>\u30a4\u30f3\u30d5\u30e9\u79fb\u884c\u306e\u6982\u8981<\/h2>\r\n<h3>\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u79fb\u884c\u30d7\u30ed\u30b8\u30a7\u30af\u30c8<\/h3>\r\n<p>\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u79fb\u884c\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u306f\u3001\u30b0\u30ea\u30fc\u304c\u904b\u55b6\u3059\u308b\u30e1\u30c7\u30a3\u30a2\u306e\u4e00\u3064\u3067\u3042\u308b\u300cLIMIA\u300d\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092FuelPHP\u304b\u3089Laravel\u3078\u79fb\u884c\u3059\u308b\u3053\u3068\u3092\u76ee\u7684\u3068\u3057\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\r\n<p>\u79fb\u884c\u306e\u5185\u5bb9\u3068\u3057\u3066\u306f\u3001\u5927\u304d\u304f\u5206\u3051\u3066<\/p>\r\n<ul>\r\n<li>\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306e\u79fb\u884c: FuelPHP \u2192 Laravel<\/li>\r\n<li>\u8a00\u8a9e\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7: PHP7.0 \u2192 PHP7.4<\/li>\r\n<li>\u30a4\u30f3\u30d5\u30e9\u306e\u79fb\u884c: EC2 \u2192 ECS Fargate<\/li>\r\n<\/ul>\r\n<p>\u306e\u79fb\u884c\u3092\u540c\u6642\u306b\u884c\u306a\u3044\u307e\u3057\u305f\u3002<\/p>\r\n<p>\u4eca\u56de\u306e\u30d6\u30ed\u30b0\u306f\u3053\u306e\u3046\u3061\u306e\u30a4\u30f3\u30d5\u30e9\u306e\u79fb\u884c\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3044\u305f\u3057\u307e\u3059\u3002<\/p>\r\n<p>\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306e\u79fb\u884c\u306b\u304a\u3051\u308b\u3001\u30b3\u30fc\u30c9\u306e\u81ea\u52d5\u4fee\u6b63\u306e\u8a71\u3082\u500b\u4eba\u7684\u306b\u304b\u306a\u308a\u9762\u767d\u3044\u8a71\u3060\u3068\u601d\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u305d\u3061\u3089\u3082\u8208\u5473\u304c\u3042\u308c\u3070\u662f\u975e\u3054\u89a7\u304f\u3060\u3055\u3044\uff01<\/p>\r\n<ul>\r\n<li><a href=\"https:\/\/techcon.gree.jp\/2021\/session\/Session-2\">https:\/\/techcon.gree.jp\/2021\/session\/Session-2<\/a><\/li>\r\n<li><a href=\"https:\/\/getrector.org\/blog\/success-story-of-automated-framework-migration-from-fuelphp-to-laravel-of-400k-lines-application\">https:\/\/getrector.org\/blog\/success-story-of-automated-framework-migration-from-fuelphp-to-laravel-of-400k-lines-application<\/a><\/li>\r\n<\/ul>\r\n<h3>\u30a4\u30f3\u30d5\u30e9\u79fb\u884c\u3082\u540c\u6642\u306b\u884c\u306a\u3063\u305f\u7406\u7531<\/h3>\r\n<p>\u672c\u6765\u3001\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u79fb\u884c\u306e\u3088\u3046\u306a\u5927\u898f\u6a21\u306a\u30b3\u30fc\u30c9\u5909\u66f4\u3092\u3059\u308b\u969b\u306b\u306f\u540c\u6642\u306b\u30a4\u30f3\u30d5\u30e9\u79fb\u884c\u3092\u3059\u308b\u306e\u306f\u3042\u307e\u308a\u671b\u307e\u3057\u304f\u306a\u3044\u3068\u500b\u4eba\u7684\u306b\u306f\u8003\u3048\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u554f\u984c\u304c\u8d77\u3053\u3063\u305f\u969b\u306e\u8981\u56e0\u306e\u5207\u308a\u5206\u3051\u306b\u304b\u304b\u308b\u30b3\u30b9\u30c8\u304c\u5897\u52a0\u3057\u305f\u308a\u3001\u5207\u308a\u623b\u3057\u306b\u6642\u9593\u304c\u304b\u304b\u3063\u305f\u308a\u3001\u5358\u7d14\u306b\u79fb\u884c\u306b\u304b\u304b\u308b\u6642\u9593\u304c\u4f38\u3073\u3066\u3057\u307e\u3063\u305f\u308a\u3057\u3066\u3057\u307e\u3046\u304b\u3089\u3067\u3059\u3002<\/p>\r\n<p>\u305d\u306e\u4e2d\u3067\u3082\u540c\u6642\u79fb\u884c\u3092\u884c\u3063\u305f\u306e\u306b\u306f\u4ee5\u4e0b\u306e\u7406\u7531\u304c\u3042\u308a\u307e\u3057\u305f<\/p>\r\n<ul>\r\n<li>\u30b3\u30fc\u30c9\u306e\u81ea\u52d5\u4fee\u6b63\u306e\u304a\u304b\u3052\u3067\u3001\u4ed6\u306e\u958b\u767a\u3092\u6b62\u3081\u308b\u3053\u3068\u306a\u304f\u79fb\u884c\u3092\u9032\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u3066\u3044\u305f\u306e\u3067\u3001\u79fb\u884c\u306b\u304b\u304b\u308b\u671f\u9593\u306f\u305d\u3053\u307e\u3067\u5927\u304d\u306a\u554f\u984c\u3067\u306f\u306a\u304b\u3063\u305f<\/li>\r\n<li>\u30a4\u30f3\u30d5\u30e9\u306f\u30b3\u30fc\u30c9\u7ba1\u7406\u3055\u308c\u3066\u3044\u305f\u3082\u306e\u306e\u30d3\u30eb\u30c9\u3084\u30c7\u30d7\u30ed\u30a4\u306a\u3069\u3001\u5909\u66f4\u306b\u306f\u30b3\u30b9\u30c8\u304c\u304b\u304b\u308b\u72b6\u614b\u3067\u3001\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u304c\u6b62\u307e\u3063\u3066\u3057\u307e\u3063\u3066\u3044\u305f<\/li>\r\n<li>\u958b\u767a\u74b0\u5883\u3067\u306f\u65e2\u306bDocker\u304c\u4f7f\u7528\u3055\u308c\u3066\u304a\u308a\u3001\u30b3\u30f3\u30c6\u30ca\u74b0\u5883\u3092\u4e00\u304b\u3089\u4f5c\u6210\u3059\u308b\u5fc5\u8981\u304c\u306a\u304b\u3063\u305f<\/li>\r\n<li>\u7ba1\u7406\u3057\u3066\u3044\u308b\u4ed6\u306e\u30d7\u30ed\u30c0\u30af\u30c8\u306f\u5168\u3066\u30b3\u30f3\u30c6\u30ca\u3067\u904b\u7528\u3055\u308c\u3066\u304a\u308a\u3001\u958b\u767a\u30e1\u30f3\u30d0\u30fc\u306e\u77e5\u8b58\u306f\u5341\u5206\u306b\u3042\u3063\u305f<\/li>\r\n<\/ul>\r\n<p>\u30a4\u30f3\u30d5\u30e9\u306e\u540c\u6642\u79fb\u884c\u306f\u5927\u5909\u3067\u306f\u3042\u308a\u307e\u3057\u305f\u304c\u3001\u3053\u306e\u6a5f\u4f1a\u306b\u30a4\u30f3\u30d5\u30e9\u3092\u5168\u3066aws-cdk\u3067\u7ba1\u7406\u3059\u308b\u3088\u3046\u306b\u3067\u304d\u3001\u79fb\u884c\u81ea\u4f53\u3082\u5927\u304d\u306a\u554f\u984c\u306a\u304f\u6210\u529f\u3067\u304d\u305f\u3068\u3044\u3046\u70b9\u3067\u306f\u3001\u540c\u6642\u306b\u79fb\u884c\u3057\u3066\u826f\u304b\u3063\u305f\u3068\u601d\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\r\n<h3>\u5b89\u5168\u306a\u79fb\u884c\u306e\u305f\u3081\u306b<\/h3>\r\n<p>\u4eca\u56de\u306e\u79fb\u884c\u3067\u306f20\u4e07\u884c\u4ee5\u4e0a\u306e\u30b3\u30fc\u30c9\u3092\u81ea\u52d5\u4fee\u6b63\u3057\u305f\u4e0a\u306b\u3001PHP\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u306b\u3088\u308b\u5909\u66f4\u3084\u30a4\u30f3\u30d5\u30e9\u306e\u69cb\u6210\u306e\u5909\u66f4\u3082\u3042\u3063\u305f\u3081\u3001QA\u3060\u3051\u3067\u306f\u3069\u3046\u3057\u3066\u3082\u5168\u3066\u306e\u30d0\u30b0\u3092\u63a2\u3057\u304d\u308c\u306a\u3044\u3068\u3044\u3046\u554f\u984c\u304c\u3042\u308a\u307e\u3057\u305f\u3002<\/p>\r\n<p>\u305d\u306e\u305f\u3081\u3001\u30a4\u30f3\u30d5\u30e9\u79fb\u884c\u3067\u306f<\/p>\r\n<ul>\r\n<li>\u30ea\u30ea\u30fc\u30b9\u524d\u306b\u3067\u304d\u308b\u9650\u308a\u672c\u756a\u306b\u8fd1\u3044\u74b0\u5883\u3067\u691c\u8a3c\u3059\u308b\u3053\u3068<\/li>\r\n<li>\u969c\u5bb3\u304c\u751f\u3058\u3066\u3057\u307e\u3063\u305f\u5834\u5408\u3067\u3082\u30e6\u30fc\u30b6\u30fc\u5f71\u97ff\u3092\u53ef\u80fd\u306a\u9650\u308a\u5c0f\u3055\u304f\u3059\u308b\u3053\u3068<\/li>\r\n<li>\u5207\u308a\u623b\u3057\u304c\u8fc5\u901f\u306b\u3067\u304d\u308b\u69cb\u6210\u306b\u3059\u308b\u3053\u3068<\/li>\r\n<\/ul>\r\n<p>\u304c\u3067\u304d\u308b\u3088\u3046\u306a\u65b9\u6cd5\u3092\u691c\u8a0e\u3057\u307e\u3057\u305f\u3002<\/p>\r\n<p>\u672c\u756a\u74b0\u5883\u306b\u5f71\u97ff\u3092\u4e0e\u3048\u305a\u306b\u4e8b\u524d\u306b\u672c\u756a\u306b\u8fd1\u3044\u74b0\u5883\u3067\u30c6\u30b9\u30c8\u3092\u3059\u308b\u3068\u3044\u3046\u76ee\u7684\u306b\u3064\u3044\u3066\u306f\u3001shadow proxy\u3068\u3044\u3046\u3082\u306e\u304c\u3042\u308b\u3053\u3068\u3092\u77e5\u308a\u3001\u305d\u3061\u3089\u3092\u8a66\u3057\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\r\n<p>\u30ea\u30ea\u30fc\u30b9\u306b\u3064\u3044\u3066\u306f\u30ab\u30ca\u30ea\u30a2\u30ea\u30ea\u30fc\u30b9\u3092\u63a1\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u969c\u5bb3\u767a\u751f\u6642\u306e\u5f71\u97ff\u3092\u306a\u308b\u3079\u304f\u5c0f\u3055\u304f\u3057\u3001\u3059\u3050\u306b\u5207\u308a\u623b\u3057\u304c\u53ef\u80fd\u306a\u30ea\u30ea\u30fc\u30b9\u3092\u5b9f\u73fe\u3059\u308b\u3053\u3068\u3092\u76ee\u6307\u3057\u307e\u3057\u305f\u3002<\/p>\r\n<h2>shadow proxy<\/h2>\r\n<h3>shadow proxy\u3068\u306f<\/h3>\r\n<p>shadow proxy\u3068\u306f\u672c\u756a\u74b0\u5883\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u4f55\u304b\u3057\u3089\u306e\u65b9\u6cd5\u3067\u8907\u88fd\u3057\u3001\u4ed6\u306e\u30b5\u30fc\u30d0\u30fc\u306b\u9001\u4fe1\u3059\u308b\u3088\u3046\u306aproxy\u306e\u3053\u3068\u3092\u6307\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\r\n<p>\u5177\u4f53\u7684\u306b\u306f<a href=\"https:\/\/www.slideshare.net\/toyama0919\/fluentd-49628783\">https:\/\/www.slideshare.net\/toyama0919\/fluentd-49628783<\/a>\u3092\u8aad\u307e\u305b\u3066\u3044\u305f\u3060\u304d\u3001<\/p>\r\n<ul>\r\n<li>\u30aa\u30fc\u30c8\u30b9\u30b1\u30fc\u30eb\u306e\u8a2d\u5b9a\u306a\u3069\u306e\u30a4\u30f3\u30d5\u30e9\u306e\u8a2d\u5b9a\u306e\u78ba\u8a8d<\/li>\r\n<li>QA\u3067\u306f\u6c17\u3065\u304d\u304d\u308c\u306a\u3044\u3088\u3046\u306a\u30a8\u30e9\u30fc\u306e\u78ba\u8a8d<\/li>\r\n<\/ul>\r\n<p>\u3092\u5207\u308a\u66ff\u3048\u524d\u306b\u672c\u756a\u74b0\u5883\u306b\u8fd1\u3044\u74b0\u5883\u3067\u8a66\u305b\u308b\u3068\u3044\u3046\u30e1\u30ea\u30c3\u30c8\u304b\u3089\u63a1\u7528\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\r\n<h3>\u691c\u8a0e\u4e8b\u9805<\/h3>\r\n<p>shadow proxy\u74b0\u5883\u3092\u4f5c\u6210\u3059\u308b\u306b\u5f53\u305f\u3063\u3066\u3001\u300c\u3069\u3053\u3067\u3069\u306e\u3088\u3046\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u8907\u88fd\u3059\u308b\u304b\u300d\u3001\u300c\u3069\u3053\u307e\u3067\u672c\u756a\u3068\u540c\u3058\u74b0\u5883\u3092\u4f5c\u6210\u3059\u308b\u304b\u300d\u3092\u307e\u305a\u8003\u3048\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3057\u305f\u3002<\/p>\r\n<p>\u300c\u3069\u3053\u3067\u3069\u306e\u3088\u3046\u306b\u8907\u88fd\u3092\u3059\u308b\u304b\u300d\u3068\u3044\u3046\u70b9\u3067\u306f\u3001ngx_http_mirror_module\u3084fluent-plugin-http_shadow\u306a\u3069\u69d8\u3005\u306a\u5019\u88dc\u304c\u3042\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u3044\u308d\u3044\u308d\u8abf\u3079\u305f\u4e2d\u3067AWS\u306eVPC Traffic Mirroring\u304c\u826f\u3055\u305d\u3046\u3068\u3044\u3046\u3053\u3068\u304c\u308f\u304b\u308a\u3001\u4f7f\u7528\u3059\u308b\u3053\u3068\u3092\u6c7a\u3081\u307e\u3057\u305f\u3002<\/p>\r\n<p>VPC Traffic Mirroring\u306e\u30e1\u30ea\u30c3\u30c8\u3068\u3057\u3066\u306f\u3001<\/p>\r\n<ul>\r\n<li>\u65e2\u5b58\u306e\u30a4\u30f3\u30d5\u30e9\u306b\u624b\u3092\u52a0\u3048\u308b\u5fc5\u8981\u304c\u306a\u3044\u3053\u3068<\/li>\r\n<li>\u52d5\u3044\u3066\u3044\u308b\u672c\u756a\u74b0\u5883\u306b\u5f71\u97ff\u3092\u4e0e\u3048\u306a\u3044\u3053\u3068<\/li>\r\n<li>\u8ee2\u9001\u5148\u306bNLB\u3092\u9078\u3079\u3001proxy\u90e8\u5206\u3067\u30b9\u30b1\u30fc\u30eb\u3055\u305b\u308b\u3053\u3068\u3082\u7c21\u5358\u305d\u3046\u306a\u3053\u3068<\/li>\r\n<li>AWS\u306e\u30b5\u30fc\u30d3\u30b9\u306a\u306e\u3067\u8a2d\u5b9a\u304c\u5c11\u306a\u3081\u3067\u3084\u308a\u305f\u3044\u3053\u3068\u304c\u3067\u304d\u305d\u3046\u306a\u3053\u3068<\/li>\r\n<\/ul>\r\n<p>\u304c\u3042\u308a\u307e\u3057\u305f\u3002<\/p>\r\n<p>\u300c\u3069\u3053\u307e\u3067\u672c\u756a\u3068\u540c\u3058\u74b0\u5883\u3092\u4f5c\u6210\u3059\u308b\u304b\u300d\u306b\u3064\u3044\u3066\u306f\u5168\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u8907\u88fd\u3057\u3001RDS\u3082\u8907\u88fd\u3057\u3066\u3001read\/write\u307e\u3067\u5168\u3066\u3092\u78ba\u8a8d\u3057\u305f\u3044\u3068\u3053\u308d\u3067\u306f\u3042\u3063\u305f\u306e\u3067\u3059\u304c\u3001<\/p>\r\n<ul>\r\n<li>RDS\u306a\u3069\u3092\u542b\u3081\u3001\u5168\u304f\u540c\u3058\u74b0\u5883\u3092\u4f5c\u6210\u3059\u308b\u306e\u306f\u6642\u9593\u30fb\u6599\u91d1\u7684\u306b\u30b3\u30b9\u30c8\u304c\u304b\u304b\u308a\u3059\u304e\u308b\u3053\u3068<\/li>\r\n<li>\u30b5\u30fc\u30d3\u30b9\u81ea\u4f53\u306fread heavy\u3067\u3042\u308a\u3001\u8ca0\u8377\u3084\u30a4\u30f3\u30d5\u30e9\u306e\u8a2d\u5b9a\u78ba\u8a8d\u306fread\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u307f\u3067\u5341\u5206\u78ba\u8a8d\u3067\u304d\u305d\u3046\u306a\u3053\u3068<\/li>\r\n<\/ul>\r\n<p>\u3060\u3063\u305f\u305f\u3081\u3001\u65e2\u5b58\u306eRDS\u306e\u30ea\u30fc\u30c9\u30ec\u30d7\u30ea\u30ab\u3092\u4f7f\u3044\u3001read\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u307f\u3092\u691c\u8a3c\u3059\u308b\u3053\u3068\u306b\u6c7a\u3081\u307e\u3057\u305f\u3002<\/p>\r\n<h3>VPC Traffic Mirroring<\/h3>\r\n<p>VPC Traffic Mirroring\u306f\u7279\u5b9a\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306eeni\u3092source\u3068\u3057\u3066\u3001\u305d\u3053\u3092\u6d41\u308c\u308b\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3092\u5225\u306eeni\u3084NLB\u306b\u9001\u4fe1\u3067\u304d\u308b\u4ed5\u7d44\u307f\u3067\u3059\u3002\u8a73\u3057\u304f\u306f<a href=\"https:\/\/docs.aws.amazon.com\/vpc\/latest\/mirroring\/what-is-traffic-mirroring.html\">\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\r\n<p>\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u306fVXLAN\u30d8\u30c3\u30c0\u30fc\u3067\u30ab\u30d7\u30bb\u30eb\u5316\u3055\u308c\u3066\u9001\u3089\u308c\u3066\u304f\u308b\u305f\u3081\u305d\u308c\u3092\u51e6\u7406\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u57fa\u672c\u7684\u306b\u306f<a href=\"https:\/\/github.com\/aws-samples\/http-requests-mirroring\">https:\/\/github.com\/aws-samples\/http-requests-mirroring<\/a>\u3092\u307b\u307c\u305d\u306e\u307e\u307e\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u8ee2\u9001\u3067\u304d\u307e\u3057\u305f\u3002\u307e\u305f\u3001\u3053\u306esample\u3067\u306fproxy\u90e8\u5206\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u6570\u3092\u5909\u66f4\u3067\u304d\u3001\u30b9\u30b1\u30fc\u30eb\u3082\u5bb9\u6613\u3060\u3063\u305f\u306e\u304c\u826f\u304b\u3063\u305f\u3067\u3059\u3002<\/p>\r\n<p>\u7d30\u304b\u3044\u3068\u3053\u308d\u3067\u306f<\/p>\r\n<ul>\r\n<li>\uff08\u672c\u756a\u74b0\u5883\u306f\u5927\u4e08\u592b\u3060\u3063\u305f\u304c\u3001\uff09\u30c6\u30b9\u30c8\u306e\u305f\u3081\u306b\u958b\u767a\u74b0\u5883\u3067\u8a66\u305d\u3046\u3068\u3057\u3066\u3001\u4f7f\u7528\u3057\u3066\u3044\u305f\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u30bf\u30a4\u30d7\u304cVPC Traffic Mirroring\u306e\u5bfe\u8c61\u3067\u306f\u306a\u304b\u3063\u305f\r\n<ul>\r\n<li>\u5bfe\u8c61\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306f<a href=\"https:\/\/docs.aws.amazon.com\/vpc\/latest\/mirroring\/traffic-mirroring-limits.html\">\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\u53c2\u7167<\/li>\r\n<\/ul>\r\n<\/li>\r\n<li>sample\u81ea\u4f53\u306b\u8efd\u5fae\u306a\u30d0\u30b0 https:\/\/github.com\/aws-samples\/http-requests-mirroring\/pull\/3\u304c\u3042\u3063\u305f<\/li>\r\n<\/ul>\r\n<p>\u306a\u3069\u3067\u5c11\u3057\u624b\u9593\u53d6\u308a\u307e\u3057\u305f\u304c\u3001\u6982\u306d\u30b9\u30e0\u30fc\u30ba\u306b\u9032\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\r\n<h3>read only\u306a\u74b0\u5883\u306e\u4f5c\u6210<\/h3>\r\n<p>shadow proxy\u3092\u8003\u3048\u308b\u4e0a\u3067\u306f\u3001\u30b5\u30fc\u30d3\u30b9\u306e\u5916\u90e8\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u628a\u63e1\u3057\u3066\u5236\u9650\u3059\u308b\u3053\u3068\u306f\u91cd\u8981\u3067\u3057\u305f\u3002\u4f8b\u3048\u3070\u3001\u4e8c\u91cd\u306b\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0\u30c7\u30fc\u30bf\u3084\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u304c\u9001\u4fe1\u3055\u308c\u3066\u3057\u307e\u3063\u305f\u308a\u3001\u4e8c\u91cd\u306b\u5916\u90e8API\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u9001\u4fe1\u3055\u308c\u308b\u305f\u3081\u306bquota\u306e\u554f\u984c\u304c\u751f\u3058\u305f\u308a\u3057\u3066\u3057\u307e\u3046\u304b\u3089\u3067\u3059\u3002<\/p>\r\n<p>\u4eca\u56de\u306f\u30b5\u30fc\u30d3\u30b9\u3067\u4f7f\u7528\u3057\u3066\u3044\u308bRDS, DynamoDB, Memcached\u306b\u5bfe\u3057\u3066\u306eread\u306e\u307f\u306e\u30a2\u30af\u30bb\u30b9\u3092\u8a31\u53ef\u3057\u3001\u4ed6\u306f\u5168\u3066\u5236\u9650\u3059\u308b\u3088\u3046\u306a\u74b0\u5883\u3092\u69cb\u7bc9\u3057\u307e\u3057\u305f\u3002<\/p>\r\n<p>\u5177\u4f53\u7684\u306b\u306f<\/p>\r\n<ul>\r\n<li>RDS, ElastiCache\u4ee5\u5916\u306e\u5168\u3066\u306eoutbound\u3092\u5236\u9650\u3057\u305f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7\u306e\u4f5c\u6210<\/li>\r\n<li>DB\u306fread only\u306e\u30e6\u30fc\u30b6\u30fc\u3092\u5e38\u306b\u4f7f\u7528\u3059\u308b\u3088\u3046\u306b\u3001\u4ed6AWS\u306e\u30ea\u30bd\u30fc\u30b9\u306fread only\u306e\u30dd\u30ea\u30b7\u30fc\u306b\u5909\u66f4\u3057\u305f\u30ed\u30fc\u30eb\u3092\u4f5c\u6210<\/li>\r\n<li>Memcached\u306b\u3064\u3044\u3066\u306fwrite\u304c\u8d77\u3053\u3089\u306a\u3044\u3088\u3046\u306b\u30b3\u30fc\u30c9\u5909\u66f4<\/li>\r\n<li>\u4e0a\u8a18\u306e\u6a29\u9650\u5909\u66f4\u3067\u8d77\u3053\u308b\u30a8\u30e9\u30fc\u306b\u3064\u3044\u3066\u306f\u30cf\u30f3\u30c9\u30ea\u30f3\u30b0\u3059\u308b\u3088\u3046\u306b\u30b3\u30fc\u30c9\u5909\u66f4<\/li>\r\n<\/ul>\r\n<p>\u306a\u3069\u3092\u884c\u3044\u307e\u3057\u305f\u3002\u3053\u308c\u3089\u306b\u3088\u308a\u3001\u672c\u756a\u74b0\u5883\u306e\u30c7\u30fc\u30bf\u306b\u5f71\u97ff\u3092\u4e0e\u3048\u306a\u3044shadow proxy\u74b0\u5883\u3092\u4f5c\u6210\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\r\n<p>\u3053\u306e\u8a2d\u5b9a\u3067\u8003\u616e\u304c\u6f0f\u308c\u3066\u3044\u305f\u70b9\u3068\u3057\u3066\u306f\u3001\u8d77\u52d5\u306a\u3069\u306b\u5fc5\u8981\u306aAWS\u30ea\u30bd\u30fc\u30b9\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3082\u3067\u304d\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3044\u3001\u30bf\u30b9\u30af\u306e\u8d77\u52d5\u3084\u30ed\u30b0\u306e\u51fa\u529b\u306b\u5931\u6557\u3057\u3066\u3057\u307e\u3046\u3053\u3068\u3067\u3057\u305f\u3002<\/p>\r\n<p>\u3053\u308c\u306b\u3064\u3044\u3066\u306fVPC\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u3067\u89e3\u6c7a\u304c\u53ef\u80fd\u3067\u3001ssm, ssmmessages, ecr.dkr, ecr.api, logs, s3\u306eVPC\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002VPC\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u81ea\u4f53\u306fVPC\u5185\u306e\u4ed6\u306e\u30ea\u30bd\u30fc\u30b9\u306b\u3082\u5f71\u97ff\u3092\u4e0e\u3048\u308b\u305f\u3081\u3001\u8ffd\u52a0\u3059\u308b\u5834\u5408\u306b\u306f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7\u306e\u8a2d\u5b9a\u306a\u3069\u306b\u5341\u5206\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\uff08\u5ff5\u306e\u70ba\u3001VPC\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3092\u4f5c\u6210\u3057\u305fsubnet\u306ereject\u306eflowlog\u3092\u78ba\u8a8d\u3057\u3066\u3044\u307e\u3057\u305f\uff09\u3002<\/p>\r\n<h3>shadow proxy\u3092\u3084\u3063\u3066\u307f\u3066<\/h3>\r\n<p>shadow proxy\u74b0\u5883\u3092\u5b9f\u969b\u306b\u52d5\u304b\u3057\u3066\u307f\u3066<\/p>\r\n<ul>\r\n<li>route\u306e\u7d30\u304b\u3044\u8a2d\u5b9a\u30df\u30b9<\/li>\r\n<li>PHP\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u306b\u3088\u308b\u30a8\u30e9\u30fc\uff08\u4e3b\u306b<a href=\"https:\/\/www.php.net\/manual\/en\/migration74.incompatible.php\">Trying to access array offset on value of type null\/bool\/int<\/a>\uff09<\/li>\r\n<li>nginx\u306e\u8a2d\u5b9a\u30df\u30b9<\/li>\r\n<\/ul>\r\n<p>\u306a\u3069\u3092\u4e8b\u524d\u306b\u691c\u77e5\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\r\n<p>\u307e\u305f\u3001EC2\u306e\u9803\u306f1\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306bphp-fpm\u3068nginx\u3092\u4e21\u65b9\u8f09\u305b\u3001CPU\u3084\u30e1\u30e2\u30ea\u306a\u3069\u3042\u308b\u7a0b\u5ea6\u5927\u304d\u3081\u306a\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u306e\u306b\u5bfe\u3057\u3001Fargate\u74b0\u5883\u3067\u306f\u30b3\u30f3\u30c6\u30ca\u3092\u5206\u3051\u3001\u30e1\u30e2\u30ea\u3082\u5c0f\u3055\u304f\u3059\u308b\u306a\u3069\u69cb\u6210\u306e\u5909\u66f4\u304c\u3042\u308a\u3001\u3053\u308c\u306b\u5408\u308f\u305b\u3066php-fpm\u3084nginx\u306e\u8a2d\u5b9a\u3082\u5909\u66f4\u3057\u3066\u3044\u307e\u3059\u3002\u305d\u306e\u8a2d\u5b9a\u306e\u8abf\u6574\u3084\u30bf\u30b9\u30af\u6570\u306e\u8abf\u6574\u3001\u8ca0\u8377\u306e\u898b\u7a4d\u308a\u3092\u884c\u3046\u306e\u306b\u3082\u5f79\u306b\u7acb\u3061\u307e\u3057\u305f\u3002<\/p>\r\n<p>\u3053\u306e\u3088\u3046\u306b\u3001\u4e8b\u524d\u306b\u672c\u756a\u74b0\u5883\u306b\u8fd1\u3044\u74b0\u5883\u3067\u30c6\u30b9\u30c8\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u305f\u3068\u3044\u3046\u70b9\u3067\u306f\u5f79\u306b\u7acb\u3064\u3053\u3068\u3082\u591a\u304b\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u4e88\u5b9a\u3088\u308a\u3082\u74b0\u5883\u306e\u69cb\u7bc9\u306b\u6642\u9593\u304c\u304b\u304b\u3063\u3066\u3057\u307e\u3063\u305f\u3053\u3068\u3084\u3001\u300cLIMIA\u300d\u306e\u30a4\u30f3\u30d5\u30e9\u306e\u8a2d\u5b9a\u304c\u305d\u3053\u307e\u3067\u30b7\u30d3\u30a2\u3067\u306f\u306a\u3044\u3053\u3068\u3001\u5f8c\u8ff0\u3059\u308b\u30ab\u30ca\u30ea\u30a2\u30ea\u30ea\u30fc\u30b9\u3067\u78ba\u8a8d\u3067\u304d\u308b\u7bc4\u56f2\u3068\u4e00\u90e8\u88ab\u3063\u3066\u3057\u307e\u3063\u3066\u3044\u308b\u3053\u3068\u304b\u3089\u3001\u8cbb\u7528\u5bfe\u52b9\u679c\u3068\u3057\u3066\u306f\u5fae\u5999\u3060\u3063\u305f\u306e\u3067\u306f\u306a\u3044\u304b\u3068\u3044\u3046\u306e\u304c\u79fb\u884c\u3092\u7d42\u3048\u3066\u306e\u500b\u4eba\u7684\u306a\u611f\u60f3\u3067\u3059\u3002<\/p>\r\n<p>\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u304c\u3088\u308a\u591a\u3044\u30b5\u30fc\u30d3\u30b9\u3067\u306e\u30a4\u30f3\u30d5\u30e9\u69cb\u7bc9\u30fb\u8a2d\u5b9a\u3001\u8ca0\u8377\u306e\u78ba\u8a8d\u3084\u3088\u308a\u614e\u91cd\u306a\u79fb\u884c\u304c\u5fc5\u8981\u3068\u306a\u308b\u30b5\u30fc\u30d3\u30b9\u3067\u306f\u3001\u3055\u3089\u306bshadow proxy\u306e\u6069\u6075\u3092\u53d7\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\r\n<h2>\u30ab\u30ca\u30ea\u30a2\u30ea\u30ea\u30fc\u30b9<\/h2>\r\n<h3>\u30ab\u30ca\u30ea\u30a2\u30ea\u30ea\u30fc\u30b9\u306e\u65b9\u6cd5\u306e\u691c\u8a0e<\/h3>\r\n<p>AWS\u3067\u30ab\u30ca\u30ea\u30a2\u30ea\u30ea\u30fc\u30b9\u3092\u884c\u3046\u65b9\u6cd5\u306f\u5927\u304d\u304f\u5206\u3051\u3066\u3001Route53\u306e\u52a0\u91cd\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306b\u3088\u308b\u65b9\u6cd5\u3068ALB\u306e\u52a0\u91cd\u30bf\u30fc\u30b2\u30c3\u30c8\u30b0\u30eb\u30fc\u30d7\u3092\u5229\u7528\u3059\u308b\u65b9\u6cd5\u306e2\u3064\u304c\u3042\u308a\u3001\u3069\u3061\u3089\u3082\u5b9f\u7528\u4f8b\u3092\u63a2\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\r\n<p>\u4eca\u56de\u306e\u79fb\u884c\u3067\u306f\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u79fb\u884c\u3082\u884c\u306a\u3063\u3066\u304a\u308a\u3001\u30ab\u30ca\u30ea\u30a2\u30ea\u30ea\u30fc\u30b9\u3092\u884c\u3046\u306b\u306f\u8a8d\u8a3c\u60c5\u5831\u3084CSRF\u30c8\u30fc\u30af\u30f3\u306a\u3069\u306eCookie\u95a2\u9023\u306e\u5171\u901a\u5316\u3092\u3069\u3046\u3059\u308b\u304b\u3068\u3044\u3046\u554f\u984c\u304c\u3042\u308a\u307e\u3057\u305f\u3002\u3053\u308c\u3089\u306e\u554f\u984c\u306b\u3064\u3044\u3066\u3001\u8a8d\u8a3c\u60c5\u5831\u306f\u5f8c\u8ff0\u3059\u308b\u30b3\u30fc\u30c9\u5909\u66f4\u306b\u3088\u308a\u540c\u671f\u3092\u884c\u3044\u3001CSRF\u30c8\u30fc\u30af\u30f3\u306f<a href=\"https:\/\/docs.aws.amazon.com\/elasticloadbalancing\/latest\/application\/sticky-sessions.html\">ALB\u306eSticky Session\u6a5f\u80fd<\/a>\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u89e3\u6c7a\u3059\u308b\u3053\u3068\u306b\u6c7a\u5b9a\u3057\u307e\u3057\u305f\u3002<\/p>\r\n<p>Sticky Session\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u3001\u5fc5\u7136\u7684\u306b\u30ab\u30ca\u30ea\u30a2\u30ea\u30ea\u30fc\u30b9\u306e\u65b9\u6cd5\u3068\u3057\u3066\u306fALB\u306e\u52a0\u91cd\u30bf\u30fc\u30b2\u30c3\u30c8\u30b0\u30eb\u30fc\u30d7\u3092\u63a1\u7528\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\r\n<h3>\u30ed\u30b0\u30a4\u30f3\u72b6\u614b\u306e\u540c\u671f<\/h3>\r\n<p>\u30ed\u30b0\u30a4\u30f3\u72b6\u614b\u306e\u540c\u671f\u306b\u3064\u3044\u3066\u306f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306b\u3082\u95a2\u308f\u308b\u90e8\u5206\u306a\u306e\u3067\u8a73\u7d30\u306f\u7701\u7565\u3057\u307e\u3059\u304c\u3001<\/p>\r\n<ul>\r\n<li>\u540c\u3058Key\u306eCookie\u3092\u4f7f\u7528<\/li>\r\n<li>FuelPHP\u3068Laravel\u3069\u3061\u3089\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u751f\u6210\u3055\u308c\u305f\u8a8d\u8a3c\u60c5\u5831\u3067\u3082\u8aad\u307f\u53d6\u308c\u308b\u3088\u3046\u306b\u30b3\u30fc\u30c9\u5909\u66f4<\/li>\r\n<\/ul>\r\n<p>\u3092\u884c\u3044\u307e\u3057\u305f\u3002\u3053\u308c\u3089\u306b\u3088\u308a\u3001\u3069\u3061\u3089\u306e\u74b0\u5883\u3067\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3082\u30bb\u30c3\u30b7\u30e7\u30f3\u304c\u7dad\u6301\u3055\u308c\u308b\u72b6\u614b\u3092\u5b9f\u73fe\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\r\n<h3>\u52a0\u91cd\u30bf\u30fc\u30b2\u30c3\u30c8\u30b0\u30eb\u30fc\u30d7\u306e\u8a2d\u5b9a<\/h3>\r\n<p>\u52a0\u91cd\u30bf\u30fc\u30b2\u30c3\u30c8\u30b0\u30eb\u30fc\u30d7\u306f\u65e2\u5b58\u306e\u672c\u756a\u74b0\u5883\u306eALB\u306e\u8a2d\u5b9a\u3092\u5909\u66f4\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u4e8b\u524d\u306b\u958b\u767a\u74b0\u5883\u3067\u30c6\u30b9\u30c8\u3092\u884c\u3044\u3001\u52a0\u91cd\u306e\u8a2d\u5b9a\u65b9\u6cd5\u3084sticky session\u306e\u6319\u52d5\u3001\u5207\u308a\u623b\u3057\u65b9\u6cd5\u306a\u3069\u3092\u78ba\u8a8d\u3057\u307e\u3057\u305f\u3002\uff08\u8a18\u4e8b\u3092\u66f8\u304f\u969b\u306b\u3082\u518d\u5ea6\u8abf\u67fb\u3057\u305f\u306e\u3067\u5927\u4e08\u592b\u304b\u3068\u306f\u601d\u3044\u307e\u3059\u304c\u3001\u9593\u9055\u3044\u306a\u3069\u3042\u308c\u3070\u3054\u6307\u6458\u304f\u3060\u3055\u3044\uff09<\/p>\r\n<p>sticky session+\u52a0\u91cd\u30bf\u30fc\u30b2\u30c3\u30c8\u30b0\u30eb\u30fc\u30d7\u306e\u78ba\u8a8d\u3067\u304d\u305f\u91cd\u8981\u305d\u3046\u306a\u4ed5\u69d8\u3068\u3057\u3066\u306f<\/p>\r\n<ul>\r\n<li>\u52a0\u91cd\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3084sitckiness\u306e\u8a2d\u5b9a\u5f8c\u82e5\u5e72\u306e\u30e9\u30b0\uff0810\u79d2\u4ee5\u5185\u7a0b\u5ea6\uff09\u304c\u3042\u308b<\/li>\r\n<li>\u52a0\u91cd\u306f1~999\u306e\u5024\u3067\u8a2d\u5b9a\u3067\u304d\u308b\uff080.1%\u304b\u3089\u306e\u30ab\u30ca\u30ea\u30a2\u30ea\u30ea\u30fc\u30b9\u304c\u53ef\u80fd\uff09<\/li>\r\n<li><strong>stickiness\u306e\u8a2d\u5b9a\u3067\u4e00\u5ea6\u300cAWSALBTG\u300d\u306eCookie\u3092\u6e21\u3055\u308c\u3066\u632f\u308a\u5206\u3051\u3089\u308c\u305f\u5f8c\u306f\u3001\u52a0\u91cd\u3092\u5909\u66f4\u3057\u3066\u3082sticky session\u306estickiness duration\u304c\u5207\u308c\u308b\u307e\u3067\u306f\u632f\u308a\u5206\u3051\u304c\u7dad\u6301\u3055\u308c\u308b<\/strong>\r\n<ul>\r\n<li>\u3053\u308c\u306f\u52a0\u91cd\u306e\u5272\u5408\u30920\u306b\u3057\u3066\u3082\u632f\u308a\u5206\u3051\u7d9a\u3051\u3089\u308c\u308b\u305f\u3081\u3001<strong>\u52a0\u91cd\u30920\u306b\u3059\u308b\u3060\u3051\u3067\u306f\u5207\u308a\u623b\u3057\u306f\u3067\u304d\u306a\u3044\u3053\u3068\u306b\u6ce8\u610f<\/strong><\/li>\r\n<li>\u4e00\u5ea6sticky session\u3092\u30aa\u30d5\u306b\u3057\u3066\u518d\u5ea6\u30aa\u30f3\u306b\u3057\u76f4\u3057\u305f\u5834\u5408\u3067\u3082\u7dad\u6301\u3055\u308c\u308b<\/li>\r\n<\/ul>\r\n<\/li>\r\n<li>Cookie\u306eexpire\u306f1\u9031\u9593\u3060\u304c\u3001\u3053\u308c\u306fstickiness duration\u3068\u306f\u7121\u95a2\u4fc2<\/li>\r\n<\/ul>\r\n<p>\u3053\u308c\u3089\u304b\u3089\u3001stickiness duration\u306b\u3064\u3044\u3066\u306f\u30ab\u30ca\u30ea\u30a2\u30ea\u30ea\u30fc\u30b9\u306e\u5272\u5408\u3092\u5909\u66f4\u3057\u3066\u3044\u304f\u30bf\u30a4\u30df\u30f3\u30b0\u306a\u3069\u3082\u8003\u616e\u3057\u30011\u65e5\u306b\u8a2d\u5b9a\u3057\u307e\u3057\u305f\u3002\u3064\u307e\u308a\u3001\u52a0\u91cd\u306e\u8a2d\u5b9a\u5909\u66f4\u304b\u30891\u65e5\u5f8c\u306b\u306f\u3059\u3067\u306b\u632f\u308a\u5206\u3051\u3089\u308c\u3066\u3044\u305f\u30e6\u30fc\u30b6\u30fc\u3082\u518d\u5ea6\u632f\u308a\u5206\u3051\u3089\u308c\u3066\u3001\u8a2d\u5b9a\u3057\u305f\u52a0\u91cd\u306b\u5230\u9054\u3059\u308b\u3088\u3046\u306a\u30a4\u30e1\u30fc\u30b8\u3067\u3059\u3002<\/p>\r\n<p>\u307e\u305f\u3001\u5207\u308a\u623b\u3057\u306b\u3064\u3044\u3066\u306f<strong>sticky session\u3092\u30aa\u30d5\u306b\u3057\u305f\u4e0a\u3067\u3001<\/strong>\u52a0\u91cd\u30920\u306b\u3059\u308c\u3070\u826f\u3044\u3068\u3044\u3046\u3053\u3068\u304c\u308f\u304b\u308a\u3001\u53cd\u6620\u3082\u6570\u79d2\u3067\u884c\u308f\u308c\u308b\u306e\u3067\u5b89\u5fc3\u611f\u304c\u3042\u308a\u307e\u3057\u305f\u3002<\/p>\r\n<h3>\u30ab\u30ca\u30ea\u30a2\u30ea\u30ea\u30fc\u30b9\u3092\u3084\u3063\u3066\u307f\u3066<\/h3>\r\n<p>\u30ab\u30ca\u30ea\u30a2\u30ea\u30ea\u30fc\u30b9\u3067\u306f<\/p>\r\n<ul>\r\n<li>QA\u3067\u306f\u78ba\u8a8d\u3057\u304d\u308c\u306a\u304b\u3063\u305f\u30a8\u30e9\u30fc<\/li>\r\n<li>\u7279\u6709\u306e\u8a2d\u5b9a\u3001\u30e6\u30fc\u30b6\u30fc\u3067\u306e\u30a8\u30e9\u30fc<\/li>\r\n<li>PHP\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u306b\u3088\u308b\u30a8\u30e9\u30fc<\/li>\r\n<\/ul>\r\n<p>\u306a\u3069\u306e\u691c\u77e5\u3092\u3057\u3064\u3064\u3001\u3053\u308c\u3089\u3092\u6700\u5c0f\u9650\u306e\u30e6\u30fc\u30b6\u30fc\u5f71\u97ff\u3067\u30ea\u30ea\u30fc\u30b9\u3067\u304d\u305f\u3068\u3044\u3046\u70b9\u3067\u5927\u3044\u306b\u5f79\u306b\u7acb\u3061\u307e\u3057\u305f\u3002<\/p>\r\n<p>\u5168\u304f\u7570\u306a\u308b\u4e8c\u3064\u306e\u74b0\u5883\u3067\u306e\u30ab\u30ca\u30ea\u30a2\u30ea\u30ea\u30fc\u30b9\u3068\u3044\u3046\u5c11\u3057\u7279\u6b8a\u306a\u8a66\u307f\u3067\u3001\u3042\u307e\u308a\u524d\u4f8b\u3082\u3042\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u304c\u3001\u958b\u767a\u74b0\u5883\u3067\u3055\u307e\u3056\u307e\u306a\u691c\u8a3c\u3092\u4e8b\u524d\u306b\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u3001\u5927\u304d\u306a\u554f\u984c\u3082\u306a\u304f\u7d42\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002\u7d30\u304b\u306a\u4fee\u6b63\u306f\u884c\u306a\u3063\u305f\u3082\u306e\u306e\u3001\u5207\u308a\u623b\u3057\u3082\u306a\u304f\u7121\u4e8b\u306b\u9032\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u305f\u306e\u306f\u672c\u5f53\u306b\u3088\u304b\u3063\u305f\u3067\u3059\u3002<\/p>\r\n<p>\u3053\u308c\u3089\u306e\u79fb\u884c\u3067\u5f97\u3089\u308c\u305f\u77e5\u898b\u306b\u3064\u3044\u3066\u306f\u3001\u4f8b\u3048\u3070PHP\u304b\u3089Golang\u3078\u306e\u8a00\u8a9e\u306e\u5909\u66f4\u306e\u3088\u3046\u306a\u3001\u5927\u304d\u306a\u30ea\u30d7\u30ec\u30a4\u30b9\u3067\u3082\u5fdc\u7528\u3067\u304d\u308b\u306e\u3067\u306f\u306a\u3044\u304b\u3068\u8003\u3048\u3066\u3044\u307e\u3059\u3002<\/p>\r\n<h3>\u5931\u6557<\/h3>\r\n<p>\u5168\u3066\u304c\u4e0a\u624b\u304f\u3044\u3063\u305f\u304b\u306e\u3088\u3046\u306b\u898b\u3048\u305f\u30ab\u30ca\u30ea\u30a2\u30ea\u30ea\u30fc\u30b9\u3067\u3057\u305f\u304c\u3001100%\u30ea\u30ea\u30fc\u30b9\u5b8c\u4e86\u5f8c\u306b\u30ab\u30ca\u30ea\u30a2\u30ea\u30ea\u30fc\u30b9\u7531\u6765\u306e\u969c\u5bb3\u3092\u8d77\u3053\u3057\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002\u5177\u4f53\u7684\u306b\u306f\u3001Cookie\u304c\u4e8c\u91cd\u306b\u4fdd\u5b58\u3055\u308c\u3066\u3057\u307e\u3046\u3053\u3068\u3067\u3001Web\u3067\u30ed\u30b0\u30a2\u30a6\u30c8\u3067\u304d\u306a\u3044\u72b6\u614b\u304c\u751f\u3058\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<\/p>\r\n<p>Cookie\u304c\u4e8c\u91cd\u3067\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u5074\u3067\u4fdd\u5b58\u3055\u308c\u3066\u3057\u307e\u3063\u305f\u539f\u56e0\u306f\u8907\u96d1\u306a\u306e\u3067\u3059\u304c\u3001\u9806\u3092\u8ffd\u3063\u3066\u8aac\u660e\u3057\u3066\u3044\u304d\u307e\u3059\u3068<\/p>\r\n<ul>\r\n<li>\u65e7\u74b0\u5883\u306eCookie\u304c\uff08\u4e0d\u8981\u304b\u3064<a href=\"https:\/\/blog.tokumaru.org\/2011\/10\/cookiedomain.html\">\u6307\u5b9a\u3059\u3079\u304d\u3067\u306a\u3044<\/a>\u306e\u306b\u3082\u95a2\u308f\u3089\u305a\uff09\u30c9\u30e1\u30a4\u30f3\u5c5e\u6027\u3092\u6307\u5b9a\u3057\u3066\u3044\u305f<\/li>\r\n<li>\u65e7\u74b0\u5883\u306eCookie\u306eexpire\u306e\u8a2d\u5b9a\u304c\u9069\u5207\u3067\u306a\u304b\u3063\u305f<\/li>\r\n<\/ul>\r\n<p>\u3053\u308c\u3089\u306eCookie\u306e\u8a2d\u5b9a\u30df\u30b9\u306b\u3088\u308a\u3001<\/p>\r\n<ol>\r\n<li>\u65e7\u74b0\u5883\u3067\u30ed\u30b0\u30a4\u30f3\u3057\u3001Cookie\u304c\u30bb\u30c3\u30c8\u3055\u308c\u308b<\/li>\r\n<li>\u65e7\u74b0\u5883\u306e\u30bb\u30c3\u30b7\u30e7\u30f3\u60c5\u5831\u306e\u6709\u52b9\u671f\u9650\u304c\u5207\u308c\u308b<\/li>\r\n<li>\u65b0\u74b0\u5883\u304b\u3089\u898b\u308b\u3068\u65e7\u74b0\u5883\u306eCookie\u304c\u6b8b\u3063\u3066\u3044\u308b\u305f\u3081\u3001\u30bb\u30c3\u30b7\u30e7\u30f3\u60c5\u5831\u3092\u53c2\u7167\u3059\u308b\u304c\u7121\u52b9\u5316\u3055\u308c\u3066\u3044\u308b\uff08\u30ed\u30b0\u30a2\u30a6\u30c8\u3055\u308c\u3066\u3044\u308b\u5224\u5b9a\uff09<\/li>\r\n<li>\u65b0\u74b0\u5883\u3067\u518d\u30ed\u30b0\u30a4\u30f3<\/li>\r\n<li>\u65e7\u74b0\u5883\u306eCookie\u306fDomain\u5c5e\u6027\u304c\u6307\u5b9a\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u4e0a\u66f8\u304d\u3055\u308c\u305a\u3001\u5225\u306eCookie\u3068\u3057\u3066\u4fdd\u5b58\u3055\u308c\u308b\r\n<ol>\r\n<li><a href=\"https:\/\/datatracker.ietf.org\/doc\/html\/rfc6265#section-5.3\">https:\/\/datatracker.ietf.org\/doc\/html\/rfc6265#section-5.3<\/a> \u306e11.\u53c2\u7167<\/li>\r\n<\/ol>\r\n<\/li>\r\n<\/ol>\r\n<blockquote>11. If the cookie store contains a cookie with the same name, domain, and path as the newly created cookie: 1. Let old-cookie be the existing cookie with the same name, domain, and path as the newly created cookie. (Notice that this algorithm maintains the invariant that there is at most one such cookie.) 2. If the newly created cookie was received from a \"non-HTTP\" API and the old-cookie's http-only-flag is set, abort these steps and ignore the newly created cookie entirely. 3. Update the creation-time of the newly created cookie to match the creation-time of the old-cookie. 4. Remove the old-cookie from the cookie store.<\/blockquote>\r\n<p>\u3053\u308c\u3089\u306b\u3088\u308a\u3001Cookie\u304c\u4e8c\u91cd\u306b\u767b\u9332\u3055\u308c\u308b\u72b6\u614b\u304c\u751f\u3058\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<\/p>\r\n<p>\u3053\u306e\u72b6\u614b\u306e\u5384\u4ecb\u306a\u3053\u3068\u3068\u3057\u3066\u306f\u3001\u65b0\u74b0\u5883\u304b\u3089\u306f\u65e7\u74b0\u5883\u306eCookie\u3092\u524a\u9664\u3084\u5909\u66f4\u304c\u3067\u304d\u306a\u3044\u72b6\u614b\u306b\u3082\u95a2\u308f\u3089\u305a\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u5074\u306f<a href=\"https:\/\/datatracker.ietf.org\/doc\/html\/rfc6265#section-5.4\">\u4e00\u81f4\u3059\u308b\u30d1\u30b9\u304c\u9577\u3044\u7269\u304b\u3089\u9806\u306bCookie\u306e\u9806\u756a\u3092\u30bd\u30fc\u30c8<\/a>\u3057\u3001\u30b5\u30fc\u30d0\u30fc\u5074\u306f\u540c\u3058Key\u306e\u4e2d\u3067\u306f\u512a\u5148\u5ea6\u306e\u6700\u3082\u9ad8\u3044Cookie\u3057\u304b\u53d6\u5f97\u3057\u306a\u3044\u305f\u3081\u3001Domain\u5c5e\u6027\u306e\u3064\u3044\u3066\u3044\u308b\u65e7\u74b0\u5883\u306eCookie\u304c\u5e38\u306b\u8aad\u307f\u8fbc\u307e\u308c\u3066\u3057\u307e\u3046\u3053\u3068\u3067\u3057\u305f\u3002<\/p>\r\n<p>\u3053\u308c\u3089\u306e\u691c\u8a3c\u7d50\u679c\u304b\u3089\u3001\u30ab\u30ca\u30ea\u30a2\u30ea\u30ea\u30fc\u30b9\u7d42\u4e86\u5f8c\u306b\u65b0\u74b0\u5883\u3067Cookie\u306eKey\u3092\u65b0\u3057\u3044\u3082\u306e\u306b\u5207\u308a\u66ff\u308c\u3070\u89e3\u6c7a\u3067\u304d\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u3001\u3059\u3050\u306b\u30ea\u30ea\u30fc\u30b9\u3092\u884c\u306a\u3044\u307e\u3057\u305f\u3002<\/p>\r\n<p>\u30c6\u30b9\u30c8\u3084QA\u3067\u306f\u3001\uff12\u74b0\u5883\u9593\u3067\u30ed\u30b0\u30a4\u30f3\u304c\u540c\u671f\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3084\u5207\u308a\u66ff\u3048\u306a\u304c\u3089\u30ed\u30b0\u30a4\u30f3\u30fb\u30ed\u30b0\u30a2\u30a6\u30c8\u304c\u53ef\u80fd\u306a\u3053\u3068\u306f\u78ba\u8a8d\u3067\u304d\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u4e0a\u306e\u4e8b\u8c61\u3092\u518d\u73fe\u3067\u304d\u308b\u3088\u3046\u306a\u65e7\u74b0\u5883\u3067\u30ed\u30b0\u30a4\u30f3\u2192\u65b0\u74b0\u5883\u3067\u30ed\u30b0\u30a2\u30a6\u30c8\u2192\u65b0\u74b0\u5883\u3067\u30ed\u30b0\u30a4\u30f3\u2192\u65b0\u74b0\u5883\u3067\u30ed\u30b0\u30a2\u30a6\u30c8\uff08\u3067\u304d\u306a\u3044\uff09\u3068\u3044\u3046\u3088\u3046\u306a\u30c6\u30b9\u30c8\u307e\u3067\u306f\u3067\u304d\u3066\u3044\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u305d\u3082\u305d\u3082\u3001\u79fb\u884c\u6642\u306bCookie\u306e\u8a2d\u5b9a\u306b\u3064\u3044\u3066\u3088\u308a\u614e\u91cd\u306a\u8abf\u67fb\u3068\u691c\u8a3c\u3092\u884c\u3048\u3066\u3044\u308c\u3070\u3053\u306e\u554f\u984c\u304c\u751f\u3058\u308b\u3053\u3068\u306f\u306a\u304b\u3063\u305f\u306e\u3067\u305d\u3053\u306f\u5927\u304d\u306a\u53cd\u7701\u70b9\u3067\u3059\u3002<\/p>\r\n<p>\u3053\u306e\u969c\u5bb3\u306b\u3064\u3044\u3066\u306f\u958b\u767a\u74b0\u5883\u3067\u65e9\u3044\u6bb5\u968e\u3067\u6c17\u3065\u304f\u3053\u3068\u304c\u3067\u304d\u3001\u4e8b\u524d\u306bCookie\u3068\u8a8d\u8a3c\u5468\u308a\u306b\u3064\u3044\u3066\u3042\u308b\u7a0b\u5ea6\u306e\u691c\u8a3c\u3092\u884c\u3048\u3066\u3044\u305f\u305f\u3081\u306b\u3001\u3059\u3050\u306b\u539f\u56e0\u3092\u7a76\u660e\u3057\u89e3\u6c7a\u3067\u304d\u305f\u306e\u306f\u4e0d\u5e78\u4e2d\u306e\u5e78\u3044\u3067\u306f\u3042\u308a\u307e\u3057\u305f\u3002\u307e\u305f\u3001\u30e6\u30fc\u30b6\u30fc\u5f71\u97ff\u306b\u3064\u3044\u3066\u3082\uff08\u5207\u308a\u66ff\u3048\u3067\u30ed\u30b0\u30a2\u30a6\u30c8\u304c\u767a\u751f\u3057\u305f\u3053\u3068\u4ee5\u5916\u306f\uff09\u307b\u307c\u5185\u90e8\u30e9\u30a4\u30bf\u30fc\u306e\u65b9\u3005\u306e\u307f\u306b\u7559\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\r\n<h2>\u6700\u5f8c\u306b<\/h2>\r\n<p>EC2\u304b\u3089Fargate\u3078\u306e\u79fb\u884c\u306b\u304a\u3044\u3066\u3001shadow proxy\u3068\u30ab\u30ca\u30ea\u30a2\u30ea\u30ea\u30fc\u30b9\u3092\u63a1\u7528\u3057\u305f\u4e8b\u4f8b\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3055\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3057\u305f\u3002\u5931\u6557\u306f\u3042\u308a\u3064\u3064\u3082\u3001\u5168\u4f53\u7684\u306b\u306f\u691c\u8a0e\u6bb5\u968e\u3067\u8003\u3048\u3066\u3044\u305f\u901a\u308a\u306b\u304a\u304a\u3080\u306d\u9032\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u3001\u7121\u4e8b\u79fb\u884c\u306b\u6210\u529f\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\r\n<p>\u500b\u4eba\u7684\u306b\u306f\u3053\u306e\u3088\u3046\u306a\u5927\u898f\u6a21\u306a\u30a4\u30f3\u30d5\u30e9\u306e\u79fb\u884c\u3084AWS Fargate\u3067\u306e\u4e00\u304b\u3089\u306e\u30a4\u30f3\u30d5\u30e9\u306e\u69cb\u7bc9\u306a\u3069\u3001\u306a\u304b\u306a\u304b\u7d4c\u9a13\u3067\u304d\u306a\u3044\u3088\u3046\u306a\u7d4c\u9a13\u3092\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u3001\u3068\u3066\u3082\u904b\u304c\u826f\u304b\u3063\u305f\u3068\u601d\u3063\u3066\u3044\u307e\u3059\u3002\u307e\u305f\u3001\u5b89\u5168\u306a\u79fb\u884c\u306a\u305f\u3081\u306b\u3067\u304d\u308b\u3053\u3068\u306f\u306a\u3044\u304b\u3068\u69d8\u3005\u306a\u691c\u8a0e\u3092\u3057\u3001\u5b9f\u969b\u306b\u3084\u3063\u3066\u307f\u305f\u3053\u3068\u3067\u6280\u8853\u7684\u306b\u3082\u591a\u304f\u306e\u3053\u3068\u3092\u5b66\u3076\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>EC2\u304b\u3089Fargate\u3078\u306e\u79fb\u884c ~shadow proxy\u3068\u30ab\u30ca\u30ea\u30a2\u30ea\u30ea\u30fc\u30b9~ \u3053\u3093\u306b\u3061\u306f\u3001\u30e1\u30c7\u30a3\u30a2\u4e8b\u696d\u3067\u30a8\u30f3\u30b8\u30cb\u30a2\u3092\u3057\u3066\u3044\u308b\u6728\u6751\u6d0b\u592a\u3067\u3059\u3002 \u6628\u5e74\u306eGREE Tech Conference\u3067\u306f\u300cLIMIA\u300d\u306e\u30d5\u30ec\u30fc\u30e0\u30ef [&hellip;]<\/p>\n","protected":false},"author":243,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[9],"tags":[112,152],"class_list":["post-21954","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-info","tag-ec2","tag-fargate"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/posts\/21954","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/users\/243"}],"replies":[{"embeddable":true,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/comments?post=21954"}],"version-history":[{"count":3,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/posts\/21954\/revisions"}],"predecessor-version":[{"id":21958,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/posts\/21954\/revisions\/21958"}],"wp:attachment":[{"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/media?parent=21954"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/categories?post=21954"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/tags?post=21954"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}