@@ -309,7 +309,7 @@ def gpu_pool(self, tmpdir, monkeypatch):
309309 'spark.executor.cores' : '4' ,
310310 'spark.executor.instances' : '2' ,
311311 'spark.kubernetes.executor.limit.cores' : '4' ,
312- 'spark.kubernetes.allocation.batch.size' : '2 ' ,
312+ 'spark.kubernetes.allocation.batch.size' : '512 ' ,
313313 'spark.scheduler.maxRegisteredResourcesWaitingTime' : '15min' ,
314314 },
315315 ),
@@ -327,7 +327,7 @@ def gpu_pool(self, tmpdir, monkeypatch):
327327 'spark.executor.cores' : '4' ,
328328 'spark.executor.instances' : '2' ,
329329 'spark.kubernetes.executor.limit.cores' : '4' ,
330- 'spark.kubernetes.allocation.batch.size' : '2 ' ,
330+ 'spark.kubernetes.allocation.batch.size' : '512 ' ,
331331 'spark.scheduler.maxRegisteredResourcesWaitingTime' : '15min' ,
332332 },
333333 ),
@@ -359,10 +359,33 @@ def gpu_pool(self, tmpdir, monkeypatch):
359359 'spark.executor.cores' : '4' ,
360360 'spark.executor.instances' : '32' ,
361361 'spark.kubernetes.executor.limit.cores' : '4' ,
362- 'spark.kubernetes.allocation.batch.size' : '32 ' ,
362+ 'spark.kubernetes.allocation.batch.size' : '512 ' ,
363363 'spark.scheduler.maxRegisteredResourcesWaitingTime' : '16min' ,
364364 },
365365 ),
366+ # k8s allocation batch size not specified
367+ (
368+ 'kubernetes' ,
369+ {
370+ 'spark.executor.cores' : '4' ,
371+ 'spark.cores.max' : '128' ,
372+ },
373+ {
374+ 'spark.kubernetes.allocation.batch.size' : '512' ,
375+ },
376+ ),
377+ # k8s allocation batch size specified
378+ (
379+ 'kubernetes' ,
380+ {
381+ 'spark.executor.cores' : '4' ,
382+ 'spark.cores.max' : '128' ,
383+ 'spark.kubernetes.allocation.batch.size' : '151' ,
384+ },
385+ {
386+ 'spark.kubernetes.allocation.batch.size' : '151' ,
387+ },
388+ ),
366389 # use default k8s settings
367390 (
368391 'kubernetes' ,
@@ -372,7 +395,7 @@ def gpu_pool(self, tmpdir, monkeypatch):
372395 'spark.executor.cores' : '2' ,
373396 'spark.executor.instances' : '2' ,
374397 'spark.kubernetes.executor.limit.cores' : '2' ,
375- 'spark.kubernetes.allocation.batch.size' : '2 ' ,
398+ 'spark.kubernetes.allocation.batch.size' : '512 ' ,
376399 'spark.scheduler.maxRegisteredResourcesWaitingTime' : '15min' ,
377400 },
378401 ),
@@ -407,7 +430,7 @@ def gpu_pool(self, tmpdir, monkeypatch):
407430 'spark.executor.instances' : '3' ,
408431 'spark.cores.max' : '12' ,
409432 'spark.kubernetes.executor.limit.cores' : '4' ,
410- 'spark.kubernetes.allocation.batch.size' : '3 ' ,
433+ 'spark.kubernetes.allocation.batch.size' : '512 ' ,
411434 'spark.scheduler.maxRegisteredResourcesWaitingTime' : '15min' ,
412435 'spark.executor.memoryOverhead' : '4096' ,
413436 'spark.mesos.executor.memoryOverhead' : '4096' ,
0 commit comments