Skip to content

easierway/gogctuner

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GOGCTuner [beta]

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

** This version is updated by Chao.Cai ([email protected]) to reduce the GC effect.

How to use this lib?

just call NewTuner when initializing app :

func initProcess() {
	var (
		inCgroup = false //true: inside docker; false: outsie docker (VM)
		// highPercent & lowPercent is to control GC tigger and scope
		highPercent = 70
		lowPercent = 30 
	)
	go NewTuner(inCgroup, highPercent, lowPercent)
}

Current Status

more tests are needed

About

auto adjust your GOGC value

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%