An open API service providing repository metadata for many open source software ecosystems.

Package Usage: go: github.com/raulk/go-watchdog

Package watchdog runs a singleton memory watchdog in the process, which watches memory utilization and forces Go GC in accordance with a user-defined policy. There three kinds of watchdogs: The watchdog's behaviour is controlled by the policy, a pluggable function that determines when to trigger GC based on the current utilization. This library ships with two policies: You can easily write a custom policy tailored to the allocation patterns of your program. The recommended way to set up the watchdog is as follows, in descending order of precedence. This logic assumes that the library supports setting a heap limit through an environment variable (e.g. MYAPP_HEAP_MAX) or config key.
6 versions
Latest release: about 3 years ago
1,062 dependent packages

View more package details: https://packages.ecosystem.code.gouv.fr/registries/proxy.golang.org/packages/github.com/raulk/go-watchdog

Dependent Repos 0