]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/mirroring: make snapshot mirror metrics cache TTL configurable
authorKotresh HR <khiremat@redhat.com>
Sun, 21 Jun 2026 17:50:28 +0000 (23:20 +0530)
committerKotresh HR <khiremat@redhat.com>
Wed, 8 Jul 2026 07:15:17 +0000 (12:45 +0530)
commitfbc1fcb6d4cd65bbdf57a6bc0b133352c2f6907e
tree17a03c55898aa2d24c5b832dce6d127a2be917e6
parentb2a153077461f0dc39462c52992b9b7a072725ee
mgr/mirroring: make snapshot mirror metrics cache TTL configurable

Add snapshot_mirror_metrics_cache_ttl as a runtime mgr/mirroring module
option (default 15 seconds) instead of a hard-coded CACHE_TTL_SECS.
Both complete and partial lru_cache_timeout wrappers read the value
when caching omap metrics so operators can tune cache freshness without
code changes.

Fixes: https://tracker.ceph.com/issues/76686
Signed-off-by: Kotresh HR <khiremat@redhat.com>
(cherry picked from commit e36faf8bcca5afd6ab4454751fb1d6e84a1bed5f)
src/pybind/mgr/mirroring/fs/snapshot_mirror.py
src/pybind/mgr/mirroring/module.py