Skip to content

Implement Readiness service and probes #149

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

Merged
merged 3 commits into from
Aug 27, 2024
Merged

Implement Readiness service and probes #149

merged 3 commits into from
Aug 27, 2024

Conversation

richard-axual
Copy link
Contributor

A Readiness service has been added to the KSML service, reachable on path /ready
The helm charts have been updated with default readiness, liveness and startup probes.

The KSML Runner has been updated to start the RestServer as soon as possible to provide the services.
The existing services has been updated to provide Service Unavailable (503) statuses during startup.
Queries to a non existent state store will result in a Not Found (404) status.

The RestServer now handles WebApplicationExceptions explicitly, returning the corresponding status codes

The StreamsQuerier interface has been renamed KsmlQuerier since it also supplies other information.

Removed the StoreQuerier class, as it was not used by any component.

Refactored RestServer to start as quick as possible to provide information.
Update StreamsQuerier to KsmlQuerier to reflect it able to query multiple Ksml info
Update WebService error handling, throwing WebApplicationExceptions like NotFoundException (404) or ServiceUnavailableException(503) returns those error codes
Updated store query implementation to return 503 codes if KSML hasn't started yet and 404 if an unknown store name was accessed

Removed StoreQuerier.java, as it was not used by any component.
Fix issue that KafkaProducerRunner remained running with no scheduled items
Fix issue that KSMLRunner did not stop when both Producer and Streams where done or failed
@richard-axual richard-axual merged commit ac05ad8 into Axual:main Aug 27, 2024
1 check passed
@richard-axual richard-axual deleted the add-readiness-and-status-services branch August 27, 2024 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants