Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Improve the Kubernetes Resource handling #3664

Merged
merged 7 commits into from
Jan 18, 2021

Conversation

nicknezis
Copy link
Contributor

The previous Heron Kubernetes Scheduler calculated a homogenous PackingPlan and used the resulting ScheduledResource which had the "max" cpu and memory. The RequiredResource was never used. This Pull Request updates the logic in the Heron Kubernetes Scheduler to use both sets of Resource objects. The RequiredResource will be used as the V1ResourceRequirements Request and the ScheduledResource will continue to be set as the V1ResourceRequirements Limit.

Copy link
Contributor

@nwangtw nwangtw left a comment

Choose a reason for hiding this comment

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

Container resources and max resources are a bit messy in Heron, especially in the schedulers.

@nicknezis nicknezis marked this pull request as draft January 16, 2021 20:47
@nicknezis nicknezis marked this pull request as ready for review January 18, 2021 01:05
@nwangtw
Copy link
Contributor

nwangtw commented Jan 18, 2021

lgtm.

@nicknezis nicknezis merged commit 1a0d198 into apache:master Jan 18, 2021
@nicknezis nicknezis deleted the nicknezis/k8s-resource-limit-fix branch January 18, 2021 17:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants