]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/vol: add pause/resume mechanism for async jobs
authorRishabh Dave <ridave@redhat.com>
Tue, 3 Sep 2024 10:01:07 +0000 (15:31 +0530)
committerRishabh Dave <ridave@redhat.com>
Wed, 12 Mar 2025 18:47:10 +0000 (00:17 +0530)
commit01d37d5e1ba0e250e9d3a5f28ec7f3fa3597c63f
treebc5953cda5acdcbf73857e2c5cc6b7ead1ebb609
parent0bbc7cf7498dddcb1d7b5a730580c7a3eaf4f64b
mgr/vol: add pause/resume mechanism for async jobs

Add mechansim that allows pausing/resuming of the entire async job
machinery that queues, launches and picks next async job; both async
jobs, clones as well as purges.

And then add mgr/vol config option pause_purging and pause_cloning so
that both of these async jobs can be paused and resumed individually.

Fixes: https://tracker.ceph.com/issues/61903
Fixes: https://tracker.ceph.com/issues/68630
Signed-off-by: Rishabh Dave <ridave@redhat.com>
src/pybind/mgr/volumes/fs/async_job.py
src/pybind/mgr/volumes/module.py