We are POC’ing Cube.js as a backend caching/pre-aggregations layer and for managing data schemas. I just created a Helm chart (I couldn’t find one online) and started deploying to Kubernetes. I was wondering under what circumstances it is safe to run multiple Cube.js pods in a deployment. This is mostly for high availability and horizontal scaling (perf). It seems like caching should be fine, given the use of Redis, but I am worried that weird things could happen w.r.t. pre-aggregations when running many pods. Specifically, I think the pre-agg refreshers could step on each others toes.
Is it safe to run multiple instances in a single deployment? If not, what is needed to do so?