Add relay-backed public node registration
This commit is contained in:
@@ -18,7 +18,7 @@ python3 -m venv .venv
|
||||
.venv/bin/python -m pip install --upgrade pip setuptools wheel
|
||||
|
||||
# Install Python packages (editable — picks up code changes immediately)
|
||||
.venv/bin/pip install -e packages/tracker -e packages/node -e packages/p2p -e packages/gateway
|
||||
.venv/bin/pip install -e packages/tracker -e packages/node -e packages/p2p -e packages/gateway -e packages/relay
|
||||
|
||||
# CPU-only PyTorch (skip if you have CUDA/ROCm already)
|
||||
.venv/bin/pip install torch --index-url https://download.pytorch.org/whl/cpu
|
||||
@@ -39,7 +39,7 @@ wsl
|
||||
cd /mnt/d/DEV/workspace/REPOS/git.d-popov.com/neuron-tai
|
||||
python3 -m venv .venv
|
||||
.venv/bin/python -m pip install --upgrade pip setuptools wheel
|
||||
.venv/bin/pip install -e packages/tracker -e packages/node -e packages/p2p -e packages/gateway
|
||||
.venv/bin/pip install -e packages/tracker -e packages/node -e packages/p2p -e packages/gateway -e packages/relay
|
||||
.venv/bin/pip install torch --index-url https://download.pytorch.org/whl/cpu
|
||||
.venv/bin/pip install transformers accelerate
|
||||
.venv/bin/meshnet-node --help
|
||||
@@ -48,6 +48,34 @@ python3 -m venv .venv
|
||||
If `.venv/bin/meshnet-node` is missing, the editable install step did not finish
|
||||
successfully. Re-run the `.venv/bin/pip install -e ...` command above inside WSL.
|
||||
|
||||
### Public tracker + WSS relay
|
||||
|
||||
For internet nodes, expose one public HTTPS host and proxy these paths:
|
||||
|
||||
```text
|
||||
/v1/* -> meshnet-tracker, for registration, heartbeats, routing, and OpenAI requests
|
||||
/ws -> meshnet-relay, for outbound node gossip/bridge connections
|
||||
/rpc/* -> meshnet-relay, for tracker-to-node relay requests
|
||||
```
|
||||
|
||||
Start the tracker with the public relay URL it should advertise:
|
||||
|
||||
```bash
|
||||
.venv/bin/meshnet-relay --host 0.0.0.0 --port 8765
|
||||
.venv/bin/meshnet-tracker start \
|
||||
--host 0.0.0.0 \
|
||||
--port 8081 \
|
||||
--relay-url wss://ai.neuron.d-popov.com/ws
|
||||
```
|
||||
|
||||
Then a node only needs the public tracker address:
|
||||
|
||||
```bash
|
||||
.venv/bin/meshnet-node start \
|
||||
--tracker https://ai.neuron.d-popov.com \
|
||||
--model-id Qwen/Qwen2.5-0.5B-Instruct
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Step 1 — Start the tracker (Terminal 1)
|
||||
|
||||
Reference in New Issue
Block a user