New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rbd-mirror: add information about the last snapshot sync to image status #49299
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd propose to name the new fields last_snapshot_bytes and last_snapshot_seconds to be closer to existing bytes_per_snapshot and seconds_until_synced fields (and make the units clear -- "time" is is too generic).
2c4a8aa
to
82e30db
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we need a tracker ticket for this so that it's easier to backport? And that can have more info about the use case.
5dc381c
to
ad8553f
Compare
@weirdwiz Is this done? Please add a link to the commit message as per https://github.com/ceph/ceph/blob/main/SubmittingPatches.rst#id8. |
ad8553f
to
46d8731
Compare
|
sorry for the delay, there was an issue in my build environment. |
How was this tested? Can you link some pastes/screenshots show-casing the new fields?
Please try again now. |
|
I tested it out by writing data to the snapshots using the bench command, for an empty image, bin/rbd --cluster site-a bench --io-type write --io-size 64K --io-threads 2 --io-total 4G --io-pattern seq data/image2status: {"bytes_per_second":0.0,"bytes_per_snapshot":4294967296.0,"last_sna
pshot_bytes":4294967296,"last_snapshot_seconds":38,"local_snapshot_timestamp":1676612875,"remot
e_snapshot_timestamp":1676612875,"replay_state":"idle"}
wrote 2 gigabytes again to the same image status: {"bytes_per_second":0.0,"bytes_per_snapshot":3221225472.0,"last_snapshot_bytes":2147483648,"last_snapshot_seconds":20,"local_snapshot_timestamp":1676613141,"remot
e_snapshot_timestamp":1676613141,"replay_state":"idle"}
|
|
This needs to be added to the commit message too, not just to the description of the PR. |
46d8731
to
fca6727
Compare
this commit adds fields for time taken to sync and bytes in the last snapshot to the mirror image status command. Fixes: https://tracker.ceph.com/issues/58755 Signed-off-by: Divyansh Kamboj <dkamboj@redhat.com>
fca6727
to
9b9f18a
Compare
|
jenkins test make check |
Currently, the rbd mirror status command does not include information about the time taken to sync and bytes in the last snapshot, making it difficult to monitor and troubleshoot the mirroring process. This feature request is to add "last_snapshot_bytes" and "last_snapshot_seconds" fields to the rbd mirror status command, providing administrators with valuable information about the performance of the mirroring process.
Use case:
In snapshot-based mirroring, it's important to know how long it took to sync the last snapshot and how many bytes were transferred during the sync process. This information is useful for monitoring the performance of the mirroring process and identifying any issues that may arise. By adding these fields to the rbd mirror status command, administrators will be able to quickly and easily retrieve this information and use it to optimize the mirroring process.
Fixes: https://tracker.ceph.com/issues/58755