{"id":8688,"date":"2023-04-15T20:08:03","date_gmt":"2023-04-15T12:08:03","guid":{"rendered":"https:\/\/www.orczhou.com\/?p=8688"},"modified":"2025-12-26T14:08:56","modified_gmt":"2025-12-26T06:08:56","slug":"azure-cosmos-db-charge-model","status":"publish","type":"post","link":"https:\/\/www.orczhou.com\/index.php\/2023\/04\/azure-cosmos-db-charge-model\/","title":{"rendered":"Azure Cosmos DB\u7684\u8ba1\u8d39\u6a21\u578b"},"content":{"rendered":"\n<p>\u5728\u4e0a\u5468\uff0cCosmosDB\uff08MongoDB\u517c\u5bb9\u7248\uff09\u65b0\u589e\u4e86vCPU\u8ba1\u8d39\u6a21\u578b\uff08<a href=\"https:\/\/azure.microsoft.com\/en-us\/updates\/public-preview-azure-cosmos-db-for-mongodb-vcore\/\">\u53c2\u8003<\/a>\uff09\u3002\u8fd9\u91cc\u7b80\u5355\u4ecb\u7ecdCosmos DB\u8ba1\u8d39\u6a21\u578b\u7684\u6982\u51b5\u3002<\/p>\n\n\n\n<p>\u5728\u4e4b\u524d\uff0cCosmos DB\u4ec5\u652f\u6301\u4f7f\u7528RU\u4f5c\u4e3a\u8ba1\u8d39\u7684\u57fa\u7840\u5355\u4f4d\uff0c\u4e00\u4e2aRU\u76f8\u5f53\u4e8e\u4e00\u4e2a1kb\u7684\u70b9\u67e5\u8be2\uff0c\u4e0d\u540c\u7684\u64cd\u4f5c\uff0c\u4f1a\u5bf9\u5e94\u4e0d\u540c\u7684RU\u3002\u770b\u4f3c\u4e00\u4e2a\u5f88\u7406\u60f3\u7684\u6309\u91cf\u8ba1\u8d39\u7684\u6a21\u578b\uff0c\u4f46\u662f\u5b9e\u9645\u4f7f\u7528\u6548\u679c\u5e76\u4e0d\u662f\u5f88\u597d\uff0c\u4f7f\u5f97\u4f01\u4e1a\u6216\u8005\u5f00\u53d1\u8005\u96be\u4ee5\u9884\u6d4b\u81ea\u5df1\u7684\u5e94\u7528\u4f7f\u7528\u91cf\uff0c\u53ea\u80fd\u6839\u636e\u5e94\u7528\u4e0a\u7ebf\u540e\uff0c\u5728Azure\u63a7\u5236\u53f0\u67e5\u770b\u7528\u91cf\u3002\u4e00\u65b9\u9762\uff0c\u5f00\u53d1\u8005\u5728\u5e94\u7528\u6ca1\u6709\u5b9e\u9645\u4e0a\u7ebf\u65f6\uff0c\u5f88\u96be\u5f04\u6e05\u695a\u4e00\u4e2a\u5e94\u7528\u5230\u5e95\u4f7f\u4f1a\u4f7f\u7528\u591a\u5c11RU\uff0c\u4e5f\u5c31\u5f88\u96be\u8fdb\u884c\u5bb9\u91cf\u89c4\u5212\u3002\u53e6\u4e00\u65b9\u9762\uff0c\u5f00\u53d1\u8005\u5373\u4fbf\u5728\u63a7\u5236\u53f0\u770b\u5230\u4e86\u5b9e\u9645\u7684RU\u8ba1\u91cf\uff0c\u6709\u65f6\u5019\uff0c\u4e5f\u5f88\u96be\u4e86\u89e3\u5e94\u7528\u4e3a\u4ec0\u4e48\u4f1a\u4f7f\u7528\u8fd9\u4e48\u591aRU\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.orczhou.com\/wp-content\/uploads\/2023\/04\/image-1024x509.png\" alt=\"\" class=\"wp-image-8689\" width=\"541\" height=\"268\" srcset=\"https:\/\/www.orczhou.com\/wp-content\/uploads\/2023\/04\/image-1024x509.png 1024w, https:\/\/www.orczhou.com\/wp-content\/uploads\/2023\/04\/image-300x149.png 300w, https:\/\/www.orczhou.com\/wp-content\/uploads\/2023\/04\/image-768x382.png 768w, https:\/\/www.orczhou.com\/wp-content\/uploads\/2023\/04\/image-1536x764.png 1536w, https:\/\/www.orczhou.com\/wp-content\/uploads\/2023\/04\/image-2048x1019.png 2048w\" sizes=\"auto, (max-width: 541px) 100vw, 541px\" \/><\/figure>\n\n\n\n<p>RU\u8ba1\u8d39\u4e5f\u5206\u7c7b\u4e24\u79cd\u6a21\u5f0f\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u9884\u7559RU\/s\uff08\u4f8b\u5982\uff0c\u6bcf\u79d2500RU\u7684\u5bb9\u91cf\uff09\uff0c\u8be5\u6a21\u5f0f\u8fd8\u989d\u5916\u7684\u652f\u6301autoscale\u6a21\u5f0f<\/li>\n\n\n\n<li>Serverless\uff08\u4ec5\u6839\u636e\u5b9e\u9645\u8bf7\u6c42\u7684RU\u6570\u91cf\u8fdb\u884c\u8ba1\u8d39\uff09<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.orczhou.com\/wp-content\/uploads\/2023\/04\/image-2.png\" alt=\"\" class=\"wp-image-8691\" width=\"307\" height=\"218\" srcset=\"https:\/\/www.orczhou.com\/wp-content\/uploads\/2023\/04\/image-2.png 614w, https:\/\/www.orczhou.com\/wp-content\/uploads\/2023\/04\/image-2-300x213.png 300w\" sizes=\"auto, (max-width: 307px) 100vw, 307px\" \/><\/figure>\n\n\n\n<p>\u5728\u8fd9\u4e2a\u6708\uff0cAzure Cosmos DB\u518d\u6b21\u63a8\u51fa\u4e86\u57fa\u4e8evCPU\u7684\u8ba1\u8d39\u6a21\u578b\uff08<a href=\"https:\/\/azure.microsoft.com\/en-us\/updates\/public-preview-azure-cosmos-db-for-mongodb-vcore\/\">\u53c2\u8003<\/a>\uff09\u3002\u53ef\u4ee5\u770b\u5230\uff0c\u4e5f\u8bb8Serverless\u662f\u6700\u7ec8\u7684\u5f62\u6001\uff0c\u4f46\u662f\uff0c\u8fd9\u4e2a\u8fc7\u7a0b\u4e2d\uff0c\u57fa\u4e8evCPU\u7684\u8ba1\u8d39\u6a21\u578b\uff0c\u5728\u5f88\u957f\u7684\u65f6\u95f4\u91cc\u9762\u90fd\u8fd8\u4f1a\u5f00\u53d1\u8005\u80fd\u591f\u63a5\u53d7\u7684\u4e3b\u6d41\u3002<\/p>\n\n\n\n<p>\u4f7f\u7528vCPU\u7684\u8d44\u6e90\u8ba1\u8d39\u4f9d\u65e7\u6709\u7740\u4f17\u591a\u597d\u5904\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u7528\u6237\u5728\u521d\u6b21\u8fc1\u79fb\u4e0a\u4e91\uff0c\u505a\u5bb9\u91cf\u9884\u4f30\u65f6\uff0c\u6709\u66f4\u52a0\u4e00\u81f4\u7684\u6807\u51c6\uff0c\u66f4\u5bb9\u6613\u9009\u62e9\u5408\u9002\u7684\u89c4\u683c<\/li>\n\n\n\n<li>\u8ba1\u8d39\u548c\u8d26\u5355\u975e\u5e38\u660e\u786e\uff0c\u7528\u6237\u5bf9\u4e8e\u81ea\u5df1\u8d2d\u4e70\u4e86\u4ec0\u4e48\u6709\u6e05\u6670\u7684\u6982\u5ff5<\/li>\n\n\n\n<li>\u7528\u6237\u7684\u8d26\u5355\u662f\u6bd4\u8f83\u56fa\u5b9a\u7684\uff0c\u80fd\u591f\u907f\u514d\u201c\u8d26\u5355\u523a\u5ba2\u201d\u7684\u60c5\u5f62\u51fa\u73b0<\/li>\n<\/ul>\n\n\n\n<p>\u6240\u4ee5\uff0c\u867d\u7136\u4ece\u7406\u8bba\u4e0a\uff0cServerless\u6216\u8005auto-scaling\u7684\u6a21\u578b\u5728\u6ce2\u5cf0\u6ce2\u8c37\u660e\u786e\u7684\u60c5\u51b5\u4e0b\u80fd\u591f\u66f4\u52a0\u8282\u7701\u8d44\u6e90\uff0c\u4f46\u662f\uff0c\u5728\u5f53\u4e0b\u4f9d\u65e7\u6709\u975e\u5e38\u591a\u7684\u573a\u666f\u9700\u8981\u4f7f\u7528\u7b80\u5355\u7684vCPU\u6a21\u578b\u3002<\/p>\n\n\n\n<p>\u53c2\u8003\u9605\u8bfb\uff1a<a href=\"https:\/\/learn.microsoft.com\/en-us\/azure\/cosmos-db\/throughput-serverless\">How to choose between provisioned throughput and serverless<\/a><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u4e0a\u5468\uff0cCosmosDB\uff08MongoDB\u517c\u5bb9\u7248\uff09\u65b0\u589e\u4e86vCPU\u8ba1\u8d39\u6a21\u578b\uff08\u53c2\u8003\uff09\u3002\u8fd9\u91cc\u7b80\u5355\u4ecb\u7ecdCosmos DB\u8ba1\u8d39\u6a21\u578b\u7684\u6982\u51b5\u3002 \u5728\u4e4b\u524d\uff0cCosmos DB\u4ec5\u652f\u6301\u4f7f\u7528RU\u4f5c\u4e3a\u8ba1\u8d39\u7684\u57fa\u7840\u5355\u4f4d\uff0c\u4e00\u4e2aRU\u76f8\u5f53\u4e8e\u4e00\u4e2a1kb\u7684\u70b9\u67e5\u8be2\uff0c\u4e0d\u540c\u7684\u64cd\u4f5c\uff0c\u4f1a\u5bf9\u5e94\u4e0d\u540c\u7684RU\u3002\u770b\u4f3c\u4e00\u4e2a\u5f88\u7406\u60f3\u7684\u6309\u91cf\u8ba1\u8d39\u7684\u6a21\u578b\uff0c\u4f46\u662f\u5b9e\u9645\u4f7f\u7528\u6548\u679c\u5e76\u4e0d\u662f\u5f88\u597d\uff0c\u4f7f\u5f97\u4f01\u4e1a\u6216\u8005\u5f00\u53d1\u8005\u96be\u4ee5\u9884\u6d4b\u81ea\u5df1\u7684\u5e94\u7528\u4f7f\u7528\u91cf\uff0c\u53ea\u80fd\u6839\u636e\u5e94\u7528\u4e0a\u7ebf\u540e\uff0c\u5728Azure\u63a7\u5236\u53f0\u67e5\u770b\u7528\u91cf\u3002\u4e00\u65b9\u9762\uff0c\u5f00\u53d1\u8005\u5728\u5e94\u7528\u6ca1\u6709\u5b9e\u9645\u4e0a\u7ebf\u65f6\uff0c\u5f88\u96be\u5f04\u6e05\u695a\u4e00\u4e2a\u5e94\u7528\u5230\u5e95\u4f7f\u4f1a\u4f7f\u7528\u591a\u5c11RU\uff0c\u4e5f\u5c31\u5f88\u96be\u8fdb\u884c\u5bb9\u91cf\u89c4\u5212\u3002\u53e6\u4e00\u65b9\u9762\uff0c\u5f00\u53d1\u8005\u5373\u4fbf\u5728\u63a7\u5236\u53f0\u770b\u5230\u4e86\u5b9e\u9645\u7684RU\u8ba1\u91cf\uff0c\u6709\u65f6\u5019\uff0c\u4e5f\u5f88\u96be\u4e86\u89e3\u5e94\u7528\u4e3a\u4ec0\u4e48\u4f1a\u4f7f\u7528\u8fd9\u4e48\u591aRU\u3002 RU\u8ba1\u8d39\u4e5f\u5206\u7c7b\u4e24\u79cd\u6a21\u5f0f\uff1a \u5728\u8fd9\u4e2a\u6708\uff0cAzure Cosmos DB\u518d\u6b21\u63a8\u51fa\u4e86\u57fa\u4e8evCPU\u7684\u8ba1\u8d39\u6a21\u578b\uff08\u53c2\u8003\uff09\u3002\u53ef\u4ee5\u770b\u5230\uff0c\u4e5f\u8bb8Serverless\u662f\u6700\u7ec8\u7684\u5f62\u6001\uff0c\u4f46\u662f\uff0c\u8fd9\u4e2a\u8fc7\u7a0b\u4e2d\uff0c\u57fa\u4e8evCPU\u7684\u8ba1\u8d39\u6a21\u578b\uff0c\u5728\u5f88\u957f\u7684\u65f6\u95f4\u91cc\u9762\u90fd\u8fd8\u4f1a\u5f00\u53d1\u8005\u80fd\u591f\u63a5\u53d7\u7684\u4e3b\u6d41\u3002 \u4f7f\u7528vCPU\u7684\u8d44\u6e90\u8ba1\u8d39\u4f9d\u65e7\u6709\u7740\u4f17\u591a\u597d\u5904\uff1a \u6240\u4ee5\uff0c\u867d\u7136\u4ece\u7406\u8bba\u4e0a\uff0cServerless\u6216\u8005auto-scaling\u7684\u6a21\u578b\u5728\u6ce2\u5cf0\u6ce2\u8c37\u660e\u786e\u7684\u60c5\u51b5\u4e0b\u80fd\u591f\u66f4\u52a0\u8282\u7701\u8d44\u6e90\uff0c\u4f46\u662f\uff0c\u5728\u5f53\u4e0b\u4f9d\u65e7\u6709\u975e\u5e38\u591a\u7684\u573a\u666f\u9700\u8981\u4f7f\u7528\u7b80\u5355\u7684vCPU\u6a21\u578b\u3002 \u53c2\u8003\u9605\u8bfb\uff1aHow to choose between provisioned throughput and serverless<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"wp-custom-template-a-1440-px-width-template","format":"standard","meta":{"_eb_attr":"","inline_featured_image":false,"_tocer_settings":[],"footnotes":""},"categories":[1],"tags":[],"class_list":["post-8688","post","type-post","status-publish","format-standard","hentry","category-simplelife"],"_links":{"self":[{"href":"https:\/\/www.orczhou.com\/index.php\/wp-json\/wp\/v2\/posts\/8688","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.orczhou.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.orczhou.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.orczhou.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.orczhou.com\/index.php\/wp-json\/wp\/v2\/comments?post=8688"}],"version-history":[{"count":4,"href":"https:\/\/www.orczhou.com\/index.php\/wp-json\/wp\/v2\/posts\/8688\/revisions"}],"predecessor-version":[{"id":8717,"href":"https:\/\/www.orczhou.com\/index.php\/wp-json\/wp\/v2\/posts\/8688\/revisions\/8717"}],"wp:attachment":[{"href":"https:\/\/www.orczhou.com\/index.php\/wp-json\/wp\/v2\/media?parent=8688"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.orczhou.com\/index.php\/wp-json\/wp\/v2\/categories?post=8688"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.orczhou.com\/index.php\/wp-json\/wp\/v2\/tags?post=8688"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}