Skip to content

Commit

Permalink
update doc (#994)
Browse files Browse the repository at this point in the history
* update doc

* update
  • Loading branch information
shunjizhan committed Apr 22, 2024
1 parent 5585d63 commit 2d462e8
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions examples/docker-compose-bodhi-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ services:
POSTGRES_PASSWORD: postgres

subquery-node:
image: acala/evm-subql:2.7.17
image: acala/evm-subql:2.8.1
container_name: subquery-node
ports:
- 3000:3000
Expand Down Expand Up @@ -69,7 +69,7 @@ services:
- --indexer=http://subquery-node:3000

eth-rpc-adapter-server:
image: acala/eth-rpc-adapter:2.7.17
image: acala/eth-rpc-adapter:2.8.1
container_name: eth-rpc-adapter-server
restart: always
depends_on:
Expand Down
2 changes: 1 addition & 1 deletion examples/viem/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ services:
POSTGRES_PASSWORD: postgres

subquery-node:
image: acala/evm-subql:2.7.16
image: acala/evm-subql:2.8.1
container_name: subquery-node
ports:
- 3000:3000
Expand Down
12 changes: 6 additions & 6 deletions packages/evm-subql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ NOTE: using CLI is for **local testing** only, so you can get familiar with each
1. Install SubQl globally

```shell
npm i -g @subql/node@1.21.2 @subql/query@1.4.0
npm i -g @subql/node@3.10.1 @subql/query@2.10.0
```

2. Run an [Acala](https://github.com/AcalaNetwork/Acala) node locally and listen to port number `9944` (in the first terminal)
Expand Down Expand Up @@ -173,13 +173,13 @@ For production deployment, there are a couple differences:
In local setup we can run all of the services together with one single [docker compose](./docker-compose.yml). However, in prod we usually need to start each of the `{ node, postgres, indexer, query }` seperately with Docker or k8s.

#### image
In the local example, we use `onfinality/subql-node:v1.17.0` as indexer image, which requires **local mounted project path**. For prod we should use [acala/evm-subql](https://hub.docker.com/r/acala/evm-subql/tags) instead, which already has all the required files encapsulated, so we don't need to mount local files anymore.
In the local example, we use `subquerynetwork/subql-node-substrate:v3.10.1` as indexer image, which requires **local mounted project path**. For prod we should use [acala/evm-subql](https://hub.docker.com/r/acala/evm-subql/tags) instead, which already has all the required files encapsulated, so we don't need to mount local files anymore.

An example is [here](../docker-compose-example.yml#L27)

Latest stable versions:
- `acala/eth-rpc-adapter:v2.7.4`
- `acala/evm-subql:v2.6.5`
- `acala/eth-rpc-adapter:2.8.1`
- `acala/evm-subql:2.8.1`
- `subquerynetwork/subql-query:v2.10.0`

#### config
Expand All @@ -195,9 +195,9 @@ It usually takes 1 to 3 days to index all of the data, depending on the node lat
To upgrade the production subql, we usually need to do a full re-index. In order not to interrupt the currnetly running subql, we can run another indexer in parallel to the old one, and hot replace the old one once the full re-index is finished.

Below are the detailed steps:
1) start a new indexer service `acala/evm-subql` that uses a difference `--db-schema`, for example, `--db-schema=evm-karura-2`. It can share the same DB with the old indexer
1) start a new indexer service `acala/evm-subql` that uses a difference `--db-schema`, for example, `--db-schema=evm-acala`. It can share the same DB with the old indexer
2) wait until the new indexer finish indexing
3) update the config of graphql service `onfinality/subql-query` to use the new indexer. In particular, change the `--name` command, such as `--name=evm-karura-2`, and `--indexer=<new indexer url>`
3) update the config of graphql service `subquerynetwork/subql-query` to use the new indexer. In particular, change the `--name` command, such as `--name=evm-acala`, and `--indexer=<new indexer url>`
4) delete the old indexer service, as well as the old db schema
5) upgrade is finished! No need to modify `eth-rpc-adapter`

Expand Down
4 changes: 2 additions & 2 deletions scripts/e2e-tests/docker-compose-acala.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ services:
POSTGRES_PASSWORD: postgres

subquery-node:
image: acala/evm-subql:2.7.17
image: acala/evm-subql:2.8.1
volumes:
- ./configs/subql/karura.yaml:/app/karura.yaml
- ./configs/subql/acala.yaml:/app/acala.yaml
Expand Down Expand Up @@ -69,7 +69,7 @@ services:
- --indexer=http://subquery-node:3000

eth-rpc-adapter:
image: acala/eth-rpc-adapter:2.7.17
image: acala/eth-rpc-adapter:2.8.1
environment:
- SUBQL_URL=http://graphql-engine:3001
- ENDPOINT_URL=ws://chopsticks:8000
Expand Down
4 changes: 2 additions & 2 deletions scripts/e2e-tests/docker-compose-karura.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ services:
POSTGRES_PASSWORD: postgres

subquery-node:
image: acala/evm-subql:2.7.17
image: acala/evm-subql:2.8.1
volumes:
- ./configs/subql/karura.yaml:/app/karura.yaml
- ./configs/subql/acala.yaml:/app/acala.yaml
Expand Down Expand Up @@ -69,7 +69,7 @@ services:
- --indexer=http://subquery-node:3000

eth-rpc-adapter:
image: acala/eth-rpc-adapter:2.7.17
image: acala/eth-rpc-adapter:2.8.1
environment:
- SUBQL_URL=http://graphql-engine:3001
- ENDPOINT_URL=ws://chopsticks:8000
Expand Down
4 changes: 2 additions & 2 deletions scripts/e2e-tests/docker-compose-subway.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ services:
POSTGRES_PASSWORD: postgres

subquery-node:
image: acala/evm-subql:2.7.17
image: acala/evm-subql:2.8.1
container_name: subquery-node
ports:
- 3000:3000
Expand Down Expand Up @@ -69,7 +69,7 @@ services:
- --indexer=http://subquery-node:3000

eth-rpc-adapter-server:
image: acala/eth-rpc-adapter:2.7.17
image: acala/eth-rpc-adapter:2.8.1
container_name: eth-rpc-adapter-server
restart: always
depends_on:
Expand Down

0 comments on commit 2d462e8

Please sign in to comment.