Skip to content

container: add custom annotation to specify the scheduler#1164

Merged
flouthoc merged 2 commits intocontainers:mainfrom
giuseppe:set-scheduler
Mar 14, 2023
Merged

container: add custom annotation to specify the scheduler#1164
flouthoc merged 2 commits intocontainers:mainfrom
giuseppe:set-scheduler

Conversation

@giuseppe
Copy link
Member

add a new feature to the container runtime that allows users to set the scheduling policy of the container process.

The new feature is implemented as a custom annotation. To set the scheduling policy and priority, users can add a run.oci.scheduler annotation with a value in the format POLICY[#PRIORITY].

If no scheduling policy or priority is specified, the container process will use the current scheduling policy and priority.

Signed-off-by: Giuseppe Scrivano <[email protected]>
@giuseppe giuseppe marked this pull request as draft March 14, 2023 07:10
This commit adds a new feature to the container runtime that allows
users to set the scheduling policy of the container process.

The new feature is implemented as a custom annotation.  To set the
scheduling policy and priority, users can add a `run.oci.scheduler`
annotation with a value in the format POLICY[|OPTION][#PRIORITY].

If no scheduling policy or priority is specified, the container process
will use the current scheduling policy and priority.

Signed-off-by: Giuseppe Scrivano <[email protected]>
@giuseppe giuseppe marked this pull request as ready for review March 14, 2023 11:33
Copy link
Collaborator

@flouthoc flouthoc left a comment

Choose a reason for hiding this comment

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

LGTM

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.

2 participants