Return-Path: X-Original-To: apmail-flink-user-archive@minotaur.apache.org Delivered-To: apmail-flink-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A4A301815E for ; Fri, 7 Aug 2015 15:45:24 +0000 (UTC) Received: (qmail 55626 invoked by uid 500); 7 Aug 2015 15:45:24 -0000 Delivered-To: apmail-flink-user-archive@flink.apache.org Received: (qmail 55550 invoked by uid 500); 7 Aug 2015 15:45:24 -0000 Mailing-List: contact user-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@flink.apache.org Delivered-To: mailing list user@flink.apache.org Received: (qmail 55540 invoked by uid 99); 7 Aug 2015 15:45:24 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Aug 2015 15:45:24 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 0E0C0C0374 for ; Fri, 7 Aug 2015 15:45:24 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.879 X-Spam-Level: *** X-Spam-Status: No, score=3.879 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_REPLY=1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id cWm6N5UIgFgL for ; Fri, 7 Aug 2015 15:45:23 +0000 (UTC) Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id B1E9C20F6D for ; Fri, 7 Aug 2015 15:45:22 +0000 (UTC) Received: by wicgj17 with SMTP id gj17so66442790wic.1 for ; Fri, 07 Aug 2015 08:43:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=D+i6AUIA5JaQTp3xIrcVySe86fkZQurRM6Ry4v8RusU=; b=GTKgFwUBagbsF6FpImavvnzT2Mh3me3NwwPfGoCpWnxnA+qqkUJ7iEEDcOs8WVA0Nx OaWdq4hFpm/JlhS5GBJfTtaQR8o2VyhDllK+1WtHQIKBAlZGIXWjwL/ovm9YctR/wDU0 8+MWS1W3Syp51u/kTqVmTsvWmCaMfgfB+LGRxkFp5a5HnRdQ7XqRg6J8wWFZfSj835Ab q9W/sD6ySuXXPhtDgRWaUxaSrCF1s4Zd63QeWySdgKwcJdycg8qMO0ewlTXGzzpZkJrc 1VDQ/kynr/ASi57djuKsdufyOB1Kfj+irc6kkyaLeShvBkUZl+Tkp7GSLPe81ku2ng8b ApBg== MIME-Version: 1.0 X-Received: by 10.180.198.50 with SMTP id iz18mr7590532wic.35.1438962230931; Fri, 07 Aug 2015 08:43:50 -0700 (PDT) Received: by 10.27.222.68 with HTTP; Fri, 7 Aug 2015 08:43:50 -0700 (PDT) In-Reply-To: <8E95E27A-00F2-4A41-9D76-E91CCEAFA459@gmail.com> References: <8E95E27A-00F2-4A41-9D76-E91CCEAFA459@gmail.com> Date: Fri, 7 Aug 2015 17:43:50 +0200 Message-ID: Subject: Re: extract workers' resources stats From: Andra Lungu To: user@flink.apache.org Content-Type: multipart/alternative; boundary=047d7b62497c9eb551051cba8010 --047d7b62497c9eb551051cba8010 Content-Type: text/plain; charset=UTF-8 Hi, You can use something like iostat to extract the CPU usage. For instance, I call this script on the JM node: #!/usr/bin/env bash lines=`cat /home/andra.lungu/hostnames.txt | paste -d, -s` echo "${lines}" IFS="," read -ra hostnames <<<"${lines}" for line in "${hostnames[@]}"; do ssh ${line} `iostat -xtc 5 3 > /home/andra.lungu/cpu_stats/${line}` & done And then I parse the individual output in the cpu_stats folder with python to form charts. To my knowledge. Flink does not do something like that for you, at least not yet :) Bottom line is that you can use linux commands: iostat, dstat, htop, etc. Hope this helps! Andra On Fri, Aug 7, 2015 at 5:07 PM, Stefanos Antaris wrote: > Hi to all. > > I am working an a research project using flink and i would like to extract > the CPU + RAM resources consumed on each worker in order to include the > stats in my paper. Can anyone advice me on how could i extract them? > > Thanks in advance. > Stefanos --047d7b62497c9eb551051cba8010 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

You c= an use something like iostat to extract the CPU usage.
For instan= ce, I call this script on the JM node:
#!/usr/bin/env bash

lines= =3D`cat /home/andra.lungu/hostnames.txt | paste -d, -s`
echo "${lin= es}"
IFS=3D"," read -ra hostnames <<<"${lin= es}"
for line in "${hostnames[@]}"; do
=C2=A0 ssh ${li= ne} `iostat -xtc 5 3 > /home/andra.lungu/cpu_stats/${line}` &
don= e

And then I parse the individual output in the cpu_stats fold= er with python to form charts.
To my knowledge. Flink does not do= something like that for you, at least not yet :)

Bottom line = is that you can use linux commands: iostat, dstat, htop, etc.
Hope= this helps!
Andra

On Fri, Aug 7, 2015 at 5:07 PM, Stefanos Antaris <antaris.stefanos@gmail.com> wrote:
Hi to all.

I am working an a research project using flink and i would like to extract = the CPU + RAM resources consumed on each worker in order to include the sta= ts in my paper. Can anyone=C2=A0 advice me on how could i extract them?

Thanks in advance.
Stefanos

--047d7b62497c9eb551051cba8010--