From dc8dc386478e32b222a09891cc4c3e58def6fa73 Mon Sep 17 00:00:00 2001 From: yashtandon113 <82374739+yashtandon113@users.noreply.github.com> Date: Fri, 16 Aug 2024 01:52:12 +0530 Subject: [PATCH 1/7] Create rtmp-load-testing.md --- .../load-testing/rtmp-load-testing.md | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 docs/guides/configuration-and-testing/load-testing/rtmp-load-testing.md diff --git a/docs/guides/configuration-and-testing/load-testing/rtmp-load-testing.md b/docs/guides/configuration-and-testing/load-testing/rtmp-load-testing.md new file mode 100644 index 00000000..a1b10fb8 --- /dev/null +++ b/docs/guides/configuration-and-testing/load-testing/rtmp-load-testing.md @@ -0,0 +1,53 @@ +--- +title: RTMP Load Testing +description: A simple guide to making a RTMP load test on your Ant Media Server. +keywords: [Ant Media Load Testing, RTMP load test, Ant Media Server Documentation, Ant Media Server Tutorials] +sidebar_position: 3 +--- + +This document outlines the steps to perform a RTMP publishing load test on Ant Media Server using the provided script with the help of ffmpeg. + +The script will simulate a specified number of RTMP live streams published to the Ant Media Server. + +## Prerequisites + +- Server or virtual machine running Ubuntu 20.04 or later. +- FFMPEG installed on the server. +- RTMP load test script + +### Step 1: Download the RTMP Load Test Script + +- Open a terminal window on your Ubuntu server or virtual machine . +- Navigate to the directory where you want to store the RTMP load test script. +- Use the following command to download the `rtmp_publisher.sh` script and give it executable permission: + + ```bash + sudo wget https://raw.githubusercontent.com/ant-media/Scripts/master/load-testing/rtmp_publisher.sh && sudo chmod +x rtmp_publisher.sh + ``` + +### Step 2: Run the RTMP Load Test + +- Open a terminal window on your Ubuntu server or virtual machine and go to the directory where you have downloaded the `rtmp_publisher.sh` script. +- Use the following command to start the RTMP load test: + ```bash + sudo ./rtmp_publisher.sh file-name.mp4 rtmp://domain-or-Ip/AppName/streamId 10 + ``` + + Here is the sample command: + + ```bash + sudo ./rtmp_publisher.sh test.mp4 rtmp://rtmp.antmedia.io/LiveApp/test 10 + ``` + + This command will publish 10 RTMP streams with stream IDs `test_1`, `test_2` etc. in the LiveApp application of your Ant Media Server. + + Replace the `file.mp4` with the actual mp4 file, the URL with the actual URL of your Ant Media Server and `10` with the number of RTMP streams you want to simulate. + +- Wait for the test to be completed. +- Use the following command to stop the HLS load test: + + ```bash + sudo pkill ffmpeg + ``` + +Similary, you can increase the RTMP streams load count as needed. From 2c631d1ec39d7f1dabc68a547a067fbaec52da89 Mon Sep 17 00:00:00 2001 From: yashtandon113 <82374739+yashtandon113@users.noreply.github.com> Date: Fri, 16 Aug 2024 02:03:42 +0530 Subject: [PATCH 2/7] Update rtmp-load-testing.md --- .../load-testing/rtmp-load-testing.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/guides/configuration-and-testing/load-testing/rtmp-load-testing.md b/docs/guides/configuration-and-testing/load-testing/rtmp-load-testing.md index a1b10fb8..fc5f03d9 100644 --- a/docs/guides/configuration-and-testing/load-testing/rtmp-load-testing.md +++ b/docs/guides/configuration-and-testing/load-testing/rtmp-load-testing.md @@ -30,13 +30,13 @@ The script will simulate a specified number of RTMP live streams published to th - Open a terminal window on your Ubuntu server or virtual machine and go to the directory where you have downloaded the `rtmp_publisher.sh` script. - Use the following command to start the RTMP load test: ```bash - sudo ./rtmp_publisher.sh file-name.mp4 rtmp://domain-or-Ip/AppName/streamId 10 + sudo ./rtmp_publisher.sh /path/to/file.mp4 rtmp://domain-or-Ip/AppName/streamId 10 ``` Here is the sample command: ```bash - sudo ./rtmp_publisher.sh test.mp4 rtmp://rtmp.antmedia.io/LiveApp/test 10 + sudo ./rtmp_publisher.sh /home/ubuntu/test.mp4 rtmp://rtmp.antmedia.io/LiveApp/test 10 ``` This command will publish 10 RTMP streams with stream IDs `test_1`, `test_2` etc. in the LiveApp application of your Ant Media Server. @@ -50,4 +50,4 @@ The script will simulate a specified number of RTMP live streams published to th sudo pkill ffmpeg ``` -Similary, you can increase the RTMP streams load count as needed. +Similarly, you can increase the RTMP streams load count as needed. From 12c36ed9bedb8580a2639113b9cfdba0136a8108 Mon Sep 17 00:00:00 2001 From: yashtandon113 <82374739+yashtandon113@users.noreply.github.com> Date: Fri, 16 Aug 2024 02:06:52 +0530 Subject: [PATCH 3/7] Update rtmp-load-testing.md --- .../configuration-and-testing/load-testing/rtmp-load-testing.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/guides/configuration-and-testing/load-testing/rtmp-load-testing.md b/docs/guides/configuration-and-testing/load-testing/rtmp-load-testing.md index fc5f03d9..f4aa51a2 100644 --- a/docs/guides/configuration-and-testing/load-testing/rtmp-load-testing.md +++ b/docs/guides/configuration-and-testing/load-testing/rtmp-load-testing.md @@ -29,6 +29,7 @@ The script will simulate a specified number of RTMP live streams published to th - Open a terminal window on your Ubuntu server or virtual machine and go to the directory where you have downloaded the `rtmp_publisher.sh` script. - Use the following command to start the RTMP load test: + ```bash sudo ./rtmp_publisher.sh /path/to/file.mp4 rtmp://domain-or-Ip/AppName/streamId 10 ``` From e41b813e4628e8c010e86446ce1c8d3738869b59 Mon Sep 17 00:00:00 2001 From: yashtandon113 <82374739+yashtandon113@users.noreply.github.com> Date: Fri, 16 Aug 2024 02:15:44 +0530 Subject: [PATCH 4/7] Create srt-loadt-testing.md --- .../load-testing/srt-loadt-testing.md | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 docs/guides/configuration-and-testing/load-testing/srt-loadt-testing.md diff --git a/docs/guides/configuration-and-testing/load-testing/srt-loadt-testing.md b/docs/guides/configuration-and-testing/load-testing/srt-loadt-testing.md new file mode 100644 index 00000000..44c1fc6c --- /dev/null +++ b/docs/guides/configuration-and-testing/load-testing/srt-loadt-testing.md @@ -0,0 +1,53 @@ +--- +title: SRT Load Testing +description: A simple guide to making a SRT load test on your Ant Media Server. +keywords: [Ant Media Load Testing, SRT load test, Ant Media Server Documentation, Ant Media Server Tutorials] +sidebar_position: 4 +--- + +This document outlines the steps to perform a SRT publishing load test on Ant Media Server using the provided script with the help of FFMPEG. + +The script will simulate a specified number of SRT live streams published to the Ant Media Server. + +## Prerequisites + +- Server or virtual machine running Ubuntu 20.04 or later. +- FFMPEG installed on the server. +- SRT load test script + +### Step 1: Download the SRT Load Test Script + +- Open a terminal window on your Ubuntu server or virtual machine . +- Navigate to the directory where you want to store the SRT load test script. +- Use the following command to download the `srt_publisher.sh` script and give it executable permission: + + ```bash + sudo wget https://raw.githubusercontent.com/ant-media/Scripts/master/load-testing/srt_publisher.sh && sudo chmod +x srt_publisher.sh + ``` + +### Step 2: Run the SRT Load Test + +- Open a terminal window on your Ubuntu server or virtual machine and go to the directory where you have downloaded the `srt_publisher.sh` script. +- Use the following command to start the SRT load test: + ```bash + sudo ./srt_publisher.sh /path/to/file.mp4 srt://domain-or-IP:4200?streamid=AppName/streamId 10 + ``` + + Here is the sample command: + + ```bash + sudo ./srt_publisher.sh /home/ubuntu/test.mp4 srt://srt.antmedia.io:4200?streamid=LiveApp/test 10 + ``` + + This command will publish 10 SRT streams with stream IDs `test_1`, `test_2` etc. in the LiveApp application of your Ant Media Server. + + Replace the `file.mp4` with the actual mp4 file, the URL with the actual URL of your Ant Media Server and `10` with the number of SRT streams you want to simulate. + +- Wait for the test to be completed. +- Use the following command to stop the HLS load test: + + ```bash + sudo pkill ffmpeg + ``` + +Similarly, you can increase the SRT streams load count as needed. From 76bd824452fd1420c3958298ff65eb884c3269a6 Mon Sep 17 00:00:00 2001 From: yashtandon113 <82374739+yashtandon113@users.noreply.github.com> Date: Fri, 16 Aug 2024 02:21:52 +0530 Subject: [PATCH 5/7] Update srt-loadt-testing.md --- .../configuration-and-testing/load-testing/srt-loadt-testing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guides/configuration-and-testing/load-testing/srt-loadt-testing.md b/docs/guides/configuration-and-testing/load-testing/srt-loadt-testing.md index 44c1fc6c..069d8f27 100644 --- a/docs/guides/configuration-and-testing/load-testing/srt-loadt-testing.md +++ b/docs/guides/configuration-and-testing/load-testing/srt-loadt-testing.md @@ -41,7 +41,7 @@ The script will simulate a specified number of SRT live streams published to the This command will publish 10 SRT streams with stream IDs `test_1`, `test_2` etc. in the LiveApp application of your Ant Media Server. - Replace the `file.mp4` with the actual mp4 file, the URL with the actual URL of your Ant Media Server and `10` with the number of SRT streams you want to simulate. + Replace `file.mp4` with the actual mp4 file, the URL with the actual URL of your Ant Media Server and `10` with the number of SRT streams you want to simulate. - Wait for the test to be completed. - Use the following command to stop the HLS load test: From dbe13b6bfd52183fe6f6c21837a7dd1b82abbb61 Mon Sep 17 00:00:00 2001 From: yashtandon113 <82374739+yashtandon113@users.noreply.github.com> Date: Fri, 16 Aug 2024 02:23:24 +0530 Subject: [PATCH 6/7] Update rtmp-load-testing.md --- .../configuration-and-testing/load-testing/rtmp-load-testing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guides/configuration-and-testing/load-testing/rtmp-load-testing.md b/docs/guides/configuration-and-testing/load-testing/rtmp-load-testing.md index f4aa51a2..aeac5d9b 100644 --- a/docs/guides/configuration-and-testing/load-testing/rtmp-load-testing.md +++ b/docs/guides/configuration-and-testing/load-testing/rtmp-load-testing.md @@ -42,7 +42,7 @@ The script will simulate a specified number of RTMP live streams published to th This command will publish 10 RTMP streams with stream IDs `test_1`, `test_2` etc. in the LiveApp application of your Ant Media Server. - Replace the `file.mp4` with the actual mp4 file, the URL with the actual URL of your Ant Media Server and `10` with the number of RTMP streams you want to simulate. + Replace `file.mp4` with the actual mp4 file, the URL with the actual URL of your Ant Media Server and `10` with the number of RTMP streams you want to simulate. - Wait for the test to be completed. - Use the following command to stop the HLS load test: From fce44774d2bcb6db3cf16f50038cd3d60cbe1f52 Mon Sep 17 00:00:00 2001 From: Mohit Dubey <86982446+Mohit-3196@users.noreply.github.com> Date: Fri, 30 Aug 2024 07:52:17 +0530 Subject: [PATCH 7/7] Update webrtc-load-testing.md Fix broken link --- .../load-testing/webrtc-load-testing.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/guides/configuration-and-testing/load-testing/webrtc-load-testing.md b/docs/guides/configuration-and-testing/load-testing/webrtc-load-testing.md index f5591b3b..2d0af71b 100644 --- a/docs/guides/configuration-and-testing/load-testing/webrtc-load-testing.md +++ b/docs/guides/configuration-and-testing/load-testing/webrtc-load-testing.md @@ -26,7 +26,7 @@ In this option, we have only one Ant Media Server instance as SUT. | | rest | | +-------------------+ +----------------------+ ``` -To setup the Ant Media Server, please check [here](https://antmedia.io/docs/guides/installing-on-linux/installing-ams-on-linux/). +To set up the Ant Media Server, please check [here](https://antmedia.io/docs/guides/installing-on-linux/installing-ams-on-linux/). ### Cluster setup @@ -64,7 +64,7 @@ Here we have a cluster structure as SUT which contains one origin and N edge ser +----------------+ +----------------+ +----------------+ ``` -To deploy an Ant Media Server cluster, please see [here](https://github.com/ant-media/Ant-Media-Server/wiki/Scaling-and-Load-Balancing). +To deploy an Ant Media Server cluster, please see [here](https://antmedia.io/docs/guides/clustering-and-scaling/scaling-ant-media-server/). ## Ant Media WebRTC test tool