Old 7th February 2013, 01:45   #1
agm83
Junior Member
 
Join Date: Feb 2013
Posts: 1
Shoutcast Relay Priority

Hello,

We have our Shoutcast server, plus two additional relays (servers in other data centers.. for bandwidth reasons).

Because of our bandwidth pricing, we have a preference that our primary server take on new listeners first and, when it's full, new listeners go to Relay #1 until it's full, and then ultimately to Relay #2 (the one with the most expensive bandwidth).

I'm not sure, "out of the box", how Shoutcast sends listeners (I assume it just distributes them equally) but is there a way to specify this kind of priority so our Relay #2 doesn't get any listeners unless the other two are full and we need it for overflow?
agm83 is offline   Reply With Quote
Old 7th February 2013, 02:00   #2
DrO
 
Join Date: Sep 2003
Posts: 27,873
assuming they are all listed in the Directory and accessing via the tune-in playlists, it typically ends up that listeners will be directed to the server which is seen to have the best ratio of current listeners vs total capacity and is updated when the DNAS send their 'touch' updates.

the effect of this is the Directory will send back to the DNAS one of the other DNAS to use as a 'backup' incase it becomes full. however, depending on the version of the DNAS being used, this can be up to 10 minutes behind actual listener loads and so although it generally works, if you're getting a sudden change in numbers then one may get more connections than the others.

so it's not really evenly spread out and there isn't a way to specify the order - you just get whether they are listed or not. and with non-listed DNAS, there's no way for the Directory to include them in the handling and so it won't work well in that scenario.

there has been talk about what to do in-order to allow the DNAS to work more equally as well as dealing with Directory failures or just wanting to not be listed scenarios but nothing has so far been done on coding a solution (though people have done custom load-balancers, etc to try to do it themselves but that has often screwed up the listener numbers being reported and gotten them banned from being listed).

-daz
DrO is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Technical Support

Tags
relay, shoutcast

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump