[pve-devel] [PATCH manager 2/4] ceph: cache perf data in pvestatd

Dominik Csapak d.csapak at proxmox.com
Tue Nov 5 13:51:17 CET 2019


Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
altough the rados call have a default timeout of 5 seconds,
i am not sure if this is too much of a load

we could only run that call e.g. every 3rd pvestatd loop, to minimize
the load. combined with the merging of the data on the reader side,
i guess we would have enought data points for it to make sense

any thoughts on this?

 PVE/Service/pvestatd.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/PVE/Service/pvestatd.pm b/PVE/Service/pvestatd.pm
index bad1b73d..7690a34e 100755
--- a/PVE/Service/pvestatd.pm
+++ b/PVE/Service/pvestatd.pm
@@ -534,6 +534,7 @@ sub update_status {
     eval {
 	return if !PVE::Ceph::Tools::check_ceph_inited(1); # "return" from eval
 
+	PVE::Ceph::Services::cache_perf_data();
 	PVE::Ceph::Services::broadcast_ceph_services();
 	update_ceph_version();
     };
-- 
2.20.1





More information about the pve-devel mailing list