question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Healthcheck is down when consumers are not running

See original GitHub issue

This is a recent enhancement described in https://github.com/spring-cloud/spring-cloud-stream-binder-kafka/issues/1059, more precisely this line of code

I understand the rationale behind it, but this wreaks a bit of havoc in our case : having the listeners not running is a valid case for us.

For example some of our microservices are configured with autoStartup:false and we decide when to start consuming messages based on other factors (the availability of external services needed to process the messages for example)

An another example : we may want to stop the consumption manually (via the POST /actuator/bindings endpoint) for a maintenance operation for example.

Our services are running on Kubernetes, and the liveness probe is now restarting the services in those nominal cases.

A configuration property indicating whether to check if the listener container is running may be a nice way to handle all cases.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
snussbaumercommented, Oct 5, 2021

Thank you guys for such a quick and relevant response !

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot failing health checks for Application Load ...
Target.FailedHealthChecks · Verify that your application is running. Use the service command to check the status of services on Linux targets.
Read more >
Client Healthcheck: Check for consumer/producer if broker is ...
For the consumer, look at the conditions under which a rebalance will happen (such as long processing times between polls), then you can...
Read more >
Healthcheck options? · Issue #236 · bbc/sqs-consumer - GitHub
We're not sure what the issue is, but the app itself (an express app running on fargate) has stayed up while the queue...
Read more >
Chapter 10. Monitoring: Houston, we have a problem
It tells you that the AMQP ping health check for that node is now reporting RabbitMQ to be up and running again. Excellent!...
Read more >
Pattern: Health Check API - Microservice Architecture
Sometimes a service instance can be incapable of handling requests yet still be running. For example, it might have ran out of database...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found