Centos Cluster Testi

Temmuz 1st, 2013 § Yorum yok

Cluster testi:

Zaman verisini cluster ip ye basıyorum ve clientlerda gelen bilgiyi dosyaya yazıyorum.

client dosyası

fatih@fatih:~$ cat client.sh 
while :
do
	nc -l 1234
done
fatih@fatih:~$  bash client.sh > deneme1.txt

Servisi taşıyacağımız clientda da

fatih@fatih:~$  bash client.sh > deneme2.txt

Server dosyası

fatih@fatih:~$ cat server.sh 
while :
do
	date +'%Y-%m-%d %H:%M:%S.%N' | sed 's/[0-9][0-9][0-9][0-9][0-9][0-9]$//g' | nc cluterip 1234
done

fatih@fatih:~$ bash server.sh

Şimdi cluster ip’yi bir sunucudan diğerine taşıyorum

clusvcadm -r "IP" -m deneme1

Oluşan sonuç dosyaları

fatih@fatih:~$ cat deneme2.txt 

2013-07-01 14:46:59.573
2013-07-01 14:46:59.630
2013-07-01 14:46:59.667
2013-07-01 14:46:59.725
2013-07-01 14:46:59.765
2013-07-01 14:46:59.812
2013-07-01 14:46:59.860
2013-07-01 14:46:59.928
2013-07-01 14:46:59.972
2013-07-01 14:47:00.040
2013-07-01 14:47:00.087
2013-07-01 14:47:00.153
2013-07-01 14:47:00.258
2013-07-01 14:47:00.321
2013-07-01 14:47:00.369
2013-07-01 14:47:00.410
2013-07-01 14:47:00.476
2013-07-01 14:47:00.525
2013-07-01 14:47:00.593
2013-07-01 14:47:00.644
2013-07-01 14:47:00.686
2013-07-01 14:47:00.743
2013-07-01 14:47:00.793

fatih@fatih:~$ cat deneme1.txt 

2013-07-01 14:47:21.862
2013-07-01 14:47:21.889
2013-07-01 14:47:21.904
2013-07-01 14:47:21.929
2013-07-01 14:47:21.954
2013-07-01 14:47:21.978
2013-07-01 14:47:21.994
2013-07-01 14:47:22.025
2013-07-01 14:47:22.043
2013-07-01 14:47:22.063
2013-07-01 14:47:22.085
2013-07-01 14:47:22.115
2013-07-01 14:47:22.126

Sonuç: Cluster servisinin başlaması 21-22 saniye sürmekte.

Not:Virtualbox’da Centos 6.4 üzerinde 512mb ram, 2.4 Ghz tek core işlemcili sanal makinada test edildi.

Bir cevap yazın

E-posta hesabınız yayımlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir

Ne yapıyorum ben!?

Centos Cluster Testi başlıklı yazıyı okuyorsun.

Üst Veri