Score:0

What is the correct number of Puma workers when there are two Rails application multithreaded, inside server with 4 CPU cores?

lk flag

I have a server with four CPU cores and two rails applications served with the Puma in multithreaded mode. Both applications use the same number of resources and are expected to have an equal load. How should I set the number of workers in Puma configuration on each application? Should each application have four workers or should I divide the CPU core and use two workers for each application?

I hope someone can help me with what is the right number of workers and explain the reason behind it.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.