Skip to content

创建session修改参数报错 #344

Answered by lidongze0629
dakeleblack asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, @bitao666, thank you for posting this question in the discussions, and welcome to the GraphScope discussions.

From your log, the exception resources.requests: Invalid value: "4Gi": must be less than or equal to memory limit'. occurs when resource limits less than requests.

In your current version of GraphScope, the coordinator memory requests defaults to '4Gi'. So your parameters k8s_coordinator_mem="2Gi" cannot pass the API check. You can solve this problem by passing preemptive=False together.

graphscope.set_option(k8s_coordinator_mem="2Gi", preemptive=False)
s=graphscope.session()

From GraphScope Doc

preemptive (bool, optional) – If True, GraphScope instance will treat resource p…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dakeleblack
Comment options

Answer selected by yecol
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants