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

[Merged by Bors] - fix resource limit usage #166

Closed
wants to merge 22 commits into from
Closed

Conversation

adwk67
Copy link
Member

@adwk67 adwk67 commented Oct 19, 2022

Description

  • Restores setting # of executor instances
  • Define spark conf settings as well as defining the pod template
    • set kuberenetes.driver/executor.* from CRD directly
    • use cpu limit to set driver/executor.cores
  • Integration test to test/illustrate
    • just resource limits
    • just spark.conf settings
    • just defaults

Fixes #161.
Jenkins: https://ci.stackable.tech/view/02%20Operator%20Tests%20(custom)/job/spark-k8s-operator-it-custom/41/

Review Checklist

  • Code contains useful comments
  • CRD change approved (or not applicable)
  • (Integration-)Test cases added (or not applicable)
  • Documentation added (or not applicable)
  • Changelog updated (or not applicable)
  • Cargo.toml only contains references to git tags (not specific commits or branches)
  • Helm chart can be installed and deployed operator works (or not applicable)

Once the review is done, comment bors r+ (or bors merge) to merge. Further information

@adwk67 adwk67 marked this pull request as ready for review October 19, 2022 13:39
Copy link
Member

@sbernauer sbernauer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code LGTM overall
I'm going to give it a try by using it within the warehouse demo

rust/crd/src/lib.rs Show resolved Hide resolved
rust/crd/src/lib.rs Outdated Show resolved Hide resolved
rust/crd/src/lib.rs Outdated Show resolved Hide resolved
rust/crd/src/lib.rs Outdated Show resolved Hide resolved
rust/crd/src/lib.rs Outdated Show resolved Hide resolved
rust/crd/src/lib.rs Outdated Show resolved Hide resolved
rust/crd/src/lib.rs Show resolved Hide resolved
adwk67 and others added 9 commits October 20, 2022 09:21
Co-authored-by: Sebastian Bernauer <sebastian.bernauer@stackable.de>
Co-authored-by: Sebastian Bernauer <sebastian.bernauer@stackable.de>
Co-authored-by: Sebastian Bernauer <sebastian.bernauer@stackable.de>
Co-authored-by: Sebastian Bernauer <sebastian.bernauer@stackable.de>
Co-authored-by: Sebastian Bernauer <sebastian.bernauer@stackable.de>
Co-authored-by: Sebastian Bernauer <sebastian.bernauer@stackable.de>
@sbernauer
Copy link
Member

Tests it out and seemed to work fine 👍

Copy link
Member

@sbernauer sbernauer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM % remaining two comments. worked fine 👍

rust/crd/src/lib.rs Outdated Show resolved Hide resolved
Co-authored-by: Sebastian Bernauer <sebastian.bernauer@stackable.de>
@adwk67
Copy link
Member Author

adwk67 commented Oct 20, 2022

bors merge

bors bot pushed a commit that referenced this pull request Oct 20, 2022
# Description

- Restores setting # of executor instances
- Define spark conf settings as well as defining the pod template
  - set kuberenetes.driver/executor.* from CRD directly
  - use cpu limit to set driver/executor.cores
- Integration test to test/illustrate
  - just resource limits
  - just spark.conf settings
  - just defaults
  
Fixes #161.
Jenkins: https://ci.stackable.tech/view/02%20Operator%20Tests%20(custom)/job/spark-k8s-operator-it-custom/41/
@bors
Copy link

bors bot commented Oct 20, 2022

Pull request successfully merged into main.

Build succeeded:

@bors bors bot changed the title fix resource limit usage [Merged by Bors] - fix resource limit usage Oct 20, 2022
@bors bors bot closed this Oct 20, 2022
@bors bors bot deleted the 161_fix_resources branch October 20, 2022 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compute resources and number of executors are not set
2 participants