Catalin Catana wrote:
Dan Uscatu wrote:
la 10.000 pe zi cre'ca poti lua orice hardware decent de pe piata,
ii pui ram in nesimtire + discuri rapide si cam asta e.
nu ma multumeste, asta e raspuns cit de cit logic pe care-l poate da
oricine, fara sa aiba cunostinte de IT. hardware decent poate insemna
pentru cineva un celeron la 800 ramas de pe undeva sau un 2x quad core.
eram curios daca exista vreo formula magica sau macar niste
statistici gata facute.
Ce vrei sa faci cu el ?
shared hosting sau o singura aplicatie lamp ?
Catalin C.
De fapt indiferent de scopul serverului poti face niste teste de cu
apache benchmark
exemplu pe o masina cu urmatoarea configuratie
1 x Amd Duron 1.3Ghz, 512MB Ram, IDE 5200 ATA66
[EMAIL PROTECTED] ~]# ab -n 1000 http://localhost/hello.html
Server Software: Apache/2.2.3
Server Hostname: localhost
Server Port: 80
Document Path: /hello.html
Document Length: 66 bytes
Concurrency Level: 1
Time taken for tests: 1.479950 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 337000 bytes
HTML transferred: 66000 bytes
Requests per second: 675.70 [#/sec] (mean)
Time per request: 1.480 [ms] (mean)
Time per request: 1.480 [ms] (mean, across all concurrent requests)
Transfer rate: 222.30 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.0 0 0
Processing: 1 1 0.4 1 14
Waiting: 0 0 0.4 0 12
Total: 1 1 0.4 1 14
Acelasi test pe o alta masina cu urmatoarea configuratie:
2 x Xeon 3.06 Ghz, 2GB RAM, SCSI 10K/rpm
[EMAIL PROTECTED] ~]# ab -n 5000 http://localhost/hello.html
Server Software: Apache/2.2.3
Server Hostname: localhost
Server Port: 80
Document Path: /hello.html
Document Length: 59 bytes
Concurrency Level: 1
Time taken for tests: 2.134476 seconds
Complete requests: 5000
Failed requests: 0
Write errors: 0
Total transferred: 1610000 bytes
HTML transferred: 295000 bytes
Requests per second: 2342.50 [#/sec] (mean)
Time per request: 0.427 [ms] (mean)
Time per request: 0.427 [ms] (mean, across all concurrent requests)
Transfer rate: 736.48 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.0 0 0
Processing: 0 0 0.0 0 0
Waiting: 0 0 0.0 0 0
Total: 0 0 0.0 0 0
Testul a fost facut cu un fisier static.
Acum tu poti sa faci mai multe teste .. cu scripturi php care folosesc
si bazele de date si asa mai departe
dupa care la sfarsit poti trage niste concluzii in functie de cum s-a
comportat si poti estima cat de cat
de ce hardware ai nevoie pentru un milion de vizite pe zi.
Oricum ceva nu e in regula cu testul meu de pe masina #2 pentru ca pe un
server cu 1 procesor xeon la 2.4 Ghz
pe un fisier static de vreo 70 bytes am avut vreo 8000 de cereri servite
intr-o secunda. Sigur e ceva nasol in configuratia mea de la apache.
Catalin C.
_______________________________________________
RLUG mailing list
[email protected]
http://lists.lug.ro/mailman/listinfo/rlug