ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Shared-Classes in a Active-Active HA environment

Post new topic  Reply to topic
 Shared-Classes in a Active-Active HA environment « View previous topic :: View next topic » 
Author Message
kash3338
PostPosted: Sun Nov 12, 2017 11:56 pm    Post subject: Shared-Classes in a Active-Active HA environment Reply with quote

Shaman

Joined: 08 Feb 2009
Posts: 709
Location: Chennai, India

Hello all,

We have a Active-Active IIB v9.0.0.6 HA environment. We have some JAR files used from Message Flows to be placed in "shared-classes" directory. If we place the JAR files in the Broker specific "shared-classes" in respective Broker servers, then there is a problem during failover (as the failed over Broker will not be able to locate the "shared-classes" directory").

Hence we are planning to place the JAR files in the shared directory in NFS server (MQHA/Shared). How d we achieve this? I guess we should be setting the Broker to use "Shared Work Path" instead of "Work path" location, but how do we set this property and is this the correct approach for such a scenario?
Back to top
View user's profile Send private message Send e-mail
zpat
PostPosted: Mon Nov 13, 2017 12:09 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5849
Location: UK

You can set the broker wide shared class location, using mqsichangeproperties

It's also possible to set a shared class location at the EG level. I quite like using symlinks in place of the EG level shared class directory.

/var/mqsi/config/<brokername>/<EGname>/shared-classes
_________________
Well, I don't think there is any question about it. It can only be attributable to human error. This sort of thing has cropped up before, and it has always been due to human error.
Back to top
View user's profile Send private message
kash3338
PostPosted: Mon Nov 13, 2017 12:36 am    Post subject: Reply with quote

Shaman

Joined: 08 Feb 2009
Posts: 709
Location: Chennai, India

zpat wrote:
You can set the broker wide shared class location, using mqsichangeproperties

It's also possible to set a shared class location at the EG level. I quite like using symlinks in place of the EG level shared class directory.

/var/mqsi/config/<brokername>/<EGname>/shared-classes


The problem in setting at Broker level or Execution Group level is, during failover, the Broker will be failed over to other server where it will not find the path specified and hence will fail.

That is the reason I have asked for other options to set at Shared Path.
Back to top
View user's profile Send private message Send e-mail
zpat
PostPosted: Mon Nov 13, 2017 1:29 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5849
Location: UK

You are not following what I assumed was the obvious part, which is that the symlink (or the path set) would redirect to the shared storage location.

Clearly whatever path is used must be mounted before and after failover of the active node.

You do not have to use a local filesystem to hold the shared classes.
_________________
Well, I don't think there is any question about it. It can only be attributable to human error. This sort of thing has cropped up before, and it has always been due to human error.
Back to top
View user's profile Send private message
abhi_thri
PostPosted: Mon Nov 13, 2017 1:30 am    Post subject: Reply with quote

Knight

Joined: 17 Jul 2017
Posts: 516
Location: UK

Hi Kash...your approach looks fine, we got an active/passive configuration here which uses a shared work path but do not jar files though, our nodes uses
Work path = '/var/mqsi'
Shared Work Path = '/HA/<nodename>/mqsi'

jars are still configured at /var/mqsi/shared-classes on both nodes (jars don't change much here) but having the shared-classes at shared worth should work fine.

I think you can only specify value for shared worth path while creating the broker (see mqsicreatebroker), mqsichangebroker do not support changing it...hope this helps.
Back to top
View user's profile Send private message
kash3338
PostPosted: Mon Nov 13, 2017 1:39 am    Post subject: Reply with quote

Shaman

Joined: 08 Feb 2009
Posts: 709
Location: Chennai, India

zpat wrote:
You are not following what I assumed was the obvious part, which is that the symlink (or the path set) would redirect to the shared storage location.

Clearly whatever path is used must be mounted before and after failover of the active node.

You do not have to use a local filesystem to hold the shared classes.


Thanks. I missed the Symlink part in your first reply. I have also seen one more property called "Shared Work Path". Will that be of any help? There is a way to change the path using mqsiaddbrokerinstance
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Shared-Classes in a Active-Active HA environment
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.