top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Muliple rails app in one server

0 votes
363 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..

posted May 26, 2016 by Sheetal Chauhan

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

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.

answer May 26, 2016 by Honey
Similar Questions
+1 vote

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.

+1 vote

Something like x.instance_variables.each.... { |i} .... }

Thought to be a one liner. I can't figure out how to apply strip() to each variable, since instance_variable_get returns the value. I really want something I can apply .strip! to....

+1 vote

User when creating a post in blog adds voting, specifies items for voting, while others can vote and see the results.

Maybe who have this in projects and can me show code, how you implement in your project. Or explain me, how can I do it?

+2 votes

I've created a Sample Facebook app, (i.e) Post and comment. I've done and I need to tagging feature here. Assist me to build my ideas.

...