Closed rosskukulinski closed 7 years ago
Done in #18, sort of. I just curl localhost:8080. But you're right, a better go binary to do it is in order.
What should a more comprehensive health check do? Willing to write one, but would love to know what we think would be the appropriate checks..
Hi @justinsb! I was thinking a simple binary that accessed the rethinkdb instance and queried one or more system tables to verify functionality.
As to which system tables, I haven't fully thought that through. I don't think we want to report readiness/health check based on the overall cluster availability - we might just be making things worse.
So, then I guess the instance is 'ready' when you can query server_status
and there's one or more records.
I would also be willing to write this. Please let us know if you have any more details on this.
first pass of probe complete - thanks @cdornsife
Should have simple Go binary in the container that connects to Rethink and confirms that db is healthy.