amazon-web-services - 如何根据自动缩放的 dynamodb 表管理全局二级索引的写入容量?

标签 amazon-web-services amazon-dynamodb autoscaling

全局二级索引的容量与应用它们的表分开配置。如果为 GSI 分配的写入容量不足,则 writes to the table are throttled .因此,如果触发了对表的写入的自动缩放,那么应该期望 GSI 的写入容量需要作为响应进行管理。

可以通过 AWS 管理控制台、CLI 或使用 CloudFormation 配置表读/写的自动缩放。文档发布了示例 JSON/YAML 来完成表配置。但是,当我尝试在自动缩放的表上创建新的 GSI 时,我看不到镜像表设置的选项。我也找不到有关如何显式处理索引和自动缩放的文档中的 CLI 或 CloudFormation 示例。

那么您如何管理 GSI 的写入容量?我对事情应该如何正确工作的理解是否正确?或者 AWS 是否“做正确的事”(在他们看来,无论如何)并与基础表并行自动缩放 GSI?

最佳答案

您可以为全局二级索引应用相同的自动缩放设置。根据 AWS docs :

If you enable DynamoDB auto scaling for a table that has one or more global secondary indexes, we highly recommend that you also apply auto scaling uniformly to those indexes. You can do this by choosing Apply same settings to global secondary indexes in the AWS Management Console.

关于amazon-web-services - 如何根据自动缩放的 dynamodb 表管理全局二级索引的写入容量?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45239670/

相关文章:

amazon-web-services - 如何在 Json 和 Map<String, AttributeValue> 之间进行转换

ios - 扫描一张表好还是只创建一个散列键好?

Kubernetes Autoscaler如何始终保持一个节点空闲

node.js - 无法在 Node 中使用 GeoDataManager 查询 dynamoDb 数据

wordpress - 使用 Google App Engine 和 Google Cloud SQL 扩展 WordPress

Azure 在特定时间自动缩放

bash - 将文本文件中的额外列拆分为单独的行(保留第一列)

python - 在 AWS 上使用 Tornado 托管 Bokeh 服务器

amazon-web-services - 我可以将 CloudWatch 日志组从另一个账户流式传输到 lambda 吗?

javascript - AWS 无服务器端点问题