Author |
Message
|
Morphy |
Posted: Thu Dec 08, 2016 10:47 pm Post subject: STANDARD CACHE (Using Shared Variables)RELOADING ISSUE |
|
|
 Newbie
Joined: 08 Dec 2016 Posts: 5
|
Hi All,
I have to work on a scenario, where I have an Active server and Standby server.
We have configured the IBM Integration bus High Availability(Active-Passive) using HACMP. For one message flow, we are fetching data from database and stores it in Standard Cache using Shared Variables.When the active Sever goes down,the entire application moves to Standby Server,now data in Cache is lost and not able to pick data from Database in standby server.Any Suggestions for this problem.
Thanks,
Morphy |
|
Back to top |
|
 |
adubya |
Posted: Fri Dec 09, 2016 1:19 am Post subject: |
|
|
Partisan
Joined: 25 Aug 2011 Posts: 377 Location: GU12, UK
|
Shared variables are only shared across instances of the same message flow running in a specific execution group. They are not shared across message flows, execution groups, brokers or LPARs/machines.
I guess you understand that but your problem is reloading the cache instances from database ? If so then what database issues are you getting ? Is the database on the node which has now shutdown, that wouldn't be good  _________________ Independent Middleware Consultant
andy@knownentity.com |
|
Back to top |
|
 |
Morphy |
Posted: Fri Dec 09, 2016 2:23 am Post subject: STANDARD CACHE (Using Shared Variables)RELOADING ISSUE |
|
|
 Newbie
Joined: 08 Dec 2016 Posts: 5
|
Sometimes our database which is configured on Node will be shutdown, in that scenarios, cache is not loading when DB cames into active mode.
Is there any solution to overcome this Cache problem incase of Failover scenarios. |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Dec 09, 2016 4:42 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Either make sure the database is always available before the broker starts,
or change your logic to handle the database being unavailable. _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
Vitor |
Posted: Fri Dec 09, 2016 6:08 am Post subject: Re: STANDARD CACHE (Using Shared Variables)RELOADING ISSUE |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Morphy wrote: |
Is there any solution to overcome this Cache problem incase of Failover scenarios. |
Proper code inside your flows. Irrespective of failover or not, a flow should not assume a cache is populated with data and any flow (cache or not) should handle a database being unavailable. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Morphy |
Posted: Fri Dec 16, 2016 9:05 pm Post subject: |
|
|
 Newbie
Joined: 08 Dec 2016 Posts: 5
|
Thanks all for your suggestions. Problem is resolved, by handling the database exceptions. |
|
Back to top |
|
 |
|