View previous topic :: View next topic |
Author |
Message |
jasonchapman
Joined: 15 Mar 2013 Posts: 3
|
Posted: Fri Sep 27, 2013 10:10 am Post subject: Master relay failover |
|
|
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 |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Wed Oct 02, 2013 8:40 pm Post subject: |
|
|
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 |
|
|
|