-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
The current implementation of health checks just returns a success message, which is not that useful in a production setting. There is a TODO in the code
tx-submit-api/internal/api/api.go
Lines 187 to 190 in 67ea49e
| func handleHealthcheck(c *gin.Context) { | |
| // TODO: add some actual health checking here | |
| c.JSON(200, gin.H{"failed": false}) | |
| } |
Some initial ideas
- Perform a check on the node socket (e.g., if a node fails/restarts during runtime and the socket disappears)
- Perform some dummy checks on the endpoints
/api/submit/txand/api/hastx/:tx_hashfor liveness (not necessary to care about responses)
Metadata
Metadata
Assignees
Labels
No labels