Commit Graph

9 Commits

Author SHA1 Message Date
Raúl Kripalani a4d30cafdc add log warning. 2020-12-09 14:56:03 +00:00
Raúl Kripalani fcf668bfe2 nit fixing. 2020-12-09 14:54:56 +00:00
Raúl Kripalani b35cdf0c7d replace atomic state guarding with lock. 2020-12-09 14:54:09 +00:00
Raúl Kripalani 4558d98653 major rewrite of go-watchdog.
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.
2020-12-08 14:19:04 +00:00
Raúl Kripalani ffbfd5e37a improve logging. 2020-12-02 16:33:00 +00:00
Raúl Kripalani 2181a740fb add godocs link to README. 2020-12-02 00:14:25 +00:00
Raúl Kripalani a23c2f6944 fix README link. 2020-12-02 00:12:08 +00:00
Raúl Kripalani 0edb313e96 misc fixes to docs; import path. 2020-12-02 00:10:21 +00:00
Raúl Kripalani e2e9d96ec7 initial commit. 2020-12-02 00:03:20 +00:00