Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
PATToken string
APIHost string
APIPort int
Domain string
PublicHost string
CaddyAdminURL string
CaddyServerID string
DBPath string
DockerNetwork string
ToolboxBinaryPath string
ToolboxMountPath string
ToolboxPort int
IdleTimeoutMinutes int
ContainerPrivileged bool
ResourceLimitsOff bool
// Runtime is the host default container runtime for new sandboxes.
// Per-sandbox CreateSandboxRequest.Runtime overrides it. Allowed values
// are "docker" (default), "gvisor", or "kata"; validation lives in Load().
Runtime string
AutoReconcile bool
EnableCaddy bool
EnableNetworkRules bool
EnableEventMonitor bool
EnableSSHGateway bool
SSHListenAddr string
SSHHostKeyPath string
CredentialEncryptionKey string
CredentialEncryptionKeyPath string
MountsRootPath string
MountsCredentialsRuntimeDir string
MountWaitTimeout time.Duration
LogLevel string
ShutdownTimeout time.Duration
HTTPClientTimeout time.Duration
DockerRuntimeWaitTimeout time.Duration
ToolboxWaitTimeout time.Duration
ReconcileInterval time.Duration
// DestroyedRowTTL controls how long sandbox rows in the destroyed state
// are retained before the reconcile sweep deletes them. Zero (the
// default) disables row purging — destroyed rows live forever as an
// audit record. Operators that prefer a bounded history can set e.g.
// "720h" for 30 days. Only affects rows already in destroyed status;
// live sandboxes are never touched by this sweep.
DestroyedRowTTL time.Duration
UploadMaxBytes int64
// Admission control. Admission is purely resource-math: CPU/memory
// reservation ratios plus a live memory floor. There is no fixed sandbox
// count cap — the host runs as many sandboxes as the math allows.
CPUReservationRatio float64
MemoryReservationRatio float64
MemoryFloorRatio float64
// CPUOverProvisionFactor and MemoryOverProvisionFactor multiply the
// reservation budgets above. Docker --cpus is a CFS cap (not a hard
// reservation) and Linux lazy-allocates memory pages, so a host with
// mostly-idle sandboxes can safely accept far more reservations than its
// nominal capacity. The live MemoryFloorRatio check is the backstop that
// catches real pressure when reservations and reality diverge. 0 or <1
// is clamped to 1.0 (no overcommit) — operators that want strict packing
// should lower the reservation ratios instead.
CPUOverProvisionFactor float64
MemoryOverProvisionFactor float64
HostCPUCoresOverride int
HostMemoryMBOverride int
}
func (Config) DomainMode ¶
func (Config) IdleTimeout ¶
func (Config) ListenAddr ¶
Click to show internal directories.
Click to hide internal directories.