Skip to content

slush0/health.petals.ml

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Petals Health Monitor

Source code for the Petals health monitor: http://health.petals.ml

Swarm state: healthy

...2vYiga, 256.0 RPS  |                                 ########                             |
...vMfXzi, 3688.5 RPS |#########################                                             |
...i9CA9T, 2776.2 RPS |                              ###############                         |
...33Pgb9, 2108.6 RPS |###############                                                       |
...Ap3RUq, 256.0 RPS  |                                     ########                         |
...7mhsNH, 256.0 RPS  |                         ########                                     |
...iRUz6M, 2767.3 RPS |               ###############                                        |
...zbDrjo, 3500.3 RPS |                                             #########################|


Legend:

# - online
J - joining     (loading blocks)
? - unreachable (port forwarding/NAT/firewall issues, see below)
_ - offline     (just disconnected)

See more info about Petals in its main GitHub repo.

Installation

You can run this app on your server using these commands:

git clone https://github.com/borzunov/health.petals.ml.git
cd health.petals.ml
pip install -r requirements.txt
flask run --host=0.0.0.0 --port=5000

In production, we recommend using gunicorn instead of the Flask dev server:

gunicorn app:app --bind 0.0.0.0:5000 --workers 4 --threads 10

Monitoring private swarm

To monitor your private swarm instead of the public one, please replace PUBLIC_INITIAL_PEERS with a list of multiaddresses of your swarm's initial peers in app.py.

About

Petals swarm health monitor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 49.9%
  • HTML 36.1%
  • CSS 14.0%