2017-03-05 7 views
1

テーブルの「読み取り」スループットを更新し、「書き込み」スループットを同じに保ちます。AWS PHP SDKを使用して既存のDynamoDBテーブルのプロビジョニングされたスループットを更新する方法

Message: Error executing "UpdateTable" on "https://dynamodb.us-east-1.amazonaws.com"; AWS HTTP error: Client error: POST https://dynamodb.us-east-1.amazonaws.comresulted 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."}

をここで要求があります:APIは、「読み」と要求内の値を「書き込み」が、1つは同じに残っているときに例外をスローの両方を設定する必要があります:

$result = $client->updateTable([ 
    'ProvisionedThroughput' => [ 
    'ReadCapacityUnits' => (int) $readCapacity, // REQUIRED 
    'WriteCapacityUnits' => (int) $writeCapacity, // REQUIRED 
], 
'TableName' => $table, // REQUIRED 

]);

プロビジョニングされたスループット容量を1つだけ更新するにはどうすればいいですか?&は同じままにしておきますか?

答えて

1

は、あなたのテーブルが2 - WCU10 - RCUにプロビジョニングされていることのように見える、とあなたは、現在設定と同じ値を持つupdateTableを呼び出そうとしています。

+0

はい、それは私がする必要があります。私は1つの値を既存のものと同じに保ち、もう一方を変更する必要があります。 –

+0

私はそれがSDKの設計上の欠陥かもしれないと思います。 –

+0

正しい場合は、必要に応じてプロビジョニングされたスループットを増やすことができますが、1回のUTCカレンダーで表あたり4回以下に減らすことができるため、SDKはうまくやっていて、スループットを更新することができます –

関連する問題