Table of Contents
Overview
FIXEdge server allows to configure various auto switching options for the Initiator FIX session when there is a Backup Server for connecting via FIX protocol.
Switching to the backup connection
The primary connection has been lost → switching to the backup connection
It is possible to configure Initiator FIX Session, when FIXEdge in case of a disconnection will connect to the Backup Server. Use the following parameters to setup backup connection:
Code Block | ||
---|---|---|
| ||
FixLayer.FixEngine.Session.MySession.EnableAutoSwitchToBackupConnection = true FixLayer.FixEngine.Session.MySession.Backup.Host = <backup server host> FixLayer.FixEngine.Session.MySession.Backup.Port = <backup server port> |
Note |
---|
Only one backup connection is supported. |
Switching back to the primary connection
If the Backup Server crashes or the connection is broken, to restore the FIX Session to the Primary Server, you need to specify the property EnableAutoSwitchToBackupConnection = true for Backup FIX Session too.
The backup connection has been lost → switching back to the primary connection
Code Block | ||
---|---|---|
| ||
FixLayer.FixEngine.Session.MySession.EnableAutoSwitchToBackupConnection = true FixLayer.FixEngine.Session.MySession.Backup.EnableAutoSwitchToBackupConnection = true FixLayer.FixEngine.Session.MySession.Backup.Host = <backup server host> FixLayer.FixEngine.Session.MySession.Backup.Port = <backup server port> |
Cyclic reconnection
That FIXEdge continued connection attempts when the Primary and Backup Servers are not available, use EnableCyclicSwitchBackupConnection parameter. The EnableCyclicSwitchBackupConnection parameter is set for the Primary and Backup FIX Sessions:
Code Block | ||
---|---|---|
| ||
FixLayer.FixEngine.Session.MySession.EnableAutoSwitchToBackupConnection = true FixLayer.FixEngine.Session.MySession.EnableCyclicSwitchBackupConnection = true FixLayer.FixEngine.Session.MySession.Backup.EnableAutoSwitchToBackupConnection = true FixLayer.FixEngine.Session.MySession.Backup.EnableCyclicSwitchBackupConnection = true FixLayer.FixEngine.Session.MySession.Backup.Host = <backup server host> FixLayer.FixEngine.Session.MySession.Backup.Port = <backup server port> |
Message sequence numbers reset
If Backup/Primary Server will start FIX Session from MsgSeqNum(34)=1, set ForceSeqNumReset parameter. MsgSeqNum(34) will reset on each Logon to Primary or Backup Servers (cyclic reconnection):
Code Block | ||
---|---|---|
| ||
FixLayer.FixEngine.Session.MySession.EnableAutoSwitchToBackupConnection = true FixLayer.FixEngine.Session.MySession.EnableCyclicSwitchBackupConnection = true FixLayer.FixEngine.Session.MySession.ForceSeqNumReset = 2 FixLayer.FixEngine.Session.MySession.Backup.EnableAutoSwitchToBackupConnection = true FixLayer.FixEngine.Session.MySession.Backup.EnableCyclicSwitchBackupConnection = true FixLayer.FixEngine.Session.MySession.Backup.ForceSeqNumReset = 2 FixLayer.FixEngine.Session.MySession.Backup.Host = <backup server host> FixLayer.FixEngine.Session.MySession.Backup.Port = <backup server port> |
...