Updated Setting up a Hub (markdown)

Alex Grin 2023-01-12 10:11:51 -05:00
parent 90f828ec47
commit 411d0d077e

@ -41,10 +41,11 @@ sudo systemctl enable containerd.service
### create lbcd and rocksdb volumes
```bash
mkdir -p /home/lbry/docker-volumes/lbcd /home/lbry/docker-volumes/rocksdb
mkdir -p /home/lbry/docker-volumes/lbcd /home/lbry/docker-volumes/rocksdb /home/lbry/docker-volumes/es01
# sudo chown -R 999:999 /home/lbry/docker-volumes ## not needed unless you encounter problems
docker volume create --driver local --opt type=none --opt device=/home/lbry/docker-volumes/lbcd --opt o=bind lbry_lbcd
docker volume create --driver local --opt type=none --opt device=/home/lbry/docker-volumes/rocksdb --opt o=bind lbry_rocksdb
docker volume create --driver local --opt type=none --opt device=/home/lbry/docker-volumes/es01 --opt o=bind es01
```
@ -98,7 +99,20 @@ wait for it to sync
## Elastic and Elastic Sync
### first start elastic and wait for it to load the snapshot
### download snapshot
```bash
mkdir /home/lbry/elastic-snapshot
cd /home/lbry/elastic-snapshot
wget -c https://snapshots.lbry.com/hub/es_snap.tar -O - | tar x
sudo mv es_snap/lbry_es01/_data/nodes /home/lbry/docker-volumes/es01/
sudo chown -R lbry:root /home/lbry/docker-volumes/es01
sudo chmod -R 775 /home/lbry/docker-volumes/es01
sudo cp es_snap/es_info /home/lbry/docker-volumes/rocksdb/
sudo chown -R 999:999 /home/lbry/docker-volumes/rocksdb/es_info
```
### start elastic first and wait for it to load the snapshot
```bash
docker compose up -d es01