-
-
Notifications
You must be signed in to change notification settings - Fork 232
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
Using a readiness probe halts operator progress #1016
Comments
For example, a simple readiness probe to ensure pods only roll when it is safe to do so:
But this will fail until the cluster is actually created and it will fail on nodes being added/removed from the cluster, making it so the operator halts any progress. |
Currently, we utilize this state from
|
Unfortunately without a readiness probe, the StatefulSet has no protections against rolling the pods too fast, so we also need readiness probes (unless the operator can somehow add a feature to control how fast the pods roll in a RollingUpdate) |
I think #923 is somewhat related, although that talks about solving this in the operator itself versus just properly allowing something like a readiness probe to be used |
There is also another issue that occurs when you don't use readiness probes, scaling up the cluster causes requests to be sent to the new leader/follower pods even before they have joined the cluster, causing request errors. |
@drivebyer Still working on actually testing it, but curious what you think of #1038 as a potential way to fix this |
I will look into this by this weekend. |
It seems like we check the ready state of all of the replicas here:
redis-operator/k8sutils/statefulset.go
Line 77 in 08eb5eb
When you use a custom readiness probe though that checks cluster status, the operator can get into a stuck state during bootstrapping and scale in/out since the readiness probe will be failing until the operator actually takes action to create the cluster or add/remove nodes from the cluster.
Is there any way we can base the operator off of the liveness probes, or maybe only take into account readiness when we expect the cluster to be in a fully ready state?
The text was updated successfully, but these errors were encountered: