Skip to content

Commit

Permalink
redploy
Browse files Browse the repository at this point in the history
  • Loading branch information
moose-code committed Feb 15, 2025
1 parent bbe6ff7 commit d085f92
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,17 +71,17 @@ To stop the indexer, run
```bash
pnpm envio stop
```

### Hydra-mode

Hydra is a postgres based database that exposes the same postgres api but stores the data in a columnlar layout which is optimised for analytic type queries that aggregate data across large numbers of rows on large datasets.

To run this indexer against hydra (rather than standard postgres) first run `pnpm enable-hydra`.

Once that completes without error, run `pnpm start`.
Once that completes without error, run `pnpm start`.

NOTE: it is advised not to run `envio dev` when in hydra mode. This creates risk that the indexer will revert to standard postgres mode. While developing, rather just use standard postgres, and switch to hydra once you are happy with the logic in the indexer.


### Deploying Local Docker Environment

The local docker environment deploys all the containers needed to run a containerized Envio Indexer environment:
Expand All @@ -96,14 +96,12 @@ To hard restart run `make hard-restart` (this brings down all the docker images,

You can turn the terminal UI off by setting the environment variable TUI_OFF before running any of the make commands (`export TUI_OFF=true; make start`) however, if you'd like the TUI and to see the indexer logs in the terminal, you can run `export TUI_OFF=false; make start` and then `make indexer-logs` to see the container logs of the indexer.


To push the Envio indexer container to a container registry login to the registry and run:

`make build-push-indexer TAG=<your_image_tag> ARCH=<desired_architecture>`

example: `make build-push-indexer TAG="velodrome-indexer-prod-1" ARCH="linux/amd64"`


### Hydra setup

Similar to the above, but uses a hydra postgres instance with no hasura.
Expand All @@ -115,6 +113,7 @@ Setup files:
- `envio-entrypoint-hydra.sh`

Make commands:

- `make start-hydra`
- `make hard-stop-hydra`
- `make hard-restart-hydra`
Expand Down

0 comments on commit d085f92

Please sign in to comment.