karlheyes / icecast-kh

KH branch of icecast
GNU General Public License v2.0
298 stars 106 forks source link

Allowing weighting of slave relays #298

Open pascalla opened 4 years ago

pascalla commented 4 years ago

We are currently using icecast-kh10 to as relays for our station, we stream in 320kbps and use alot of bandwidth. Our current network "setup" is using DNS round robin to load balance across the relays.

I've recently come across the master/slave addition in kh, which could prove very useful and replace round robin.

I have a suggestion that within the "slave" config you can add a "weighting" to the config that would be sent to the master relay and used in picking the slave to redirect too. I have some relays which are more "capable" then others and have been looking for a way to weighted load balance.

karlheyes commented 4 years ago

the current scheme is based on a randomized selection but I suppose a weighting could be provided in some fashion.

karl