You can simulate a mix of HTTP and HTTPS traffic for a CDN by choosing the number of HTTP delivery services and the number HTTPS delivery services the test will exercise.
There are 2 parts to the load test.
- A web server that makes the actual requests and takes commands to fetch data from the CDN, start the test, and return current results.
- A web page that's used to run the test and see the results.
- You will need to make sure you have a CA file on your filesystem
- The web server is a go program, set your GOPATH env variable appropriately
- Open a terminal program and navigate to the traffic_control/test/router/server directory
- execute the command
go run server.go
- Open the file traffic_control/test/router/index.html
- Authenticate against a Traffic Ops host, should be an instantaneous operation, you can watch the output from server.go for feedback
- Enter the Traffic Ops host in the second form and click the button to get a list of CDN's
- Wait for the web page to show a list of CDN's under the above form, this may take several seconds
- The List of CDN's will display the number of Http and Https capable delivery services that may be exercised
- Choose the CDN you want to exercise from the dropdown
- Fill out the rest of the form, enter appropriate numbers for each http and https delivery services
- Click Run Test
- As the test runs the web page will occaisionally report results including running time, latency, and throughput