{{Quickfixn}} Switching between Primary and Backup sessions
Mike Gatny
mgatny at connamara.com
Wed Feb 14 06:11:02 PST 2018
Yes, this is supported. Please see the SocketConnectPort<n> and
SocketConnectHost<n> session settings here:
http://quickfixn.org/tutorial/configuration.html
Your cfg file will end up looking something like:
[SESSION]
BeginString=FIX.4.4
SocketConnectHost*1*<Primary>
SocketConnectPort*1*<Primary>
SocketConnectHost*2*=<Backup>
SocketConnectPort*2*=<Backup>
And you can continue adding more as needed, e.g.:
SocketConnectHost*3*=<DisasterRecovery>
SocketConnectPort*3*=<DisasterRecovery>
You do not need to set SessionQualifier.
--
Mike Gatny
Connamara Systems, LLC
On Mon, Feb 12, 2018 at 11:36 PM, Кононов Роман Олегович <rkononov at bcs.ru>
wrote:
> Hi! Our counterparty requires to recover gateway failover and provides
> Primary and Backup ip addresses and ports. Also specific behavior required.
>
> So we’ve configured 2 initiator sessions:
>
>
>
> [SESSION]
>
> BeginString=FIX.4.4
>
> SessionQualifier=PR
>
> SocketConnectHost=<Primary>
>
> SocketConnectPort=<Primary>
>
>
>
> [SESSION]
>
> BeginString=FIX.4.4
>
> SessionQualifier=BCK
>
> SocketConnectHost=<Backup>
>
> SocketConnectPort=<Backup>
>
>
>
> But with this configurations application trying to start both sessions. Is
> there any options in quickfix/n to set up behavior below:
>
> Start only 1st session, if it’s unavailable to connect (3 attempts to
> connect) try to start 2nd session (3 attempts to connect). If 2nd session
> unavailable to then stop.
>
>
>
> Regards
>
> Kononov Roman
>
> Developer
>
> BCS Technologies
>
>
>
> _______________________________________________
> Quickfixn mailing list
> Quickfixn at lists.quickfixn.com
> http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20180214/346682bb/attachment.htm>
More information about the Quickfixn
mailing list