High WebRTC CPU consumption

Hey! We are performing some benchmarks with ExWebRTC-based pipeline and on 4 CPU droplet (with dedicated cores) and 10 incoming streams consumes 100% of CPU.

Is that expected behaviour? Our pipeline is essentially consuming H264 video and decodes the AAC to Opus, nothing else.

The second question is - how do we trace the membrane elements CPU consumption? I was trying to https://hexdocs.pm/membrane_core/Membrane.Pipeline.html#module-visualizing-the-supervision-tree, but I doesn't see the pipeline at all in
:observer
. The Live dashboard on the other hand lists the processes and I can sort by "Number of Reductions", but over there all elements is just
Membrane.Core.Element
so it's kind of makes it impossible to distinguish which process causes the most CPU consumption.

Please help 🙏
Was this page helpful?