]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr / volumes: maintain connection pool for fs volumes
authorVenky Shankar <vshankar@redhat.com>
Mon, 17 Jun 2019 09:36:54 +0000 (05:36 -0400)
committerVenky Shankar <vshankar@redhat.com>
Mon, 8 Jul 2019 03:58:16 +0000 (23:58 -0400)
commit5c41e949af9acabd612b0644de0603e374b4b42a
treee99e0fa96ec5914c78bbd07a0a36efc19e123a25
parent04547c92c1424c3c17aa84c49bfbfe0ffe4ac781
mgr / volumes: maintain connection pool for fs volumes

Right now every [sub]volume call does a connect/disconnect to the
cephfs filesystem. This is unnecessary and can be optimized by
caching the filesystem handle in a connection pool and (re)using
the handle for subsequent [sub]volume operations.

This would be useful for implementing features such as purge queue
for asynchronous subvolume deletes.

Signed-off-by: Venky Shankar <vshankar@redhat.com>
src/pybind/mgr/volumes/fs/subvolume.py
src/pybind/mgr/volumes/fs/volume.py
src/pybind/mgr/volumes/module.py