Skip to content

Commit

Permalink
watchdog: increase heapprof capture threshold to 90%.
Browse files Browse the repository at this point in the history
  • Loading branch information
raulk committed Jan 21, 2021
1 parent e5efe57 commit b9adf95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/modules/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func MemoryWatchdog(lr repo.LockedRepo, lc fx.Lifecycle, constraints system.Memo
// will be captured during life of this process.
watchdog.HeapProfileDir = filepath.Join(lr.Path(), "heapprof")
watchdog.HeapProfileMaxCaptures = 10
watchdog.HeapProfileThreshold = 0.1
watchdog.HeapProfileThreshold = 0.9
watchdog.Logger = logWatchdog

policy := watchdog.NewWatermarkPolicy(0.50, 0.60, 0.70, 0.85, 0.90, 0.925, 0.95)
Expand Down

0 comments on commit b9adf95

Please sign in to comment.