[Pkg-ganeti-devel] [ganeti] 44/165: Add a constant for the xen cpu observation threshold
Apollon Oikonomopoulos
apoikos at moszumanska.debian.org
Tue Aug 11 13:53:11 UTC 2015
This is an automated email from the git hooks/post-receive script.
apoikos pushed a commit to branch master
in repository ganeti.
commit bdde3e573c0a9c3514a51a3c90a90e6b63e51177
Author: Klaus Aehlig <aehlig at google.com>
Date: Tue Feb 17 15:19:17 2015 +0100
Add a constant for the xen cpu observation threshold
With xentop we can obtain CPU usage since start with an accuracy
of seconds. So when computing CPU load as difference between two
observations, the observations better be sufficiently apart for
the result to be meaningful. Specify a threshold for this; we
choose 100 seconds to have the observation inaccuracy below percent
of a CPU.
Signed-off-by: Klaus Aehlig <aehlig at google.com>
Reviewed-by: Hrvoje Ribicic <riba at google.com>
---
src/Ganeti/Constants.hs | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/Ganeti/Constants.hs b/src/Ganeti/Constants.hs
index 86a05ae..3b79595 100644
--- a/src/Ganeti/Constants.hs
+++ b/src/Ganeti/Constants.hs
@@ -4776,6 +4776,11 @@ cpuavgloadWindowSize = 600
xentopCommand :: String
xentopCommand = "xentop"
+-- | Minimal observation time in seconds, the xen cpu load collector
+-- can report load averages for the first time.
+xentopAverageThreshold :: Int
+xentopAverageThreshold = 100
+
-- * Monitoring daemon
-- | Mond's variable for periodical data collection
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ganeti/ganeti.git
More information about the Pkg-ganeti-devel
mailing list