Skip to content

Instantly share code, notes, and snippets.

@SalehDehqanpour
Created December 14, 2020 21:30
Show Gist options
  • Save SalehDehqanpour/b9477964020485aa680d87b5646dd1ca to your computer and use it in GitHub Desktop.
Save SalehDehqanpour/b9477964020485aa680d87b5646dd1ca to your computer and use it in GitHub Desktop.

Running load test against jitsi

NON-DOCKER SETUP:

First install and start the chromedriver like this: chromedriver --port=4444 Then clone jitsi-meet-torture and run this in its directory:

./scripts/malleus.sh --conferences=1 --participants=2 --senders=1 --audio-senders=1 --duration=30 --room-name-prefix=test  --hub-url=http://localhost:4444/  --instance-url=https://pg3.vamooz.ir/Pazhouhan-Online-Class_22_1399-09-19?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJwZzMudmFtb296LmlyIiwiaXNzIjoick1CWXVwTE5WU1ltWUpmUlk0ZGFLR1VGanAyZ1BVUUMiLCJzdWIiOiJwZzMudmFtb296LmlyIiwicm9vbSI6IlBhemhvdWhhbi1PbmxpbmUtQ2xhc3NfMjJfMTM5OS0wOS0xOSJ9.JHy-XggDtTDaa0icUcZ12dkeF4L4nDldASa7U3U6Rq4

ISSUE: The INPUT_VIDEO_FILE option in MalleusJitsificus.java which is translated to use-file-for-fake-video-capture= option of chrome driver is not working. This should stream the supplied video as video capture input device.

DOCKER SETUP:

Follow this link: https://meetrix.io/blog/webrtc/jitsi/jitsi-meet-load-testing.html

So run these:

docker-compose up -d --scale node=2
docker-compose exec torture /bin/bash

Now add this in pom.xml file:

<dependency>
    <groupId>org.slf4j</groupId>
    <artifactId>slf4j-log4j12</artifactId>
    <version>1.6.5</version>
    <scope>test</scope>
</dependency>

Then run these to install nodejs:

apt update
apt install nodejs

Finally run this:

./scripts/malleus.sh --conferences=1 --participants=2 --senders=2 --audio-senders=2 --duration=30 --room-name-prefix=test --hub-url=http://hub:4444/wd/hub/ --instance-url=https://pg3.vamooz.ir/Pazhouhan-Online-Class_22_1399-09-19?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJwZzMudmFtb296LmlyIiwiaXNzIjoick1CWXVwTE5WU1ltWUpmUlk0ZGFLR1VGanAyZ1BVUUMiLCJzdWIiOiJwZzMudmFtb296LmlyIiwicm9vbSI6IlBhemhvdWhhbi1PbmxpbmUtQ2xhc3NfMjJfMTM5OS0wOS0xOSJ9.JHy-XggDtTDaa0icUcZ12dkeF4L4nDldASa7U3U6Rq4#jitsi_meet_external_api_id=0&appData.localStorageContent=null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment