기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.
Amazon Keyspaces 테이블의 웜 처리량 보기
콘솔, CQL 또는를 사용하여 Amazon Keyspaces 테이블의 현재 웜 처리량 값을 볼 수 있습니다 AWS CLI.
- Console
-
콘솔을 사용하여 테이블의 사전 워밍 설정을 보는 방법.
-
에 로그인 AWS Management 콘솔하고 https://console.aws.amazon.com/keyspaces/home
Amazon Keyspaces 콘솔을 엽니다. -
탐색 창에서 테이블을 선택한 다음 검토하려는 테이블을 선택합니다.
-
테이블의 용량 탭에서 테이블에 대한 사전 워밍을 계속합니다.
-
- Cassandra Query Language (CQL)
-
CQL을 사용하여 테이블의 웜 처리량 설정 보기
테이블의 웜 처리량 설정을 보려면 다음 CQL 문을 사용할 수 있습니다.
SELECT custom_properties FROM system_schema_mcs.tables WHERE keyspace_name='catalog' and table_name='book_awards'; // Output: ... custom_properties ---------------------------------------------------------------------------------- { 'warm_throughput': { 'read_units_per_second': '40000', 'write_units_per_second': '20000', 'status': 'AVAILABLE' } } ...
- CLI
-
를 사용하여 테이블의 웜 처리량 설정 보기 AWS CLI
다음 예제와 같이
get-table명령을 사용하여 테이블의 웜 처리량 설정을 볼 수 있습니다.aws keyspaces get-table \ --keyspace-name 'catalog' \ --table-name 'book_awards'다음은 프로비저닝된 모드에서 단일 리전 테이블에 대한
get-table명령의 예제 출력을 보여줍니다.{ "keyspaceName": "catalog", "tableName": "book_awards", ... Existing Fields ..., "capacitySpecificationSummary": { "throughputMode": "PROVISIONED", "readCapacityUnits": 20000, "writeCapacityUnits": 10000 }, "warmThroughputSpecificationSummary": { "readUnitsPerSecond": 40000, "writeUnitsPerSecond": 20000, "status": "AVAILABLE" } }다음은 온디맨드 모드의 단일 리전 테이블에 대한 예제 출력을 보여줍니다.
{ "keyspaceName": "catalog", "tableName": "book_awards_ondemand", ... Existing Fields ..., "capacitySpecification": { "throughputMode": "PAY_PER_REQUEST" }, "warmThroughputSpecificationSummary": { "readUnitsPerSecond": 40000, "writeUnitsPerSecond": 20000, "status": "AVAILABLE" } }
- Java
-
Java용 SDK를 사용하여 테이블의 사전 워밍 설정을 읽습니다.
를 사용하여 테이블의 웜 처리량 값을 읽습니다
get-table. 다음 코드 예제는이 예제입니다.import software.amazon.awssdk.services.keyspaces.KeyspacesClient; import software.amazon.awssdk.services.keyspaces.model.*; public class GetTableWithPreWarmingExample { public static void main(String[] args) { KeyspacesClient keyspacesClient = KeyspacesClient.builder().build(); // Get table details including PreWarming specification GetTableRequest request = GetTableRequest.builder() .keyspaceName("catalog") .tableName("book_awards") .build(); GetTableResponse response = keyspacesClient.getTable(request); // Access PreWarming details if (response.warmThroughputSpecification() != null) { WarmThroughputSpecificationSummary warmThroughputSummary = response.warmThroughputSpecification(); System.out.println("PreWarming Status: " + warmThroughputSummary.status()); System.out.println("Read Units: " + warmThroughputSummary.readUnitsPerSecond()); System.out.println("Write Units: " + warmThroughputSummary.writeUnitsPerSecond()); // Check if PreWarming is active if (warmThroughputSummary.status().equals("AVAILABLE")) { System.out.println("Table is fully pre-warmed and ready for high throughput"); } else if (warmThroughputSummary.status().equals("UPDATING")) { System.out.println("Table PreWarming is currently being updated"); } } else { System.out.println("Table does not have PreWarming enabled"); } } }
테이블의 웜 처리량 증가
CloudWatch를 사용하여 사전 워밍 모니터링