Price Server Failover
By default, the MX Gateway supports Price Server failover. When an additional MX Gateway is configured with the same Exchange-flavor and channels as the primary MX Gateway, the Price Server of the primary gateway will failover to the secondary gateway Price Server in the event of a service failure.
Gateway Behavior During Price Server Failover
The following figure shows how a MX Gateway configured for Price Server failover appears in Guardian.
The HSVF price feed unicasts prices to both Price Servers, so either Price Server (the primary or secondary) can be active in a Price Server failover configuration. For example, in the event of a primary gateway Price Server restart or service failure, the secondary gateway Price Server (e.g., MX-A, 172.31.251.1) will go from Standby to Running. Once the primary gateway Price Server (e.g., MX-A, 184.108.40.206) is back in service, it will appear in Standby mode as half green & half yellow in Guardian. The following figure shows how the primary gateway Price Server appears in Guardian after a successful failover to the secondary gateway Price Server.
There is no impact to working orders or order routers, etc., during a Price Server Failover. The Order Server is unaffected.
There is also no impact on client subscriptions to the MX Gateway during a Price Server failover. The only difference is prices are now received by the secondary Price Server, while orders continue to be routed through the Order Server on the primary MX Gateway. The failover process lasts just a few seconds.
Configuring Price Server Failover
You need to consider the following when configuring Price Server failover:
- The secondary MX Gateway and Price Server must be the same version and configured with the same Exchange-flavor as the primary MX Gateway (e.g., MX-A).
- Any changes made in the aconfig.xml and aconfig_local.xml files (e.g., enabling PFX) need to be made on both MX Gateways.
- The hostinfo.cfg file
on the primary and secondary MX Gateways needs to be configured
with the following:
- The same settings for the PriceServer section parameters.
- Identical product subscriptions. For example, if the primary gateway is subscribing to all MX products, then the secondary gateway also needs to be configured to subscribe to all MX products.
- To configure the secondary MX Gateway so that only the Price Server runs, comment-out the Order Server and Fill Server sections in ttchron.ini on the secondary MX Gateway.
- Identical MXProductGroup.cfg files are required on both the primary and secondary MX Gateways.