]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/volumes: support to reject CephFS clones if cloner threads are not available
authorneeraj pratap singh <neerajpratapsingh@li-ff7f0d4c-3462-11b2-a85c-d4004c0fa1a0.ibm.com>
Wed, 2 Aug 2023 02:38:39 +0000 (08:08 +0530)
committerneeraj pratap singh <neerajpratapsingh@li-ff7f0d4c-3462-11b2-a85c-d4004c0fa1a0.ibm.com>
Thu, 8 Feb 2024 05:40:38 +0000 (11:10 +0530)
commit079f722c37ef6cc8bd3cc26c49ae119dd83431f9
tree8a63a24e9e7047a50ad2ff45b89c8128b1c3205a
parentf9d771f0027240547cafeba4f0bdf391252f61b8
mgr/volumes: support to reject CephFS clones if cloner threads are not available

CephFS clone creation have a limit of 4 parallel clones by default at a time and rest
of the clone create requests are queued. This makes CephFS cloning very slow when
there is large amount of clones being created.After this patch clone requests won't be accepeted
when the requests exceed the `max_concurrent_clones` config value.

Fixes: https://tracker.ceph.com/issues/59714
Signed-off-by: Neeraj Pratap Singh <neesingh@redhat.com>
src/pybind/mgr/volumes/fs/async_cloner.py
src/pybind/mgr/volumes/fs/operations/volume.py
src/pybind/mgr/volumes/fs/volume.py
src/pybind/mgr/volumes/module.py