pcp
[Top] [All Lists]

Re: [performancecopilot/pcp] pmwebd impossibly slow when using grafana w

To: performancecopilot/pcp <pcp@xxxxxxxxxxxxxxxxxx>
Subject: Re: [performancecopilot/pcp] pmwebd impossibly slow when using grafana with 300 archives (#117)
From: Marko Kevac <notifications@xxxxxxxxxx>
Date: Tue, 04 Oct 2016 06:45:15 -0700
Delivered-to: pcp@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=github.com; h=from:reply-to:to:in-reply-to:references:subject:mime-version:content-type:content-transfer-encoding:list-id:list-archive:list-post:list-unsubscribe; s=s20150108; bh=B7i1TTR5/1IGVYKy+dE6yJ74CGA=; b=huRKzNkRsg7LckbO VDTRzOFuA9Bvsry+k9aAqXubi5cYIpDANNQTCbYfgefLbovXDhpkqlpmAXktMYiY 0xn4r77SlpoaZJMPHL+9MIrVxeuFxWcRkeMJSnGg17oBXe43lrzstx+uFWKKLVqu nbf4oBwqIaldAbhA1xX5RWBSpOc=
In-reply-to: <performancecopilot/pcp/issues/117@xxxxxxxxxx>
List-archive: https://github.com/performancecopilot/pcp
List-id: performancecopilot/pcp <pcp.performancecopilot.github.com>
List-post: <mailto:reply+00bd08b62b0b6d6fed415a1072f720b1af6d6bfd717fcc8c92cf00000001140b746b92a169ce0abb9393@reply.github.com>
List-unsubscribe: <mailto:unsub+00bd08b62b0b6d6fed415a1072f720b1af6d6bfd717fcc8c92cf00000001140b746b92a169ce0abb9393@reply.github.com>, <https://github.com/notifications/unsubscribe/AL0Ito3hOWA5qAq_Jehs_w1CJdq8yyWxks5qwlhrgaJpZM4KKD0Y>
References: <performancecopilot/pcp/issues/117@xxxxxxxxxx>
Reply-to: performancecopilot/pcp <reply+00bd08b62b0b6d6fed415a1072f720b1af6d6bfd717fcc8c92cf00000001140b746b92a169ce0abb9393@xxxxxxxxxxxxxxxx>

So about 2 GB of data per server per day, times seven days, times 300 servers, so 4200 GB of data on disk. Wow. Even the current day's data won't fit into your machine's RAM, so any scanning would have to rely on libpcp/archive optimally using .index files to seek to just the the parts being requested by the client (pmwebd/grafana). I don't know if pcp developers have much experience with such RAM-starved configurations.

Why query for host list has to read whole and each archive? It's very strange. Shouldn't host be somewhere in the beginning of the file?

After initial "get me host list" query, when I chose one host, pmwebd would have to read only 7 archives for one host (14GB).

And if only one day or one hour is selected in Grafana, then only one file (2GB).

But right now problem is on the first stage. Getting host list. And IMHO (without knowing about pcp internals), this should not need 4Tb read.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

<Prev in Thread] Current Thread [Next in Thread>