You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Saurabh Chawla (Jira)" <ji...@apache.org> on 2020/08/12 06:03:00 UTC
[jira] [Created] (SPARK-32597) Tune Event Drop in Async Event Queue
Saurabh Chawla created SPARK-32597:
--------------------------------------
Summary: Tune Event Drop in Async Event Queue
Key: SPARK-32597
URL: https://issues.apache.org/jira/browse/SPARK-32597
Project: Spark
Issue Type: Improvement
Components: Spark Core
Affects Versions: 3.0.0
Reporter: Saurabh Chawla
There are scenarios where we have seen the event drop in spark, resulting in the inconsistent state for the spark Application(some time application is hung state).
For example - This can be due to the large number of parallel task processing. Producer thread keeps on adding the events to the
Queue and Consumer thread is consuming the events at the slower rate compare to the Producer adding in the queue. Resulting the
Queue to reach max size and events get dropped from that.
There are times if Queue Size would be little bit higher like 10 percent (or 20 percent) extra of the existing Queue size, the events
can be processed preventing the event drop at that point of time.
As per the current architecture size of event Queue can be configured at start of the application by setting spark.scheduler.listenerbus.eventqueue.capacity. Once this is set there is fixed size event Queue(LinkedBlockingQueue), which cannot be changed
at run time to accommodate some extra events before dropping event from the Queue
This Jira for adding a support of VariableLinkedBlockingQueue to tune the dropping of the events.
VariableLinkedBlockingQueue -> https://www.rabbitmq.com/releases/rabbitmq-java-client/v3.5.4/rabbitmq-java-client-javadoc-3.5.4/com/rabbitmq/client/impl/VariableLinkedBlockingQueue.html
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org