siege官方文档(译)(二) 深圳

WHY DO I NEED IT?

Siege was written for both web developers and web systems administrators.

siege是为了web开发者和网络系统管理员而诞生的。

It allows those individuals to test their programs and their systems under duress.

它允许这些人去测试他们的程序以及他们的系统在受到威迫下。

As a web professional, you are responsible for the intregrity of your product, yet you have no control over who accesses it.

作为一个专业的网络人士,你对你的产品是有责任的,但你无法去控制谁去访问它。

Traffic spikes can occur at any moment.

网络访问的高峰期。

How do you know if you're prepared?

你怎么知道你是否准备好了。

Siege will allow you to place those programs under duress, to allow you to better understand the load that they can with stand.

Siege将允许您将这些程序置于胁迫之下,以便您更好地了解它们可以使用的负载量。

You'll sleep better knowing your site can withstand the weight of 400 simultaneous transactions if your site currently peaks at 250.

如果您的网站目前达到峰值250,那么您知道您的网站可以承受400次同时的事物量。

A transaction is characterized by the server opening a socket for the client, handling a request, serving data over the wire and closing the socket upon completion.

一个事物的特点是通过服务器打开一个soket给客户端,服务器处理请求,通过网络提供数据,以及关闭socket就完成。

It is important to note that HUMAN internet users take time to digest the data which comes back to them.

值得注意的是,人类互联网用户需要花时间去接收返回给他们的数据。

Siege users do not.

siege 用户不需要。

In practice I've found that 400 simultaneous siege users to at least five times that amount in real internet sessions.

在实践中,我已经发现400个siege用户同时请求最少五次,在真实互联网会话中。

This is why siege allows you to set a delay ( --delay=NUM ). When set, each siege user sleeps for a random number of seconds between 1 and NUM.

这就是为什么siege允许你去设置延迟时间.当被设置后,每一个siege用户睡眠时间是一个随机数字,这个随机数字在1和NUM参数之间。

Through your server logs you should be able to get the average amount of time spent on a page.

通过你的服务日志,你应该能够得到花费在一个页面上的平均的时间。

It is recommended that you use that number for your delay when simulating iternet activity.

它是被推荐的,当你模拟浏览器的活动,你使用number这个参数去设置延迟。

原文地址:https://www.cnblogs.com/snailrunning/p/8542884.html