Configuring the recorder on Docker and Kubernetes instances
Each recorder instance requires access to a unique ALSA loop-back device on the host. To accomplish this, you must run a series of commands on any node that hosts a recorder pod.
This step is not required on AWS or GKE nodes, since the support is already enabled in the custom AMI and start-up script in the node launch templates, respectively.
- Configure five capture/playback interfaces
echo "options snd-aloop enable=1,1,1,1,1 index=0,1,2,3,4" > /etc/modprobe.d/alsa-loopback.conf
- Setup autoload the module.
echo "snd_aloop" > /etc/modules-load.d/snd_aloop.conf
- Load the module.
modprobe snd-aloop
- Check that the module is loaded.
lsmod | grep snd_aloop
If you prefer to scale your worker nodes in a Kubernetes cluster, then you must have a single-node Kubernetes deployment setup. The autoscaler can help you manage the number of nodes in your cluster automatically based on resource demand. If you prefer to keep the recorder nodes on at all times, then you can have a fixed number of recorders running on that fixed number of nodes.
Starting the Docker container with multiple recorders
docker-compose up -d --scale jibri=5
The following commands are an example of restarting when multiple recorders are active.
docker-compose down
./CleanUpMultiJibri.sh
docker-compose up -d --scale jibri=5