Hi there, what does the number of Ruby instances a server keeps running really depend on? Can I model/calculate that somehow as a function of the number of users on the website or do I just have to wait and see how the situation evolves? I really do hope it''s not 1 ruby instance per user that''s necessary, because the instances I saw on my server were all using between 120MB and 140MB of memory, which seems huge to me (I''m a novice to all that, though). Thank you very much for any explanations! Tom -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Frederick Cheung
2011-Jan-31 21:02 UTC
Re: What is the number of Ruby instances needed on a server?
On Jan 31, 8:55 pm, Tom Ha <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> > I really do hope it''s not 1 ruby instance per user that''s necessary, > because the instances I saw on my server were all using between 120MB > and 140MB of memory, which seems huge to me (I''m a novice to all that, > though). >It''s a function of how much traffic you''ll be handling. If you need to be able to handle 100 requests/s and your instances can handle 10 requests/s then you''ll need about 10 instances. How that maps onto numbers of users depends on your site. Fred> Thank you very much for any explanations! > Tom > > -- > Posted viahttp://www.ruby-forum.com/.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Thanks, Fred! 1 question back - if you say...> ...and your instances can handle 10 > requests/s then......is the "10 requests/s" per instance the average capacity of a Ruby instance? If not, do such figures exist or make any sense? Or would I have to calculate my own instance capacity, simply based on what my server''s hardware actually swallows during usage? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Peter Bell
2011-Jan-31 21:29 UTC
Re: Re: What is the number of Ruby instances needed on a server?
You have to performance test based upon likely usage scenarios (click flows) for your app. I''ve never come across good metrics in any programming language for "how many users can a web app handle". It just depends too much on how the users use the app and what the app does to respond to those users. Best Wishes, Peter On Jan 31, 2011, at 4:18 PM, Tom Ha wrote:> Thanks, Fred! > > 1 question back - if you say... > >> ...and your instances can handle 10 >> requests/s then... > > ...is the "10 requests/s" per instance the average capacity of a Ruby > instance? If not, do such figures exist or make any sense? Or would I > have to calculate my own instance capacity, simply based on what my > server''s hardware actually swallows during usage? > > -- > Posted via http://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Tom Ha
2011-Jan-31 21:32 UTC
Re: Re: What is the number of Ruby instances needed on a server?
Got it, thanks a lot guys! -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.