]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
tools/cephfs_mirror: Adds capability to persist metrics
authorKotresh HR <khiremat@redhat.com>
Sun, 17 May 2026 21:01:58 +0000 (02:31 +0530)
committerKotresh HR <khiremat@redhat.com>
Wed, 8 Jul 2026 07:15:17 +0000 (12:45 +0530)
commit389fe2ef2e918490d5126e1218bb2a8a6eeee360
tree3bc8f1afa3f5b8b9643a4bcb98ef28edf69d2fd8
parent24e6abaec13607f9e54cec01bd9fd298d388223c
tools/cephfs_mirror: Adds capability to persist metrics

Adds the capability to persist mirroring metrics.
The metrics are persisted in the omap of the cephfs-mirror
object. Metrics are persisted asynchronously.

Each mirrored directory path stores the corresponding
metrics as the value of a unique omap key representing
the mirrored directory. The omap key is as below.

sync_stat/<fsname>/<peer_uuid>/<mirrored_dir_path>

Fixes: https://tracker.ceph.com/issues/76686
Signed-off-by: Kotresh HR <khiremat@redhat.com>
(cherry picked from commit 9f59332b35259773783bbd38e4f92fa1520d6cbf)
src/tools/cephfs_mirror/FSMirror.cc
src/tools/cephfs_mirror/PeerReplayer.cc
src/tools/cephfs_mirror/PeerReplayer.h
src/tools/cephfs_mirror/aio_utils.h