Skip to main content

Cloud Assignment Manager Tool

Project description

Cloud Assignment Manager Tool

CAM-Tool is a cloud assignment manager tool that helps you to manage your tasks across different machines. You can start several workers across different machines and upload the command to cam-tool. Cam-tool will then distribute the tasks to workers automatically.

Install

pip install cam-tool
conda install redis # only required for server machine.
conda install -c conda-forge nodejs # only required if you want to use a web-based gui

Config

The config file is located at ~/.cam.conf. You can set the server address, port, and password for redis. You can simply run cam config to edit the yaml file.

Start Server

On the server machine, simply run the following command to start the server.

cam server

Start Worker

On a worker machine, please run the following command to start a worker. You can start many worker on the same machine.

cam worker 

You may also want to add more parameters as resource calculation, prefix or suffix.

cam worker "ngpu()" "sbash"

where ngpu() calculate how many GPU is idle and "sbash" is a prefix to all the command running on this server.

Add new task

Please run the following command to add a new task

cam add "ls -lah"

Status

You can see the status of eash task with the ls command:

> cam ls

ID  Time                 Command    Host
----  -------------------  ---------  -------
   3  2022-03-07 06:39:33  ls -lah    Pending

Kill tasks

You can kill task with its task id.

cam kill 3

Get the log of a worker

You can run the following command to get the log of a running or finished worker:

cam log 3

Web Console

Cam tool provides a simple web console to add, kill, and watch tasks. Please install nodejs before you use this function. Just run the following code to start a web server. Never run this command on any public server.

cam web

Then open the link http://localhost:8257/ and you can see the following user interface: gui

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

cam-tool-1.3.8.tar.gz (170.4 kB view details)

Uploaded Source

Built Distribution

cam_tool-1.3.8-py3-none-any.whl (171.6 kB view details)

Uploaded Python 3

File details

Details for the file cam-tool-1.3.8.tar.gz.

File metadata

  • Download URL: cam-tool-1.3.8.tar.gz
  • Upload date:
  • Size: 170.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.12

File hashes

Hashes for cam-tool-1.3.8.tar.gz
Algorithm Hash digest
SHA256 a64aa27fd89bd84870c42f0d2e004da6983062fa8b822c69466b5dd67c46b442
MD5 46ccfedf7db2978e647d19fcf0a465e2
BLAKE2b-256 7e07998651b100f094acdce351af7a74cca3f36bf776e30bbd9efc97240e84d3

See more details on using hashes here.

File details

Details for the file cam_tool-1.3.8-py3-none-any.whl.

File metadata

  • Download URL: cam_tool-1.3.8-py3-none-any.whl
  • Upload date:
  • Size: 171.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.12

File hashes

Hashes for cam_tool-1.3.8-py3-none-any.whl
Algorithm Hash digest
SHA256 3bc6015192a50cf43af68b0cebf6addc3811bae7c148d6830bda35fcc901491c
MD5 f7735180ce21f5424a90fd26c07c6e31
BLAKE2b-256 3bc598c8aad268d9bbda71625236be2ac0df5b37f6664f6f34d907243ba1640a

See more details on using hashes here.

Supported by

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