{"id":4001,"date":"2025-11-26T17:25:13","date_gmt":"2025-11-26T09:25:13","guid":{"rendered":"https:\/\/aws-oncloudai.com\/?p=4001"},"modified":"2025-11-26T17:25:28","modified_gmt":"2025-11-26T09:25:28","slug":"what-is-aws-spot-instances","status":"publish","type":"post","link":"https:\/\/aws-oncloudai.com\/zh_hk\/what-is-aws-spot-instances\/","title":{"rendered":"\u4ec0\u9ebc\u662fAWS Spot Instances\uff1f"},"content":{"rendered":"<p>\u5728\u96f2\u7aef\u904b\u7b97\u7684\u6210\u672c\u512a\u5316\u7b56\u7565\u4e2d\uff0c<strong>AWS Spot Instances\uff08\u7af6\u50f9\u578b\u5be6\u4f8b\uff09<\/strong> \u662f\u4e00\u9805\u6975\u5177\u5438\u5f15\u529b\u7684\u9078\u64c7\u3002\u5c0d\u65bc\u9700\u8981\u5927\u898f\u6a21\u904b\u7b97\u8cc7\u6e90\u4f46\u9810\u7b97\u6709\u9650\u7684\u4f01\u696d\u4f86\u8aaa\uff0cSpot \u5be6\u4f8b\u4e0d\u50c5\u80fd\u986f\u8457\u964d\u4f4e\u6210\u672c\uff0c\u9084\u80fd\u9748\u6d3b\u61c9\u5c0d\u4e0d\u540c\u985e\u578b\u7684\u904b\u7b97\u8ca0\u8f09\u3002\u672c\u6587\u5c07\u89e3\u6790\u5176\u6838\u5fc3\u6a5f\u5236\u3001\u5178\u578b\u61c9\u7528\u5834\u666f\u53ca\u5728\u4f01\u696d\u67b6\u69cb\u6700\u4f73\u5316\u4e2d\u7684\u50f9\u503c\u3002<\/p>\n<p>&nbsp;<\/p>\n<h4>Spot Instances \u6982\u8ff0<\/h4>\n<p>AWS Spot Instances \u662fAmazon EC2\uff08\u5f48\u6027\u904b\u7b97\u96f2\uff09\u7684\u8cfc\u8cb7\u6a21\u5f0f\u3002\u6709\u5225\u65bc\u6309\u9700\u5be6\u4f8b\uff08On-Demand\uff09\u548c\u9810\u7559\u5be6\u4f8b\uff08Reserved Instances\uff09\uff0cSpot \u5be6\u4f8b\u5229\u7528\u4e86AWS \u96f2\u7aef\u4e0a <strong>\u672a\u88ab\u4f7f\u7528\u7684\u904b\u7b97\u5bb9\u91cf<\/strong>\uff0c\u7528\u6236\u53ef\u4ee5\u900f\u904e\u66f4\u4f4e\u7684\u50f9\u683c\u66ab\u6642\u79df\u7528\u9019\u4e9b\u8cc7\u6e90\u3002<\/p>\n<p>\u6839\u64da\u4e9e\u99ac\u905c\u96f2\u7aef\u79d1\u6280\u7684\u6578\u64da\uff0cSpot \u5be6\u4f8b\u7684\u6210\u672c\u76f8\u8f03\u6309\u9700\u5be6\u4f8b\u6700\u9ad8\u53ef\u7bc0\u7701 <strong>\u9ad8\u905490%<\/strong>\u3002\u9019\u7a2e\u6a21\u5f0f\u5c24\u5176\u9069\u5408\u5c0d\u50f9\u683c\u654f\u611f\u3001\u4f46\u80fd\u5bb9\u5fcd\u4e2d\u65b7\u7684\u4efb\u52d9\uff0c\u4f8b\u5982\u8cc7\u6599\u5206\u6790\u3001\u6279\u6b21\u6216\u6a21\u578b\u8a13\u7df4\u7b49\u3002<\/p>\n<p>&nbsp;<\/p>\n<h4>\u5de5\u4f5c\u539f\u7406<\/h4>\n<p>Spot \u5be6\u4f8b\u7684\u50f9\u683c\u96a8AWS \u5404\u5340\u57df\u7684\u8cc7\u6e90\u4f9b\u9700\u95dc\u4fc2\u52d5\u614b\u8b8a\u5316\u3002\u7576\u904b\u7b97\u5bb9\u91cf\u5145\u8db3\u6642\uff0c\u50f9\u683c\u8f03\u4f4e\uff1b\u7576\u8cc7\u6e90\u7dca\u5f35\u6642\uff0c\u50f9\u683c\u6703\u4e0a\u6f32\u751a\u81f3\u89f8\u767c\u5be6\u4f8b\u56de\u6536\u3002<\/p>\n<p>\u7576AWS \u9700\u8981\u56de\u6536\u8cc7\u6e90\u6642\uff0c\u5c31\u6703\u63d0\u524d <strong>\u5169\u5206\u9418\u767c\u51fa\u4e2d\u65b7\u901a\u77e5<\/strong>\uff0c\u4f7f\u7528\u8005\u53ef\u9078\u64c7\u4fdd\u5b58\u4f5c\u696d\u9032\u5ea6\u3001\u5c07\u4efb\u52d9\u9077\u79fb\u5230\u6309\u9700\u5be6\u4f8b\uff0c\u6216\u5229\u7528\u81ea\u52d5\u5316\u7b56\u7565\u9032\u884c\u53d6\u4ee3\u3002<\/p>\n<p>\u70ba\u7c21\u5316\u7ba1\u7406\uff0cAWS \u63d0\u4f9b\u4e86 <strong>Spot Fleet<\/strong> \u548c <strong>EC2 Auto Scaling<\/strong> \u7b49\u5de5\u5177\uff0c\u53ef\u81ea\u52d5\u5206\u914d\u548c\u66ff\u63db\u5be6\u4f8b\uff0c\u6700\u5927\u5316\u8cc7\u6e90\u5229\u7528\u7387\u4e26\u6e1b\u5c11\u4eba\u5de5\u5e79\u9810\u3002\u9019\u610f\u5473\u8457\u4f01\u696d\u53ef\u5728\u6210\u672c\u8207\u6548\u80fd\u4e4b\u9593\u4fdd\u6301\u5e73\u8861\uff0c\u5efa\u69cb\u66f4\u9748\u6d3b\u7684\u96f2\u7aef\u4e0a\u67b6\u69cb\u3002<\/p>\n<p>&nbsp;<\/p>\n<h4>\u5e38\u898b\u61c9\u7528\u5834\u666f<\/h4>\n<p>Spot Instances \u9069\u5408\u904b\u884c <strong>\u53ef\u4e2d\u65b7\u3001\u53ef\u4e26\u884c\u3001\u9031\u671f\u6027\u6216\u81e8\u6642\u6027<\/strong> \u7684\u8a08\u7b97\u4efb\u52d9\uff0c\u4e3b\u8981\u5305\u62ec\uff1a<\/p>\n<h5><strong>1.\u5927\u6578\u64da\u5206\u6790\u8207\u6279\u6b21<\/strong><\/h5>\n<p>\u5728\u65e5\u8a8c\u5206\u6790\u3001\u8cc7\u6599\u8f49\u63db\u6216\u96e2\u7dda\u904b\u7b97\u4e2d\u4f7f\u7528Spot \u5be6\u4f8b\uff0c\u53ef\u5728\u4fdd\u6301\u6548\u80fd\u7684\u540c\u6642\u986f\u8457\u964d\u4f4e\u6574\u9ad4\u904b\u7b97\u6210\u672c\u3002<\/p>\n<h5><strong>2.\u5bb9\u5668\u5316\u8207Kubernetes \u96c6\u7fa4<\/strong><\/h5>\n<p>\u642d\u914dAmazon EKS\uff08Elastic Kubernetes Service\uff09\u4f7f\u7528\uff0c\u53ef\u81ea\u52d5\u53d6\u4ee3\u88ab\u56de\u6536\u7684Spot \u7bc0\u9ede\uff0c\u4fdd\u6301\u696d\u52d9\u6301\u7e8c\u904b\u4f5c\u3002<\/p>\n<h5><strong>3.\u6a5f\u5668\u5b78\u7fd2\u8207AI \u8a13\u7df4<\/strong><\/h5>\n<p>\u6a21\u578b\u8a13\u7df4\u901a\u5e38\u9700\u8981\u9ad8\u6548\u80fdGPU \u57f7\u884c\u500b\u9ad4\u3002\u4f7f\u7528Spot GPU \u5be6\u4f8b\uff0c\u53ef\u5927\u5e45\u964d\u4f4e\u8a13\u7df4\u6210\u672c\u800c\u4e0d\u5f71\u97ff\u7d50\u679c\u7cbe\u78ba\u5ea6\u3002<\/p>\n<h5><strong>4.CI\/CD \u8207\u81ea\u52d5\u5316\u6e2c\u8a66<\/strong><\/h5>\n<p>\u5728\u6301\u7e8c\u6574\u5408\u6216\u56de\u6b78\u6e2c\u8a66\u4e2d\u4f7f\u7528Spot \u5be6\u4f8b\uff0c\u53ef\u6839\u64da\u4efb\u52d9\u91cf\u9748\u6d3b\u64f4\u5bb9\uff0c\u907f\u514d\u8cc7\u6e90\u9592\u7f6e\u6d6a\u8cbb\u3002<\/p>\n<p>&nbsp;<\/p>\n<h4>\u6210\u672c\u512a\u5316\u7b56\u7565<\/h4>\n<p>\u8981\u5145\u5206\u767c\u63eeSpot \u5be6\u4f8b\u7684\u50f9\u503c\uff0c\u4f01\u696d\u61c9\u5728\u67b6\u69cb\u8a2d\u8a08\u4e2d\u63a1\u7528\u4ee5\u4e0b\u7b56\u7565\uff1a<\/p>\n<ul>\n<li><strong>\u6df7\u5408\u5be6\u4f8b\u539f\u5247\uff08Mixed Instance Policy\uff09<\/strong><\/li>\n<\/ul>\n<p style=\"padding-left: 40px;\">\u5c07Spot\u3001\u6309\u9700\u548c\u9810\u7559\u5be6\u4f8b\u7d44\u5408\u4f7f\u7528\uff0c\u517c\u9867\u6210\u672c\u7bc0\u7701\u8207\u53ef\u7528\u6027\u3002<\/p>\n<ul>\n<li><strong>S<\/strong><strong>pot Fleet \u81ea\u52d5\u5206\u914d<\/strong><\/li>\n<\/ul>\n<p style=\"padding-left: 40px;\">\u7cfb\u7d71\u6839\u64da\u5373\u6642\u50f9\u683c\u81ea\u52d5\u9078\u64c7\u6700\u512a\u5be6\u4f8b\u985e\u578b\u548c\u53ef\u7528\u5340\uff0c\u5be6\u73fe\u667a\u6167\u8abf\u5ea6\u3002<\/p>\n<ul>\n<li><strong>\u4e2d\u65b7\u901a\u77e5\u8207\u81ea\u52d5\u5316\u6062\u5fa9<\/strong><\/li>\n<\/ul>\n<p style=\"padding-left: 40px;\">\u501f\u52a9Lambda \u51fd\u6578\uff0c\u5728\u4e2d\u65b7\u524d\u81ea\u52d5\u4fdd\u5b58\u4efb\u52d9\u9032\u5ea6\u6216\u555f\u52d5\u66ff\u4ee3\u5be6\u4f8b\uff0c\u78ba\u4fdd\u8a08\u7b97\u4e0d\u6703\u4e2d\u65b7\u3002<\/p>\n<ul>\n<li><strong>Savings Plans \u642d\u914dSpot \u4f7f\u7528<\/strong><\/li>\n<\/ul>\n<p style=\"padding-left: 40px;\">\u56fa\u5b9a\u6838\u5fc3\u5de5\u4f5c\u8ca0\u8f09\u63a1\u7528Savings Plans\uff0c\u5f48\u6027\u4efb\u52d9\u4f7f\u7528Spot \u5be6\u4f8b\uff0c\u5be6\u73fe\u6574\u9ad4\u6210\u672c\u6700\u512a\u5316\u3002<\/p>\n<p>\u900f\u904e\u9019\u4e9b\u7b56\u7565\uff0c\u4f01\u696d\u4e0d\u50c5\u80fd\u6709\u6548\u63a7\u88fd\u6210\u672c\uff0c\u9084\u80fd\u7dad\u6301\u67b6\u69cb\u7684\u9ad8\u5f48\u6027\u8207\u5f48\u6027\u3002<\/p>\n<p>&nbsp;<\/p>\n<h4>\u512a\u52e2\u8207\u6311\u6230<\/h4>\n<p><strong>\u4e3b\u8981\u512a\u52e2\uff1a<\/strong><\/p>\n<ul>\n<li>\u6210\u672c\u4f4e\uff0c\u53ef\u7bc0\u7701\u9ad8\u905490%\uff1b<\/li>\n<li>\u5f48\u6027\u5f37\uff0c\u80fd\u5feb\u901f\u64f4\u5c55\u904b\u7b97\u80fd\u529b\uff1b<\/li>\n<li>\u7279\u5225\u9069\u5408\u5927\u898f\u6a21\u4e26\u884c\u8a08\u7b97\u6216\u77ed\u9031\u671f\u4efb\u52d9\u3002<\/li>\n<\/ul>\n<p><strong>\u6f5b\u5728\u6311\u6230\uff1a<\/strong><\/p>\n<ul>\n<li>\u5b58\u5728\u4e2d\u65b7\u98a8\u96aa\uff1b<\/li>\n<li>\u4e0d\u9069\u5408\u6301\u7e8c\u6027\u9ad8\u53ef\u7528\u4efb\u52d9\uff1b<\/li>\n<li>\u9700\u8981\u4e00\u5b9a\u7684\u81ea\u52d5\u5316\u8207\u5bb9\u932f\u6a5f\u5236\u3002<\/li>\n<\/ul>\n<p>\u4e0d\u904e\uff0c\u501f\u52a9 <strong>Amazon EC2 Auto Scaling\u3001Elastic Load Balancing<\/strong> \u548c <strong>Amazon S3 \u6301\u4e45\u5316\u5b58\u5132<\/strong> \u7b49\u670d\u52d9\uff0c\u4f01\u696d\u53ef\u4ee5\u5efa\u69cb\u7a69\u5b9a\u4e14\u5177\u5099\u81ea\u7652\u80fd\u529b\u7684\u67b6\u69cb\uff0c\u5c07\u9019\u4e9b\u6311\u6230\u8f49\u5316\u70ba\u9748\u6d3b\u6027\u8207\u7af6\u722d\u512a\u52e2\u3002<\/p>\n<p>&nbsp;<\/p>\n<h4>\u5728\u96f2\u7aef\u4e0a<\/h4>\n<p>\u4f5c\u70ba <strong>AWS \u5b98\u65b9\u4ee3\u7406\u5546<\/strong>\uff0c\u300c\u5728\u96f2\u7aef\u300d\u9577\u671f\u81f4\u529b\u65bc\u5e6b\u52a9\u4f01\u696d\u5efa\u69cb\u9ad8\u6548\u3001\u5b89\u5168\u3001\u53ef\u64f4\u5c55\u7684\u96f2\u7aef\u67b6\u69cb\u3002\u5728\u6210\u672c\u512a\u5316\u65b9\u9762\uff0c\u6211\u5011\u7d50\u5408 <strong>Spot \u5be6\u4f8b\u3001Savings Plans \u53caCost Explorer \u6210\u672c\u5206\u6790<\/strong> \u7b49\u5de5\u5177\uff0c\u5e6b\u52a9\u5ba2\u6236\u5be6\u73fe\u8cc7\u6e90\u7684\u667a\u6167\u8abf\u5ea6\u8207\u8cbb\u7528\u8996\u89ba\u5316\u7ba1\u7406\u3002<\/p>\n<p>\u7121\u8ad6\u662fAI \u6a21\u578b\u8a13\u7df4\u3001\u8cc7\u6599\u5206\u6790\u96c6\u7fa4\uff0c\u6216\u662f\u5bb9\u5668\u5316\u696d\u52d9\u64f4\u5c55\uff0c\u6211\u5011\u7684\u5c08\u696d\u5718\u968a\u90fd\u53ef\u63d0\u4f9b\u5f9e\u67b6\u69cb\u8a2d\u8a08\u3001\u8cc7\u6e90\u9078\u578b\u5230\u81ea\u52d5\u5316\u90e8\u7f72\u7684\u5168\u6d41\u7a0b\u670d\u52d9\uff0c\u52a9\u529b\u4f01\u696d\u5728\u4fdd\u6301\u6548\u80fd\u7684\u540c\u6642\u5be6\u73fe\u986f\u8457\u7684\u6210\u672c\u7bc0\u7d04\u3002<\/p>\n<p>&nbsp;<\/p>\n<h4>\u7d50\u8a9e<\/h4>\n<p><strong>AWS Spot Instances<\/strong> \u8b93\u4f01\u696d\u4ee5\u6975\u4f4e\u6210\u672c\u7372\u5f97\u5f37\u5927\u904b\u7b97\u80fd\u529b\uff0c\u662f\u73fe\u4ee3\u96f2\u7aef\u904b\u7b97\u4e2d\u4e0d\u53ef\u5ffd\u8996\u7684\u95dc\u9375\u7d44\u6210\u90e8\u5206\u3002\u900f\u904e\u5408\u7406\u898f\u5283\u8207\u5f48\u6027\u7b56\u7565\uff0c\u4f01\u696d\u4e0d\u50c5\u80fd\u63d0\u5347\u8cc7\u6e90\u5229\u7528\u7387\uff0c\u9084\u80fd\u70ba\u5275\u65b0\u8207\u64f4\u5f35\u91cb\u653e\u66f4\u591a\u9810\u7b97\u7a7a\u9593\u3002<\/p>\n<p>\u672a\u4f86\uff0c\u300c\u5728\u96f2\u7aef\u300d\u5c07\u6301\u7e8c\u651c\u624bAWS\uff0c\u5e6b\u52a9\u66f4\u591a\u4f01\u696d\u5be6\u73fe\u9ad8\u6548\u80fd\u3001\u4f4e\u6210\u672c\u3001\u667a\u6167\u5316\u7684\u96f2\u7aef\u8f49\u578b\u3002<\/p>","protected":false},"excerpt":{"rendered":"<p>\u5728\u96f2\u7aef\u904b\u7b97\u7684\u6210\u672c\u512a\u5316\u7b56\u7565\u4e2d\uff0cAWS Spot Instances\uff08\u7af6\u50f9\u578b\u5be6\u4f8b\uff09 \u662f\u4e00\u9805\u6975\u5177\u5438\u5f15\u529b\u7684\u9078\u64c7\u3002\u5c0d\u65bc\u9700\u8981\u5927\u898f\u6a21\u904b\u7b97\u8cc7\u6e90\u4f46\u9810\u7b97\u6709\u9650\u7684\u4f01\u696d\u4f86\u8aaa\uff0cSpot \u5be6\u4f8b\u4e0d\u50c5\u80fd\u986f\u8457\u964d\u4f4e\u6210\u672c\uff0c\u9084\u80fd\u9748\u6d3b\u61c9\u5c0d\u4e0d\u540c\u985e\u578b\u7684\u904b\u7b97\u8ca0\u8f09\u3002\u672c\u6587\u5c07\u89e3\u6790\u5176\u6838\u5fc3\u6a5f\u5236\u3001\u5178\u578b\u61c9\u7528\u5834\u666f\u53ca\u5728\u4f01\u696d\u67b6\u69cb\u6700\u4f73\u5316\u4e2d\u7684\u50f9\u503c\u3002<\/p>","protected":false},"author":1,"featured_media":4002,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[65],"tags":[],"class_list":["post-4001","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\/4001","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=4001"}],"version-history":[{"count":2,"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/posts\/4001\/revisions"}],"predecessor-version":[{"id":4004,"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/posts\/4001\/revisions\/4004"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/media\/4002"}],"wp:attachment":[{"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/media?parent=4001"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/categories?post=4001"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/tags?post=4001"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}