Muliple rails app in one server

0 votes

38 views

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.

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..

I was working on a test app and everything was going great. However now when I run "rails server" and none of the changes to the controller files are reflected.

If I make changes to HTML files, those are reflected. And yes, I'm sure am in the right directory editing the correct files.

I can get rid of actions in the controller files and it still works fine. Do I have to do something after I change the ruby files? I thought I could just save them then run 'rails server'... It had seemed to be working doing just that previously.