Skip to content

Add Functional Health Checks #376

@rezarajan

Description

@rezarajan

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

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/tx and /api/hastx/:tx_hash for liveness (not necessary to care about responses)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions