19Serhii99 opened a new pull request, #38574:
URL: https://github.com/apache/spark/pull/38574

   
   ### What changes were proposed in this pull request?
   There's a problem with submitting spark jobs to K8s cluster: the library 
generates and reuses the same name for config maps (for drivers and executors). 
Ideally, for each job 2 config maps should created: for a driver and an 
executor. However, the library creates only one driver config map for all jobs 
(in some cases it generates only one executor map for all jobs). So, if I run 5 
jobs, then only one driver config map will be generated and used for every job. 
 During those runs we experience issues when deleting pods from the cluster: 
executors pods are endlessly created and immediately terminated overloading 
cluster resources.
   
   This problem occurs because of the **KubernetesClientUtils** class in which 
we have **configMapNameExecutor** and **configMapNameDriver** as constants. It 
seems to be incorrect and should be urgently fixed. I've prepared some changes 
for review to fix the issue (tested in the cluster of our project).
   
   
   ### Why are the changes needed?
   To make the spark submitter generate new names for driver and executor 
config maps to let jobs complete successfully, not overloading cluster 
resources.
   
   
   ### Does this PR introduce _any_ user-facing change?
   Executors pods should stop being generated and terminated endlessly.
   
   
   ### How was this patch tested?
   Modified the unit tests in the module. Tested with the unit tests and by 
submitting jobs to the K8S cluster of our project.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to