ruby on rails - Multiple servers or everything in a single server? -


i have rails app uses mysql, mongodb, nodejs (and socketio). right now, app (everything) hosted inside 1 box. know should when number of users grow. factors should take account determine whether need host separate element in box (like mysql, node, mongo in each of separate box). should make 1 single box bigger? there best-practice method can go with?

if guys can provide me reference, guides, research regarding topic. please do. super noob @ deployment , server configuration.

the short answer move own box. longer answer is: depends on app's usage.

i recommend use nagios or similar monitor app's resource utilization -- is, how cpu , ram each of services use. when 1 starts each resources (and page load speed negatively affected), move own box.

then continue monitor box, beef when necessary or shard out.

the high scalability blog reading on other people have done.


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -