Documentation
¶
Overview ¶
Package chaos describes the failure scenarios the platform is measured against and the result record they produce.
Index ¶
Constants ¶
View Source
const ( KillContainer = "kill-container" DaemonUnreachable = "daemon-unreachable" ControlPlaneBounce = "control-plane-restart" DiskPressure = "disk-pressure" OOMDuringReadiness = "oom-during-readiness" IngressSteady = "ingress-steady" DeployLatency = "deploy-latency" RolloutUnderLoad = "rollout-under-traffic" IngressConcurrency = "ingress-concurrency" ReplicaFailover = "replica-failover" )
Scenario names, stable because they are stored and used as CLI arguments.
View Source
const ( StatusPassed = "passed" StatusFailed = "failed" StatusSkipped = "skipped" )
Result statuses.
Variables ¶
This section is empty.
Functions ¶
func MarkdownRow ¶
MarkdownRow renders one result as a docs/benchmarks.md table row.
func WriteTable ¶
WriteTable prints results for a human.
Types ¶
type Assertion ¶
type Assertion struct {
Name string `json:"name"`
Passed bool `json:"passed"`
Detail string `json:"detail,omitempty"`
}
Assertion is one checked expectation.
type Info ¶
type Info struct {
Name string `json:"name"`
Title string `json:"title"`
Expectation string `json:"expectation"`
}
Info is one scenario's catalog entry.
type Result ¶
type Result struct {
ID string `json:"id,omitempty"`
Scenario string `json:"scenario"`
Status string `json:"status"`
Summary string `json:"summary"`
RecoveryMS float64 `json:"recovery_ms"`
ErrorWindowMS float64 `json:"error_window_ms"`
Requests int `json:"requests"`
RequestErrors int `json:"request_errors"`
Assertions []Assertion `json:"assertions"`
Hardware string `json:"hardware,omitempty"`
RanAt time.Time `json:"ran_at"`
DurationMS float64 `json:"duration_ms"`
}
Result is one measured run of one scenario.
func Latest ¶
Latest keeps the newest result per scenario, in catalog order, and names the scenarios never run.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package live runs the chaos scenarios against real local Docker containers that carry a unique name prefix and are always removed afterwards.
|
Package live runs the chaos scenarios against real local Docker containers that carry a unique name prefix and are always removed afterwards. |
Click to show internal directories.
Click to hide internal directories.