To deploy your MAR-based Mock Services on a containerized VSE, install a BlazeMeter Virtual Service Environment.
All you need is a BlazeMeter Private Location (OPL). As long as you enable the correct options during (OPL) creation, a BlazeMeter Virtual Service Environment is installed on a Docker container at the same time as the BlazeMeter Agent installation.
BlazeMeter Virtual Service Environments spin up on demand when you deploy a Mock Service to them. Otherwise, the container does not use resources when not needed.
Ensure that the server on which you are installing the BlazeMeter Virtual Service Environment adheres to all Docker installation requirements on the Private Location System Requirements page.
Install the BlazeMeter Virtual Service Environment on Docker
- Click the Gear icon at the top right of the BlazeMeter UI.
- Click Private Location under Workspaces.
If you don't see this option, you don't have the appropriate credentials. Either request to become an admin in your workspace, or work with an administrator to create the private location.
- Click the Add button.
- Name the private location, choose Shared run type, and click Next.
- Select Mock Services and Service Virtualization Bridge under Functionalities, and click Create.
- Click Add Agent.
- Name the agent and click Create Agent.
A window appears that includes a Docker command for running the agent.
- Copy the Docker run command to a text file.
- (Optional) If needed, add a PREFERRED_LOCATION property to the Docker command with a value specifying the network interface you want to use for network traffic from Mock Services.
Example: --env PREFERRED_INTERFACE=eth0
For more information, see Configure Crane Agent to Ensure Mock Service Deployed on Private Location is Reachable.
- Open a terminal on the system where you want to install the agent and run the Docker command that you copied in Step 8.
As long as you chose the correct options during Private Location creation, the agent installation will also install the images for a BlazeMeter Virtual Service Environment.
- Verify that the agent is running on the Private Locations page.
- Click Mock Services and click the Environments page.
Your installed BlazeMeter Virtual Service Environment should appear on this page.
If your agent installation was successful but you do not see an entry on the Environments page, verify that the BlazeMeter Virtual Service Environment feature is enabled in your workspace.