mongodb - 迁移后 Cosmos DB 请求错误

标签 mongodb azure azure-cosmosdb

我在 Azure 数据库迁移服务的帮助下进行了从 Mongo3.4 到 Azure Cosmos DB 的数据迁移。所有收藏品均被复制。然后我部署了应用程序并在应用程序内运行报告。我在 k8s 中收到如下错误:

[report-srv-8a49370c7976028acfc037b7b9b69a37b34b8afezmg5r] 2020-09-17T14:12:27.653Z ERROR: [handleControllerHeart] Error handling heart:  {"err":{"driver":true,"name":"MongoError","index":0,"code":16500}}

Error=16500, RetryAfterMs=5481, Details='Response status code does not indicate success: TooManyRequests (429); Substatus: 3200; ActivityId: ********; Reason: ({\r\n "Errors": [\r\n "Request rate is large. More Request Units may be needed, so no changes were made. Please retry this request later. Learn more: http://aka.ms/cosmosdb-error-429

然后我增加了 RU,但行为相同。

有人有从 Mongo3.4 迁移到 Azure Cosmos DB 的经验吗?

最佳答案

您需要增加吞吐量,即 RU(请求单位)。您可以通过 here 进行操作,查看您已经使用了多少 here可以将其加倍,然后像以前一样从仪表板中查看运行报告时使用的量,然后根据需要进行调整。

关于mongodb - 迁移后 Cosmos DB 请求错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63978515/

相关文章:

azure - 如何从 Azure Bicep 中的模块引用资源?

node.js - 在 Mongoose 中调用 modal.countDocuments() 和 modal.count() 时抛出错误

c# - FindByThumbprint - 证书存在但未找到

postgresql - 需要使用 azure postgresql 运行 Keycloak Docker Image

azure - 如何在 x 天后定期删除 azure 文件共享中的文件?

C# MongoDB 驱动只返回 100 个结果

c# - 替换 DocumentDB 中的文档不保存更改

mongodb - Spring Boot连接到Mongo容器运行的MongoDB副本集

mongodb - 在 MongoDB 中,哪个索引会更有效率?一种是查询具有两个值的数组,还是一种使用 $or 语句?

c++ - MongoDB 使用数组中的 OR 条件构建查询