| View previous topic :: View next topic |
| Author |
Message |
Anonymous Guest
|
Posted: Thu Mar 16, 2006 6:48 am Post subject: relay fallback to a different server |
|
|
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

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Fri Mar 17, 2006 3:39 pm Post subject: |
|
|
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 |
|
 |
Anonymous Guest
|
Posted: Sat Mar 18, 2006 2:46 am Post subject: |
|
|
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

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sat Mar 18, 2006 4:14 am Post subject: |
|
|
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 |
|
 |
Anonymous Guest
|
Posted: Sat Mar 18, 2006 4:35 am Post subject: |
|
|
"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

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sat Mar 18, 2006 1:16 pm Post subject: |
|
|
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 |
|
 |
|