# MULTIPLE SERVERS - Load Balancer - Origin/Edge

**URL:** <https://community.wowza.com/t/multiple-servers-load-balancer-origin-edge/37012>\
**Category:** Wowza Streaming Engine\
**Tags:** server-administration\
**Created:** [April 2, 2012, 9:52pm UTC](https://community.wowza.com/t/multiple-servers-load-balancer-origin-edge/37012 "2012-04-02T21:52:28Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![C\_Leite](https://avatars.discourse-cdn.com/v4/letter/c/e68b1a/32.png) [@C\_Leite](https://community.wowza.com/u/C_Leite)\
**Post date:** [April 2, 2012, 9:52pm UTC](https://community.wowza.com/t/multiple-servers-load-balancer-origin-edge/37012/1 "2012-04-02T21:52:28Z")

</div>

Hello,

I did setup with success the Load Balancer and the Edges servers, also I did already my player to identify the redirect IP and it are working good!

I have 3 servers running, one as a Origin and two as a Edge, so here is the question/problem:

I noticed that the edges are getting new users connections and working fine, **how can I also use the origin server?** The thing is, the edges servers are getting a lot of connections and the origin server is very empty because only the edges servers are in use.

**I really want to be able to use all 3 servers and divide the connections between 3 stead of only two servers.**

Sorry to mark it as urgent, but I just have two days to fix it and have it up and running.

Best Regards,

C

---

<div class="post-metadata">

**Author:** ![Randall\_Auriemma](https://avatars.discourse-cdn.com/v4/letter/r/85e7bf/32.png) [@Randall\_Auriemma](https://community.wowza.com/u/Randall_Auriemma)\
**Post date:** [April 2, 2012, 10:44pm UTC](https://community.wowza.com/t/multiple-servers-load-balancer-origin-edge/37012/2 "2012-04-02T22:44:17Z")

</div>

Hi Carlos,

It’s very easy. Just set up an edge application in exactly the same way on the origin Wowza server.

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [April 3, 2012, 4:35pm UTC](https://community.wowza.com/t/multiple-servers-load-balancer-origin-edge/37012/3 "2012-04-03T16:35:34Z")

</div>

It is best to create an edge alongside the origin, rather than clients playing from the origin. You make security more difficult if you do that.

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [April 4, 2012, 11:49am UTC](https://community.wowza.com/t/multiple-servers-load-balancer-origin-edge/37012/4 "2012-04-04T11:49:15Z")

</div>

Carlos,

Use this for that:

[https://www.wowza.com/docs/how-to-stop-load-balancer-redirects-when-the-edge-server-limit-has-been-reached-moduleloadbalanceredgelimitconnections](https://www.wowza.com/docs/how-to-stop-load-balancer-redirects-when-the-edge-server-limit-has-been-reached-moduleloadbalanceredgelimitconnections)

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [April 4, 2012, 1:32pm UTC](https://community.wowza.com/t/multiple-servers-load-balancer-origin-edge/37012/5 "2012-04-04T13:32:06Z")

</div>

Yes, you can use them together. Put them both at bottom of the Modules list. It should not matter what order the two are in.

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [April 4, 2012, 4:48pm UTC](https://community.wowza.com/t/multiple-servers-load-balancer-origin-edge/37012/6 "2012-04-04T16:48:49Z")

</div>

Take a look at the security notes in this guide:

[https://www.wowza.com/docs/how-to-configure-a-live-stream-repeater](https://www.wowza.com/docs/how-to-configure-a-live-stream-repeater)

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [January 25, 2013, 12:59pm UTC](https://community.wowza.com/t/multiple-servers-load-balancer-origin-edge/37012/7 "2013-01-25T12:59:34Z")

</div>

I don’t quite understand, but it doesn’t sound right. If you mean the Load Balancer Listener, you only need one of those. Each edge must also be configured as a Load Balancer Sender.

Richard

---

<div class="post-metadata">

**Author:** ![Florin\_Florin](https://avatars.discourse-cdn.com/v4/letter/f/f6c823/32.png) [@Florin\_Florin](https://community.wowza.com/u/Florin_Florin)\
**Post date:** [January 25, 2013, 1:14am UTC](https://community.wowza.com/t/multiple-servers-load-balancer-origin-edge/37012/8 "2013-01-25T01:14:13Z")

</div>

> Hi Carlos,
> 
> It’s very easy. Just set up an edge application in exactly the same way on the origin Wowza server.

So what i understand from here is thtat to use the origin server i must setup the same listener and edge server vice-versa, so each wowza server would be also listener and edge ?

---

<div class="post-metadata">

**Author:** ![Randall\_Auriemma](https://avatars.discourse-cdn.com/v4/letter/r/85e7bf/32.png) [@Randall\_Auriemma](https://community.wowza.com/u/Randall_Auriemma)\
**Post date:** [April 3, 2012, 5:14am UTC](https://community.wowza.com/t/multiple-servers-load-balancer-origin-edge/37012/9 "2012-04-03T05:14:57Z")

</div>

What I meant was if you have just one computer, there won’t be any load balancing. You need at least two computers.

---

<div class="post-metadata">

**Author:** ![Randall\_Auriemma](https://avatars.discourse-cdn.com/v4/letter/r/85e7bf/32.png) [@Randall\_Auriemma](https://community.wowza.com/u/Randall_Auriemma)\
**Post date:** [April 3, 2012, 6:41am UTC](https://community.wowza.com/t/multiple-servers-load-balancer-origin-edge/37012/10 "2012-04-03T06:41:50Z")

</div>

Yes that sounds right.

Referring to the Loadbalancer README.html and the Live Repeater Quickstart: [https://www.wowza.com/docs/how-to-configure-a-live-stream-repeater](https://www.wowza.com/docs/how-to-configure-a-live-stream-repeater)

Origin computer:

configured as both loadbalancer listener and sender

1 liveorigin application

1 liveedge application

On each of the other two edge computers:

configured as loadbalancer sender

1 edge application

I suggest using the method mentioned in the LiveRepeater tutorial section: “Use (simple) Published Stream Name”.

---

<div class="post-metadata">

**Author:** ![C\_Leite](https://avatars.discourse-cdn.com/v4/letter/c/e68b1a/32.png) [@C\_Leite](https://community.wowza.com/u/C_Leite)\
**Post date:** [April 3, 2012, 8:46am UTC](https://community.wowza.com/t/multiple-servers-load-balancer-origin-edge/37012/11 "2012-04-03T08:46:18Z")

</div>

Hi Randall,

I think about doing that before, but I saw your cote in this forum [https://www.wowza.com/forums/showthread.php?14927-Multiple-Wowza-Servers-Question&p=76270#post76270](https://www.wowza.com/forums/showthread.php?14927-Multiple-Wowza-Servers-Question&p=76270#post76270) that say:

_… Read the included README.html, and setup your two loadbalancer applications (origin and edge). **You can set them both up on the same Wowza server for testing purposes**. But, for the loadbalancing to do anything useful you would need at least one additional computer with Wowza installed, and an edge application. …_

and I decide to asked it first, but if it works without a problem like you mentioned, I will do it. Thanks for your quick response.

---

<div class="post-metadata">

**Author:** ![C\_Leite](https://avatars.discourse-cdn.com/v4/letter/c/e68b1a/32.png) [@C\_Leite](https://community.wowza.com/u/C_Leite)\
**Post date:** [April 3, 2012, 10:24am UTC](https://community.wowza.com/t/multiple-servers-load-balancer-origin-edge/37012/12 "2012-04-03T10:24:41Z")

</div>

Thank you! I understand that.

---

<div class="post-metadata">

**Author:** ![C\_Leite](https://avatars.discourse-cdn.com/v4/letter/c/e68b1a/32.png) [@C\_Leite](https://community.wowza.com/u/C_Leite)\
**Post date:** [April 3, 2012, 11:22am UTC](https://community.wowza.com/t/multiple-servers-load-balancer-origin-edge/37012/13 "2012-04-03T11:22:13Z")

</div>

Hey Randall,

I have an other question about it. If I sent people over to the Origin Application will have any problem with it? The way I set it up was by the ip number, so every server have a same APPname (I repeat it across the others servers), so when the redirect IP came the Player just change the IP and the rest is the same so example:

It is almost like this: rtmp://XXX.XX.XXX.XX:1935/APPname/APPname

rtmp://NNN.NN.NNN.NN:1935/APPname/APPname

rtmp://BBB.BB.BBB.BB:1935/APPname/APPname

So If I create the edge (APPedge) now in the same server where I created the origin it will return just the IP as redirect and it will connect direct to the origin.

Thanks

---

<div class="post-metadata">

**Author:** ![C\_Leite](https://avatars.discourse-cdn.com/v4/letter/c/e68b1a/32.png) [@C\_Leite](https://community.wowza.com/u/C_Leite)\
**Post date:** [April 3, 2012, 7:54pm UTC](https://community.wowza.com/t/multiple-servers-load-balancer-origin-edge/37012/14 "2012-04-03T19:54:37Z")

</div>

I appreciate the info guys!

I have one more question, I have installed and I use the ModuleLimitConnectionsToApplication to limit the amount of users per application, in case that I want to stream to 7000 users and at the same time I will limit each server like this SERVER 01 with 2000, SERVER 02 with 2000 and SERVER 03 with 3000, will it work?

So I want to know if when SERVER 01 gets the limit that I set (in this particular case 2000 users), will it automatically forward the new users to the other server that still has enough limit? And after just keep filling SERVER 03 until it also reaches the limit that I have set that is 3000 users?

Thanks,

C

---

<div class="post-metadata">

**Author:** ![C\_Leite](https://avatars.discourse-cdn.com/v4/letter/c/e68b1a/32.png) [@C\_Leite](https://community.wowza.com/u/C_Leite)\
**Post date:** [April 4, 2012, 8:14am UTC](https://community.wowza.com/t/multiple-servers-load-balancer-origin-edge/37012/15 "2012-04-04T08:14:27Z")

</div>

Thanks Richard,

Can I use both? ModuleLoadBalancerEdgeLimitConnections with something like 2000 to pause the sender and use the ModuleLimitConnectionsToApplication with something like 2005 to not allow a lot people connect direct?

With that I think I will be all set with this settings, because I will be able to complete limit my Application Connections and will not have error.

---

<div class="post-metadata">

**Author:** ![C\_Leite](https://avatars.discourse-cdn.com/v4/letter/c/e68b1a/32.png) [@C\_Leite](https://community.wowza.com/u/C_Leite)\
**Post date:** [April 4, 2012, 11:38am UTC](https://community.wowza.com/t/multiple-servers-load-balancer-origin-edge/37012/16 "2012-04-04T11:38:18Z")

</div>

Hi Guys,

Should I have the ModuleRTMPAuthenticate into it to block anybody that tried to streaming using it? Or the liverepeater-edge already do not accept any connection from software like Adobe Media Live Encoder?

Thanks
