I'm currently seeing ADH dropping items from the cache as soon as the NI provider disconnects. Has anyone got the ADH to preserve the last image in the cache when a provider is disconnected? Do you know what configuration I might be missing?
The relevant config is below. I've setup the service to autoExpire items after a day and have a cache size of 1000 items for REPUB. I'm only publishing a single RIC at the moment which I can subscribe to whilst the Provider is active. I get 'F10: Not In Cache' as soon as the provider disconnects.
*adh*REPUB*autoExpiryItemBaseline : update
*adh*REPUB*autoExpiryItemTimeUnits : days
*adh*REPUB*autoExpiryItemTimeout : 1
*adh*REPUB*autoExpiryMaxListSize : 0
*adh*hashTableSize : 300000
*REPUB*maxCache : 1000
As soon as the NI provider disconnects I get this message:
<rmds.1.adh.sourceSSLDistribution.sslDispatcher.REPUB: Info: Fri Mar 24 14:58:30 2017> Server "REPUB" stopped for RSSL application "REPUB:2" from instance "****.15". The application terminated the session. <END>
ADS log of a consumer connecting when the NI provider is offline:
<rmds.1.ads: Info: Fri Mar 24 14:58:35 2017> Open Failure for (REPUB:TEST) by (****) at (*.*.*.216) using appId () Text:(F10: Not In Cache)<END>
I found leaveInactiveItemsInCache configuration in ADH. I have tried it and it works.
*adh*leaveInactiveItemsInCache : True
The consumer got the following status message when the NI Provider disconnected.
StatusMsg streamId="5" domain="MarketPrice Domain" state="Open / Suspect / None / 'Application Inactive'" name="IBM.N" serviceId="4811" serviceName="API_SHOGUN_NI" StatusMsgEnd
The new consumer got the cache image with Open/Suspect.
RefreshMsg streamId="5" domain="MarketPrice Domain" Solicited RefreshComplete ClearCache state="Open / Suspect / None / 'Application Inactive'" itemGroup="00 01" qos="RealTime/TickByTick" name="IBM.N" nameType="1" serviceId="4811" serviceName="API_SHOGUN_NI" Payload dataType="FieldList" FieldList FieldListNum="0" DictionaryId="0" FieldEntry fid="6" name="TRDPRC_1" dataType="Real" value="1283" FieldListEnd PayloadEnd RefreshMsgEnd
For more information, please refer to section 7.18.4.1 Group Outage Notification in the ADH Installation guide.