diff --git a/Setting-up-a-Hub.md b/Setting-up-a-Hub.md index f5a4e73..d9eb218 100644 --- a/Setting-up-a-Hub.md +++ b/Setting-up-a-Hub.md @@ -96,19 +96,45 @@ docker compose up -d scribe wait for it to sync -## Elastic Sync +## Elastic and Elastic Sync -### then start elastic sync and wait for that +### first start elastic and wait for it to load the snapshot + +```bash +docker compose up -d es01 +``` + +you can check the loading progress by running `curl localhost:9200/claims/_count` + +once the count stops going up, start elastic sync ```bash docker compose up -d scribe_elastic_sync ``` -wait for it to sync +it should take a few hours to sync. you'll know its done when the log messages (`docker compose logs`) say they're advancing to the latest block. here's an example: + +``` +scribe_elastic_sync_1 | 2023-01-12 15:02:50,801 INFO hub.service.ElasticSyncService:236: advancing to 1292266 +scribe_elastic_sync_1 | 2023-01-12 15:02:59,100 INFO hub.service.ElasticSyncService:330: Indexing block 1292266 done. 240/240 successful +``` ## Herald +```bash +docker compose up -d herald +``` + +## Firewall + +open the following ports in your firewall + +- `22` for ssh +- `9246` for lbcd +- `50001` for herald +- `2113` and `2113` for prometheus monitoring + ## Monitoring start prometheus and grafana