Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add resource limits when providing a spark cluster to Openshift #289

Open
wolli2710 opened this issue Jun 26, 2019 · 3 comments
Open

Add resource limits when providing a spark cluster to Openshift #289

wolli2710 opened this issue Jun 26, 2019 · 3 comments

Comments

@wolli2710
Copy link

When I create a new spark cluster the resource limits for the master and the worker nodes are not set by default.
How is the flow for creating the spark cluster out of oshinko-webui or tutorial-sparkpi-python-flask and where can I set the resource limits for the pod?

@elmiko
Copy link
Contributor

elmiko commented Jun 27, 2019

hi @wolli2710 , thanks for opening this issue.

currently, i do not think there is a way to specify the resource limits for the pods deployed by the oshinko-s2i. i do have a couple thoughts though.

  1. if we added a variable that you could specify during deployment of the s2i, would that be helpful?
    i'm thinking something like this:
oc new-app --template oshinko-python-spark-build-dc  \
>     -p APPLICATION_NAME=sparkpi \
>     -p GIT_URI=https://github.com/radanalyticsio/tutorial-sparkpi-python-flask.git
>     -p POD_MEMORY=1024
  1. you might want to check out the spark-operator project. it is an operator that can perform many similar functions to the oshinko tooling and it does have options for resource limit specification.

@wolli2710
Copy link
Author

@elmiko thanks for the reply, I think that the spark-operator project is the way to go. thx!

@elmiko
Copy link
Contributor

elmiko commented Jul 22, 2019

np, good luck @wolli2710

i am going to keep this issue open as i feel it's relevant to the project.

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

No branches or pull requests

2 participants