karlheyes / icecast-kh

KH branch of icecast
GNU General Public License v2.0
297 stars 105 forks source link

Multiple Master-Server for Relays (Aggregating Mounts) #428

Open shaksp opened 11 months ago

shaksp commented 11 months ago

HI,

We currently use Icecast 2.4.4 (none-KH) as below:

We are working on building a more resilient backend/master server solution and also to accommodate more mounts. Hence we wanted a multiple master setup as follows:

Icecast-2.4.0-KH22 build or similar (we have been testing on KH20 and 22)

To achieve this, we can't use the relay config as this is for individual mounts, we need to relay all streams aggregated from all masters. I understood Icecast-KH could do this however the config doesn't seem to allow to specify multiple master-server entries. Multiple hosts can be specified under relay but this is limited as it's individual.

It is worth noting that the mounts do not stream 24x7 due to the service they provide - most stream for a few minutes to few hours at a time a few times per day. The relays are setting to poll the master regularly (rather than the default 120seconds)

Is it possible to achieve this? There was a pull request on icecast from xiph for this feature as follows but hasn't been implemented. I was really hoping Icecast-KH could do this. https://github.com/xiph/Icecast-Server/pull/5

shaksp commented 11 months ago

@karlheyes I also tried what you suggested here: https://github.com/karlheyes/icecast-kh/issues/236

Including various variants of it. However, it only supported one master-server (after changing host to server and removing IP)