Skip to content
This repository has been archived by the owner on Jan 9, 2020. It is now read-only.

Support specify CPU cores and Memory restricts for driver #340

Merged

Conversation

duyanghao
Copy link

Signed-off-by: duyanghao [email protected]

What changes were proposed in this pull request?

Support specify CPU cores and Memory restricts for driver:
support spark driver parameters:spark.driver.memory and spark.driver.cores

How was this patch tested?

Manual tests were successful.Example is as follows:

kubectl describe pods/spark-driver:

Containers:
  spark-kubernetes-driver:
    Container ID:	docker://08f343477affe77690ba0aa43deabc0adaaa0be57b795a7f75378176c431883b
    Image:		xxx/xxx/spark-driver-app:v0.2-test5
    Image ID:		docker://sha256:4200b209ad2d1c604e18f14b967592b25c2063d21cea637a77b971435ff38909
    Port:		
    Limits:
      cpu:	2
      memory:	3456M
    Requests:
      cpu:		2
      memory:		3072M

submit command:

--conf spark.driver.memory=3G
--conf spark.driver.cores=2

@foxish
Copy link
Member

foxish commented Jun 8, 2017

This LGTM.

@tnachen
Copy link

tnachen commented Jun 8, 2017

LG too

@foxish foxish merged commit 0dd146c into apache-spark-on-k8s:branch-2.1-kubernetes Jun 8, 2017
@foxish
Copy link
Member

foxish commented Jun 8, 2017

Thanks @duyanghao

@ash211
Copy link

ash211 commented Jun 8, 2017

Thanks for the PR @duyanghao !

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants