Skip to content

healthcheck: make sure chain backend has enough outbound peers #8487

@yyforyongyu

Description

@yyforyongyu

Resulted from a discussion in #8418, we should have a health check on the number of outbound peers to make sure bitcoind maintains a healthy connection to the network, which is straight forward,

  • use GetPeerInfo to get the peers info and count the outbounds.
  • if the number is below 6, log warnings.
  • if the number is below 2, maybe stop lnd?

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3might get fixed, nice to havebeginnerIssues suitable for new developerschain handlingenhancementImprovements to existing features / behaviourgood first issueIssues suitable for first time contributors to LNDhealthchecksecurityGeneral label for issues/PRs related to the security of the software

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions