Skip to content

Latest commit

 

History

History

3_Generate_Load_on_UI

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

Generate Load on the New UI

This lab runs a load generation script for TicketMonster. The script simulates real user actions by utilizing the PhantomJS and CasperJS framework. While PhantomJS is a headless web browser scriptable with JavaScript, CasperJS allows you to build full navigation scenarios.

scaling_up

Requirement(s) for this Lab

Install the following tool(s):

Step 1. Build Docker image

  1. Switch to the load-generation directory.

  2. Build image using Docker.

    docker build -t <your dockerhub account>/loadgeneration:latest .
    docker images
    

Step 2. Run container and start script

  1. Usage of load generation script:

    usage: loadgeneration.sh <target URL> <duration in minutes> <[clients/minute] | [empty = random number of clients (1..10) / minute] >
    
  2. Start script using the container.

    docker run -d --rm <imageID> /bin/bash loadgeneration.sh <your-front-end-url> 10 15
    

Previous Step: Extract UI From Monolith ◀️ ▶️ Next Step: Identify a Microservice

🔼 Back to overview