Hello gurus of serverfault. I'm asking you about help to decide which configuration of CPU I need to deploy client's project on his future dedicated server. First of all some words about project: it would be Ruby on Rails project. I've made some checks on my local laptop, while was clicking hard on this projects site. My environment, 2Gb memory, Intel Core 2 Duo T5500 @1.66Ghz. So to be more precise I'll attach my processor info

alex@alex-R40-R41:~$ cat /proc/cpuinfo 
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 15
model name      : Intel(R) Core(TM)2 CPU         T5500  @ 1.66GHz
stepping        : 6
cpu MHz         : 1000.000
cache size      : 2048 KB
physical id     : 0
siblings        : 2
core id         : 0
cpu cores       : 2
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good nopl aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm lahf_lm dts
bogomips        : 3333.55
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:

Another stone is identical to previous one. So client says that it would be about 100 sites with the same configuration(the project) and every of the instance would recieve about 20-30 clicks a day, so we have 2000-3000 hits a day. Take it into consideration Most af all I'm warning about how much of CPU % is taken by Ruby. I'm also attaching the screenshots,, of my peak load when cliking on the project As you see it takes about 40 percents of my CPU The second is MysqlD it takes 2 % of my CPU Ok, so I'm planning to buy 8Gb configuration, but which proc is intended to be used? Thanks beforehands! P.S. Couldn't attach the images but the info of strength test I've included))

link|improve this question
2  
So your load testing is "clicking hard"? These sorts of questions are very hard to answer since without knowing everything about your application we couldn't possibly guess what you require. Do you have a constant load or load spikes? Do you need burst capacity? The first thing to do is get some proper load testing, get an environment identical to the one you will use in production and run a proper benchmarking tool on it. – sam Jan 20 at 11:54
RoR applications can also have a huge difference in performance depending on how you optimize things. What caching are you doing? Are you optimizing page loads so static elements/pages are cached longer than dynamic? etc...there are sites with information on scaling Rails with information that can dramatically affect application performance on the same hardware. – Bart Silverstrim Jan 20 at 11:59
Last, CPU use doesn't have to be high to suck on other resources, like hard disk I/O. I've seen servers that have little processor use but the performance was dragged down by disk throughput. – Bart Silverstrim Jan 20 at 12:01
Thanks Guys for your answeres)) I'll try to order Amazon EC2 it has some usefull features,, then I'll attach the logs. Amazon have nice utilities to monitor,, the average load. Caching should be of course, only regenerated as sweepers tehnique in rails. – Cfyzz Jan 20 at 12:15
1  
I am so bored of this type of question. – Tom O'Connor Jan 20 at 12:24
show 1 more comment
feedback

closed as not a real question by MDMarra, SvenW, Tom O'Connor, ErikA, voretaq7 Jan 22 at 2:19

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. See the FAQ for guidance on how to improve it.

1 Answer

First, you may find the Scaling Rails series provide you some tips on your RoR application.

Second, if you are going to deploy your RoR application in the Amazon cloud, you should use at least the Elastic Load Balancing and Auto-Scaling.

link|improve this answer
Thanks al lot Bintut. I'll take in consideration your suggestions. By the way I've found the utility called Siege it's supposed to be used to test the server in conditions that are close to real ones))) – Cfyzz Jan 20 at 12:50
feedback

Not the answer you're looking for? Browse other questions tagged or ask your own question.