Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

relay fallback to a different server

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server
View previous topic :: View next topic  
Author Message
Anonymous
Guest





PostPosted: Thu Mar 16, 2006 6:48 am    Post subject: relay fallback to a different server Reply with quote

Is it possible for a relay to fallback to a mount point on a different server?
The fallback-mount option seems to apply only to the same server. Falling back to a different server would be used, e.g., if the server were to crash.
Back to top
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Fri Mar 17, 2006 3:39 pm    Post subject: Reply with quote

no you can't and conceptually it would not work on a crash case. After the http style headers have been sent to the listener, they read data for the decoding only, no redirection information is sent. The only time a redirect can be sent is when a new listener connects at which point a message can be sent to tell the listener to reconnect to another url.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Anonymous
Guest





PostPosted: Sat Mar 18, 2006 2:46 am    Post subject: Reply with quote

But this seems to be a fairly important function for reliably setting up a broadcast tree - if a server were to crash (or become unreachable) then a new server needs to be selected and connected to.

Without this support, one solution is to monitor and detect the problem and then restart the relay point (listener) with a new server configuration. But this is hardly seamless.

I'm not sure why conceptually it would not work on a crash case. The approach would be this:

1. detect loss of source stream from server (due to crash or transient problem)
2. temporarily fallback to a file on the local machine while reconnecting to a new server
3. change over to the soruce stream from the new server
Back to top
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Sat Mar 18, 2006 4:14 am    Post subject: Reply with quote

If you are a relay of a server and that master server crashes then you can do something about that. If a server crashes then it stops working completely, nothing can be done about its listeners. This is besides the fact that the only mechanism players support for redirection currently is http redirection.

I'm experimenting with master/slave redirection in the -kh branch, the basic mechanism seems to be working in the latest branch.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Anonymous
Guest





PostPosted: Sat Mar 18, 2006 4:35 am    Post subject: Reply with quote

"If you are a relay of a server and that master server crashes then you can do something about that."

Please tell me what I can do about that.
Back to top
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Sat Mar 18, 2006 1:16 pm    Post subject: Reply with quote

you can fallback to another mountpoint on the same server. A relay shutting down is just the same as source client shutting down, if the mount options say move listeners to a fallback mount and it can then it will.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber