Questions tagged [puma]

A fast, concurrent web server for Ruby & Rack

Puma is a Ruby/Rack web server built for parallelism.

5 questions
6
votes
1 answer

Why isn't puma using all of its threads?

I'm using puma and nxinx, and as far as I can tell it is only ever using a single thread even when I start it with the default of 16 threads or more. I've set up a fresh rails app, then gone through the set up described…
DrFredEdison
  • 261
  • 4
  • 12
1
vote
1 answer

Puma with systemd and socket activation - Errno::EADDRINUSE

I have a Rails 5 app, running on puma 3.12.1, MRI 2.6.2, and Ubuntu 18.04. It used to run with pumactl and a custom control script but I want to configure it properly with systemd, using socket activation to have zero-downtime deployment. The…
vbalazs
  • 119
  • 4
1
vote
2 answers

Rails SSL running puma and EC2 AWS

Specs: Rails 4.2.4, Ruby 2.1.9, running puma, EC2 instance in production mode I have an SSL certificate that I want to install on my server but using techniques like this one yields no results rails s puma -b…
0
votes
0 answers

Puma error while loading library: libicuuc.so.60

I just did a do-realease-upgrade on ubuntu 18.04 to 20.04 and i'm getting an error while attempting to start a puma server for a mastodon instance. bundle[8604]: [8604] ! Unable to load application: LoadError: libicuuc.so.60: cannot open shared…
pg_obc
  • 1
  • 2
0
votes
0 answers

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

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…