Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions internal/health/checker.go
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,13 @@ func (c *Checker) checkAllEndpointsAndWait(ctx context.Context, isInitial bool)

// checkEndpoint checks the health of a single endpoint
func (c *Checker) checkEndpoint(ctx context.Context, chain, endpointID string, endpoint config.Endpoint) {
// Skip health checks for rate-limited endpoints to avoid burning their quota
rateLimitState, err := c.valkeyClient.GetRateLimitState(ctx, chain, endpointID)
if err == nil && rateLimitState.RateLimited {
log.Debug().Str("chain", chain).Str("endpoint_id", endpointID).Msg("Skipping health check for rate-limited endpoint")
return
}

status := store.NewEndpointStatus()
status.LastHealthCheck = time.Now()

Expand Down
Loading