aboutsummaryrefslogtreecommitdiffhomepage
path: root/hst
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-03-12 01:20:08 +0900
committerOphestra <cat@gensokyo.uk>2026-03-12 02:15:14 +0900
commit620062cca92b6241c15f96f86a9c6f0f7882ecca (patch)
tree400b5e46d0166d954373483fd948055d6f807cac /hst
parent196b200d0f19c41730db439c62db9b39e424f21f (diff)
hst: expose scheduling priority
This is useful when limits are configured to allow it. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'hst')
-rw-r--r--hst/config.go10
1 files changed, 8 insertions, 2 deletions
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"`