mirror of
https://github.com/status-im/go-watchdog.git
synced 2025-01-14 19:44:25 +00:00
4558d98653
This commit introduces a major rewrite of go-watchdog. * HeapDriven and SystemDriven are now distinct run modes. * WIP ProcessDriven that uses cgroups. * Policies are now stateless, pure and greatly simplified. * Policies now return the next utilization at which GC should run. The watchdog enforces that value differently depending on the run mode. * The heap-driven run mode adjusts GOGC dynamically. This places the responsibility on the Go runtime to honour the trigger point, and results in more robust logic that is not vulnerable to very quick bursts within sampling periods. * The heap-driven run mode is no longer polling (interval-driven). Instead, it relies entirely on GC signals. * The Silence and Emergency features of the watermark policy have been removed. If utilization is above the last watermark, the policy will request immediate GC. * Races removed.
13 lines
334 B
Modula-2
13 lines
334 B
Modula-2
module github.com/raulk/go-watchdog
|
|
|
|
go 1.15
|
|
|
|
require (
|
|
github.com/containerd/cgroups v0.0.0-20201119153540-4cbc285b3327
|
|
github.com/elastic/gosigar v0.12.0
|
|
github.com/kr/pretty v0.1.0 // indirect
|
|
github.com/raulk/clock v1.1.0
|
|
github.com/stretchr/testify v1.4.0
|
|
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect
|
|
)
|