incusplacement

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 23, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package incusplacement renders the cluster-wide Incus placement policy for disposable CI workers. Keeping the scriptlet here makes placement reviewed, reproducible desired state instead of an untracked live-server setting.

Index

Constants

View Source
const ServerConfigKey = "instances.placement.scriptlet"

Variables

This section is empty.

Functions

func Render

func Render(cfg config.Config) (string, error)

Render returns a portable Incus Starlark placement scriptlet derived only from typed public platform policy. It uses best-fit decreasing placement: every candidate must first pass pressure, disk and hard-memory checks, then the worker is packed into the candidate with the least safe memory left.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL