This repository has been archived by the owner on Nov 6, 2020. It is now read-only.
Health check endpoint checks eth_syncing rather than highestBlock? #9004
Labels
M6-rpcapi 📣
RPC API.
Z1-question 🙋♀️
Issue is a question. Closer should answer.
Z3-stale 🍃
Issue is in principle valid, but it is not relevant anymore or can not reproduced.
Milestone
I'm running:
Other information
Background: we're evaluating running Parity services behind a loadbalancer for web and mobile clients, some of those clients will be connected via WebSocket. As such we need an health check that looks for parity availability but also state (broadly, up-to-dateness). In the above environment I'm curious as Parity sometimes disagrees with itself with regards to this.
Below are 3 curl commands run sequentially but in the same shell session: a call to the health endpoint, JSONRPC call asking for highestBlock, and the healthcheck endpoint again. I don't have timings between each but I'd expect it to be tens of milliseconds between them if not less.
(wrapped for readability):
the healthcheck is returning unhealthy before-and-after, (with HTTP response 412, so would drop out of the balancer) yet currentBlock == highestBlock
The text was updated successfully, but these errors were encountered: