Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 43325200D4F for ; Wed, 6 Dec 2017 16:23:10 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 41F99160BFD; Wed, 6 Dec 2017 15:23:10 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 87DCF160C08 for ; Wed, 6 Dec 2017 16:23:09 +0100 (CET) Received: (qmail 46431 invoked by uid 500); 6 Dec 2017 15:23:03 -0000 Mailing-List: contact dev-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list dev@ignite.apache.org Received: (qmail 46420 invoked by uid 99); 6 Dec 2017 15:23:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Dec 2017 15:23:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id A7745180787 for ; Wed, 6 Dec 2017 15:23:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id m3ExlkrfnPdA for ; Wed, 6 Dec 2017 15:23:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 36B0D5F2A8 for ; Wed, 6 Dec 2017 15:23:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 862C2E0E08 for ; Wed, 6 Dec 2017 15:23:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 30F49255BF for ; Wed, 6 Dec 2017 15:23:00 +0000 (UTC) Date: Wed, 6 Dec 2017 15:23:00 +0000 (UTC) From: "Denis Mekhanikov (JIRA)" To: dev@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (IGNITE-7125) Cluster metrics for a single node differ from local metrics MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 06 Dec 2017 15:23:10 -0000 Denis Mekhanikov created IGNITE-7125: ---------------------------------------- Summary: Cluster metrics for a single node differ from local m= etrics Key: IGNITE-7125 URL: https://issues.apache.org/jira/browse/IGNITE-7125 Project: Ignite Issue Type: Bug Affects Versions: 2.3 Reporter: Denis Mekhanikov Some metrics, that perform aggregation of multiple values, have different m= eanings for a local node and for a cluster. Local metrics perform aggregati= on over time, but cluster metrics =E2=80=93 over nodes in the cluster. As a= result, you can get different values of local metrics and cluster metrics,= when there is only one node in the cluster. Here is a reproducer: {code} public class ExampleNodeStartup { public static void main(String[] args) throws Exception { Ignite ignite =3D Ignition.start(); while (true) { ClusterMetrics locMetrics =3D ignite.cluster().localNode().metr= ics(); ClusterMetrics clusterMetrics =3D ignite.cluster().metrics(); System.out.println("averageCpuLoad: " + "local=3D" + locMetrics.getAverageCpuLoad() + "; cluster=3D" + clusterMetrics.getAverageCpuLoad()); System.out.println("maximumThreadCount: " + "local=3D" + locMetrics.getMaximumThreadCount() + "; cluster=3D" + clusterMetrics.getMaximumThreadCount()); Thread.sleep(200); } } } {code} After some time values begin to differ. All {{ClusterMetrics#getMaximum*}} and {{ClusterMetrics#getAverage*}} metri= cs seem to have the same problem. -- This message was sent by Atlassian JIRA (v6.4.14#64029)