mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2026-03-11 02:27:30 +01:00
Add note on dynamic memory management for restarts
This commit is contained in:
@@ -395,6 +395,7 @@ func runServer(ctx context.Context) error {
|
||||
|
||||
// Set GC percent if not configured
|
||||
if os.Getenv(envGOGC) == "" {
|
||||
// trigger GC when heap grows 15% above the previous live set
|
||||
debug.SetGCPercent(15)
|
||||
}
|
||||
runtime.SystemdNotify(true, "running")
|
||||
|
||||
Reference in New Issue
Block a user