-
Notifications
You must be signed in to change notification settings - Fork 64
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
No ability to specify a PDB? #1023
Comments
Great idea, I will finish it. |
Hi @roy-work the EMQX operator 2.2.18 has been released, could you please try it? |
@Rory-Z Thanks; I'll ask our devs if this is something they can do. I see you added a PDB with |
Describe the bug
The
EMQX
custom resource doesn't seem to have a means to specify a PDB, and none is otherwise created.To Reproduce
Steps to reproduce the behavior:
EMQX
resource. (An EMQX "cluster"?)Expected behavior
No PDB is created.
"No PDB" is Kubernetes means the pods are freely disruptable; i.e. nothing prevent Kubernetes from simply evicting all of the pods, together, at the same time. This is then an outage, of course.
A PDB specifies how the pods can be disrupted; the correct values usually depend on the nature of the pods, and how they interact. Some things (e.g., APIs) just need one pod up, some things (e.g., databases) need something like a quorum.
For EMQX, the "right" values probably depend on how it distributes data amongst its pods. I've not figured that out. But, e.g., a Raft system might require, say,
maxAvailable: 51%
, as it needs to maintain quorum.Because disruption is a result of how the underlying application works, I'd lean towards having a reasonable default first; there shouldn't be a need to override this¹, since this is a property of how the application works, and not so much operator preference.
Environment details::
Anything else we need to know?:
Just an infra eng trying to learn this. The applications devs that deployed EMQX seem to believe that it goes down/causes outages, in particular, when the underlying machines are changing in some manner. Best I can tell, this is partly due to not have a PDB.
¹But for pragmatic practical reasons, it can sometimes be useful to do so.
The text was updated successfully, but these errors were encountered: