Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Overview

FIXEdge server configuration allows to configure various auto switching options for the Initiator FIX session when there is a Backup Server for connecting via FIX protocolswitching between two endpoints of initiator FIX-session (Primary and Backup) when connection is lost.

Switching to the backup connection

Image Modified

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 set the backup connection:

Code Block
titleFIXEdge.properties
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.

Image Modified

The backup connection has been lost → switching back to the primary connection

Code Block
titleFIXEdge.properties
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
titleFIXEdge.properties
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
titleFIXEdge.properties
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>

...