idea is from this article How We Saved 70K Cores Across 30 Mission-Critical Services (Large-Scale, Semi-Automated Go GC Tuning @Uber)
just call NewTuner when initializing app :
func initProcess() {
var (
inCgroup = true
percent = 70
)
go NewTuner(inCgroup, percent)
}
more tests are needed