Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Network NetworkConfig `yaml:"network"`
Worker WorkerConfig `yaml:"worker"`
Resources ResourceConfig `yaml:"resources"`
Telemetry TelemetryConfig `yaml:"telemetry"`
}
Config is the strict daemon bootstrap contract. The daemon fails fast if any required field is missing or malformed.
type NetworkConfig ¶
type ResourceConfig ¶
type ResourceConfig struct {
MinWorkers int `yaml:"min_workers"`
MaxWorkers int `yaml:"max_workers"`
MemoryLimitMB int64 `yaml:"memory_limit_mb"`
CPULimitCores float64 `yaml:"cpu_limit_cores"`
PIDsLimit int64 `yaml:"pids_limit"`
TTL string `yaml:"ttl"`
HealthInterval string `yaml:"health_interval"`
WorkerReuse bool `yaml:"worker_reuse"`
// InsecureSandbox enables reduced sandboxing for local development.
// This should not be enabled in production.
InsecureSandbox bool `yaml:"insecure_sandbox"`
}
func (ResourceConfig) HealthIntervalDuration ¶
func (r ResourceConfig) HealthIntervalDuration() time.Duration
func (ResourceConfig) MemoryLimitBytes ¶
func (r ResourceConfig) MemoryLimitBytes() int64
func (ResourceConfig) TTLDuration ¶
func (r ResourceConfig) TTLDuration() time.Duration
type TelemetryConfig ¶
type WorkerConfig ¶
type WorkerConfig struct {
Command []string `yaml:"command"`
Env []string `yaml:"env"`
HealthPath string `yaml:"health_path"`
StartTimeout string `yaml:"start_timeout"`
StartHealthCheckDelay string `yaml:"start_health_check_delay"`
}
func (WorkerConfig) StartHealthCheckDelayDuration ¶
func (w WorkerConfig) StartHealthCheckDelayDuration() time.Duration
func (WorkerConfig) StartTimeoutDuration ¶
func (w WorkerConfig) StartTimeoutDuration() time.Duration
Click to show internal directories.
Click to hide internal directories.