The decision when to switch from the active to the passive DMA can be taken either by a person (i.e. manual Failover) or by the DMAs themselves (i.e. automatic Failover). In the latter case, the two DMAs in the team will check each other’s status by exchanging heartbeats.
We would like to use the manual failover decision in an automated way.
Is there a possibility to trigger the manual switch in an automated way so we can switch between agents for instance once an hour?
There's no public API to do so.
However, you can send a SetDrsState
message from an Automation script.
var switchRequest = new SetDrsState()
{
DataMinerID = 1234, // DMA id of failover pair
LocalIP = "1.2.3.4", // ip address of agent to go online
Online = true,
Reason = "a reason for going online can be provided here"
};
engine.SendSLNetMessage(switchRequest);
Moderator note: This is an internal call and we do not recommend using this, as it is not officially supported and we cannot guarantee that it will still work in the future. As a rule, you should avoid using SLNet calls, as these are subject to change without notice.