title: Apache Spark: Limit number of executors used by Spark App
body: <p>Is it possible to limit the number of executors used by an App on Spark? I am able to set the initial amount of executors with <code>spark.executor.instances</code> but later on in my app it seems that Spark will on its own add all available executors it can.</p>
  
  <p>This makes it to where no other jobs can run on the cluster at the same time.  Googling has led me to know solution but <code>spark.cores.max</code> which doesn't seem to work to limit the total number of executors... </p>