[etcd] Increase probe thresholds for better recovery#1874
Conversation
Increase startup probe failureThreshold to 300 (25 minutes) to allow etcd members more time to sync with the cluster after restart or recovery. This prevents pods from being killed during initial synchronization when VPA assigns minimal resources. Also increase liveness probe failureThreshold to 10 to reduce unnecessary restarts during temporary network issues. Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
|
Note Other AI code review bot(s) detectedCodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review. 📝 WalkthroughWalkthroughKubernetes probes (startup, liveness, readiness) are added to the etcd container configuration in the etcd-cluster.yaml template, enabling automated health checks with specified failure thresholds and check intervals. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 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 |
Summary of ChangesHello @kvaps, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request enhances the resilience and stability of etcd clusters by adjusting the probe thresholds within the Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request aims to improve etcd cluster recovery by increasing the probe thresholds. The new values for startupProbe, livenessProbe, and readinessProbe seem reasonable and well-justified for preventing premature pod termination. However, I've identified a critical issue where the probe definitions are incomplete, lacking the required probe handlers (exec, httpGet, etc.). This will likely cause pod creation to fail. My review includes a suggestion to add the necessary handlers to ensure the configuration is valid.
|
Successfully created backport PR for |
What this PR does
Increases etcd probe thresholds to allow more time for cluster synchronization after pod restarts. This addresses issues where etcd members were being killed by startup probes before they could fully sync with the cluster, especially when VPA assigns minimal resources.
Changes:
startupProbe.failureThreshold: 3 → 300 (allows 25 minutes for initial sync)livenessProbe.failureThreshold: default → 10 (reduces unnecessary restarts)readinessProbe.failureThreshold: default → 3Release note
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.