ablog

不器用で落着きのない技術者のメモ

Amazon Redshift RA3 の手動スナップショットのコストについて

Amazon Redshift RA3 の手動スナップショットの料金について

  • 自動スナップショットは、
    • 無料、最大35日間保持できる。
    • デフォルトで8時間ごとか、1ノードあたり 5GB 変更されると自動でスナップショットが作成される。
  • 自動、手動ともに前回からの増分のみスナップショットが作成される。
    • 例えば、手動スナップショットを取得すると前回の自動スナップショットからの増分のみ取得される。
  • マネジメントコンソールで見ると増分ではなくトータルサイズで表示される。

  • AWS CLIaws redshift describe-cluster-snapshots の ActualIncrementalBackupSizeInMegaBytes で実際に使用している増分スナップショットのサイズを確認できる。
% aws redshift describe-cluster-snapshots|jq -r '.Snapshots[]|@text "\(.SnapshotIdentifier)\t\(.TotalBackupSizeInMegaBytes)\t\(.ActualIncrementalBackupSizeInMegaBytes)"'
redshift-cluster-poc-central-manual-20230508-02	12179646★12TB	15★15MB
redshift-cluster-poc-central-manual-20230508	12179646★12TB	18★18MB
rs:redshift-cluster-poc-central-2023-05-07-20-27-30	12179643★12TB	84★84MB
rs:redshift-cluster-poc-central-2023-05-07-12-26-33	0	0
rs:redshift-cluster-poc-central-2023-05-07-04-25-36	0	0
rs:redshift-cluster-poc-central-2023-05-06-20-24-39	0	0
rs:redshift-cluster-poc-central-2023-05-06-12-23-41	0	0
rs:redshift-cluster-poc-central-2023-05-06-04-22-43	0	0
rs:redshift-cluster-poc-central-2023-05-05-20-21-46	0	0
rs:redshift-cluster-poc-central-2023-05-05-12-20-48	0	0
rs:redshift-cluster-poc-central-2023-05-05-04-19-51	0	0
rs:redshift-cluster-poc-central-2023-05-04-20-18-52	0	0
rs:redshift-cluster-poc-central-2023-05-04-12-17-55	0	0
rs:redshift-cluster-poc-central-2023-05-04-04-16-57	0	0
rs:redshift-cluster-poc-central-2023-05-03-20-16-00	0	0
rs:redshift-cluster-poc-central-2023-05-03-12-15-02	0	0
rs:redshift-cluster-poc-central-2023-05-03-04-14-05	0	0
rs:redshift-cluster-poc-central-2023-05-02-20-13-08	0	0
rs:redshift-cluster-poc-central-2023-05-02-12-12-10	0	0
rs:redshift-cluster-poc-central-2023-05-02-04-11-13	0	0
rs:redshift-cluster-poc-central-2023-05-01-20-10-16	0	0
rs:redshift-cluster-poc-central-2023-05-01-12-09-18	0	0
rs:redshift-cluster-poc-central-2023-05-01-04-08-21	0	0
  • aws redshift describe-storage でそのリージョンの RMS とスナップショットの総サイズを確認できる。
    • TotalBackupSizeInMegaBytes: バックアップ(スナップショット)の総サイズ
    • TotalProvisionedStorageInMegaBytes: RMS の総サイズ
% aws redshift describe-storage
{
    "TotalBackupSizeInMegaBytes": 24682516.0, ★23TB
    "TotalProvisionedStorageInMegaBytes": 163840.0 ★160GB
}
  • [Bills] - [Charges by service] を見ると、RMS のサイズに対して、課金対象のスナップショットのサイズが遙かに小さいことが分かる。

参考

Amazon Redshift のスナップショットスケジューリング機能を使用して作成される Redshift 自動スナップショットに料金は発生せず、最大 35 日間保持することができます。
(中略)
RA3 クラスターに保存されたデータは RMS の一部であるため RMS レートで請求されますが、RA3 クラスターに対して作成された手動スナップショットは、このページで説明されている標準的な Amazon S3 レートによりバックアップのストレージとして請求されます。

料金 - Amazon Redshift | AWS

デフォルトでは、Amazon Redshift は約 8 時間ごと、または 1 ノードのデータが変更されるごとに 5 GB ごと (あるいはそのいずれか早い方) にスナップショットを作成します。

Amazon Redshift スナップショットとバックアップ - Amazon Redshift

TotalBackupSizeInMegaBytes
The total amount of storage currently used for snapshots.
Type: Double

TotalProvisionedStorageInMegaBytes
The total amount of storage currently provisioned.
Type: Double
|

DescribeStorage - Amazon Redshift