# Custom Load Balancing RTMP

**URL:** <https://community.wowza.com/t/custom-load-balancing-rtmp/52986>\
**Category:** Wowza Streaming Engine\
**Created:** [March 12, 2019, 3:46pm UTC](https://community.wowza.com/t/custom-load-balancing-rtmp/52986 "2019-03-12T15:46:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Silvia\_Randagia](https://avatars.discourse-cdn.com/v4/letter/s/7feea3/32.png) [@Silvia\_Randagia](https://community.wowza.com/u/Silvia_Randagia)\
**Post date:** [March 12, 2019, 3:46pm UTC](https://community.wowza.com/t/custom-load-balancing-rtmp/52986/1 "2019-03-12T15:46:22Z")

</div>

Hi all,

I’m evaluating Dynamic Load Balancer AddOn as a solution to balance incoming RTMP streams on two or more wowza server.

In our scenario balancing decision must be based on the name of the incoming stream: stream names starting with the same string must be sent to the same server

In example:

stream 1234\_Alice connects and is redirected to server1 which is the least loaded at the moment,

stream ABCD\_Alice connects and is redirected to server2 which is the least loaded at the moment,

Then stream 1234\_Bob arrives and it needs to be redirected to the very same server as 1234\_Alice was, no matter load or bandwidth, they need to be on the same wowza server.

How can achieve this? (BTW, is the example clear?)

I’ve read the Dynamic Load Balancer AddOn 4.5 documentation, but could not really figure out how can I customize the decision process.

The documentation mentions a loadbalanceServerProcessClasses property defined as:

A pipe-separated list of classes to load for server decision-making. When this property is set, it overrides all default decision classes. If any of the classes are not found, it is reported but won’t stop the Load Balancer from starting.

But I can not figure out if those loadbalanceServerProcessClasses can include custom classes implementing a common interface or am I on the wrong track ?

Thanks in advance for any help

Best Regards

Silvia

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [March 12, 2019, 4:07pm UTC](https://community.wowza.com/t/custom-load-balancing-rtmp/52986/2 "2019-03-12T16:07:55Z")

</div>

Checking into this type of custumization for you @Silvia Randagia. In the meantime, making sure you saw the code samples we have for load balancing:

[https://www.wowza.com/resources/WowzaDynamicLoadBalancingAddOn\_UsersGuide.pdf](https://www.wowza.com/resources/WowzaDynamicLoadBalancingAddOn_UsersGuide.pdf)

---

<div class="post-metadata">

**Author:** ![Silvia\_Randagia](https://avatars.discourse-cdn.com/v4/letter/s/7feea3/32.png) [@Silvia\_Randagia](https://community.wowza.com/u/Silvia_Randagia)\
**Post date:** [March 13, 2019, 11:12am UTC](https://community.wowza.com/t/custom-load-balancing-rtmp/52986/3 "2019-03-13T11:12:24Z")

</div>

Hi Rose,

thank for your quick answer, unfortuntely I have already checked the examples in

[https://www.wowza.com/downloads/forums/loadbalancer/WowzaStreamingEngineLoadBalancer-4.5.0.zip](https://www.wowza.com/downloads/forums/loadbalancer/WowzaStreamingEngineLoadBalancer-4.5.0.zip)

but none of them (as far as I understood) was answering directly my question.

I’ll wait for further details

Thanks

Silvia

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [March 14, 2019, 3:20pm UTC](https://community.wowza.com/t/custom-load-balancing-rtmp/52986/4 "2019-03-14T15:20:57Z")

</div>

Ok thanks for letting me know and I will continue to research some solutions to share with you. Thanks for your patience.
