简体   繁体   English

发电机上的Vuser分布

[英]Vuser distribution along generators

I have 6 VUsers on 2 Load generators . 我在2个Load Generator上有6个VUsers With Percentage scenario mode Controller distributes them like this: 百分比方案模式下,控制器按如下方式分配它们:

VUser ID | Load Generator
---------|---------------
1        |  vm-1
2        |  vm-1
3        |  vm-1
4        |  vm-2
5        |  vm-2
6        |  vm-2

I would like distribution with alternating (repeating sequence) Load Generators like this: 我想用这样的交替(重复序列)负载生成器进行分配:

VUser ID | Load Generator
---------|---------------
1        |  vm-1
2        |  vm-2
3        |  vm-1
4        |  vm-2
5        |  vm-1
6        |  vm-2

How can I achieve this? 我该如何实现? Changing to Group mode gives me option to specify generator manually, but this is inconvenient and error prone. 更改为组模式后 ,我可以选择手动指定生成器,但这很不方便且容易出错。

Create two groups of three apiece and ramp them up at the same time. 创建两组,每组三个,并同时进行倾斜。 Assign each group to a distinct generator 将每个组分配给不同的生成器

I had to do similar thing for 1500+ VU and what worked best for me was to copy all the generators (distinct one's) in order in one script by double clicking on it in Run tab. 我必须为1500+ VU做类似的事情,最有效的方法是在“运行”选项卡中双击在一个脚本中依次复制所有生成器(不同的生成器)。 So let's say you have 10 so copy 10 rows in "Load Generators" column after assigning each row with unique generators. 假设您有10个,因此在为每一行分配唯一的生成器后,在“ Load Generators”列中复制10行。 For me there were 9 对我来说有9

'loadgen00'
'loadgen01'
'loadgen02'
.
.
.
.
.
'loadgen08'.

Once you have done this, you can then start pasting it for below series and it will take generators in same order. 完成此操作后,您可以开始将其粘贴到以下系列中,它将按照相同的顺序生成器。 You will get a message "The dimensions of the data on the clipboard is larger than the selected region. Truncate clipboard data?", just click NO. 您将收到一条消息“剪贴板上的数据尺寸大于所选区域。截断剪贴板数据?”,只需单击“否”。 Not sure if this helps but earlier I was changing for each of the 1500+ VU's manually and it was painful and time taking. 不确定这是否有帮助,但更早之前,我手动更改了1500+ VU中的每一个,这很痛苦而且很耗时间。 By this I save lot of time. 这样我可以节省很多时间。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM