1

我是 Quickfix / n 的初学者。我想在 Quickfix / na 主服务器和备份服务器上运行以使用故障转移。但是我不知道如何配置主服务器的 .cfg 文件和备份的 .cfg 文件。我还想知道是否要从服务器进行测试,是否需要运行两个应用程序,一个用于主服务器,一个用于我的备用服务器。我希望有人可以帮助我举个例子来激活 quickfix / n 中的故障转移,以防主服务器断开连接。

我的 .cfg 文件的代码:

 [DEFAULT]
 ConnectionType=initiator
 ReconnectInterval=2
 FileStorePath=store
 FileLogPath=log
 StartTime=00:00:00
 EndTime=00:00:00
 UseDataDictionary=Y
 DataDictionary=../../spec/fix/FIX44.xml
 SocketConnectHost=127.0.0.2
 SocketConnectPort=5002
 LogoutTimeout=5
 RefreshMessageStoreAtLogon=Y
 ResetOnLogon=Y
 ResetOnDisconnect=Y
 #Backup
 SocketConnectHost=127.0.0.1
 SocketConnectPort=5001



 [SESSION]
 # inherit ConnectionType, ReconnectInterval and SenderCompID from 
 default
 BeginString=FIX.4.4
 SenderCompID=CLIENT1
 TargetCompID=EXECUTOR
 HeartBtInt=30
4

0 回答 0