Skip to content

Commit

Permalink
Update Deployment.md
Browse files Browse the repository at this point in the history
  • Loading branch information
paveltiunov authored May 5, 2020
1 parent c92f684 commit e798842
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/Cube.js-Backend/Deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ If `REDIS_URL` is provided Cube.js will create Redis pool with 2 min and 1000 ma
`CUBEJS_REDIS_POOL_MIN` and `CUBEJS_REDIS_POOL_MAX` environment variables can be used to tweak pool size.
No pool behavior with each connection created on demand can be achieved with `CUBEJS_REDIS_POOL_MAX=0` setting.

If your `CUBEJS_REDIS_POOL_MAX` too low you may see `TimeoutError: ResourceRequest timed out` errors.
As rule of a thumb you need to have `Queue Size * Number of Cube.js server instances * Number of tenants` concurrent connections to ensure best performance possible.
Lower number of connections still can work however Redis becomes performance bottleneck in this case.

### Running without Redis

If you want to run Cube.js in production without redis you can use `CUBEJS_CACHE_AND_QUEUE_DRIVER=memory` env setting.
Expand Down

0 comments on commit e798842

Please sign in to comment.