Update README.md

This commit is contained in:
Cristian Conache 2024-03-08 20:34:51 +02:00 committed by GitHub
parent 1953bd0c3c
commit 8c2f17e33e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -54,14 +54,14 @@ docker run -it --entrypoint=bash -v ./head-data:/data 696230526504.dkr.ecr.us-ea
docker run -it --entrypoint=bash -v ./worker-data:/data 696230526504.dkr.ecr.us-east-1.amazonaws.com/allora-inference-base:latest -c "mkdir -p /data/keys && (cd /data/keys && allora-keys)" docker run -it --entrypoint=bash -v ./worker-data:/data 696230526504.dkr.ecr.us-east-1.amazonaws.com/allora-inference-base:latest -c "mkdir -p /data/keys && (cd /data/keys && allora-keys)"
``` ```
Important note: If no keys are specified in the volumes, new keys will be automatically created inside `head-data/keys` and `worker-data/keys` when first running step 4. Important note: If no keys are specified in the volumes, new keys will be automatically created inside `head-data/keys` and `worker-data/keys` when first running step 3.
2. **Connect the worker node to the head node**: 2. **Connect the worker node to the head node**:
At this step, both worker and head nodes identities are generated inside `head-data/keys` and `worker-data/keys`. At this step, both worker and head nodes identities are generated inside `head-data/keys` and `worker-data/keys`.
To instruct the worker node to connect to the head node: To instruct the worker node to connect to the head node:
- get the head node's peer_id specified in the `head-data/keys/identity` file - run `cat data/head/keys/identity` to extract the head node's peer_id specified in the `head-data/keys/identity`
- use the peer_id to replace the `head-id` placeholder value specified inside the docker-compose.yml file when running the worker service: `--boot-nodes=/ip4/172.22.0.100/tcp/9010/p2p/head-id` - use the printed peer_id to replace the `head-id` placeholder value specified inside the docker-compose.yml file when running the worker service: `--boot-nodes=/ip4/172.22.0.100/tcp/9010/p2p/head-id`
3. **Run setup** 3. **Run setup**
Once all the above is set up, run `docker compose up head worker inference` Once all the above is set up, run `docker compose up head worker inference`