Documentation
¶
Overview ¶
Package pressuregate turns local Linux PSI and OOM observations into a bounded, hysteretic Incus cluster-member admission signal.
Index ¶
Constants ¶
View Source
const ( SchemaVersion = 1 StateOpen = "open" StateClosed = "closed" MetadataSchema = "user.gha_pressure.schema" MetadataState = "user.gha_pressure.state" MetadataReason = "user.gha_pressure.reason" MetadataObservedAt = "user.gha_pressure.observed_at" MetadataStateSince = "user.gha_pressure.state_since" MetadataCPUSome = "user.gha_pressure.cpu_some_avg10" MetadataMemoryFull = "user.gha_pressure.memory_full_avg10" MetadataIOFull = "user.gha_pressure.io_full_avg10" MetadataOOMKills = "user.gha_pressure.oom_kills_total" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Policy ¶
type Policy struct {
Required bool `json:"required" yaml:"required"`
StaleAfterSeconds int `json:"stale_after_seconds" yaml:"stale_after_seconds"`
HeartbeatSeconds int `json:"heartbeat_seconds" yaml:"heartbeat_seconds"`
MinimumClosedSeconds int `json:"minimum_closed_seconds" yaml:"minimum_closed_seconds"`
CPUSomeClose float64 `json:"cpu_some_close" yaml:"cpu_some_close"`
CPUSomeReopen float64 `json:"cpu_some_reopen" yaml:"cpu_some_reopen"`
MemoryFullClose float64 `json:"memory_full_close" yaml:"memory_full_close"`
MemoryFullReopen float64 `json:"memory_full_reopen" yaml:"memory_full_reopen"`
IOFullClose float64 `json:"io_full_close" yaml:"io_full_close"`
IOFullReopen float64 `json:"io_full_reopen" yaml:"io_full_reopen"`
MaximumRecentOOMKills uint64 `json:"maximum_recent_oom_kills" yaml:"maximum_recent_oom_kills"`
}
type Sample ¶
Click to show internal directories.
Click to hide internal directories.