웜 처리량이 더 높은 새 DynamoDB 테이블 만들기
아래 단계에 따라 DynamoDB 테이블을 만들 때 웜 처리량 값을 조정할 수 있습니다. 이러한 단계는 글로벌 테이블 또는 보조 인덱스를 만들 때도 적용됩니다.
DynamoDB 테이블을 만들고 콘솔을 통해 웜 처리량 값을 조정하려면:
AWS Management Console에 로그인하고 DynamoDB 콘솔(https://console.aws.amazon.com/dynamodb/
)을 엽니다. -
규칙 생성을 선택합니다.
-
테이블 이름, 파티션 키 및 정렬 키(선택 사항)를 선택합니다.
-
테이블 설정에서 설정 사용자 지정을 선택합니다.
-
웜 처리량 필드에서 웜 처리량 증가를 선택합니다.
-
초당 읽기 단위와 초당 쓰기 단위를 조정합니다. 이 두 설정은 테이블이 즉시 처리할 수 있는 최대 처리량을 정의합니다.
-
나머지 테이블 세부 정보를 계속 추가한 다음 테이블 생성을 선택합니다.
다음 AWS CLI 예제에서는 사용자 지정 웜 처리량 값을 사용하여 DynamoDB 테이블을 만드는 방법을 보여줍니다.
-
create-table작업을 실행하여 다음 DynamoDB 테이블을 만듭니다.aws dynamodb create-table \ --table-name GameScores \ --attribute-definitions AttributeName=UserId,AttributeType=S \ AttributeName=GameTitle,AttributeType=S \ AttributeName=TopScore,AttributeType=N \ --key-schema AttributeName=UserId,KeyType=HASH \ AttributeName=GameTitle,KeyType=RANGE \ --provisioned-throughput ReadCapacityUnits=20,WriteCapacityUnits=10 \ --global-secondary-indexes \ "[ { \"IndexName\": \"GameTitleIndex\", \"KeySchema\": [{\"AttributeName\":\"GameTitle\",\"KeyType\":\"HASH\"}, {\"AttributeName\":\"TopScore\",\"KeyType\":\"RANGE\"}], \"Projection\":{ \"ProjectionType\":\"INCLUDE\", \"NonKeyAttributes\":[\"UserId\"] }, \"ProvisionedThroughput\": { \"ReadCapacityUnits\": 50, \"WriteCapacityUnits\": 25 },\"WarmThroughput\": { \"ReadUnitsPerSecond\": 1987, \"WriteUnitsPerSecond\": 543 } } ]" \ --warm-throughput ReadUnitsPerSecond=12345,WriteUnitsPerSecond=4567 \ --region us-east-1 -
아래와 비슷한 응답을 받게 됩니다.
WarmThroughput설정은ReadUnitsPerSecond및WriteUnitsPerSecond로 표시됩니다.Status는 웜 처리량 값이 업데이트될 때는UPDATING, 새 웜 처리량 값이 설정되었을 때는ACTIVE가 됩니다.{ "TableDescription": { "AttributeDefinitions": [ { "AttributeName": "GameTitle", "AttributeType": "S" }, { "AttributeName": "TopScore", "AttributeType": "N" }, { "AttributeName": "UserId", "AttributeType": "S" } ], "TableName": "GameScores", "KeySchema": [ { "AttributeName": "UserId", "KeyType": "HASH" }, { "AttributeName": "GameTitle", "KeyType": "RANGE" } ], "TableStatus": "CREATING", "CreationDateTime": 1730241788.779, "ProvisionedThroughput": { "NumberOfDecreasesToday": 0, "ReadCapacityUnits": 20, "WriteCapacityUnits": 10 }, "TableSizeBytes": 0, "ItemCount": 0, "TableArn": "arn:aws:dynamodb:us-east-1:XXXXXXXXXXXX:table/GameScores", "TableId": "XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX", "GlobalSecondaryIndexes": [ { "IndexName": "GameTitleIndex", "KeySchema": [ { "AttributeName": "GameTitle", "KeyType": "HASH" }, { "AttributeName": "TopScore", "KeyType": "RANGE" } ], "Projection": { "ProjectionType": "INCLUDE", "NonKeyAttributes": [ "UserId" ] }, "IndexStatus": "CREATING", "ProvisionedThroughput": { "NumberOfDecreasesToday": 0, "ReadCapacityUnits": 50, "WriteCapacityUnits": 25 }, "IndexSizeBytes": 0, "ItemCount": 0, "IndexArn": "arn:aws:dynamodb:us-east-1:XXXXXXXXXXXX:table/GameScores/index/GameTitleIndex", "WarmThroughput": { "ReadUnitsPerSecond": 1987, "WriteUnitsPerSecond": 543, "Status": "UPDATING" } } ], "DeletionProtectionEnabled": false, "WarmThroughput": { "ReadUnitsPerSecond": 12345, "WriteUnitsPerSecond": 4567, "Status": "UPDATING" } } }
다음 SDK 예제에서는 사용자 지정 웜 처리량 값을 사용하여 DynamoDB 테이블을 생성하는 방법을 보여줍니다.