使用 Amazon CloudWatch 指标管理 S3 on Outposts 容量
如果没有足够的空间在您的 Outpost 上存储对象,API 将返回容量不足异常 (ICE)。为避免这种情况,您可以创建 CloudWatch 提示,在存储利用率超过某个阈值时向您发出提示。有关更多信息,请参阅在 CloudWatch 中 Amazon S3 on Outposts 的指标。
您可以使用此方法,通过显式删除数据、使用生命周期过期策略或使用 Amazon DataSync 将数据从 Amazon S3 on Outposts 存储桶复制到 Amazon Web Services 区域中的 S3 存储桶来释放空间。有关使用 DataSync 的更多信息,请参阅《Amazon DataSync 用户指南》中的 Amazon DataSync 入门。
CloudWatch 指标
S3Outposts
命名空间包括 Amazon S3 on Outposts 存储桶的以下指标。您可以监控给定存储桶的总预置 S3 on Outposts 字节数、适用于对象的总可用字节数以及所有对象的总大小。
S3 on Outposts 仅支持以下指标,而不支持其他 Amazon S3 指标。
由于 S3 on Outposts 具有固定容量,因此您可以创建 CloudWatch 警报,在存储利用率超过特定阈值时向您发出警报。
指标 | 说明 |
---|---|
OutpostTotalBytes |
Outpost 的预置总容量(以字节为单位)。 单位:字节 时间:5 分钟 |
OutpostFreeBytes |
Outpost 上可用于存储客户数据的可用字节数。 单位:字节 时间:5 分钟 |
BucketUsedBytes |
给定存储桶的所有对象的总大小。 单位:计数 时间:5 分钟 |
AccountUsedBytes |
指定的 Outposts 账户中所有对象的总大小。 单位:字节 时间:5 分钟 |