Skip to content
This repository was archived by the owner on Mar 20, 2026. It is now read-only.

Adding 1 second delay between pod health checks requeue - #2163

Merged
pjuarezd merged 1 commit into
minio:masterfrom
pjuarezd:health-chech-reqeue-delayed-1-second
Jun 13, 2024
Merged

pjuarezd merged 1 commit into
minio:masterfrom
pjuarezd:health-chech-reqeue-delayed-1-second

Conversation

@pjuarezd

@pjuarezd pjuarezd commented Jun 13, 2024 •

Copy link
Copy Markdown
Member

Right now is running too often causing a lot of logs in Operator too quick, usually MinIO will take some seconds to restart.

Operator showing the following error tens of time per second

I0613 16:45:56.643423       1 monitoring.go:123] 'tenant-1/myminio' Failed to get cluster health: Get "https://minio.tenant-1.svc.cluster.local/minio/health/cluster": dial tcp 10.96.194.110:443: i/o timeout

Right now is running too often causing a lot of logs in Operator, usually MinIO will take some seconds to restart.

Signed-off-by: pjuarezd <pjuarezd@users.noreply.github.com>
@pjuarezd
pjuarezd requested a review from cesnietor June 13, 2024 01:58
@pjuarezd pjuarezd self-assigned this Jun 13, 2024

@shtripat shtripat left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@ramondeklein ramondeklein left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alternative options (not sure if that would be better):

  • Use exponential back-off
  • Reduce logging after a while

@pjuarezd

Copy link
Copy Markdown
Member Author

Alternative options (not sure if that would be better):

  • Use exponential back-off
  • Reduce logging after a while

this queue already have a rate limiter

healthCheckQueue: queue.NewRateLimitingQueueWithConfig(MinIOControllerRateLimiter(), queue.RateLimitingQueueConfig{Name: "TenantsHealth"}),

func MinIOControllerRateLimiter() queue.RateLimiter {
return queue.NewMaxOfRateLimiter(
queue.NewItemExponentialFailureRateLimiter(5*time.Second, 60*time.Second),
// 10 qps, 100 bucket size. This is only for retry speed and its only the overall factor (not per item)
&queue.BucketRateLimiter{Limiter: rate.NewLimiter(rate.Limit(10), 100)},
)
}

@pjuarezd
pjuarezd merged commit cabe56d into minio:master Jun 13, 2024
@pjuarezd
pjuarezd deleted the health-chech-reqeue-delayed-1-second branch June 13, 2024 16:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants