Skip to content

Conversation

@Yaminyam
Copy link
Member

@Yaminyam Yaminyam commented Jan 9, 2026

Reduced healthcheck interval and timeout, and increased retries for the MinIO service in both docker-compose.halfstack-ha.yml and docker-compose.halfstack-main.yml. This should improve responsiveness and reliability of health monitoring.

Reduced healthcheck interval and timeout, and increased retries for the MinIO service in both docker-compose.halfstack-ha.yml and docker-compose.halfstack-main.yml. This should improve responsiveness and reliability of health monitoring.
Copilot AI review requested due to automatic review settings January 9, 2026 02:52
@github-actions github-actions bot added the size:S 10~30 LoC label Jan 9, 2026
@Yaminyam Yaminyam added skip:changelog Make the action workflow to skip towncrier check and removed size:S 10~30 LoC labels Jan 9, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the MinIO healthcheck configuration in two Docker Compose files to improve health monitoring responsiveness. The changes reduce polling intervals and timeouts while increasing retry attempts to detect service health status more quickly.

Key changes:

  • Healthcheck interval reduced from 30s to 5s for faster detection
  • Timeout reduced from 20s to 3s for quicker failure identification
  • Retries increased from 3 to 10 to reduce false positives

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
docker-compose.halfstack-main.yml Updates MinIO healthcheck parameters to more aggressive polling settings
docker-compose.halfstack-ha.yml Updates MinIO healthcheck parameters to more aggressive polling settings (identical to main config)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +388 to +390
interval: 5s
timeout: 3s
retries: 10
Copy link

Copilot AI Jan 9, 2026

Choose a reason for hiding this comment

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

The reduced interval (5s) combined with increased retries (10) will cause health checks to run significantly more frequently, increasing CPU and network overhead. Each check spawns a curl process and makes an HTTP request. This 6x increase in check frequency may impact system resources, especially in resource-constrained environments. Consider whether this aggressive polling is necessary, or if a moderate interval like 10s or 15s would provide adequate responsiveness while reducing resource consumption.

Suggested change
interval: 5s
timeout: 3s
retries: 10
interval: 15s
timeout: 3s
retries: 5

Copilot uses AI. Check for mistakes.
Comment on lines +203 to +205
interval: 5s
timeout: 3s
retries: 10
Copy link

Copilot AI Jan 9, 2026

Choose a reason for hiding this comment

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

The timeout value of 3s is set at 60% of the interval (5s), which could lead to overlapping health checks if the MinIO service is slow to respond. Docker's best practice recommends keeping the timeout significantly lower than the interval to prevent health check processes from accumulating. Consider reducing the timeout to 2s or increasing the interval to ensure adequate separation between consecutive health checks.

Copilot uses AI. Check for mistakes.
timeout: 20s
retries: 3
interval: 5s
timeout: 3s
Copy link

Copilot AI Jan 9, 2026

Choose a reason for hiding this comment

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

The timeout value of 3s is set at 60% of the interval (5s), which could lead to overlapping health checks if the MinIO service is slow to respond. Docker's best practice recommends keeping the timeout significantly lower than the interval to prevent health check processes from accumulating. Consider reducing the timeout to 2s or increasing the interval to ensure adequate separation between consecutive health checks.

Suggested change
timeout: 3s
timeout: 2s

Copilot uses AI. Check for mistakes.
Comment on lines +203 to +205
interval: 5s
timeout: 3s
retries: 10
Copy link

Copilot AI Jan 9, 2026

Choose a reason for hiding this comment

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

The reduced interval (5s) combined with increased retries (10) will cause health checks to run significantly more frequently, increasing CPU and network overhead. Each check spawns a curl process and makes an HTTP request. This 6x increase in check frequency may impact system resources, especially in resource-constrained environments. Consider whether this aggressive polling is necessary, or if a moderate interval like 10s or 15s would provide adequate responsiveness while reducing resource consumption.

Suggested change
interval: 5s
timeout: 3s
retries: 10
interval: 15s
timeout: 3s
retries: 5

Copilot uses AI. Check for mistakes.
@HyeockJinKim HyeockJinKim added this pull request to the merge queue Jan 9, 2026
Merged via the queue into main with commit 197f889 Jan 9, 2026
42 of 43 checks passed
@HyeockJinKim HyeockJinKim deleted the chore/minio-healthcheck branch January 9, 2026 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip:changelog Make the action workflow to skip towncrier check

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants