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.

Stroom proxy `/healthcheck` reports unhealthy if feed status can't be queried

See original GitHub issue

Background

If a Stroom proxy cannot query the feed status from the target Stroom cluster (for instance, Stroom is down or the API key isn’t valid), /healthcheck reports as unhealthy (HTTP status code > 200). In Kubernetes deployments this will usually result in the proxy container being killed, as status codes >= 400 are considered unhealthy, which causes readiness and liveness probes to fail.

The intended behaviour for a store proxy is for it to be able to store events for a while, regardless of of the state of the target Stroom cluster. This implies that /healthcheck should report healthy if the proxy is configured in store mode and is capable of receiving and storing data.

Recommended change

The proxy healthcheck logic should be amended to report status 200 (healthy) if store mode is enabled and optionally, check for the ability to write to the local store.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
p-kimberleycommented, May 4, 2022

@at055612 Thanks, this is working as expected. FYI healthcheck URI I used is: /proxyAdmin/filteredhealthcheck?deny=stroom.proxy.app.forwarder.ForwarderDestinationsImpl,stroom.proxy.app.handler.RemoteFeedStatusService.

I’m now able to take Stroom down for maintenance and have the proxy remain active, receiving and buffering events.

0reactions
at055612commented, May 4, 2022

Fixed in > 7.0-beta.200

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add health check for proxy feed status url · Issue #1140 - GitHub
If there is a feed status url then we should add a health check to check the url can be reached. Similar to...
Read more >
PoC-in-GitHub: PoC auto collect from GitHub. ⚠️ Be ... - Gitee
The vSphere Client (HTML5) contains a remote code execution vulnerability due to lack of input validation in the Virtual SAN Health Check plug-in...
Read more >
Untitled
X factor pre show stream, Book illustration jobs sydney, Ambient instrumental music mp3! Mens bad biologist costume, Meteo st baudelle, Green oakblue, ...
Read more >
imaging accurately predict: Topics by Science.gov
Study 5 used 2 million emotion reports on the Experience Project to replicate both of these findings: again people reported accurate models of...
Read more >
VMware Tanzu Greenplum 6 Documentation
Enabling VMware Vsphere Distributed Switch (vDS) Health Check ... To check the status of the master mirroring process (optional).
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