Quantcast
Channel: Active questions tagged redis+ruby-on-rails - Stack Overflow
Viewing all articles
Browse latest Browse all 873

Calculating Needed Redis and Postgres Connections with Sidekiq

$
0
0

I am trying to determine the needed number of connections for a Heroku setup.

Ruby on Rails 6SidekiqPostgresRedis

I used primary numbers to avoid confusion in the calculations. I am wondering if my calculations are correct.

Example calculations

I plan on using 1X or 2X heroku dynos. Assuming my calculations above are correct.

I plan on starting out on Setup A...

Note:

For Setup A and B, Sidekiq will determine the server connection pool. Ignore those entries.

Setup A

Setup A

When the app grows moving to setup B.

Any flaws in the setups? For example, should Sidekiq Concurrency equal my Max thread count or any other value? Any ratios of these parameters I should keep in mind?

Setup B

Setup B

Is there anything wrong with this configuration?


Viewing all articles
Browse latest Browse all 873

Trending Articles