Skip to content

Any recommendations on how to evaluate Puma’s performance as we increase the number of threads per worker? #3241

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

You must be logged in to vote

There are 128 cores per instance

IME there are pretty heavy diminishing returns on multithreaded performance once you go past 64 CPUs on a single board. Do you mean 128 cores on a single motherboard?

My question is how I can also evaluate if the amount of time a request takes before getting processed by an available thread has improved since increasing the number of threads. I am not sure this can be easily measured in Puma?

It is quite easily measured in fact! What you're looking for is request queue time. You measure it in a way that isn't Puma-specific: timestamp each request at your load balancer with an HTTP header (traditionally X-Request-Start) that has the current time in mill…

Replies: 1 comment 2 replies

Comment options

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

@nateberkopec
Comment options

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