Skip to content

Commit f588537

Browse files
committed
fix: remove healthchecks for healthy nodes
1 parent d793d43 commit f588537

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/resty/rediscluster.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ local function health_check_timer(premature)
7272
end
7373
-- Update health status based on check
7474
if ok then
75-
health_dict:set(key, 0, 0) -- Healthy: reset failures, no TTL
75+
health_dict:delete(key)
7676
ngx.log(ngx.WARN, "health check success for: ", ip, ":", port)
7777
else
7878
local failures = health_dict:get(key) or 0

0 commit comments

Comments
 (0)