AWS Blogs 前天 00:28
Amazon DocumentDB Serverless is now available
index_new5.html
../../../zaker_core/zaker_tpl_static/wap/tpl_guoji1.html

 

Amazon DocumentDB Serverless现已正式发布,为Amazon DocumentDB (MongoDB兼容) 提供了一种全新的配置方式。该服务能够根据应用程序的实际需求自动扩展计算和内存资源,无需前期承诺或额外费用,与按峰值容量预配相比,成本可节省高达90%。DocumentDB Serverless兼容MongoDB API,支持读副本、性能洞察、I/O优化以及与其他AWS服务的集成。它引入了DocumentDB容量单位(DCU)的概念,由内存、CPU和网络组成,能实时追踪数据库操作的资源利用情况,并自动调整DCU数量以应对需求变化,且不影响数据库可用性。对于工作负载多变的场景,如促销活动、开发测试或新应用上线,DocumentDB Serverless能够有效应对流量峰值;对于多租户和混合工作负载,它也能灵活管理数据库容量,平衡读写负载,优化资源利用。

✨ Amazon DocumentDB Serverless 提供了一种按需扩展的数据库配置,能够根据应用需求自动调整计算和内存资源,实现高达90%的成本节约,无需前期投入,且与现有MongoDB兼容API无缝对接。

🚀 该服务以DocumentDB容量单位(DCU)衡量资源,每个DCU约等于2GiB内存、相应的CPU和网络,能够实时监控并动态调整资源分配,确保数据库可用性不受影响。

💡 DocumentDB Serverless特别适用于处理可变工作负载,例如应对突发流量、支持开发测试环境,或构建需要灵活扩展的Agentic AI应用,同时也能够有效管理多租户和混合使用场景下的数据库容量。

🛠️ 用户可以通过Amazon DocumentDB控制台轻松创建Serverless集群,选择最小和最大DCU容量范围(0.5-256 DCUs),并支持从Amazon DocumentDB 5.0.0及以上版本开始使用。现有集群也可通过添加Serverless实例进行升级。

💰 计费模式为按DCU使用量每秒计费的统一费率,用户只需为实际消耗的资源付费,进一步优化了成本效益。该服务已在多个AWS区域推出,具体定价和可用性信息可在Amazon DocumentDB定价页面查询。

<section class="blog-post-content lb-rtxt"><table id="amazon-polly-audio-table"><tbody><tr><td id="amazon-polly-audio-tab"><p></p></td></tr></tbody></table><p>Today, we’re announcing the general availability of Amazon DocumentDB Serverless, a new configuration for <a href="https://aws.amazon.com/documentdb/&quot;&gt;Amazon DocumentDB (with MongoDB compatibility)</a> that automatically scales compute and memory based on your application’s demand. Amazon DocumentDB Serverless simplifies database management with no upfront commitments or additional costs, offering up to 90 percent cost savings compared to provisioning for peak capacity.</p><p>With Amazon DocumentDB Serverless, you can use the same MongoDB compatible-APIs and capabilities as Amazon DocumentDB, including read replicas, <a href="https://docs.aws.amazon.com/documentdb/latest/developerguide/performance-insights.html&quot;&gt;Performance Insights</a>, I/O optimized, and integrations with other <a href="https://aws.amazon.com&quot;&gt;Amazon Web Services (AWS)</a> services.</p><p>Amazon DocumentDB Serverless introduces a new database configuration measured in a DocumentDB Capacity Unit (DCU), a combination of approximately 2 gibibytes (GiB) of memory, corresponding CPU, and networking. It continually tracks utilization of resources such as CPU, memory, and network coming from database operations performed by your application.</p><p>Amazon DocumentDB Serverless automatically scales DCUs up or down to meet demand without disrupting database availability. Switching from provisioned instances to serverless in an existing cluster is as straightforward as adding or changing the instance type. This transition doesn’t require any data migration. To learn more, visit <a href="https://docs.aws.amazon.com/documentdb/latest/developerguide/docdb-serverless-how-it-works.html&quot;&gt;How Amazon DocumentDB Serverless works</a>.</p><p>Some key use cases and advantages of Amazon DocumentDB Serverless include:</p><ul><li><strong>Variable workloads</strong> – With Amazon DocumentDB Serverless, you can handle sudden traffic spikes such as periodic promotional events, development and testing environments, and new applications where usage might ramp up quickly. You can also build <a href="https://aws.amazon.com/ai/agentic-ai/&quot;&gt;agentic AI</a> applications that benefit from <a href="https://aws.amazon.com/blogs/aws/vector-search-for-amazon-documentdb-with-mongodb-compatibility-is-now-generally-available/&quot;&gt;built-in vector search for Amazon DocumentDB</a> and serverless adaptability to handle dynamically invoked agentic AI workflows.</li><li><strong>Multi-tenant workloads</strong> – You can use Amazon DocumentDB Serverless to manage individual database capacity across the entire database fleet. You don’t need to manage hundreds or thousands of databases for enterprises applications or multi-tenant environments of a software as a service (SaaS) vendor.</li><li><strong>Mixed-use workloads</strong> – You can balance read and write capacity in workloads that periodically experience spikes in query traffic, such as online transaction processing (OLTP) applications. By specifying promotion tiers for Amazon DocumentDB Serverless instances in a cluster, you can configure your cluster so that the reader instances can scale independently of the writer instance to handle the additional load.</li></ul><p>For steady workloads, Amazon DocumentDB provisioned instances are more suitable. You can select an instance class that offers a predefined amount of memory, CPU power, and I/O bandwidth. If your workload changes when using provisioned instances, you should manually modify the instance class of your writer and readers. Optionally, you can add serverless instances to an existing provisioned Amazon DocumentDB cluster at any time.</p><p><strong class="c6">Amazon DocumentDB Serverless in action</strong><br />To get started with Amazon DocumentDB Serverless, go to the <a href="https://console.aws.amazon.com/docdb/home#clusters&quot;&gt;Amazon DocumentDB console</a>. In the left navigation pane, choose <strong>Clusters</strong> and <strong>Create</strong>.</p><p>On the <strong>Create Amazon DocumentDB cluster</strong> page, choose <strong>Instance-based cluster type</strong> and then <strong>Serverless</strong> instance configuration. You can choose minimum and maximum capacity DCUs. Amazon DocumentDB Serverless is supported starting with Amazon DocumentDB 5.0.0 and higher with a capacity range of 0.5–256 DCUs.</p><p><img class="aligncenter size-full wp-image-98558 c7" src="https://d2908q01vomqb2.cloudfront.net/da4b9237bacccdf19c0760cab7aec4a8359010b0/2025/07/21/2025-documentdb-serverless-1.png&quot; alt="" width="2402" height="2288" /></p><p>If you use features such as auditing and Performance Insights, consider adding DCUs for each feature. To learn more, visit <a href="https://docs.aws.amazon.com/documentdb/latest/developerguide/docdb-serverless-scaling-config.html&quot;&gt;Amazon DocumentDB Serverless scaling configuration</a>.</p><p>To add a serverless instance to an existing provisioned cluster, choose <strong>Add instances</strong> on the <strong>Actions</strong> menu when you choose the provisioned cluster. If you use a cluster with an earlier version such as 3.6 or 4.0, you should first upgrade the cluster to the supported engine version (5.0).</p><p><img class="aligncenter size-full wp-image-98559 c8" src="https://d2908q01vomqb2.cloudfront.net/da4b9237bacccdf19c0760cab7aec4a8359010b0/2025/07/21/2025-documentdb-serverless-2.jpg&quot; alt="" width="1980" height="1086" /></p><p>On the <strong>Add instances</strong> page, choose <strong>Serverless</strong> in the <strong>DB instance class</strong> section for each new serverless instance you want to create. To add another instance, choose <strong>Add instance</strong> and continue adding instances until you have reached the desired number of new instances. Choose <strong>Create</strong>.</p><p><img class="aligncenter wp-image-98583 size-full c8" src="https://d2908q01vomqb2.cloudfront.net/da4b9237bacccdf19c0760cab7aec4a8359010b0/2025/07/22/2025-documentdb-serverless-3.png&quot; alt="" width="1984" height="2293" /></p><p>You can perform a <a href="https://docs.aws.amazon.com/documentdb/latest/developerguide/failover.html&quot;&gt;failover operation</a> to make a DocumentDB Serverless instance the cluster writer. Also, you can convert any remaining provisioned Amazon DocumentDB instances to DocumentDB Serverless instances by <a href="https://docs.aws.amazon.com/documentdb/latest/developerguide/db-instance-classes.html#db-instance-class-changing&quot;&gt;changing an instance’s class</a> or removing them from the cluster by <a href="https://docs.aws.amazon.com/documentdb/latest/developerguide/db-instance-delete.html&quot;&gt;deleting an Amazon DocumentDB instance</a>.</p><p>Now, you can connect to your Amazon DocumentDB cluster using <a href="https://aws.amazon.com/cloudshell/&quot;&gt;AWS CloudShell</a>. Choose <strong>Connect to cluster</strong>, and you can see the AWS CloudShell <strong>Run command</strong> screen. Enter a unique name in <strong>New environment name</strong> and choose <strong>Create and run</strong>.</p><p><img class="aligncenter wp-image-98639 size-full c8" src="https://d2908q01vomqb2.cloudfront.net/da4b9237bacccdf19c0760cab7aec4a8359010b0/2025/07/24/2025-documentdb-serverless-4-1.jpg&quot; alt="" width="1982" height="1370" /></p><p>When prompted, enter the password for the Amazon DocumentDB cluster. You’re successfully connected to your Amazon DocumentDB cluster, and you can run a few queries to get familiar with using a document database.</p><p><img class="aligncenter wp-image-98582 size-full c8" src="https://d2908q01vomqb2.cloudfront.net/da4b9237bacccdf19c0760cab7aec4a8359010b0/2025/07/22/2025-documentdb-serverless-5.jpg&quot; alt="" width="1760" height="882" /></p><p>To learn more, visit <a href="https://docs.aws.amazon.com/documentdb/latest/developerguide/docdb-serverless-create-cluster.html&quot;&gt;Creating a cluster that uses Amazon DocumentDB Serverless</a> and <a href="https://docs.aws.amazon.com/documentdb/latest/developerguide/docdb-serverless-managing.html&quot;&gt;Managing Amazon DocumentDB Serverless</a> in the AWS documentation.</p><p><strong class="c6">Now available</strong><br /><a href="https://aws.amazon.com/documentdb/serverless&quot;&gt;Amazon DocumentDB Serverless</a> is now available starting with Amazon DocumentDB 5.0 for both new and existing clusters. You only pay a flat rate per second of DCU usage. To learn more about pricing details and Regional availability, visit the <a href="https://aws.amazon.com/documentdb/pricing/&quot;&gt;Amazon DocumentDB pricing page</a>.</p><p>Give these new features a try in the <a href="https://console.aws.amazon.com/docdb/home#clusters&quot;&gt;Amazon DocumentDB console</a> and send feedback to <a href="https://repost.aws/tags/TAeCCo4G99RSWdEcbwRH2bdQ/amazon-documentdb&quot;&gt;AWS re:Post for Amazon DocumentDB</a> or through your usual AWS Support contacts.</p><p>— <a href="https://twitter.com/channyun&quot;&gt;Channy&lt;/a&gt;&lt;/p&gt;&lt;/section&gt;&lt;aside id="Comments" class="blog-comments"><div data-lb-comp="aws-blog:cosmic-comments" data-env="prod" data-content-id="fb909b02-9af1-487e-a196-d273e4fb899c" data-title="Amazon DocumentDB Serverless is now available" data-url="https://aws.amazon.com/blogs/aws/amazon-documentdb-serverless-is-now-available/&quot;&gt;&lt;p data-failed-message="Comments cannot be loaded… Please refresh and try again.">Loading comments…</p></div></aside>

Fish AI Reader

Fish AI Reader

AI辅助创作,多种专业模板,深度分析,高质量内容生成。从观点提取到深度思考,FishAI为您提供全方位的创作支持。新版本引入自定义参数,让您的创作更加个性化和精准。

FishAI

FishAI

鱼阅,AI 时代的下一个智能信息助手,助你摆脱信息焦虑

联系邮箱 441953276@qq.com

相关标签

Amazon DocumentDB Serverless 数据库 AWS MongoDB兼容
相关文章