-
Notifications
You must be signed in to change notification settings - Fork 2
fix: add missing readiness probe #377
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughAdds a composable readiness probe helper and applies it to multiple deployments' API containers to configure readiness checks alongside existing liveness probes and ports. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (7)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
internal/resources/applications/probes.go (1)
27-37: Correct implementation of readiness probe.The probe configuration is correct:
TerminationGracePeriodSeconds: nilis appropriate for readiness probes (only liveness probes should trigger termination)- The timing parameters mirror the liveness probe configuration
Consider whether readiness and liveness probes should have different timing characteristics:
- Readiness probes typically tolerate shorter delays but may need different failure thresholds
InitialDelaySeconds: 1is aggressive and assumes very fast startup- You may want to tune these based on actual service startup times
📜 Review details
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Disabled knowledge base sources:
- Linear integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (2)
internal/resources/applications/probes.gointernal/resources/ledgers/deployments.go
🧰 Additional context used
🧬 Code graph analysis (1)
internal/resources/ledgers/deployments.go (1)
internal/resources/applications/probes.go (1)
DefaultReadiness(24-26)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
- GitHub Check: Tests
- GitHub Check: GoReleaser
🔇 Additional comments (2)
internal/resources/applications/probes.go (1)
24-26: LGTM! Clean implementation.The function correctly mirrors the pattern established by
DefaultLiveness, providing a consistent API for probe configuration.internal/resources/ledgers/deployments.go (1)
362-362: Excellent addition! This addresses the missing readiness probe.The readiness probe correctly uses the same port as the liveness probe and will ensure the API container doesn't receive traffic until it's ready to handle requests. This improves the reliability of the ledger deployment.
Add ReadinessProbe to Reconciliations, Orchestrations, Wallets, Auths, Webhooks, Stargates, and Payments API deployments for better traffic management during pod startup.
Sets up a readiness probe for the ledger: without it, rolling upgrades switch to the new version before it's actually ready.