Muliple rails app in one server

Hi,

I have a server with 20Cores / 40Threads.
I used to have only one website app (rails / unicorn / nginx , 40
workers)
on it and everything was working well

recently I added a new website app (rails / unicorn / nginx, 2 workers)
and
since this, I have much less requests for my first website.

htop stats seems to be normal.

[![enter image description here][1]][1]

How can I find out where is the bottle neck ? Maybe it is link with
network, as my second apps is making external requests ? Or maybe IO
access
as my second apps is

https://lh3.googleusercontent.com/-YuFr9AHzi78/V0a8Tqgl-PI/AAAAAAAAAEE/aZGfyHAGMAc5rDDYQSjVnFI09BDPglRgACLcB/s1600/Screenshot%2Bfrom%2B2016-05-26%2B11-03-34.png

How can I find out where is the bottle neck ? Maybe it is link with
network, as my second apps is making external requests ? Or maybe IO
access
as my second apps is also reading and writting in the ssd disk

thanks

A requests goes through nginx -> unicorn -> rails. You can check log
files
starting on the left side. You should be able to see where requests are
dropped or misrouted.

thanks for answer. I ve checked log for all of them and I didn’t see
anything wrong.
I ve also checked iotop, but I don’t know how to see if everything is
ok.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs