指定 Web 测谎仪加载工具的运行时间



我正在使用Web 测谎仪负载测试工具来快速发出http请求,因为它可靠,资源消耗低,并且具有良好的报告。但是,我找不到任何设置来告诉网络测谎仪运行一段时间。我希望能够获得准确的报告,而不是因向进程发送终止信号而导致的潜在遗漏。

我一直在阅读网络测谎仪的帮助页面,可以看到每秒请求数是可配置的,但没有看到对请求持续时间的支持。

我有这样的配置文件(我认为这是选项的位置,可能在机器人配置中(:

Content SimpleContent = {
    size = exp(1KB); // response sizes distributed exponentially
    cachable = 100%;
};
Server S1 = {
    kind = "S101"; 
    contents = [ SimpleContent ];
    direct_access = contents;
    addresses = ['X.X.X.X' ];
};
// a primitive robot
Robot R1 = {
    kind = "R101";
        req_rate = 100/sec;
        interests = [ "foreign" ];
        foreign_trace = "/home/x/trace.urls";
    pop_model = { pop_distr = popUnif(); };
    recurrence = 100% / SimpleContent.cachable; 
    origins = S1.addresses;
    addresses = ['X.X.X.X' ];
};

我希望能够设置一些持续时间,比如 40 分钟,我可以让 R1 机器人每秒请求 100 页,持续 40 分钟。

我从网络测谎仪支持那里得到了答案。为了将来参考,这可以通过阶段和目标对象以及将它们一起使用计划函数来实现。这是我收到的电子邮件的截图:

See the goal field inside the Phase object:
http://www.web-polygraph.org/docs/reference/pgl/types.html#type:docs/reference/pgl/types/Goal
http://www.web-polygraph.org/docs/reference/pgl/types.html#type:docs/reference/pgl/types/Phase
Do not forget to schedule() your phases:
http://www.web-polygraph.org/docs/reference/pgl/calls.html

Many workloads that are distributed with Polygraph include Phase
schedules. To see examples, search for "goal" in workloads/

最新更新