關閉表格的 Amazon Keyspaces auto 擴展 - Amazon Keyspaces (適用於 Apache Cassandra)

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

關閉表格的 Amazon Keyspaces auto 擴展

您可以隨時關閉表格的 Amazon Keyspaces 間 auto 擴展。如果您不再需要擴展表格的讀取或寫入容量,則應考慮關閉 auto 擴展,這樣 Amazon Keyspaces space 就不會繼續修改表格的讀取或寫入容量設定。您可以使用主控台更新資料表CQL,或 AWS CLI.

關閉 auto 調整比例功能也會刪除代表您建立的 CloudWatch 警報。

若要刪除 Application Auto Scaling 用來存取 Amazon Keyspaces 表格的服務連結角色,請依照中的步驟執行。刪除 Amazon Keyspaces 的服務鏈接角色

注意

若要刪除 Application Auto Scaling 使用的服務連結角色,您必須停用帳戶中所有資料表的自動調度資源 AWS 區域.

Console

使用控制台關閉表的 Amazon Keyspaces 自動擴展

使用 Amazon Keyspaces 控制台
  1. 登入 AWS Management Console,然後在https://console.aws.amazon.com/keyspaces/家中打開 Amazon Keyspaces 控制台。

  2. 選擇您要更新的表格,然後前往 [容量] 索引標籤。

  3. [容量設定] 區段中,選擇 [編輯]。

  4. 若要停用 Amazon Keyspaces 自動擴展,請清除「自動擴展」核取方塊。停用自動調整比例會使用「應用程式自動調整」將資料表取消註冊為可縮放

Cassandra Query Language (CQL)

使用關閉表的 Amazon Keyspaces 自動擴展 CQL

下列陳述式會關閉資料表 mytable 寫入容量的 auto 調整規模。

ALTER TABLE mykeyspace.mytable WITH AUTOSCALING_SETTINGS = { 'provisioned_write_capacity_autoscaling_update': { 'autoscaling_disabled': true } };
CLI

關閉 Amazon Keyspaces 自動擴展您的表使用 AWS CLI

下列指令會關閉表格讀取容量的 auto 調整比例。它也會刪除代表您建立的 CloudWatch 警報。

aws keyspaces update-table --keyspace-name mykeyspace --table-name mytable \ --auto-scaling-specification readCapacityAutoScaling={autoScalingDisabled=true}