Locust支持在同一台机器上开启多线程执行压测,以Master和Slave的模式,各Slave将最终结果呈现在Master Web管理页面。
locust -f locust_files/my_locust_file.py --master --host=http://example.com
locust -f locust_files/my_locust_file.py --slave --host=http://example.com

启动Master

在命令行执行命令locust -f locust_files/my_locust_file.py --master --host=http://example.com

启动Slave

再启动一个新的命令行进程,执行命令locust -f locust_files/my_locust_file.py --slave --host=http://example.com
如果需要多个Slave,那么就再启动新的命令行

Master 页面管理

Locust性能测试III多线程压测
Locust性能测试III多线程压测

相关文章:

  • 2022-02-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-24
  • 2021-08-10
  • 2021-08-23
猜你喜欢
  • 2021-10-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-03-30
  • 2021-06-20
  • 2021-12-29
相关资源
相似解决方案