From 620062cca92b6241c15f96f86a9c6f0f7882ecca Mon Sep 17 00:00:00 2001 From: Ophestra Date: Thu, 12 Mar 2026 01:20:08 +0900 Subject: hst: expose scheduling priority This is useful when limits are configured to allow it. Signed-off-by: Ophestra --- hst/config.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'hst') diff --git a/hst/config.go b/hst/config.go index 5c020636..a21be790 100644 --- a/hst/config.go +++ b/hst/config.go @@ -104,9 +104,15 @@ type Config struct { // Init user namespace supplementary groups inherited by all container processes. Groups []string `json:"groups"` - // Scheduling policy to set for the container. The zero value retains the - // current scheduling policy. + // Scheduling policy to set for the container. + // + // The zero value retains the current scheduling policy. SchedPolicy std.SchedPolicy `json:"sched_policy,omitempty"` + // Scheduling priority to set for the container. + // + // The zero value implies the minimum priority of the current SchedPolicy. + // Has no effect if SchedPolicy is zero. + SchedPriority std.Int `json:"sched_priority,omitempty"` // High level configuration applied to the underlying [container]. Container *ContainerConfig `json:"container"` -- cgit v1.3.1