Skip to content
Snippets Groups Projects
Commit e25207a9 authored by Antoine SCHILDKNECHT's avatar Antoine SCHILDKNECHT
Browse files

Merge branch 't32350-improve_benchmark_role' into 'master'

improve benchmark role, refs #32500

See merge request mediaserver/envsetup!13
parents f59031f8 ead128f7
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.
......
......@@ -9,13 +9,13 @@
msg: "Benchmark server must be unique"
when: groups['bench_server'] | length > 1
tags: bench_server
roles:
roles:
- bench-server
- name: DEPLOY BENCHMARK WORKERS
hosts: bench_worker
tags: bench_worker
roles:
roles:
- bench-worker
...
......@@ -34,16 +34,46 @@
name: bench-server
state: restarted
- name: streaming configuration settings
template:
src: bench-streaming.conf.j2
dest: /etc/mediaserver/bench-streaming.conf
- name: clone ms-testing-suite repository
git:
repo: "{{ bench_stream_repo }}"
version: stable
dest: /usr/share/ms-testing-suite
update: false
update: yes
force: yes
- name: streaming configuration settings
template:
src: bench-streaming.conf.j2
dest: /etc/mediaserver/bench-streaming.conf
- 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
...
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