1.0.7 β’ Published 6 months ago
polaris-cli-tool v1.0.7
Polaris CLI
β‘ Command-line interface for managing distributed compute resources in the Polaris network
Installation
npm i polaris-cli-tool
Quick Start
polaris start
Examples
1. Register a New Miner
First, prepare your compute resources Excel file:
id | resource_type | location | internal_ip | ssh | open_ports | hourly_price | ram | storage_type | storage_capacity
compute1 | CPU | NYC-RACK-01 | 192.168.1.10 | ssh://user@192.168.1.10:22 | 22,80,443 | 2.0 | 128GB | NVME | 4TB
compute2 | GPU | NYC-RACK-02 | 192.168.1.11 | ssh://user@192.168.1.11:22 | 22,80,443,8080| 3.5 | 256GB | NVME | 8TB
Then run the registration:
$ polaris start
π Select Operation:
> Register Miner
# Enter miner details when prompted
Name: test_miner_01
Location: NYC
Description: High performance cluster
# Drop your Excel file when prompted
π Drag and drop your compute resources Excel file here: /path/to/resources.xlsx
# Review and confirm the registration
Expected Result:
β¨ Registration Complete
Miner ID: m_1a2b3c4d5e
Compute Resources:
β’ compute1
β’ compute2
Important: Save your Miner ID
Your Miner ID is: m_1a2b3c4d5e
You will need this ID to manage your compute resources.
2. View Miner Details
$ polaris start
π Select Operation:
> View Miner Compute
π Enter the Miner ID: m_1a2b3c4d5e
Expected Result:
π Miner Information
ID m_1a2b3c4d5e
Name test_miner_01
Location NYC
Description High performance cluster
Created At 2024-01-20 10:30:45
Updated At 2024-01-20 10:30:45
π» Compute Resources
βββββββββββββ¬βββββββ¬βββββββββββββ¬ββββββββββ¬ββββββββ¬ββββββββββ¬βββββββββββββββββββββ
β ID β Type β Location β Price/Hrβ RAM β Storage β Specs β
βββββββββββββΌβββββββΌβββββββββββββΌββββββββββΌββββββββΌββββββββββΌβββββββββββββββββββββ€
β compute1 β CPU β NYC-RACK-01β $2.0 β 128GB β 4TB NVMEβ 32 CPUs, 3.4GHz β
β compute2 β GPU β NYC-RACK-02β $3.5 β 256GB β 8TB NVMEβ NVIDIA A100, 80GB β
βββββββββββββ΄βββββββ΄βββββββββββββ΄ββββββββββ΄ββββββββ΄ββββββββββ΄βββββββββββββββββββββ
3. Run Subnet
$ polaris start
π Select Operation:
> Run Polaris Subnet
π Enter your Miner ID: m_1a2b3c4d5e
Expected Result:
β¨ Subnet initialized successfully!
Network Status
β Miner ID: m_1a2b3c4d5e
β Active Nodes: 156
β Total Compute: 1.2 PetaFLOPS
β Network Health: 98.5%
Excel Templates
1. CPU Resource Example
id: compute1
resource_type: CPU
location: NYC-RACK-01
internal_ip: 192.168.1.10
ssh: ssh://user@192.168.1.10:22
open_ports: 22,80,443,3000
hourly_price: 2.0
ram: 128GB
storage_type: NVME
storage_capacity: 4TB
storage_read_speed: 7000MB/s
storage_write_speed: 5000MB/s
cpu_op_modes: 32-bit, 64-bit
cpu_address_sizes: 46 bits physical, 48 bits virtual
cpu_byte_order: Little Endian
total_cpus: 32
online_cpus: 0-31
vendor_id: GenuineIntel
cpu_name: Intel(R) Xeon(R) Platinum 8380 CPU @ 2.30GHz
cpu_family: 6
model: 85
threads_per_core: 2
cores_per_socket: 8
sockets: 2
stepping: 4
cpu_max_mhz: 3400.0
cpu_min_mhz: 1000.0
2. GPU Resource Example
id: compute2
resource_type: GPU
location: NYC-RACK-02
internal_ip: 192.168.1.11
ssh: ssh://user@192.168.1.11:22
open_ports: 22,80,443,8080
hourly_price: 3.5
ram: 256GB
storage_type: NVME
storage_capacity: 8TB
storage_read_speed: 7000MB/s
storage_write_speed: 5000MB/s
gpu_name: NVIDIA A100
memory_size: 80GB
cuda_cores: 6912
clock_speed: 1410MHz
power_consumption: 400W
Common Issues and Solutions
- Invalid Excel Format
Error: Invalid Excel format
Details: Missing required columns - 'internal_ip', 'ssh'
Solution: Use the provided template and ensure all required fields
- Network Configuration Error
Error: Invalid network configuration
Details: Invalid SSH string format
Solution: Ensure SSH format is ssh://user@ip:port
- Resource Validation Error
Error: Invalid resource specification
Details: CPU resource missing required CPU specifications
Solution: Fill in all required CPU-specific fields for CPU resources
Support
- π§ Email: mubarakabanadda68@gmail.com
- π Issues: GitHub Issues
- π Full Documentation: GitHub Wiki
License
MIT Β© Banadda Mubarak