Archive for January 1st, 2007

Load testing – the quick & easy way

I’ve been doing load / capacity testing stuff for years now. In fact, my 2000 Master (S2) thesis was about this exact topic.

There are many ways to do this.
First, as with any other projects, you’ll need to define your requirements & objectives. Only then you can start choosing the tools and the methodologies.
This is probably where most people went wrong. Load testing doesn’t have to be hard to do, but when you haven’t defined the requirements & objectives, then chance are you’ll be doing it incorrectly.

Second, devise the methodology.
There are 3 main ways to simulate a real-life load on the IT infrastructure :

[ 1 ] Pure simulation :
Some software enable you to do this. You defined the infrastructure first in that simulation software – the servers, the network links, capacity of each items, how it interacts with each other, and so on.

This is fine, actually quite great, to get a big picture of our infrastructure.

[ 2 ] Network simulation :
Sometimes (or, many times) you’ll need to focus on the network. The network is probably the most important aspect of any IT infrastructure. Without a network, each computer is in its own island, and its usefulness diminished by a huge deal.

Some software will enable you to simulate your network, and then runs various test cases on it. You’ll then be able to measure the performance of the network – what’s max throughput ? latency ? any dropped packets ?
You may even find bottlenecks where you didn’t expect any.

[ 3 ] Application-level simulation :
Some software enable you to show you the behaviour of an application based on simulated load.

An example is the software used to simulate visitors to your webserver.

It’s really great because you’re actually seeing the real hardware performing to (close to) real requests. The results sometimes can be quite different from the testing we discussed on point 1.

There are many software now available to do our load testing. Some are free, some are easy to use, some are very expensive (to the tune of tens of thousand dollars), some are very hard to configure, and so on.

But if you have defined your requirements & methodology, it will be quite easy to pick the one suitable for your needs.

Load testing – the quick & easy way

If your needs are simple, for example you’re optimizing a webserver and just need a rough idea on how it currently performs, then you can just use OpenWebLoad. I simply haven’t found anything more simple.
I know, it has not been updated since 2001. But this is probably because it **works** :)

Once you got it installed, testing your webserver can be as simple as openload http://asiablogging.com 10
That command means you’d like to simulate 10 visitors hitting your website as quickly as possible.

That’s it :)
Very simple isn’t it? Yet it has helped me many times when I was optimizing our customers’ servers.

OK gotta go, hope you find it useful. And, happy new year !

Komentar untuk di Politikana.com

Komentar saya di politikana.com tampil acak-acakan, terutama berbagai link yang dicantumkan disitu. Mungkin karena bug pada script komentar. Jadi saya lampirkan disini sebagai rujukan :

Apalagi selama 5 tahun ini praktis tak ada sama sekali kasus korupsi dalam skala sangat besar yang diungkap kader PKS. …. Kenapa para kader PKS tak mengungkapkan secara luas ke publik praktek-praktek suap dan korupsi yang umum terjadi di lembaga legislatif?
——–

Err…

PKS: Korupsi terbesar ada di DPR

http://www.inilah.com/berita/politik/2009/03/24/93044/pks-korupsi-terbesar-ada-di-dpr/

Korupsi DPR via 400 cek : http://www.pk-sejahtera.org/v2/index.php?op=isi&id=5917

PKS Setuju Koruptor Dihukum Mati : http://www.pk-sejahtera.org/v2/index.php?op=isi&id=5515

PKS ungkap ciri-ciri anggota DPR yang korupsi : http://www.inilah.com/berita/citizen-journalism/2009/03/29/94295/pks-ungkap-ciri-anggota-dpr-korup/

PKS terbesar mengembalikan dana gratifikasi (Rp 1,9 milyar), terbesar berikutnya hanya Rp 15 juta :

http://suryama.multiply.com/journal/item/225/

http://www.inilah.com/berita/2009/03/30/94430/pks-menang-uang-negara-aman/

PKS : Gelar Nasional Pemberantasan Korupsi : BENTUK KPK DAERAH : http://www.pks.or.id/v2/main.php?op=isi&id=6448

PP 37/2006, Korupsi Yang Dilegalkan : http://www.pks.or.id/v2/index.php?op=isi&id=2643

FPKS Laporkan Korupsi Penambangan Batubara ke KPK : http://www.pk-sejahtera.org/v2/main.php?op=isi&id=5699

Petunjuk ke beberapa kasus korupsi besar : http://www.pks.or.id/v2/main.php?op=isi&id=2703

Usul penyadapan dilakukan lebih meluas : http://www.pks.or.id/v2/main.php?op=isi&id=4775

Dst, dst, dst.

Pencegahan korupsi lebih efektif jika KPK bisa mengakses Bapenas (ide brilian) : http://www.pks.or.id/v2/index.php?op=isi&id=5715

———
Kenapa para kader PKS tak mengungkapkan secara luas ke publik praktek-praktek suap dan korupsi
———

Well, easy for you to SAY :

Ungkap Korupsi Pengadaan Buku Rp 1,6 Miliar, Ketua DPRD Bengkulu Malah Dipenjara :

http://pk-sejahtera.de/index.php?option=com_content&view=article&id=56:ungkap-korupsi-pengadaan-buku-rp-16-miliar-ketua-dprd-bengkulu-malah-dipenjara&catid=1:berita&Itemid=57

Pemberantasan Korupsi Hadapi Serangan Balik :

http://www.pk-sejahtera.org/v2/main.php?op=isi&id=565

Saya sendiri pada saat ini sedang berusaha mengungkap satu kasus korupsi besar, dan saya bisa katakan dari pengalaman sejauh ini : sulit sekali.
Sistim tidak mendukung, resiko kepada pelapor sangat besar, bukti-bukti sangat sulit untuk dikumpulkan, dst

Dan kalaupun ini semua sudah dilampaui, musti siap-siap dituntut dengan tuduhan “pencemaran nama baik”. Beuh…

———
Publik tidak buta.
———

Well… bisa jadi, ya. **sigh**

(bukan kader PKS, cuma sudah bosan saja melihat artikel2 dengan klaim bombastis tapi kontradiksi dengan fakta yang ada)

Anyway, bagi saya pribadi, ini satu lagi reminder mengenai kebenaran pepatah “perception is reality”

Dalam soal pembentukan persepsi positif / opini publik, memang jelas PKS masih keok. Masih sangat sering gagal.
Ini perlu segera menjadi perhatian mereka, jika tidak ingin terus semakin terpuruk lagi.

            








SEObox: Web Hosting Murah Unlimited Homeschooling Indonesia lead retrieval trade show registration