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 

Master relay failover

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Dev Branches
View previous topic :: View next topic  
Author Message
jasonchapman



Joined: 15 Mar 2013
Posts: 3

PostPosted: Fri Sep 27, 2013 10:10 am    Post subject: Master relay failover Reply with quote

Hey,

Looking to relay a single mount point with multiple master servers on separate machines to create a failover solution.

The idea is that if the first master is down, the relay will try the second master machine which is up.

In KH I noticed


<!-- Allow multiple master servers to be specified, tries each one in turn.
<relay>
<local-mount>/stream.mp3</local-mount>
<server>a.b.c.d</server>
<timeout>6</timeout>
<master>
<port>8000</port>
<mount>/a</mount>
</master>
<master>
<port>80</port>
<mount>/</mount>
</master>
</relay>

But not sure exactly how to set this up as there doesn't seem to be any place to specify multiple IP's.

Gracias.
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Wed Oct 02, 2013 8:40 pm    Post subject: Reply with quote

The docs need expanding on this but you have the basic idea right
Code:

<relay>
   <local-mount>....</local-mount>
   <master>
      <server>a.b.c.d</server>
      <port>8000</port>
      <mount>/live</mount>
   <master>
   </master>
      <server>a.a.a.a</server>
      <port>8000</port>
      <mount>/live</mount>
   </master>
</relay>


The server, port and mount tags can be placed outside of the <master> tags to indicate a value that they all have unless overridden. In your example the server setting is used by both master blocks which is fine if both masters are on the same machine.

While <master> will be accepted for some time, the tag I'll document will be <host>, just to reduce the confusion between the other use of <master>.

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 -> Dev Branches 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