This repository was archived by the owner on Jan 9, 2020. It is now read-only.

Description
This issue will summarize the various points of discussion being carried out in email threads and the SIG.
This is with respect to the Dynamic Allocation PR (#224):
Spark tries to scale up rather fast, and in an exponential fashion. If you see this section, Spark's behavior is evident; it does not wait for the executors to register before requesting double that number.
The time spent between individual attempts is governed by two properties: spark.dynamicAllocation.schedulerBacklogTimeout and spark.dynamicAllocation.sustainedSchedulerBacklogTimeout. The former is set to 1s by default. So far, our strategy was to match Spark's asking for extra executors with creating new pending executor pods. However, that gets out of hand very quickly and we run the risk of DOSing the cluster.
cc @ssuchter @apache-spark-on-k8s/contributors