Skip to content

Load Testing

burak-58 edited this page Nov 23, 2018 · 19 revisions

In this tutorial, we explain how load tests can be made for Ant Media Server.

Test Setup

Test setups has two parts: test server and SUT (system under test). We have two different setups for two different SUT.

One Instance Setup

Here we have only one Ant Media Server instance as SUT.

+-------------------+                  +----------------------+
|                   |   streaming      |                      |
|                   |   playing        |                      |
|                   | <--------------> |                      |
|    Test Server    |                  |   Ant Media Server   |
|                   |                  |                      |
|                   | <--------------> |                      |
|                   |    rest          |                      |
+-------------------+                  +----------------------+

Preparation of Setup and Running Tests:

  • To prepare Ant Media Server, please look at here.
  • To prepare Test Server, please look at here.
  • To run tests and collect results, please look at here.

Cluster Setup

Here we have a cluster structure as SUT which contains one origin and two edge servers.

                                               +--------------------+
                                               |                    |
                                               |                    |
                                               |  Ant Media Server  |
                                    +--------->+                    |
                                    |          |     (Origin)       |
+-------------------+               |          |                    |
|                   |    streaming  |          |                    |
|                   +---------------+          +--------------------+
|                   |
|    Test Server    | playing             +-----------------------------+
|                   +<--------------------+                             |
|                   |                     |       Load Balancer         |
|                   +<------------------->+                             |
+-------------------+   rest              +------+-------------+--------+
                                                 |             |
                                                 |             |
                                                 |             |
                                                 |             |
                                                 |             |
                                 +---------------+----+   +----+---------------+
                                 |                    |   |                    |
                                 |                    |   |                    |
                                 |  Ant Media Server  |   |  Ant Media Server  |
                                 |                    |   |                    |
                                 |     (Edge-1)       |   |     (Edge-2)       |
                                 |                    |   |                    |
                                 |                    |   |                    |
                                 +--------------------+   +--------------------+

Preparation of Setup and Running Tests:

  • To prepare Cluster, please look at here.
  • If you want to use HAProxy as load balancer, please look at here.
  • To prepare Test Server, please look at here.
  • To run tests and collect results, please look at here.

Preparation of Test Server

  • Install docker to your server. You can look here for docker installation.
  • Download Dockerfile prepared for Ant Media Test environment from here.
  • Build Docker file docker build ...

Test Plans

HLS Load Test

RTMP Load Test

WebRTC Load Test

RTMP Publisher Load Test

WebRTC Cluster Load Test

WebRTC Publisher Load Test

Running Tests

User Guide

Reference

Troubleshooting

Draft

Proposals

Clone this wiki locally