Nginx, how could I know how many threads should I set in puma config?


0 votes
asked Mar 16, 2016 by or7532Be (590 points)
I use nginx with reverse proxy to puma server. How could I know how many workers and threads_count should I take in configuration.

4 Answers

0 votes
answered May 15, 2016 by Chaobal (1,070 points)

If you haven't already, you'll need to set up your VPS to work with Capistrano.
Once you have configured your Procfile and puma.
Next, create a puma config file and edit it to resemble this: # config/puma.
commented May 16, 2016 by v2184Werthe (250 points)
See the Rails Getting Started guide if you're not up to there yet
0 votes
answered Jun 2, 2016 by cassidy2712 (230 points)

Let's create and edit that inventory file now: sudo vi /etc/puma. Now copy the scripts to the Upstart services directory: sudo cp puma.
Open the file in a text editor: vi config/puma.

I wrote a bug report here How To Deploy a Rails App with Puma and Nginx on Ubuntu 14.04 | DigitalOcean this is a bug, how could I get this to work
commented Jun 3, 2016 by is_horey (1,130 points)
See the Rails Getting Started guide if you're not up to there yet
commented Jun 4, 2016 by Ure_5849 (110 points)
Install PumaNow we are ready to install Puma
0 votes
answered Jun 2, 2016 by Is_kuitu (150 points)
commented Jun 4, 2016 by selph (100 points)
Get the latest tutorials on SysAdmin and open source topics
commented Jun 4, 2016 by Holdbrook (1,380 points)
Hopefully this is an easy one but I have not found a solution. No need to change anything else
0 votes
answered Jun 2, 2016 by dont8507 (730 points)
We will be using Upstart in this guide

What is Geekub?

Q&A site for professional and enthusiast programmers, software developers and other technical users. With your help, we hope to work together to build a library of detailed answers to just about any question that is related to programming!







...