Integrating LoadRunner Enterprise
The integration relies on InfluxDB acting as an external analysis server for LoadRunner Enterprise (LRE).
Integration Architecture
The following schema illustrates the components and networking connections you need to configure to setup the environment:
connection granted between the Akamas server and the LRE server (the one exposing LRE APIs) on port 443 - this connection is used by Akamas to invoke LRE APIs over HTTPs;
bi-directional connection granted between the LRE server (the one exposing LRE APIs) and InfluxDB on port 8086.: this connection is used by LRE to store analysis data into InfluxDB;
connection granted between Akamas server and InfluxDB on port 8086 - this connection is used by Akamas to collect LRE analysis data from InfluxDB.
![](https://docs.akamas.io/~gitbook/image?url=https%3A%2F%2F3992428493-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FD2bGkjffNK6bMgSMYyrY%252Fuploads%252Fiv4bvLlEw1nVWFNVpqjj%252FnetworkDiagram.png%3Falt%3Dmedia%26token%3D4ba40941-0b95-470a-9b54-12e03e0a2eb1&width=768&dpr=4&quality=100&sign=8a420ceb&sv=1)
Configure InfluxDB
The following assumes that you have already deployed your InfluxDB instance. For more information on how to deploy an InfluxDB instance. As a reference, please see here for a native deployment or here for a containerized deployment.
Once you have an InfluxDB deployment, you can configure it by running the following commands:
Since Akamas starts importing the LRE analysis data immediately once the execution is ended, there is no need to store data for a longer period of time than 1 day, which is the value set in the last command.
Please take note of the admin user credentials (akamasinfluxadmin
| password
in the example above) as you will need them later in order to configure the external analysis server on LRE.
Create LRE project and domain
It is recommended to create a dedicated LRE project to store the scripts and tests that you want to run using Akamas. It is also a good practice to also create a dedicated domain.
This can be done by accessing the administration panel on your LRE installation, whose URL should either look like the following:
or, in a multitenancy-enabled environment, like:
First, navigate to the Projects
menu:
![](https://docs.akamas.io/~gitbook/image?url=https%3A%2F%2F3992428493-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FD2bGkjffNK6bMgSMYyrY%252Fuploads%252FvmTTDVnq7NWcapwNSKzy%252FprojectsMenu.png%3Falt%3Dmedia%26token%3D2645f739-347d-4194-a34c-35a27eac84d6&width=768&dpr=4&quality=100&sign=c473113&sv=1)
then click on the Manage domains
button, add a domain and then fill in the required information:
![](https://docs.akamas.io/~gitbook/image?url=https%3A%2F%2F3992428493-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FD2bGkjffNK6bMgSMYyrY%252Fuploads%252FZowk3zU6V2H0geaM7TEW%252FnewDomain.png%3Falt%3Dmedia%26token%3D978f90d2-bb30-4575-b439-04b4311fbb53&width=768&dpr=4&quality=100&sign=627d4a1c&sv=1)
Second, click on the Add project
button and add a project:
![](https://docs.akamas.io/~gitbook/image?url=https%3A%2F%2F3992428493-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FD2bGkjffNK6bMgSMYyrY%252Fuploads%252FKKnNOQaUcTU9lNszUVXn%252FaddProject.png%3Falt%3Dmedia%26token%3D137b3e73-f849-4c86-a231-ea4d4c3b28c6&width=768&dpr=4&quality=100&sign=ee86eed0&sv=1)
and fill in the required information (make sure to select the correct domain), then click on the Manage domains
button, add a domain and then fill in the required information:
![](https://docs.akamas.io/~gitbook/image?url=https%3A%2F%2F3992428493-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FD2bGkjffNK6bMgSMYyrY%252Fuploads%252F2Ng3vXee2nYm1ucyvKO5%252FnewProjectForm.png%3Falt%3Dmedia%26token%3D6c270e78-de09-40b6-84a5-3f2a78d5617d&width=768&dpr=4&quality=100&sign=f105dd2&sv=1)
Configure LRE external analysis server
Access the administration panel of your LRE installation and navigate to the Analysis Servers
menu:
![](https://docs.akamas.io/~gitbook/image?url=https%3A%2F%2F3992428493-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FD2bGkjffNK6bMgSMYyrY%252Fuploads%252FfTRjNaHhJGngVBzzn4Cl%252FanalysisServerMenu.png%3Falt%3Dmedia%26token%3Dd78aab14-57e7-423b-adf8-5c1a48cbda1f&width=768&dpr=4&quality=100&sign=7393f06b&sv=1)
and then click on the plus button to create a new Analysis Server by filling in the required information:
![](https://docs.akamas.io/~gitbook/image?url=https%3A%2F%2F3992428493-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FD2bGkjffNK6bMgSMYyrY%252Fuploads%252FcrPDuLnI5NgADwpen8uE%252FnewAnalysisServer.png%3Falt%3Dmedia%26token%3D16e1d475-39b3-4bd7-b07d-a8f1a0197932&width=768&dpr=4&quality=100&sign=6e60c51&sv=1)
Make sure that the linked projects section lists the dedicated project you have created in the previous step. This step is required to let LoadRunner publish the performance test metrics to InfluxDB for the selected projects.
Notice: you may want to test that the connection to InfluxDB is working correctly by clicking on the Test connection button.
Define LRE users & roles
It is recommended to reserve a dedicated user for executing performance tests that you want to run using Akamas.
To create this user please access the administration panel of your LRE installation, then navigate to the Users menu:
![](https://docs.akamas.io/~gitbook/image?url=https%3A%2F%2F3992428493-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FD2bGkjffNK6bMgSMYyrY%252Fuploads%252FuYypNFkN2H7c1han4AP8%252FusersMenu.png%3Falt%3Dmedia%26token%3Db9c3ecbb-02fe-4f88-a5fc-77831562f04c&width=768&dpr=4&quality=100&sign=83f4793f&sv=1)
then click on the plus button to add a user by filling in the required information:
![](https://docs.akamas.io/~gitbook/image?url=https%3A%2F%2F3992428493-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FD2bGkjffNK6bMgSMYyrY%252Fuploads%252FrWNrMFMQUSw7CVqcEnjR%252Fuser.png%3Falt%3Dmedia%26token%3Dcc3ce3ee-ad60-4fd3-aaa7-98257558aa37&width=768&dpr=4&quality=100&sign=3c7c6c88&sv=1)
Please notice that:
this user must be associated with the project created before and it must have the Performance tester role
this user does not need to have any special admin privilege
Identify your test ID and Set
As a final step on the LRE environment, you need to retrieve the Test Identifier (ID) and the Test Set associated to the performance tests what will be executed by Akamas.
aside positive In the following it is assumed that you already have a test scenario defined in your LRE environment that Akamas will execute as part of an optimization study.
These test ID and test set can be retrieved from LRE Loadtest panel, which you can access it through a link which looks similar to:
or, for a multitenancy-enabled environment:
You can retrieve the ID by selecting the Test Management menu:
![](https://docs.akamas.io/~gitbook/image?url=https%3A%2F%2F3992428493-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FD2bGkjffNK6bMgSMYyrY%252Fuploads%252FGSR4fi4ygVN2K12W0HRB%252FmainLoadtestMenu.png%3Falt%3Dmedia%26token%3D9af8d2a8-68e4-4b3c-aa76-f9a848a55389&width=768&dpr=4&quality=100&sign=5b17d950&sv=1)
and then by clicking on the test that you want to execute: the ID is displayed next to the test name:
![](https://docs.akamas.io/~gitbook/image?url=https%3A%2F%2F3992428493-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FD2bGkjffNK6bMgSMYyrY%252Fuploads%252FEUBTZ0Fwnq5xPSAFf6EO%252FtestId.png%3Falt%3Dmedia%26token%3De55059b6-25df-436e-afcc-82cdc8b719cc&width=768&dpr=4&quality=100&sign=bc290aaa&sv=1)
You can also retrieve the test set from the test details page: the test set is displayed in the upper right corner of the screen:
![](https://docs.akamas.io/~gitbook/image?url=https%3A%2F%2F3992428493-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FD2bGkjffNK6bMgSMYyrY%252Fuploads%252FJZ7Pn2BezXn8NBiQyTDz%252FtestSet.png%3Falt%3Dmedia%26token%3Dee66bb41-8cdd-4d48-a1b2-e049d6697e8d&width=768&dpr=4&quality=100&sign=d0dc9edc&sv=1)
At this point, your LoadRunner Enterprise is ready to be integrated with Akamas.
Creating a Telemetry Instance
To leverage the integration with LoadRunner Enterprise via InfluxDB, a telemetry instance needs to be created on the Akamas side.
First of all, check whether the telemetry provider for LoadRunnerEnterprise is installed:
![](https://docs.akamas.io/~gitbook/image?url=https%3A%2F%2F3992428493-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FD2bGkjffNK6bMgSMYyrY%252Fuploads%252FjlQjFuW12nnilDn4LHpv%252FtelemetryProv.png%3Falt%3Dmedia%26token%3Dd8a8e9a2-53a0-421d-90a1-a9f726cdb252&width=768&dpr=4&quality=100&sign=f15d4795&sv=1)
Then, create a telemetry instance as follows:
where:
address
: it is the FQDN of the server hosting your InfluxDB instanceport
: the port where InfluxDB is runningusername
andpassword
: credentials of the InfluxDB schema created in the previous stepsdatabase
: the name of the InfluxDB database schema created in the previous steps.
Leveraging the integration
A workflow needs to be created for your specific offline optimization study by leveraging the LoadRunnerEnterprise
operator to trigger the execution of a performance test.
The following only represents an example of a simple workflow that you can use to test your LRE integration. It contains just one task that triggers the execution of the specified performance test on LoadRunner Enterprise:
where:
address
: it is the basic address of your LRE farm, where the tenant and any other URL or path parameter have been removedusername
andpassword
: the credentials that you have previously created in the LRE admin paneldomain
andproject
: the domain and the project you have previously created in the LRE admin paneltenantID
: the ID of the tenant your project and user belong to - in case multitenancy is not enabled on your LRE environment, you can skip this parameter or set to the default value, thusfa128c06-5436-413d-9cfa-9f04bb738df3
testId
: the test ID of the test that will be executed by Akamas (you should have already identified it in the previous steps)testSet
: the test set related to the test specified by testId (you should have already identified it in the previous steps)timeSlot
: it specifies the amount of time that LRE will reserve for running your test, therefore it must be greater or equal of the test durationverifySSL
: a flag to enable or ignore the SSL validation when connecting to LRE APIs - this flag is especially useful if your LRE environment exposes APIs over HTTPs with a self-signed certificate.
Last updated