AutoMQ/automq

Retrieve S3 space occupied by Partition.

Closed this issue · 1 comments

Who is this for and what problem do they have today?

Why is solving this problem impactful?

The message data in Partition is stored in S3 with additional information such as streamId and offset. The actual S3 storage space for Partition is greater than the storage space for messages.
To obtain more accurate S3 storage occupancy in Metrics, AutoMQ needs to add an estimation of the Partition's S3 storage occupancy size.

Additional notes

Just use LogSegments.size() as the partition size