开发者

Can you use proxies to do load/stress testing on a server, with proxy serving as a sort of mirror?

Suppose I want to test a server's and its web application's ability to handle many simultaneous connections well and show decent latency.

So ideally I would want a thousand machines to bombard it with usage requests, but that's not practicable. So instead, can I just make a testing script with a thousand threads to run on the same server and have them perform the testing, connecting to the server via a geographically far-away proxy?

My reasoning here is that the signal will have to travel realistically big distances to the proxy and back, so that sort of emulates the reality of real clients accessing the server.

Then again, to take this one step further, are there prepackaged emulators/frameworks that could perform a similar test without using internet at all, just sim开发者_Go百科ulating the latency of the network, realistically creating all the socket connections and other resource intensive stuff etc?


There are lots of load testing products (open source and commercial) that have bandwidth/latency simulation. Running through various remote proxies is overly complex. On the open source side, look at JMeter and Pylot. On the commercial side, my company, BrowserMob, provides a website load testing product that uses the Amazon cloud to generate load. We actually do generate load from thousands of machines/IPs, without breaking the bank :)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜