英文:
JMeter - Throughput Controller random execution instead of sequential execution
问题
我有大约10个吞吐量控制器,它们具有不同的百分比,并且我有100个用户。在负载测试期间,总是让这100个用户先运行第一个控制器,然后再运行第二个控制器。这会导致第一个后端事务负载很重,而其他的事务尚未运行。
是否有一种方法可以随机运行不同的控制器,但仍然遵守吞吐量控制器中设置的百分比,以分散负载?
谢谢。
英文:
I have about 10 Throughput Controllers with different percentages and I have 100 users. During the load test, it always have the 100 users run the first Controller followed by the second. This loads up the first backend transaction while the rest are not run yet.
Is there a way to run the different controllers randomly but still abide by the percentage set in the Throughtput Controller spreading the load ?
Thanks.
答案1
得分: 0
如果您有给定“不同的百分比”,用户数为100,执行第一个控制器的子代的用户数应该等于吞吐量控制器中设置的百分比。
演示:
或者,您可以使用切换控制器或加权切换控制器,它更容易配置,您不必复制和粘贴并维护所有这些吞吐量控制器,配置将在一个地方完成。
英文:
If you have "different percentages" given the number of users is 100 the number of users executing the first controller's children should be equal to the percentage set in the Throughput Controller.
Demo:
Alternatively you can use Switch Controller or Weighted Switch Controller, it's easier to configure and you won't have to copy and paste and maintain all these Throughput Controllers, the configuration will be done in only one place.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论