簡體   English   中英

如何在 Amazon Keyspaces 中檢查鍵空間和表大小

[英]How to check keyspace and table size in Amazon Keyspaces

我們最近從 Cassandra 遷移到 AWS 鍵空間,我只是想知道如何檢查 AWS 鍵空間中的表和鍵空間總大小。 非常感謝任何幫助或建議。

目前沒有直接的方法來獲取鍵空間/表存儲指標,但是如果您知道表中的行數,您當然可以計算存儲大小

每行的大小是根據計算

partition key columns + clustering columns + regular columns + row metadata = total encoded size of row

有關如何計算的更多信息,請參閱

https://docs.aws.amazon.com/keyspaces/latest/devguide/working-with-rows.html#calculating-row-size

https://docs.aws.amazon.com/keyspaces/latest/devguide/cql.elements.html#cql.data-types

僅供參考,您將能夠在成本瀏覽器中看到存儲

現在,您可以使用BillableTableSizeInBytes CloudWatch 指標來監控和跟蹤一段時間內的表存儲成本。 BillableTableSizeInBytes 指標通過匯總表中所有行的編碼大小來提供表的可計費存儲大小。

此外,使用 cloudwatch 度量數學很容易將其聚合到鍵空間中。

SUM(SEARCH('{AWS/Cassandra,Keyspace,TableName} Keyspace="tlp_stress" MetricName="BillableTableSizeInBytes"', 'Average', 300))

您可以在以下 git 存儲庫中找到鍵空間和表的預構建儀表板。 通過使用提供的 cloudformation 模板,您可以快速創建新儀表板。 https://github.com/aws-samples/amazon-keyspaces-cloudwatch-cloudformation-templates

下圖是存儲大小的雲手表。 鍵空間的存儲大小

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM