Skip to content

Commit

Permalink
alerts: clear node-restarted
Browse files Browse the repository at this point in the history
* after 10h (currently hardcoded)

Signed-off-by: Alex Aizman <[email protected]>
  • Loading branch information
alex-aizman committed Sep 24, 2024
1 parent 38c031c commit 16cc3ad
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions stats/target_stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -633,6 +633,11 @@ func (r *Trunner) log(now int64, uptime time.Duration, config *cmn.Config) {
nlog.Infoln(ln)
}

// clear 'node-restarted'
if uptime > 10*time.Hour {
clr |= cos.Restarted
}

// 7. separately, memory w/ set/clr flags cumulative
r._mem(r.t.PageMM(), set, clr)

Expand Down

0 comments on commit 16cc3ad

Please sign in to comment.