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.

Health Check For Geyser

See original GitHub issue

What feature do you want to see added?

Would like to see an internal server to export health information.

Example:

Define a port in configuration to run the internal server for health checks.

In the same server we can use an external process to query 127.0.0.1:port/health to retrieve health status of geyser.

Use Case:

In certain cases in devops there’s a necessity to know when something is failing, working properly, or going down. This health check would either return a 200 status when healthy, 404 when not ready, along with other status codes to define current state/health of the geyser proxy.

Benefits:

This would allow an external process to monitor the health of geyser.

Are there any alternatives?

Have looked through the codebase a bit and it doesn’t look like there’s anything to probe the health of the geyser without passing through UDP packets which is not necessarily ideal for this kind of service.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
rtm516commented, Apr 16, 2021

It’s best to just integrate it into the connector module then it should work on any platform.

1reaction
CoreyShupecommented, Apr 16, 2021

It also supports the normal java query (also uses UDP). Not sure this is something that would be suited in core Geyser, my main concerns are the extra jar size a web server library would create as that’s something we are trying to keep low.

It’d just be a request -> response, there are plenty of lightweight http response things out there. I don’t think a full web server library is necessary, especially when java itself packages in some nice http server, which is all that’s necessary for this kind of work honestly.

My main concerns with the UDP query is that the java query (UDP query) looks heavy for something like a health check. It looks like it also wants quite a bit more information than just a ping to the server (looking at a few go libs which do support this kind of ping).

I think the benefits the health check will give to the devops world outweighs the concern for package size, especially since there’s http server handlers within java itself.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fact Check: Can you get electrocuted through a geyser? Well ...
It's advisable to get your geyser checked once in a while to be sure that there is no corrosion in the internal parts...
Read more >
How to Save Money Through Monitoring Your Geyser
These are some simple changes you can make to your daily life to save electricity by monitoring your geyser. They can help to...
Read more >
Using a Gas Geyser? Here's Why It Might Be a Health Hazard
Gas geysers can be harmful. While the symptoms depend on the quantity of the carbon monoxide inhaled, it can lead to various health...
Read more >
Geisinger Health
Geisinger is a health and wellness organization focused on making better health easier for our communities through primary care, specialty medicine, ...
Read more >
Gas geyser syndrome: An important preventable cause ... - NCBI
To increase awareness regarding gas geyser induced epilepsy and associated carbon monoxide intoxication, both of which are entirely preventable conditions. We ...
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