-
Notifications
You must be signed in to change notification settings - Fork 24
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
feat: add resource configuration for job #70
Conversation
odpf/optimus/runtime_service.proto
Outdated
message JobSpecResourceConfig { | ||
string cpu = 1; | ||
string memory = 2; | ||
} | ||
|
||
message JobSpecResource { | ||
JobSpecResourceConfig request = 1; | ||
JobSpecResourceConfig limit = 2; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we prefix them with Metadata
? Resource
is a term already used for something else in Optimus. It doesn't directly convey the message these are execution time resource limits/requests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh right. Then, are JobSpecMetadataResource
and JobSpecMetadataResourceConfig
good enough?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah sounds good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's updated as suggested
Context
There's a requirement to allow resource configuration in job for Optimus. It is mentioned in Optimus issue.
Changes
The change is only to add additional message, using it inside the job spec.