Skip to main content

Multi-server GPU monotoring tools

Project description

kairos-smi

Multi-server gpu monitoring program

PyPI version CircleCI

See change Log: change log

sample.png

usage: ksmi [-h] [-l] [-c CONFIG]

optional arguments:
  -h, --help            show this help message and exit
  -l, --loop            loop forever
  -c CONFIG, --config CONFIG
                        set config file location

quick start

1. install

Install with pip

$ pip install ksmi
or
$ pip3 install ksmi

2. Setup config file

Edit config.json. Add your gpu server address in config.json.

{
	"hosts": [
		"<username>@<host>[:port]",
		"<username>@<host>[:port]"
	]
}

3. Add rsa_id to server

create new rea_id and add to your server

$ python3 -m ksmi.copy_id -c config.json -n

4. Run It!

$ python3 -m ksmi -c config.json -l

kairos-smi

usage: kairos_smi.py [-h] [-l] [-c CONFIG]

optional arguments:
  -h, --help            show this help message and exit
  -l, --loop            loop forever
  -c CONFIG, --config CONFIG
                        set config file location

Simple usage

Run once

$ python3 -m ksmi -c config.json

Run forever

$ python3 -m ksmi -c config.json -l

utils

copy_id

usage: copy_id.py [-h] [-n] [-c CONFIG] [-s SERVER]

optional arguments:
  -h, --help            show this help message and exit
  -n, --new_id          generate new id_rsa key
  -c CONFIG, --config CONFIG
                        set config file to use host list
  -s SERVER, --server SERVER
                        set a server to copy id

copy id(rsa) to server

Use with config.json

$ python3 -m ksmi.copy_id -c config.json
or
$ python3 -m ksmi.copy_id --config config.json

Use with individual Server address

$ python3 -m ksmi.copy_id -s [username@]<IP>[:port]
or
$ python3 -m ksmi.copy_id --server [username@]<IP>[:port]

Make a new id_rsa

$ python3 -m ksmi.copy_id -n
or
$ python3 -m ksmi.copy_id --new_id

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kmh-gpu-monitor-0.2.2.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kmh_gpu_monitor-0.2.2-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file kmh-gpu-monitor-0.2.2.tar.gz.

File metadata

  • Download URL: kmh-gpu-monitor-0.2.2.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.0

File hashes

Hashes for kmh-gpu-monitor-0.2.2.tar.gz
Algorithm Hash digest
SHA256 7d261e8495a83e9487b3952c71d9826ba34f892a2d382ef3bc27971cf4ffcd1d
MD5 25b1a502043441a1c7b765c8815c848e
BLAKE2b-256 99232cc92137f50f53639c00179a1dcdfb366d8ad031afa8e282b64b230a9ce0

See more details on using hashes here.

File details

Details for the file kmh_gpu_monitor-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for kmh_gpu_monitor-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3b7526daf1d9e069683585aa96680104a569e8914074921b768f9193f5ec14e4
MD5 3eae022273c6cf4a7255b937de79e0c5
BLAKE2b-256 a598ace9a55f53db1d8577be2f40e6fcfb61748b37503a1e359bce7b35aba880

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page