Skip to content

tbc: health check hangs during indexer flushing #870

@AL-CT

Description

@AL-CT

Confirmation

  • I have checked for similar issues.

Describe the bug

When polling for SyncInfo in tbc using deucalion's /health endpoint, the request will timeout if the database indexers are flushing, locking the database for a prolonged period of time.

Expected behaviour

The /health endpoint should provide a response, regardless of the indexers' state.

Environment

Version:
Operating System:
Architecture:

Additional Information

One solution might be to consistently poll and cache health info from the database and provide the latest value when requested.

Metadata

Metadata

Labels

area: deucalionThis is a change to Deucalion (internal Prometheus service)area: tbcThis is a change to TBC (Tiny Bitcoin)size: SThis change is small (+/- <80)type: bugThis is a bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions