]> git-server-git.apps.pok.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>
Tue, 5 Mar 2024 03:36:24 +0000 (09:06 +0530)
commitccf43570585dff59500c1ebb3299bf22310cae52
tree5e3cbb088fe73976153b88bb4bccc755d967d29d
parentcd88ef71e0858ead8f038dea9804376b3b0f97a5
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>
(cherry picked from commit 079f722c37ef6cc8bd3cc26c49ae119dd83431f9)
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