You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by Semih Salihoglu <se...@stanford.edu> on 2014/04/25 05:24:29 UTC

Monitoring the total network I/O done by an application?

Hi All,

I'm trying to measure how much network I/O was performed by an application.
More specifically, I'm interested in how much data/messages were sent and
received between the workers executing the tasks of an application (so not
all have to be sent over the network). I'm using spark-0.8.0 and I see the
Shuffle Read and Shuffle Write columns on the monitoring web site. Attached
is my screenshot. I have two questions .

   1. What exactly are shuffle read/writes referring to? Is that the data
   sent/received between workers in a particular transformation (say the first
   line in the screenshot, map at CogroupPrimitiveDYSLineQuery.scala: 62).
   That line reads an rdd from a text file.
   2. If that is the metric I'm looking for, can I make my driver print it
   out on my screen? I read the monitoring and instrumentation documentation,
   which describes how to make Spark print metrics on the screen
   https://spark.apache.org/docs/0.9.0/monitoring.html. I then looked at
   the available "sources" (according to the documentation in
   metrics.properties.template, these are sets of available metrics) in the
   code base and I found: JvmSource, ExecutorSource, WorkerSource,
   MasterSource, and ApplicationSource but couldn't find a metric related to
   shuffling or networking in any one of them. I might be missing something in
   the codebase.

Thank you,

semih