Skip to content

Replace HENGSHI Redis

During the use of the HENGSHI SENSE service, you can replace the built-in Redis of HENGSHI according to business needs.

Single-node Deployment:

Modify the following configuration items in the file ${HS_HOME}/conf/hengshi-sense-env.sh:

shell
export REDIS_HOST=xxx
export REDIS_PORT=xxx
export REDIS_PASSWORD=xxx
export REDIS_DATABASE=xxx
export REDIS_USERNAME="" #default empty

export HS_REDIS_IF_EXTERNAL=true # Declare the use of external object storage to replace HENGSHI MinIO

Docker Deployment:

Modify the following configuration items in the file .env located in the same directory as docker-compose.yml:

shell
REDIS_HOST=xxx
REDIS_PORT=xxx
REDIS_PASSWORD=xxx
REDIS_DATABASE=xxx
REDIS_USERNAME="" #default empty

HS_REDIS_IF_EXTERNAL=true # Declare the use of external object storage to replace HENGSHI MinIO

Cluster Deployment:

Modify the following configuration items in the file ${HS_HOME}/ansible/vars.yml:

shell
#------- hengshi_config will overwrite the 'deprecated' vars above ----------
hengshi_config:
- export HS_HENGSHI_PORT=8081
- export HS_PG_PORT=54320
....
- export REDIS_HOST=xxx
- export REDIS_PORT=xxx
- export REDIS_PASSWORD=xxx
- export REDIS_DATABASE=xxx
- export REDIS_USERNAME="" #default empty

- export HS_REDIS_IF_EXTERNAL=true # Declare the use of external object storage to replace HENGSHI MinIO

K8s Deployment:

Modify the following configuration items in the configmap under the hengshi namespace for hengshi-sense:

shell
data:
  ENABLE_REFERENCE_DATASET: 'true'
  EVEREST_HISTORY_LOG_RESERVED_DAYS: '1'
  ....
  REDIS_HOST: "xxx"
  REDIS_PORT: "xxx"
  REDIS_PASSWORD: "xxx"
  REDIS_DATABASE: "xxx"
  REDIS_USERNAME: "" #default empty

  HS_REDIS_IF_EXTERNAL: true # Declare the use of external object storage to replace HENGSHI MinIO

Note: After modifying the parameters, you need to restart HENGSHI SENSE for the changes to take effect.

User Manual for Hengshi Analysis Platform