Updated Setting up a Hub (markdown)
parent
90f828ec47
commit
411d0d077e
1 changed files with 16 additions and 2 deletions
|
@ -41,10 +41,11 @@ sudo systemctl enable containerd.service
|
||||||
### create lbcd and rocksdb volumes
|
### create lbcd and rocksdb volumes
|
||||||
|
|
||||||
```bash
|
```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
|
# 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/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/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
|
## 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
|
```bash
|
||||||
docker compose up -d es01
|
docker compose up -d es01
|
||||||
|
|
Loading…
Reference in a new issue