Polyaxon ships with a default redis based on the stable Helm chart.
You can check the chart values to extend its configuration.
External Redis
If you prefer to have Redis managed by you or hosted outside of Kubernetes, you need to disable the in-cluster redis, and provide the information needed to establish a connection to the external one, e.g.:
broker: redis
redis:
enabled: false
externalServices:
redis:
password: polyaxon
host: 35.262.163.88External Redis with password
If your redis instance requires a password, you need to provide it as well:
broker: redis
redis:
enabled: false
externalServices:
redis:
usePassword: true
password: polyaxon
host: 35.262.163.88
port: 1234Memorystore for Redis
You can use Cloud MemoryStore for Redis if you are running Polyaxon on GKE, please follow this integration guide.
Shared cache
By default, each API worker keeps its own rate-limit counters in memory, so the effective limit grows with the number of workers and replicas. To share the counters through Redis on the control plane, enable:
gateway:
cache:
enabled: trueIf Redis becomes unreachable, the API logs a warning and stops rate limiting until Redis recovers.
Requires Polyaxon v2.20 or later.
Using Redis as broker
You can also use Redis for as async worker broker, please check this section on how to alter the default broker behavior.
Scheduling
If you decided to deploy Redis in-cluster make sure to set proper node scheduling to avoid running high load runs on the same node hosting Redis.