Explain how to resync ES and expand into two parts
This commit is contained in:
parent
507f125727
commit
a3796248ee
1 changed files with 17 additions and 2 deletions
|
@ -137,9 +137,13 @@ docker-compose up --detach
|
||||||
```
|
```
|
||||||
|
|
||||||
### Resyncing
|
### Resyncing
|
||||||
|
From time to time, we'll release an update that requires recreating one of the databases from scratch. Most of the time we will try to ensure there is an automatic migration, but even then, if you think the server has invalid data you can also try a resync.
|
||||||
|
|
||||||
|
The process is similar to an update, but causes the server to be down for much longer.
|
||||||
|
|
||||||
|
#### Main database
|
||||||
|
Holds the raw blockchain data and takes many hours (can take a day or two) to resync from scratch, so be sure to have a snapshot or try that last.
|
||||||
|
|
||||||
From time to time, we'll release an update that requires erasing the wallet server database and recreating it from scratch. The process is
|
|
||||||
similar to an update, but causes the server to be down for much longer. Here's how to do it:
|
|
||||||
```
|
```
|
||||||
docker pull lbry/wallet-server:latest-release
|
docker pull lbry/wallet-server:latest-release
|
||||||
docker-compose down
|
docker-compose down
|
||||||
|
@ -147,6 +151,17 @@ docker volume rm "$(whoami)_wallet_server"
|
||||||
WALLET_SERVER_SNAPSHOT_URL= docker-compose up --detach
|
WALLET_SERVER_SNAPSHOT_URL= docker-compose up --detach
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### Elasticsearch
|
||||||
|
ES does the indexing of claims from the main database. It should take around 30 minutes to resync on a fast machine.
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
docker pull lbry/wallet-server:latest-release
|
||||||
|
docker-compose down
|
||||||
|
docker volume rm "$(whoami)_es01"
|
||||||
|
docker-compose up --detach
|
||||||
|
```
|
||||||
|
|
||||||
## Get in touch
|
## Get in touch
|
||||||
|
|
||||||
Whether you got to the end without a hiccup or you got stuck along the way, we want to hear from you. [Join our Discord](https://discord.gg/y3W9JuS) to get help, stay updated, and talk to other wallet server operators.
|
Whether you got to the end without a hiccup or you got stuck along the way, we want to hear from you. [Join our Discord](https://discord.gg/y3W9JuS) to get help, stay updated, and talk to other wallet server operators.
|
||||||
|
|
Loading…
Reference in a new issue