blockchain-etl / blockchain-etl-streaming

Streaming Ethereum and Bitcoin blockchain data to Google Pub/Sub or Postgres in Kubernetes

Home Page:https://medium.com/google-cloud/live-ethereum-and-bitcoin-data-in-google-bigquery-and-pub-sub-765b71cd57b5

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implement health_checker.py

medvedev1088 opened this issue · comments

Health checker:

  1. Listens on an HTTP port for health check requests.
  2. Checks last_sync_block.txt file produced by streaming_service.py, looks at its last modified date .
  3. Reports UNHEALTHY if last_sync_block.txt was modified more than 2 minutes ago.
  4. Has minimal dependencies.