Price Server Failover
By default, the CFE Gateway supports Price Server failover. When an additional CFE Gateway is configured with the same Exchange-Flavor and channels as the primary CFE 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 CFE Gateway configured for Price Server failover appears in Guardian.
The 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., CFE-A, 172.31.251.1) will go from Standby to Running. Once the primary gateway Price Server (e.g., CFE-A, 22.214.171.124) 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 CFE 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 CFE 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 CFE Gateway and Price Server must be the same version and configured with the same Exchange-Flavor as the primary CFE Gateway (e.g., CFE-A).
- Any changes made in the aconfig.xml and aconfig_local.xml files (e.g., enabling PFX) need to be made on both CFE Gateways.
- The hostinfo.cfg file
on the primary and secondary CFE 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 CFE products, then the secondary gateway also needs to be configured to subscribe to all CFE products.
- To configure the secondary CFE Gateway so that only the Price Server runs, comment-out the Order Server and Fill Server sections in ttchron.ini on the secondary CFE Gateway.