Configurer le basculement avec des cœurs redondants

Associez un cœur actif à un cœur de secours et à un témoin, ajoutez une IP virtuelle et laissez le secours prendre le relais en cas de panne.

15 min Ather Core Ather Admin Admin 1.0.6.1 Core 0.6.1
Guide en anglais

Ce guide n'est disponible qu'en anglais pour le moment. Les noms des menus et des champs correspondent à l'interface d'Ather Admin en anglais.

Before you start
  • Three cores in one configuration: the active core, a standby and a witness. The witness runs no audio, so it can be a small machine.
  • The three cores in one Intramesh cluster (see Set up Intramesh).
  • Redundancy clusters in the license, and enough license on the standby to run the active core's part.
  • Optional: a spare IP address on the audio network to use as a virtual IP, and a tool such as keepalived to move it between hosts.

In a redundancy cluster, the active core publishes its whole running configuration into the mesh, and a dedicated standby keeps itself ready to run it. If the active core goes silent, the standby takes over. The witness gives the third vote, so the cores can always tell which side is still in charge.

Configure the active core as usual

Build the streams, devices, party lines and rules on the active core only. The standby must be a dedicated core with no items of its own in the configuration: it mirrors the active core.

Add the redundancy cluster

On the configuration page, under Redundancy clusters, choose Add a redundancy cluster:

FieldValue
NameFor example Studio core pair.
Active coreThe core that runs the configuration.
StandbyThe dedicated core that takes over.
WitnessThe third core.
Virtual IPOptional, as address/prefix, for example 10.0.0.50/24. It follows whichever core is active, and outbound streams can send from it.
Takeover time (ms)How long the active core may be silent before the standby takes over. Default 2000.

Make the virtual IP move

If you use a virtual IP, set up keepalived or a similar tool on the active and standby hosts so the address moves to the host that is active. After a takeover, the new active core waits for the virtual IP to arrive before it starts, and raises an alarm if it never appears.

Point receivers, panels and anything else that connects to the core at the virtual IP, not at either host's own address.

Apply

Apply the configuration to all its cores. Admin sets up the redundancy cluster, then the mesh, then sends the configuration to the active core. It never applies directly to the passive standby; the standby gets its configuration through the mesh.

Check the standby is ready

The Failover table shows, for each protected core, which core is Active now and whether the standby is Ready. The standby only reports ready when:

  • it has the active core's configuration;
  • every audio file the configuration uses is on it (it fetches them from the mesh);
  • its license can hold the configuration.

Test a takeover

At a quiet moment, stop Ather Core on the active host, or disconnect its network. After the takeover time plus about 2 seconds for the election, the standby takes control, waits for the virtual IP, and starts the configuration. Browser and mobile panels show that the core is reloading, then reconnect by themselves and rejoin their party lines.

An active core that loses contact with the majority for half the takeover time fences itself: it stops sending and raises an alarm, so two cores never send at once. When contact returns, it either resumes or becomes the standby.

Fail back by hand

Failback is never automatic. When the original core is healthy again, choose Switch to <core> in the Failover table. The active core stops its audio first, then the other starts it, so audio drops while it changes over: do it between shows.

If something isn't right

SymptomWhat to check
Failover needs at least three cores in the meshAdd the witness to the same Intramesh cluster.
Standby Not readyIts license allocation is too small for the active core's part, or it can't fetch audio files from the mesh.
The standby is listed as has items in this configurationRemove its own items; a standby only mirrors.
Alarm that the virtual IP never arrivedkeepalived, or whatever moves the address, isn't running or isn't configured on the standby host.
Pour aller plus loin

Guides associés

Tous les documents