{"id":3755,"date":"2025-09-04T17:52:17","date_gmt":"2025-09-04T09:52:17","guid":{"rendered":"https:\/\/aws-oncloudai.com\/?p=3755"},"modified":"2025-09-04T17:52:17","modified_gmt":"2025-09-04T09:52:17","slug":"detailed-explanation-of-aws-alb-intelligent-traffic-scheduler","status":"publish","type":"post","link":"https:\/\/aws-oncloudai.com\/zh_hk\/detailed-explanation-of-aws-alb-intelligent-traffic-scheduler\/","title":{"rendered":"AWS ALB \u8a73\u89e3\uff1a\u667a\u6167\u578b\u6d41\u91cf\u8abf\u5ea6\u5668"},"content":{"rendered":"<p>\u5728\u96f2\u7aef\u904b\u7b97\u74b0\u5883\u4e0b\uff0c\u61c9\u7528\u7cfb\u7d71\u7684\u8a2a\u554f\u91cf\u5f80\u5f80\u5b58\u5728\u8f03\u5927\u7684\u6ce2\u52d5\uff0c\u5f8c\u7aef\u670d\u52d9\u5982\u4f55\u5728\u9ad8\u4e26\u767c\u5834\u666f\u4e0b\u4fdd\u6301\u7a69\u5b9a\u8207\u9ad8\u6548\uff0c\u5c31\u6210\u70ba\u4f01\u696d\u67b6\u69cb\u8a2d\u8a08\u7684\u6838\u5fc3\u554f\u984c\u3002\u8ca0\u8f09\u5e73\u8861\u5668\u56e0\u6b64\u6210\u70ba\u61c9\u7528\u67b6\u69cb\u4e2d\u4e0d\u53ef\u6216\u7f3a\u7684\u4e00\u74b0\u3002\u5728Amazon Web Services (AWS) \u4e2d\uff0c<strong>Application Load Balancer\uff08ALB\uff09<\/strong> \u4f5c\u70baElastic Load Balancing (ELB) \u670d\u52d9\u5bb6\u65cf\u7684\u91cd\u8981\u6210\u54e1\uff0c\u6191\u85c9\u5176\u667a\u6167\u5316\u7684\u7b2c\u4e03\u5c64\u6d41\u91cf\u8abf\u5ea6\u80fd\u529b\uff0c\u70ba\u5efa\u69cb\u73fe\u4ee3\u5316\u61c9\u7528\u63d0\u4f9b\u4e86\u5805\u5be6\u7684\u652f\u63f4\u3002<\/p>\n<p>&nbsp;<\/p>\n<h4>\u4ec0\u9ebc\u662fAWS ALB\uff1f<\/h4>\n<p>AWS ALB \u5168\u7a31\u70ba <strong>Application Load Balancer<\/strong>\uff0c\u662f\u4e00\u7a2e\u5de5\u4f5c\u5728OSI \u4e03\u5c64\uff08\u61c9\u7528\u5c64\uff09\u7684\u8ca0\u8f09\u5e73\u8861\u670d\u52d9\u3002\u4e0d\u540c\u65bc\u50b3\u7d71\u7684\u56db\u5c64\u8ca0\u8f09\u5e73\u8861\u5668\uff0cALB \u53ef\u4ee5\u57fa\u65bc <strong>HTTP \u548cHTTPS \u8acb\u6c42\u7684\u5167\u5bb9<\/strong> \u505a\u51fa\u8f49\u9001\u6c7a\u7b56\u3002\u9019\u610f\u5473\u8457ALB \u4e0d\u50c5\u80fd\u5728\u591a\u53f0\u5f8c\u7aef\u4f3a\u670d\u5668\u9593\u5206\u914d\u6d41\u91cf\uff0c\u9084\u80fd\u6839\u64da <strong>\u8def\u5f91\u3001\u4e3b\u6a5f\u540d\u7a31\u3001\u8acb\u6c42\u982d\u3001\u67e5\u8a62\u53c3\u6578<\/strong> \u7b49\u9032\u884c\u667a\u6167\u8def\u7531\u3002<\/p>\n<p>\u7c21\u800c\u8a00\u4e4b\uff0cALB \u5c31\u50cf\u4e00\u500b\u201c\u8070\u660e\u7684\u4ea4\u901a\u8b66\u5bdf\u201d\uff0c\u80fd\u8b58\u5225\u4f86\u8a2a\u8acb\u6c42\u7684\u7279\u5fb5\uff0c\u4e26\u5c07\u5176\u5c0e\u5411\u6700\u5408\u9069\u7684\u5f8c\u7aef\u670d\u52d9\u3002<\/p>\n<p>&nbsp;<\/p>\n<h4>\u6838\u5fc3\u7279\u6027<\/h4>\n<h5>1. \u57fa\u65bc\u5167\u5bb9\u7684\u667a\u6167\u8def\u7531<\/h5>\n<p>ALB \u63d0\u4f9b\u591a\u7dad\u5ea6\u7684\u8acb\u6c42\u5206\u767c\u80fd\u529b\uff1a<\/p>\n<ul>\n<li><strong>\u57fa\u65bc\u8def\u5f91\u7684\u8def\u7531<\/strong>\uff1a\u4f8b\u5982\/api\/* \u7684\u8acb\u6c42\u53ef\u4ee5\u88ab\u8f49\u9001\u81f3API \u670d\u52d9\uff0c\/images\/* \u7684\u8acb\u6c42\u5247\u8f49\u9001\u81f3\u5716\u7247\u4f3a\u670d\u5668\u3002<\/li>\n<li><strong>\u57fa\u65bc\u4e3b\u6a5f\u540d\u7684\u8def\u7531<\/strong>\uff1a\u5982app.example.com \u548cadmin.example.com \u6307\u5411\u4e0d\u540c\u7684\u76ee\u6a19\u7fa4\u7d44\u3002<\/li>\n<li><strong>\u57fa\u65bc\u8acb\u6c42\u982d\u6216\u67e5\u8a62\u53c3\u6578\u7684\u8def\u7531<\/strong>\uff1a\u9748\u6d3b\u652f\u63f4\u66f4\u8907\u96dc\u7684\u6d41\u91cf\u5206\u914d\u7b56\u7565\u3002<\/li>\n<\/ul>\n<p>\u9019\u8b93ALB \u5728\u5fae\u670d\u52d9\u548c\u591a\u79df\u6236\u67b6\u69cb\u4e2d\u767c\u63ee\u5de8\u5927\u50f9\u503c\u3002<\/p>\n<h5>2. \u6df1\u5ea6\u652f\u63f4\u5bb9\u5668\u8207\u7121\u4f3a\u670d\u5668\u67b6\u69cb<\/h5>\n<p>\u5728\u5fae\u670d\u52d9\u74b0\u5883\u4e2d\uff0c\u4e00\u500bEC2 \u57f7\u884c\u500b\u9ad4\u4e0a\u53ef\u80fd\u6703\u57f7\u884c\u591a\u500b\u5bb9\u5668\u3002 ALB \u53ef\u5c07\u55ae\u4e00\u5bb9\u5668\u4f5c\u70ba\u7368\u7acb\u76ee\u6a19\uff0c\u4e26\u7d50\u5408Amazon ECS\u3001EKS \u5be6\u73fe <strong>\u52d5\u614b\u670d\u52d9\u767c\u73fe\u8207\u81ea\u52d5\u4f38\u7e2e<\/strong>\u3002\u6b64\u5916\uff0cALB \u9084\u652f\u63f4\u76f4\u63a5\u5c07\u6d41\u91cf\u8f49\u9001\u81f3 <strong>AWS Lambda \u51fd\u6578<\/strong>\uff0c\u5e6b\u52a9\u4f01\u696d\u8f15\u9b06\u5efa\u7f6e\u7121\u4f3a\u670d\u5668\u61c9\u7528\u7a0b\u5f0f\u3002<\/p>\n<h5>3. \u9ad8\u53ef\u7528\u8207\u5f48\u6027\u64f4\u5c55<\/h5>\n<p>\u4f5c\u70baAWS \u5168\u8a17\u7ba1\u670d\u52d9\uff0cALB \u6703\u81ea\u52d5\u5728\u591a\u500b\u53ef\u7528\u5340\u5167\u64f4\u5c55\u5bb9\u91cf\uff0c\u80fd\u5920\u61c9\u5c0d\u7a81\u767c\u7684\u6d41\u91cf\u9ad8\u5cf0\uff0c\u800c\u7121\u9700\u7dad\u904b\u4eba\u54e1\u624b\u52d5\u5e79\u9810\u3002\u4f01\u696d\u53ea\u9700\u6309\u6d41\u91cf\u4f7f\u7528\u4ed8\u8cbb\uff0c\u907f\u514d\u4e86\u50b3\u7d71\u8ca0\u8f09\u5e73\u8861\u8a2d\u5099\u5728\u5bb9\u91cf\u898f\u5283\u4e0a\u7684\u56f0\u5883\u3002<\/p>\n<h5>4. \u5b89\u5168\u8207\u5408\u898f<\/h5>\n<ul>\n<li><strong>TLS \u7d42\u6b62<\/strong>\uff1aALB \u652f\u63f4SSL\/TLS \u5378\u8f09\uff0c\u6e1b\u8f15\u5f8c\u7aef\u4f3a\u670d\u5668\u52a0\u5bc6\u89e3\u5bc6\u7684\u8ca0\u64d4\u3002<\/li>\n<li><strong>\u6574\u5408AWS WAF<\/strong>\uff1a\u53ef\u6514\u622aSQL \u6ce8\u5165\u3001\u8de8\u7ad9\u8173\u672c\u7b49\u5e38\u898bWeb \u653b\u64ca\u3002<\/li>\n<li><strong>\u5408\u898f\u4fdd\u969c<\/strong>\uff1a\u6eff\u8db3\u91d1\u878d\u3001\u91ab\u7642\u7b49\u884c\u696d\u5728\u8cc7\u6599\u50b3\u8f38\u5b89\u5168\u65b9\u9762\u7684\u56b4\u683c\u8981\u6c42\u3002<\/li>\n<\/ul>\n<h5>5. \u76e3\u63a7\u8207\u53ef\u89c0\u6e2c\u6027<\/h5>\n<p>ALB \u53ef\u8207 <strong>Amazon CloudWatch<\/strong>\u3001<strong>AWS X-Ray<\/strong> \u7b49\u670d\u52d9\u7d50\u5408\uff0c\u63d0\u4f9b\u5373\u6642\u6307\u6a19\u3001\u5b58\u53d6\u65e5\u8a8c\u8207\u8acb\u6c42\u8ffd\u8e2a\uff0c\u5e6b\u52a9\u958b\u767c\u8207\u7dad\u904b\u5718\u968a\u5feb\u901f\u5b9a\u4f4d\u6548\u80fd\u74f6\u9838\u8207\u7570\u5e38\u3002<\/p>\n<p>&nbsp;<\/p>\n<h4>\u61c9\u7528\u5834\u666f<\/h4>\n<ol>\n<li><strong>\u5fae\u670d\u52d9\u67b6\u69cb<\/strong><\/li>\n<li>\u900f\u904e\u8def\u5f91\u6216\u4e3b\u6a5f\u540d\u7a31\u8def\u7531\uff0c\u8f15\u9b06\u5c07\u4e0d\u540c\u670d\u52d9\u6d41\u91cf\u5206\u914d\u81f3\u7368\u7acb\u7684\u5bb9\u5668\u6216\u5be6\u4f8b\uff0c\u907f\u514d\u55ae\u4e00\u670d\u52d9\u58d3\u529b\u904e\u5927\u3002<\/li>\n<li><strong>\u591a\u79df\u6236\u61c9\u7528<\/strong><\/li>\n<li>\u5728SaaS \u6a21\u5f0f\u4e0b\uff0c\u4e0d\u540c\u5ba2\u6236\u53ef\u900f\u904e\u81ea\u8a02\u7db2\u57df\u540d\u7a31\u63a5\u5165\uff0cALB \u4f9d\u4e3b\u6a5f\u540d\u7a31\u8b58\u5225\u4e26\u5206\u6d41\u3002<\/li>\n<li><strong>\u52d5\u614b\u5167\u5bb9\u8207\u975c\u614b\u5167\u5bb9\u5206\u96e2<\/strong><\/li>\n<li>\u975c\u614b\u5167\u5bb9\u53ef\u7531CDN \u6216\u6a94\u6848\u670d\u52d9\u8655\u7406\uff0c\u52d5\u614b\u8acb\u6c42\u5247\u7531\u5f8c\u7aef\u61c9\u7528\u4f3a\u670d\u5668\u56de\u61c9\uff0c\u5be6\u73fe\u9ad8\u6548\u8cc7\u6e90\u5229\u7528\u3002<\/li>\n<li><strong>\u7121\u4f3a\u670d\u5668\u61c9\u7528<\/strong><\/li>\n<li>\u7d50\u5408AWS Lambda\uff0c\u5efa\u69cb\u4e8b\u4ef6\u9a45\u52d5\u578b\u67b6\u69cb\uff0c\u9032\u4e00\u6b65\u964d\u4f4e\u57fa\u790e\u67b6\u69cb\u904b\u7dad\u6210\u672c\u3002<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h4>\u6210\u672c\u6a21\u578b<\/h4>\n<p>AWS ALB \u7684\u8cbb\u7528\u4e3b\u8981\u7531\u4e0b\u5217\u90e8\u5206\u69cb\u6210\uff1a<\/p>\n<ul>\n<li><strong>\u8ca0\u8f09\u5e73\u8861\u5668\u904b\u4f5c\u6642\u9593<\/strong>\uff1a\u6309\u5c0f\u6642\u8a08\u8cbb\u3002<\/li>\n<li><strong>\u65b0\u5efa\u9023\u7dda\u8207\u6d3b\u8e8d\u9023\u7dda\u6578<\/strong>\uff1a\u53cd\u6620\u4e86ALB \u7684\u540c\u6642\u8655\u7406\u80fd\u529b\u3002<\/li>\n<li><strong>\u6d41\u91cf\u8655\u7406\u91cf<\/strong>\uff1a\u57fa\u65bc\u8655\u7406\u7684\u8acb\u6c42\u6d41\u91cf\u5927\u5c0f\u9032\u884c\u8a08\u8cbb\u3002<\/li>\n<\/ul>\n<p>\u9019\u7a2e\u7cbe\u7d30\u5316\u7684\u6309\u9700\u4ed8\u8cbb\u6a21\u5f0f\uff0c\u4f7f\u4f01\u696d\u80fd\u5920\u9748\u6d3b\u63a7\u88fd\u6210\u672c\uff0c\u8207\u696d\u52d9\u898f\u6a21\u4fdd\u6301\u540c\u6b65\u3002<\/p>\n<p>&nbsp;<\/p>\n<h4>\u70ba\u4ec0\u9ebc\u9078\u64c7AWS ALB\uff1f<\/h4>\n<p>\u8207\u50b3\u7d71\u786c\u9ad4\u8ca0\u8f09\u5e73\u8861\u5668\u76f8\u6bd4\uff0cAWS ALB \u5177\u6709\u4ee5\u4e0b\u512a\u52e2\uff1a<\/p>\n<ul>\n<li><strong>\u7121\u9700\u7dad<\/strong>\uff1a\u5168\u8a17\u7ba1\u670d\u52d9\uff0c\u514d\u53bb\u8907\u96dc\u7684\u8a2d\u5b9a\u8207\u5347\u7d1a\u3002<\/li>\n<li><strong>\u5168\u7403\u53ef\u7528<\/strong>\uff1a\u5728AWS \u5340\u57df\u548c\u53ef\u7528\u5340\u7684\u652f\u63f4\u4e0b\uff0c\u5177\u5099\u5929\u7136\u7684\u9ad8\u53ef\u7528\u6027\u3002<\/li>\n<li><strong>\u9748\u6d3b\u9069\u914d<\/strong>\uff1a\u80fd\u540c\u6642\u6eff\u8db3\u55ae\u9ad4\u61c9\u7528\u3001\u5fae\u670d\u52d9\u4ee5\u53ca\u7121\u4f3a\u670d\u5668\u67b6\u69cb\u7684\u9700\u6c42\u3002<\/li>\n<li><strong>\u5b89\u5168\u5408\u898f<\/strong>\uff1a\u8207AWS \u7684\u5b89\u5168\u670d\u52d9\u7121\u7e2b\u929c\u63a5\uff0c\u964d\u4f4e\u98a8\u96aa\u3002<\/li>\n<\/ul>\n<p>\u5c0d\u65bc\u6b63\u5728\u5efa\u7f6e\u6216\u6700\u4f73\u5316\u96f2\u7aef\u4e0a\u61c9\u7528\u67b6\u69cb\u7684\u4f01\u696d\u800c\u8a00\uff0cALB \u4e0d\u50c5\u662f\u4e00\u500b\u201c\u6d41\u91cf\u5206\u767c\u5668\u201d\uff0c\u66f4\u662f\u4fdd\u969c\u696d\u52d9\u9023\u7e8c\u6027\u8207\u4f7f\u7528\u8005\u9ad4\u9a57\u7684\u95dc\u9375\u5143\u4ef6\u3002<\/p>\n<p>&nbsp;<\/p>\n<h4>\u603b\u7ed3<\/h4>\n<p>\u5728\u96f2\u7aef\u904b\u7b97\u5feb\u901f\u767c\u5c55\u7684\u4eca\u5929\uff0c\u61c9\u7528\u7684\u8907\u96dc\u5ea6\u8207\u8a2a\u554f\u91cf\u4e0d\u65b7\u6500\u5347\uff0c\u50b3\u7d71\u8ca0\u8f09\u5e73\u8861\u65b9\u6848\u5df2\u96e3\u4ee5\u6eff\u8db3\u9748\u6d3b\u3001\u5f48\u6027\u548c\u667a\u6167\u5316\u7684\u9700\u6c42\u3002<strong>AWS Application Load Balancer<\/strong> \u6b63\u662f\u9762\u5411\u73fe\u4ee3\u61c9\u7528\u800c\u8a2d\u8a08\uff0c\u5b83\u900f\u904e\u667a\u6167\u8def\u7531\u3001\u6df1\u5ea6\u6574\u5408\u5bb9\u5668\u8207\u7121\u4f3a\u670d\u5668\u67b6\u69cb\u3001\u9ad8\u53ef\u7528\u6027\u548c\u5b89\u5168\u9632\u8b77\uff0c\u5e6b\u52a9\u4f01\u696d\u8f15\u9b06\u61c9\u5c0d\u8907\u96dc\u7684\u696d\u52d9\u6d41\u91cf\u5834\u666f\u3002<\/p>\n<p>\u5c0d\u65bc\u5e0c\u671b\u5728\u96f2\u7aef\u5be6\u73fe\u9ad8\u53ef\u7528\u3001\u4f4e\u5ef6\u9072\u8207\u5b89\u5168\u5b58\u53d6\u7684\u7d44\u7e54\u800c\u8a00\uff0cALB \u7121\u7591\u662f\u4e0d\u53ef\u6216\u7f3a\u7684\u9078\u64c7\u3002<\/p>","protected":false},"excerpt":{"rendered":"<p>\u5728\u96f2\u7aef\u904b\u7b97\u74b0\u5883\u4e0b\uff0c\u61c9\u7528\u7cfb\u7d71\u7684\u8a2a\u554f\u91cf\u5f80\u5f80\u5b58\u5728\u8f03\u5927\u7684\u6ce2\u52d5\uff0c\u5f8c\u7aef\u670d\u52d9\u5982\u4f55\u5728\u9ad8\u4e26\u767c\u5834\u666f\u4e0b\u4fdd\u6301\u7a69\u5b9a\u8207\u9ad8\u6548\uff0c\u5c31\u6210\u70ba\u4f01\u696d\u67b6\u69cb\u8a2d\u8a08\u7684\u6838\u5fc3\u554f\u984c\u3002\u8ca0\u8f09\u5e73\u8861\u5668\u56e0\u6b64\u6210\u70ba\u61c9\u7528\u67b6\u69cb\u4e2d\u4e0d\u53ef\u6216\u7f3a\u7684\u4e00\u74b0\u3002\u5728Amazon Web Services (AWS) \u4e2d\uff0cApplication Load Balancer\uff08ALB\uff09 \u4f5c\u70baElastic Load Balancing (ELB) \u670d\u52d9\u5bb6\u65cf\u7684\u91cd\u8981\u6210\u54e1\uff0c\u6191\u85c9\u5176\u667a\u80fd\u5316\u7684\u7b2c\u4e03\u5c64\u6d41\u91cf\u8abf\u5ea6\u80fd\u529b\uff0c\u70ba\u69cb\u5efa\u73fe\u4ee3\u5316\u61c9\u7528\u63d0\u4f9b\u4e86\u5805\u5be6\u7684\u652f\u6301\u3002<\/p>","protected":false},"author":1,"featured_media":3757,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[65],"tags":[],"class_list":["post-3755","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technical-sharing"],"_links":{"self":[{"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/posts\/3755","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/comments?post=3755"}],"version-history":[{"count":1,"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/posts\/3755\/revisions"}],"predecessor-version":[{"id":3758,"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/posts\/3755\/revisions\/3758"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/media\/3757"}],"wp:attachment":[{"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/media?parent=3755"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/categories?post=3755"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/tags?post=3755"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}