Add load generators to a scenario
The following steps describe how to add a load generator to a scenario. The procedure varies slightly depending on whether you are adding an on-premises or cloud-based load generator.
To add load generators to your scenario:
-
Open the Load Generators dialog box.
In the Design tab, click the Load Generators button . For details, see Load Generators dialog box.
-
Add a load generator machine
Add an on-premises load generator-
Click Add, and enter the details of the load generator. For details, see Add New Load Generator/Load Generator Information dialog box.
-
Click OK. When you add an on-premises load generator, it remains in the Down state until it is connected.
Provision new cloud-based load generatorsThe process of creating a new load generator in a cloud account is known as provisioning the load generator.
Controller installs a default system configuration, or image, on the cloud. Alternatively you can apply a custom image. For more information, see Create custom image for load generators on the cloud.
-
Prerequisite: Set up your cloud account and Controller for provisioning load generators on the cloud. For details, see Load generators on the cloud.
-
Click Add From Cloud > Provision New LG. The Create Cloud Load Generator dialog box opens.
-
From the list of available cloud accounts, select the cloud account which will host the new load generator.
-
Specify the number of load generators to provision.
Tip: Increasing the number of load generators allows you to provision more than one machine with the same parameters.
-
To automatically terminate the machines after the scenario run and after all the data has been collated, select Terminate the load generator when load test is finished.
-
Click More to specify provider-specific parameters and images. Initially, default parameters are selected. These parameters are unique for each cloud provider. For details, see Create Cloud Load Generator dialog box.
Tip: In subsequent provisioning, LoadRunner Professional uses the connection settings that you last applied to a load generator, not necessarily a cloud-based machine.
- In the Machine Settings section, select the relevant settings. These settings differ for each of the supported cloud providers. The default values are the most popular and commonly used settings.
- In the Connections section, select the network profile created for the cloud connection from the drop-down list.
Click the button to open the Network Profile Manager to create a new profile. For details, see Network Profile Manager dialog box. All of the connection settings will be applied to the new load generators that will be provisioned. For example, if you specify Port 6080, the load generator will be created on port 6080 and listen on the same port.
-
Verify the provisioning parameters (amount, termination policy, and machine parameters), and click Provision to provision the specified load generators
During provisioning, the load generator status is In Progress. This status indicates provisioning of the test machine on the cloud and launching the OS and load generator on this machine. This process can take a few minutes.
Once the load generator status changes to Down, it can be used for running a scenario. You can verify its availability by clicking the Connect button.
Caution: If you want to delete a cloud load generator from the scenario, make sure you select the correct deletion option. For details, see Manage load generators on the cloud.
Add an existing cloud-based load generatorYou can use running instances of cloud load generators in your scenario, either provisioned through Controller, or manually created.
-
Prerequisite: Ensure that you have provisioned load generators in your cloud account. For details, see Provision new cloud-based load generators.
-
Click Add From Cloud > Use Existing LG. The Use Cloud Load Generator dialog box opens. For details, see Use Cloud Load Generator dialog box.
-
From the list of cloud accounts, select the cloud account that hosts the desired load generator machine. A list of available load generators is displayed.
-
Select the load generators that you want to add to the scenario in the Available Machines section.
-
Select a Network Profile if you defined them beforehand. The network profile indicates the connection information for the load generator, such as the connection mode, proxy, and ports. To create a new network profile, close this dialog box and choose Tools > Network Profile Manager. For details, see Network Profile Manager dialog box. If the network profile that you chose indicates a different port for an existing load generator (cloud or on-premises), you also need to manually set it on the load generator machine.
- Click Add Machine.
-
-
Check your machine for Shellshock vulnerability.
For Linux load generators, check your machine for the Bash vulnerabilities. For details, see Shellshock vulnerability.