[pve-devel] Ceph OSD latency changes

Waschbüsch IT-Services GmbH service at waschbuesch.it
Mon Aug 14 23:10:34 CEST 2017


Solved!

> Am 14.08.2017 um 22:34 schrieb Waschbüsch IT-Services GmbH <service at waschbuesch.it>:
> 
> Be that as it may, the problem I have which lead me to have a look at it is: in the UI *all* my osds show a latency of 0.
> Using the shell, they don't.

I was on the right track after all - it seems the output *has* changed after all, but only a wee bit:

--- Ceph.pm.orig	2017-08-14 21:06:56.686005469 +0000
+++ Ceph.pm	2017-08-14 21:07:02.933759228 +0000
@@ -122,7 +122,7 @@
 		$new->{total_space} = ($stat->{kb} || 1) * 1024;
 		$new->{bytes_used} = ($stat->{kb_used} || 0) * 1024;
 		$new->{percent_used} = ($new->{bytes_used}*100)/$new->{total_space};
-		if (my $d = $stat->{fs_perf_stat}) {
+		if (my $d = $stat->{perf_stat}) {
 		    $new->{commit_latency_ms} = $d->{commit_latency_ms};
 		    $new->{apply_latency_ms} = $d->{apply_latency_ms};
 		}


This change re-enables the latencies being displayed, at least for me. ;-)

Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP
URL: <http://lists.proxmox.com/pipermail/pve-devel/attachments/20170814/b58dd741/attachment.sig>


More information about the pve-devel mailing list