You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by Lan Jiang <lj...@gmail.com> on 2017/01/23 18:45:13 UTC

Spark Streaming proactive monitoring

Hi, there

From the Spark UI, we can monitor the following two metrics:

	• Processing Time - The time to process each batch of data.
	• Scheduling Delay - the time a batch waits in a queue for the processing of previous batches to finish.

However, what is the best way to monitor them proactively? For example, if processing time/scheduling delay exceed certain threshold, send alert to the admin/developer? 

Lan
---------------------------------------------------------------------
To unsubscribe e-mail: user-unsubscribe@spark.apache.org


Re: Spark Streaming proactive monitoring

Posted by Jacek Laskowski <ja...@japila.pl>.
Hi,

My impression is to use StreamingListener to track metrics and react
appropriately.

http://spark.apache.org/docs/latest/api/scala/index.html#org.apache.spark.streaming.scheduler.StreamingListener

Pozdrawiam,
Jacek Laskowski
----
https://medium.com/@jaceklaskowski/
Mastering Apache Spark 2.0 https://bit.ly/mastering-apache-spark
Follow me at https://twitter.com/jaceklaskowski


On Mon, Jan 23, 2017 at 7:45 PM, Lan Jiang <lj...@gmail.com> wrote:
> Hi, there
>
> From the Spark UI, we can monitor the following two metrics:
>
>         • Processing Time - The time to process each batch of data.
>         • Scheduling Delay - the time a batch waits in a queue for the processing of previous batches to finish.
>
> However, what is the best way to monitor them proactively? For example, if processing time/scheduling delay exceed certain threshold, send alert to the admin/developer?
>
> Lan
> ---------------------------------------------------------------------
> To unsubscribe e-mail: user-unsubscribe@spark.apache.org
>

---------------------------------------------------------------------
To unsubscribe e-mail: user-unsubscribe@spark.apache.org