Skip to main content

Manager for Autonomi nodes

Project description

Weave Node Manager

Overview

Weave Node Manager (wnm) is a Python application designed to manage nodes for decentralized networks.

Features

  • Update node metrics and statuses.
  • Manage systemd services and ufw firewall for linux nodes.
  • Support for configuration via YAML, JSON, or command-line parameters.

Installation

  1. Create a directory to hold data:
    mkdir /home/ubuntu/wnm
    
  2. Navigate to the project directory:
    cd /home/ubuntu/wnm
    
  3. Install the required dependencies:
    sudo apt install -y python3.12-venv python3-dotenv
    
  4. Create a virtual environment
    python3 -m venv .venv
    
  5. Activate the virtual environment
    . .venv/bin/activate
    
  6. Install the package:
    pip install wnm 
    
  7. Run to initialize environment from anm
    wnm
    
  8. Add to cron to run every minute
    echo <<EOF
    SHELL=/bin/bash
    PATH=/home/ubuntu/.local/bin:/home/ubuntu/wnm/.venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    */1 * * * * ubuntu cd /home/ubuntu/wnm && wnm > /home/ubuntu/wnm/cron.out 2>&1
    EOF
    

Configuration

Configuration can be done through a .env file, YAML, or JSON files. The application will prioritize these configurations over default values.

Upon finding an existing installation of anm - aatonnomicc node manager, wnm will disable anm and take over management of the cluster. The /var/antctl/config is only read on first ingestion, configuration priority then moves to the .env file or a named configuration file.

Usage

To run the application, execute the following command:

python main.py

Contributing

Contributions are welcome! Please submit a pull request or open an issue for any enhancements or bug fixes.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

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

wnm-0.0.9.tar.gz (16.8 kB view details)

Uploaded Source

Built Distribution

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

wnm-0.0.9-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

Details for the file wnm-0.0.9.tar.gz.

File metadata

  • Download URL: wnm-0.0.9.tar.gz
  • Upload date:
  • Size: 16.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for wnm-0.0.9.tar.gz
Algorithm Hash digest
SHA256 708e4e0f7fc7056d59eadc96efe5a3cb0f84c4f65e21b64898dc3c381863f649
MD5 95b69d1abfcdae046e072a02b640b3c1
BLAKE2b-256 071170272913efc6e9cea5088fa0db3ed139694093f8d4177468892fa20cc4ad

See more details on using hashes here.

File details

Details for the file wnm-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: wnm-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 15.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for wnm-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 1e3603940badf7239efb4f14a9ca73866eb7e498168e19348b1a72c53ad8682a
MD5 23c158c3cf8af0bc7c94e51f803563a0
BLAKE2b-256 3dbe4fe5ca73f501f3ed0cda1317841ecf84ec1e4be0406cbb8fc077ccc4e9f5

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