Skip to content
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

Update ProbeService.java ready only if running #133

Merged
merged 1 commit into from
Nov 27, 2023

Conversation

Jsebayhi
Copy link
Contributor

@Jsebayhi Jsebayhi commented Nov 23, 2023

In kubernetes, readiness are used to determine if a loadbalancer can forward request to a pod. If a pod declare that he is ready, he will receive traffic. (https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#define-readiness-probes)

The readiness for a kafka stream application is useful if we want to deploy a rest endpoint on top of it like an interactive query. (https://docs.confluent.io/platform/current/streams/developer-guide/interactive-queries.html) In such a case, we do not want a pod to pretend that it is ready if it is rebalancing, since it is potentially transferring state stores and therefore is in a potentially inconsistent state.

…ation is running

In kubernetes, readiness are used to determine if a loadbalancer can forward request to a pod.
If a pod declare that he is ready, he will receive traffic.

The readiness for a kafka stream application is useful if we want to deploy a rest endpoint on top of it like an interactive query. (https://docs.confluent.io/platform/current/streams/developer-guide/interactive-queries.html)
In such a case, we do not want a pod to pretend that it is ready if it is rebalancing, since it is potentially transferring state stores and therefore a potentially inconsistent state.
@Jsebayhi Jsebayhi changed the title Update ProbeService.java readiness to report ready only if the applic… Update ProbeService.java ready only if running Nov 23, 2023
@loicgreffier
Copy link
Collaborator

@Jsebayhi Good catch, thank you

@loicgreffier loicgreffier added the bug Something isn't working label Nov 27, 2023
@loicgreffier loicgreffier merged commit 898d21f into michelin:main Nov 27, 2023
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants