我正在尝试更新我的表的“读取”吞吐量并保持“写入”吞吐量相同。 API要求您在请求中设置“读取”和“写入”值,但如果保留一个值,则会抛出异常:
Message: Error executing "UpdateTable" on "https://dynamodb.us-east-1.amazonaws.com"; AWS HTTP error: Client error:
发布https://dynamodb.us-east-1.amazonaws.com resulted in a
400次错误请求response: {"__type":"com.amazon.coral.validate#ValidationException","message":"The provisioned throughput for the index regionCode (truncated...) ValidationException (client): The provisioned throughput for the index regionCode-index will not change. The requested value equals the current value. Current ReadCapacityUnits provisioned for index regionCode-index: 10. Requested ReadCapacityUnits: 10. Current WriteCapacityUnits provisioned for index regionCode-index: 2. Requested WriteCapacityUnits: 2. Refer to the Amazon DynamoDB Developer Guide for current limits and how to request higher limits. - {"__type":"com.amazon.coral.validate#ValidationException","message":"The provisioned throughput for the index regionCode-index will not change. The requested value equals the current value. Current ReadCapacityUnits provisioned for index regionCode-index: 10. Requested ReadCapacityUnits: 10. Current WriteCapacityUnits provisioned for index regionCode-index: 2. Requested WriteCapacityUnits: 2. Refer to the Amazon DynamoDB Developer Guide for current limits and how to request higher limits."}
这是请求:
$result = $client->updateTable([
'ProvisionedThroughput' => [
'ReadCapacityUnits' => (int) $readCapacity, // REQUIRED
'WriteCapacityUnits' => (int) $writeCapacity, // REQUIRED
],
'TableName' => $table, // REQUIRED
]);
如何仅更新1个预配置吞吐量容量&离开另一个?
答案 0 :(得分:1)
您的表格似乎已配置为2 - WCU
和10 - RCU
,并且您尝试使用与当前设置相同的值调用updateTable
。