bineyond / gogctuner

auto adjust your GOGC value

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GOGCTuner

idea is from this article How We Saved 70K Cores Across 30 Mission-Critical Services (Large-Scale, Semi-Automated Go GC Tuning @Uber)

How to use this lib?

just call NewTuner when initializing app :

func initProcess() {
	var (
		inCgroup = true
		percent = 70
	)
	go NewTuner(inCgroup, percent)
}

Current Status

Go 1.19 adds a soft memory limit which changes its pacer algorithm and scvg behavior, we'll see what go team will provide in the new version. Maybe this lib can be deprecated in Go 1.19.

About

auto adjust your GOGC value

License:Other


Languages

Language:Go 100.0%