Skip to content

How to determine the optimal number of Puma workers when there are multiple Rails application in one server? #3087

Answered by nateberkopec
fireva asked this question in Q&A
Discussion options

You must be logged in to vote

The optimal number is always 1 Puma worker process per 1 CPU core, then tune thread count so that the CPU core is well-utilized at maximum load.

So, if I have 4 cores and 2 applications, I would configure 2 workers for the first application and 2 workers for the second application.

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@fireva
Comment options

Answer selected by fireva
Comment options

You must be logged in to vote
2 replies
@nateberkopec
Comment options

@9mm
Comment options

Comment options

You must be logged in to vote
2 replies
@9mm
Comment options

@MaloTheCat
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants