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 preemptive param in session to give pod a good chance of being sc… #192

Merged
merged 4 commits into from
Mar 15, 2021

Conversation

lidongze0629
Copy link
Collaborator

…heduled.

What do these changes do?

This PR adds a new param named preemptive in session to give the pod a good chance of being scheduled.
preemptive (bool, optional):
If True, GraphScope instance will treat resource params (e.g. k8s_coordinator_cpu) as limits and provide the minimum available value as requests, but this will make pod has a Burstable QOS, which can be preempted by other pods with high QOS. Otherwise, it will set both requests and limits with the same value.

@lidongze0629 lidongze0629 requested a review from sighingnow March 15, 2021 08:43
Copy link
Collaborator

@sighingnow sighingnow left a comment

Choose a reason for hiding this comment

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

LGTM.

@sighingnow sighingnow requested review from yecol and siyuan0322 March 15, 2021 08:52
@lidongze0629 lidongze0629 merged commit b76b193 into alibaba:main Mar 15, 2021
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.

3 participants