We’ve been using a load balancing setup where there’s a single primary server that runs the origin, load balancer, and edge applications, and when we start up edge servers to handle a large load, they connect to it. This has been working well, but as we expand, the primary server gets connections for every stream times every edge server. So for 20 streams and 20 edges, it has 400 connections.
To fix this, we’re first moving the load balancing and edge applications off of the primary server, to a new origin server. This server will have 5 edge-origin servers connecting to it, and each of those will have 5 edge servers connecting to them.
This all looks possible, except the part when we start up edge servers. If I’m understanding correctly, we need to specify the edge-origin server to connect to in the loadbalancertargets.txt file. But if we’re starting the edge-origin servers up for a temporary time, the addresses will change often, and we’ll have to customize the startup package for the edge servers for each edge-origin.
Should I be using only one load balancer server, or do I need a load balancer server on each edge-origin machine? If I’m telling them all to use my main origin server for the load balancer, will they be able to connect to all the streams?
Is this correct, or is there an easier way to do all of this?
Thanks for the help.