RBD: Don't query Ceph on stats for exclusive pools
Collecting stats for provisioned_capacity_gb takes a long time since we
have to query each individual image for the provisioned size. If we are
using the pool just for Cinder and/or are willing to accept a potential
deviation in Cinder stats we could just not retrieve this information
and calculate this based on the DB information for the volumes.
This patch adds configuration option `rbd_exclusive_cinder_pool` that
allows us to disable the size collection and thus improve the stats
reporting speed.
Reviewed: https:/ /review. openstack. org/541285 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=f33baccc354 4cbda6cd5908328 a56096046657ed
Committed: https:/
Submitter: Zuul
Branch: master
commit f33baccc3544cbd a6cd5908328a560 96046657ed
Author: Gorka Eguileor <email address hidden>
Date: Tue Feb 6 14:54:57 2018 +0100
RBD: Don't query Ceph on stats for exclusive pools
Collecting stats for provisioned_ capacity_ gb takes a long time since we
have to query each individual image for the provisioned size. If we are
using the pool just for Cinder and/or are willing to accept a potential
deviation in Cinder stats we could just not retrieve this information
and calculate this based on the DB information for the volumes.
This patch adds configuration option `rbd_exclusive_ cinder_ pool` that
allows us to disable the size collection and thus improve the stats
reporting speed.
Change-Id: I32c7746fa9149b ce6cdec96ee9aa8 7b303de4271
Closes-Bug: #1704106