Skip to content

Health-checks #71

Open
Open
@JorgenRingen

Description

@JorgenRingen

Kafka-streams exposes a method for retrieving the current state: org.apache.kafka.streams.KafkaStreams#state.
We use this for implementing health-checks. If state is in created, rebalancing or running the application is considered healthy. Otherwise the app is considered unhealthy and the application would normally be stopped/restarted.

In PC I've implemented a health-check querying io.confluent.parallelconsumer.ParallelEoSStreamProcessor#isClosedOrFailed == false.

Would a different, more "healthcheck-like" abstraction be smart? Perhaps on the io.confluent.parallelconsumer.ParallelConsumer interface? The current method requires a cast to ParallelEoSStreamProcessor.

(not critical!)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions