Configure an external in-memory cache
This documentation is for the CARTO Self-Hosted Legacy Version. Use only if you've installed this specific version. Explore our latest documentation for updated features.
CARTO Self-Hosted requires Redis (version 6 or above) to work. This Redis instance does not need persistence, as it is used solely as a cache.
Both Single VM deployment and Orchestrated container deployment come already with an internal Redis deployment, but they lack any backups, autoscaling, or monitoring. Cloud vendors already offer Redis deployments at scale as a service:
In this section, you will see how to configure the Self-hosted to use an external Redis provided by your cloud vendor.
Single VM deployments (Docker Compose)
Configuration
Comment the local Redis configuration:
Uncomment the external Redis configuration:
Replace the
<FILL_ME>
placeholders with the right values.
Configure TLS
By default, CARTO will try to connect to your Redis without TLS, in case you want to connect via TLS, you can configure it via REDIS_TLS_ENABLED
env vars in the customer.env file.
⚠️ In case you are connecting to a Redis instance where the TLS certificate is self signed or from a custom CA you will need to configure the
REDIS_TLS_CA
variable
Copy your CA
.crt
file inside thecerts
folder. Rename the CA.crt
file toredis-tls-ca.crt
.Uncomment the
REDIS_TLS_CA
env var in the customer.env file.
Orchestrated container deployment (Kubernetes)
Configuration
Add the secret:
Configure the package:
Add the following lines to your customizations.yaml to connect to the external Redis:
Configure TLS
By default, CARTO will try to connect to your Redis without TLS enabled. In case you want to connect via TLS, you can configure it via the externalRedis.tlsEnabled
parameter.
In case you are connecting to a Redis where the TLS certificate is selfsigned or from a custom CA you can configure it via the externalRedis.tlsCA
parameter
Last updated