使用多个唯一 IP 地址的 Gatling 测试

Gatling test with multiple unique IP addresses

我有一个 Gatling 负载测试,它对网络服务进行大量调用,我可以很好地获得响应时间信息,问题是所有调用都是作为一个单一的用户,因此无法通过 Jennifer5 监控工具查看并发用户数。我已经搜索过但无法找到让多个唯一 IP 用户调用此 Web 服务的方法,从而向我显示监控工具中的并发用户数量,但该值是近似值。

我找到了这个 page 但这根本不起作用,我该怎么办?我现在不想切换到 JMeter,尽管我认为它确实具有此功能

根据 forum you are referring to

Note that, of course, you won't be able to do IP spoofing, but only use valid IP aliases.

因此,如果您的 Scala 代码是正确的,那么您的操作系统中必须存在所有模拟的 IP 地址。通过 IP aliasing, refer to your operating system documentation in order to learn how set additional addresses up. You may also find Using IP Spoofing to Simulate Requests from Different IP Addresses with JMeter guide interesting

可以在一个物理网络接口上拥有多个 IP 地址