mirror of
https://github.com/status-im/go-watchdog.git
synced 2025-01-15 03:56:00 +00:00
add godocs link to README.
This commit is contained in:
parent
a23c2f6944
commit
2181a740fb
@ -2,6 +2,8 @@
|
||||
|
||||
> 🐺 A library to curb OOMs by running Go GC according to a user-defined policy.
|
||||
|
||||
[![GoDoc](https://img.shields.io/badge/godoc-reference-5272B4.svg?style=flat-square)](https://godoc.org/github.com/raulk/go-watchdog)
|
||||
|
||||
go-watchdog runs a singleton memory watchdog. It takes system and heap memory
|
||||
readings periodically, and feeds them to a user-defined policy to determine
|
||||
whether GC needs to run immediately.
|
||||
@ -10,7 +12,7 @@ This library ships with two policies out of the box:
|
||||
|
||||
* watermarks policy: runs GC at configured watermarks of system or heap memory
|
||||
utilisation.
|
||||
* adaptive: runs GC when the current usage surpasses a dynamically-set
|
||||
* adaptive policy: runs GC when the current usage surpasses a dynamically-set
|
||||
threshold.
|
||||
|
||||
You can easily build a custom policy tailored to the allocation patterns of your
|
||||
|
Loading…
x
Reference in New Issue
Block a user