Skip to content
Snippets Groups Projects
Commit ed6726e8 authored by Emmanuel Cohen's avatar Emmanuel Cohen
Browse files

Tste withs docker

parent 1fb219b0
No related branches found
No related tags found
No related merge requests found
......@@ -60,6 +60,12 @@ Disable anti-ddos in MediaServer Nginx configuration (usually in `/etc/nginx/con
If the server hosting the bench server is using a firewall, disable it to be able to access the locust interface. For example, if `ferm` is installed: `systemctl ferm stop`.
Launch the test stream on the bench server, using the docker container :
`cd /usr/share/ms-testing-suite && make run_live`
Or directly by hand :
`/usr/share/ms-testing-suite/ms_live_streamer.py /etc/mediaserver/bench-streaming.conf`
Go with your browser on `http://<bench_server>:8089`. You might have to use an SSH tunnel to access this port.
Set the number of viewers and the hatch rate (usually the hatch rate is 10% of the viewers count) and start the bench.
......
......@@ -39,7 +39,37 @@
repo: "{{ bench_stream_repo }}"
version: stable
dest: /usr/share/ms-testing-suite
update: false
update: yes
force: yes
- name: copy configuration for docker instance
copy:
src: /etc/mediaserver/bench-streaming.conf
dest: /usr/share/ms-testing-suite/config.json
remote_src: yes
- name: add docker key
apt_key:
url: https://download.docker.com/linux/debian/gpg
state: present
- name: add docker debian repository
apt_repository:
repo: "deb https://download.docker.com/linux/debian buster stable"
state: present
update_cache: yes
- name: install docker
apt:
name: docker-ce
state: latest
update_cache: yes
- name: generate docker image
command:
cmd: make build_docker_img
chdir: /usr/share/ms-testing-suite
run_once: yes
- name: streaming configuration settings
template:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment