From 6f781c5e7aa9c2d470c99302583fe8ce1e0d9e80 Mon Sep 17 00:00:00 2001 From: Anis Elleuch Date: Wed, 6 Jan 2021 22:29:50 +0100 Subject: [PATCH] heal: Reduce whitespace ticker to 5 seconds (#11234) 30 seconds white spaces is long for some setups which time out when no read activity in short time, reduce the subnet health white space ticker to 5 seconds, since it has no cost at all. --- cmd/admin-handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/admin-handlers.go b/cmd/admin-handlers.go index 2ea8d54ef..486a87d72 100644 --- a/cmd/admin-handlers.go +++ b/cmd/admin-handlers.go @@ -1412,7 +1412,7 @@ func (a adminAPIHandlers) HealthInfoHandler(w http.ResponseWriter, r *http.Reque }() - ticker := time.NewTicker(30 * time.Second) + ticker := time.NewTicker(5 * time.Second) defer ticker.Stop() for {