![]() |
#1 |
Junior Member
Join Date: Jul 2020
Posts: 2
|
Running multiple servers as a CDN
I am having issues implementing the SHOUTcast DNAS server CDN features at the
moment. I've got a 'master' server which has all of the streams connected to it, with their correct authhashes. This sever plays all of the streams just fine. **I've changed all the passwords and stream IDs** Servers in Cluster: - master.streaming.example.com - relay0.streaming.example.com - relay1.streaming.example.com Here's an excerpt from the config on the 'master' server: code: And the ripfile for the 'master' server: code: As far as I'm aware, the master server should be able to accept connections from both the relays through the ripfile, which should then be able to inherit the authhashes from the master. However, when I've deployed these servers, **they can connect to the master server just fine and stream the radios they've been configured to relay, but they aren't inheriting the authhash.** That's the first problem. The second one is more to do with loadbalancing these servers. I *could* use a DNS round robin to have it try each server and configure it so anyone connecting through streaming.example.com would be sent to either the master, relay0 or relay1 but then I'm not entirely sure that's the smartest way to do it. The second idea I had for this is to have streaming.example.com run an apache server that would somehow redirect traffic to one of the servers maybe though a loadbalancer or some smart redirect. Obviously, if there's a way to route all traffic to the master server and have that send a 302 redirect to the relay with the least load that would be amazing! And finally, is there a way that I wouldn't have to add the stream specific settings part into the relay config and just have it inherit the streams on the master? I know it's a long question but I've tried to be as detailed as possible in how my infrastructure is configured and to hopefully help some others in the future. Many thanks, Charlie |
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|