Host templates

This section describes how to use templates to provision your elastic cloud-based hosts.

Host templates overview

Host templates are used for defining provisioning-related details, such as instance types, regions, hardware specifications, and software images. You create your own templates, and LoadRunner Enterprise uses the details of the selected template to provision your host.

All elastic cloud hosts are provisioned from host templates. When you provision a host, LoadRunner Enterprise copies the details of the template into the provisioned host.

  • LoadRunner Enterprise CloudBurst accounts. Host templates for LoadRunner Enterprise CloudBurst accounts are automatically imported when you set up your CloudBurst account and are read-only. For details, see LoadRunner Enterprise CloudBurst load generators.

  • External cloud accounts. If you are using an Amazon EC2 cloud account, LoadRunner Enterprise creates host templates for each cloud account by default. The templates can use predefined Micro Focus images or custom images and the recommended hardware settings (defined by instance type) for the load generator machine. For Microsoft Azure cloud accounts, you must create you own host templates. When using the host templates, the administrator can control and manage which machine's specifications are allowed and recommended for use.

Back to top

Considerations when creating a host template

When creating host templates, make sure to:

  • Create a template for each host configuration that your testers will need. Testers can only provision cloud hosts from existing templates.

  • Clearly describe the type of host that is provisioned by each template so that testers can provision exactly the hosts they need.

Create an elastic cloud host template

This task describes how to create a cloud host template in LoadRunner Enterprise.

  1. Prerequisites

    To add a host template to LoadRunner Enterprise, you must have added at least one cloud account. For details, see Cloud accounts.

  2. In LoadRunner Enterprise Administration, select Configuration > Cloud.

  3. Select the Host Templates tab, and then click Add Host Template.

  4. In the New Host Template dialog box, enter a name and description that clearly describe the type of host that is provisioned by the template so that testers can provision exactly the hosts they need.

    LoadRunner Enterprise automatically generates and ID for the host template at the time the template is created.

  5. Enter the following details for the new host template:

    UI Element Description
    Cloud Account The cloud account for which the template provisions a host.
    Type

    The installation type of the host. The following types are available:

    • Unix Load Generator. Indicates that this Unix host is used as a Load Generator for performance tests.

    • *OneLG / Windows Standalone LG. Indicates that this Windows host is used as a standalone Load Generator for performance tests.

      *OneLG is a combined load generator installation for all of the LoadRunner family products that was introduced in LoadRunner Enterprise SP3.

    Note: Make sure you select the correct installation type for the image. Incorrect settings will cause the performance tests to run incorrectly.

    Location The region where the hosts are provisioned.
    Image

    The software image used for cloud hosts provisioned from the template. Machine images are managed on the website of your cloud provider, and are accessed automatically when creating host templates.

    Note: If the image value cannot be displayed, verify that you used the correct cloud account number.

     

    Instance Type

    (AWS cloud accounts only)

    The hardware specs of cloud hosts provisioned from the template. Instance types can be viewed on the website of your cloud provider, and are accessed automatically when creating host templates.

    Note: While Amazon lists EC2 F1 instances for Windows, they are available for Linux/Unix operating systems only.

    Virtual machine sizes

    (Microsoft Azure cloud accounts only)

    Size of the Azure virtual machine.

    Virtual Networks

    (Microsoft Azure cloud accounts only)

    Select a virtual network for virtual machines to use.

    Host Password

    (Microsoft Azure cloud accounts on Windows platforms only)

    Enter a password to use as the administrator’s password for all virtual machines.

    The password must be between 8-123 characters long, and contain at least one character from three of the following categories: uppercase letter, lowercase letter, numeric digit, special character. Control characters are not allowed.

    SSH Public Key

    (Microsoft Azure cloud accounts on Linux platforms only)

    This key is installed on the virtual machines.

    Security Group

    (AWS cloud accounts only)

    Select a security group that allows the necessary access to your testing hosts. Security group specifies which inbound and outbound connections are permitted from the hosts, such as port 80 (HTTP) or port 3389 (RDP). Security groups are configured on your cloud provider's website, and must be created separately for each location. Only security groups configured for your selected location are displayed. For details, see Initial cloud settings overview.

    Key Pair

    (AWS cloud accounts only)

     

    Select a key pair for which you have the private key. Key pair is used to generate the administrator password for Windows machines and to log in to Linux machines. Key pair is only relevant if you plan to remotely connect to your cloud hosts.

    Key pairs are managed on your cloud provider's website, and must be created separately for each location. Only key pairs configured for your selected location are displayed. For more details on key pairs, see Initial cloud settings overview.

    Note: You must have at least one key pair in order to provision a host.

    Use Elastic IP Addresses

    (AWS cloud accounts only)

    If you defined a pool of predefined IP addresses with your cloud provider, select this option to use those predefined static IP addresses to provisioninig your host. For more details on elastic IP addresses, see Initial cloud settings overview.

    VPC Subnet Id ID of the virtual private cloud (VPC) subnet.
  6. Click Save. The host template is created.

    Your new host template can now be used to provision cloud hosts.

Back to top

Export host template details to an Excel file

To export information displayed in the host template grid to an Excel file, click . Data from the grid is saved to an Excel file and downloaded to the Downloads folder of the client user.

Back to top

Create images for Microsoft Azure cloud accounts

To create images for Microsoft Azure cloud accounts, follow the instructions in this KB article.

Back to top

Modify host template details

To modify details for a host template:

  1. In LoadRunner Enterprise Administration, select Configuration > Cloud.

  2. In the Host Templates tab, select a template from the Host Templates list (click the link in the Template Name column). The Host Template details page opens.

  3. Make any necessary changes and click OK. For details, see Host Template details.

Back to top

Delete host templates

To delete a host template:

  1. Prerequisites

    Before deleting host templates, make sure there are no assigned projects with tests using the templates (deleting a host template that is used by a test will cause the test to fail).

  2. In LoadRunner Enterprise Administration, select Configuration > Cloud.

  3. In the Host Templates tab, select the host templates that you want to delete, and click Delete.

Back to top

Next steps: