External Backends

By default, HollaEx CLI runs all necessary backend servers (Redis, PostgreSQL, InfluxDB) automatically along with the rest of HollaEx workloads.

It is enough for small or medium size exchange but if you are considering to scale up and have a larger load, you could run HollaEx with external custom backend system of yours as you wish.

Redis

You should set up the external Redis which is reachable from your HollaEx server.

To disable HollaEx CLI to create built-in Redis, please set the value below as false. You could find this value at your configmap file in your HollaEx Kit/settings.

ENVIRONMENT_DOCKER_COMPOSE_RUN_REDIS=false

You can set the endpoint, port, and password for your Redis connection at your secret file in your HollaEx Kit/settings.

HOLLAEX_SECRET_REDIS_HOST=$ENVIRONMENT_EXCHANGE_NAME-redis
HOLLAEX_SECRET_REDIS_PORT=6379
HOLLAEX_SECRET_REDIS_PASSWORD=hollaex
HOLLAEX_SECRET_PUBSUB_HOST=$ENVIRONMENT_EXCHANGE_NAME-redis
HOLLAEX_SECRET_PUBSUB_PORT=6379
HOLLAEX_SECRET_PUBSUB_PASSWORD=hollaex

Please run hollaex restart to apply once you are all set.

Separated Redis for Pub-Sub (Optional)

If you are looking for a more advanced load balancing, it is also possible to separate the pub-sub feature of Redis (for internal communication of HollaEx servers) to a separate one.

You should set up the additional Redis for pub-sub which is reachable from your HollaEx server.

By default, the HollaEx server uses the same Redis host for handling all pub-sub and rest of caching related jobs.

You can set the endpoint, port, and password for your pub-sub Redis connection at your secret file in your HollaEx Kit/settings.

HOLLAEX_SECRET_PUBSUB_HOST=$ENVIRONMENT_EXCHANGE_NAME-redis
HOLLAEX_SECRET_PUBSUB_PORT=6379
HOLLAEX_SECRET_PUBSUB_PASSWORD=hollaex

Please run hollaex restart to apply once you are all set.

You should set up the external PostgreSQL Database which is reachable from your HollaEx server.

Please refer Backup and Restore section to migrate your existing data into the new DB.

To disable HollaEx CLI to create build-in PostgreSQL, please set the value below as false. You could find this value at your configmap file in your HollaEx Kit/settings.

ENVIRONMENT_KUBERNETES_RUN_POSTGRESQL_DB=false

You can set the endpoint, port, and credentials for your PostgreSQL connection at your 'secret' file in your HollaEx Kit/settings.

HOLLAEX_SECRET_DB_NAME=hollaex
HOLLAEX_SECRET_DB_USERNAME=hollaex
HOLLAEX_SECRET_DB_PASSWORD=hollaex
HOLLAEX_SECRET_DB_HOST=$ENVIRONMENT_EXCHANGE_NAME-db
HOLLAEX_SECRET_DB_PORT=5432

Please run hollaex restart to apply once you are all set.

InfluxDB

You should set up the external InfluxDB Database which is reachable from your HollaEx server.

Run hollaex toolbox --influxdb_migration (available from the CLI v1.9) to migrate chart data into the new InfluxDB. The chart data are stored at your PostgreSQL.

To disable HollaEx CLI to create build-in InfluxDB, please set the value below as false. You could find this value at your configmap file in your HollaEx Kit/settings.

ENVIRONMENT_KUBERNETES_RUN_INFLUXDB=false

You can set the endpoint, port, and credentials for your InfluxDB connection at your 'secret' file in your HollaEx Kit/settings.

HOLLAEX_SECRET_INFLUX_DB=hollaex
HOLLAEX_SECRET_INFLUX_HOST=$ENVIRONMENT_EXCHANGE_NAME-influxdb
HOLLAEX_SECRET_INFLUX_PORT=8086
HOLLAEX_SECRET_INFLUX_USER=hollaex
HOLLAEX_SECRET_INFLUX_PASSWORD=hollaex

Please run hollaex restart to apply once you are all set.