| Author | 
		  Message
		 | 
		
		  | MQMB&WAS | 
		  
		    
			  
				 Posted: Tue Jun 28, 2016 8:00 pm    Post subject: QAlias difference | 
				     | 
			   
			 
		   | 
		
		
		   Centurion
 
 Joined: 12 Jun 2016 Posts: 130
  
  | 
		  
		    
			  
				I have the below two alias queues targeting to the same local queue, I want to know the difference between the two
 
 
dis qa(AliasQ1)
 
TYPE(QALIAS)                             QSGDISP(QMGR)
 
CLUSTER(clus1)                           CLUSNL()
 
TARGTYPE(QUEUE)                          
 
PUT(ENABLED)                             DEFPRTY(0)
 
DEFPSIST(YES)                            GET(ENABLED)
 
DEFREADA(NO)                             DEFPRESP(SYNC)
 
TARGET(QLocal1)                          PROPCTL(COMPAT)
 
DEFBIND(NOTFIXED)                        CLWLRANK(0)
 
CLWLPRTY(0)                              CUSTOM()
 
 
 
 
dis qa(AliasQ2)
 
TYPE(QALIAS)                             QSGDISP(QMGR)
 
CLUSTER()                                CLUSNL()
 
TARGTYPE(QUEUE)                          
 
PUT(ENABLED)                             DEFPRTY(0)
 
DEFPSIST(YES)                            GET(ENABLED)
 
DEFREADA(NO)                             DEFPRESP(SYNC)
 
TARGET(QLocal1)                          PROPCTL(COMPAT)
 
DEFBIND(NOTFIXED)                        CLWLRANK(0)
 
CLWLPRTY(0)                              CUSTOM()
 
 
thanks | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | MQsysprog | 
		  
		    
			  
				 Posted: Tue Jun 28, 2016 10:23 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Centurion
 
 Joined: 24 Feb 2014 Posts: 116
  
  | 
		  
		    
			  
				Hi 
 
 
the first alias is defined as a cluster one, so all the qmanagers in the cluster clus1 are aware of it .
 
The second is a normal qalias so it is know only to the qmanager where is defined...
 
You will find al lot more information on the proper manuals given by IBM . | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | MQMB&WAS | 
		  
		    
			  
				 Posted: Wed Jun 29, 2016 9:22 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Centurion
 
 Joined: 12 Jun 2016 Posts: 130
  
  | 
		  
		    
			  
				[quote="MQsysprog"]Hi 
 
 
the first alias is defined as a cluster one, so all the qmanagers in the cluster clus1 are aware of it .
 
The second is a normal qalias so it is know only to the qmanager where is defined...
 
You will find al lot more information on the proper manuals given by IBM .[/quote]
 
 
Thank you.
 
So if a job puts 10 messages to the first aliasq, they will be load balanced to all qmgrs in the cluster.
 
but the msgs  put to the 2nd aliasq will be directing only to it's localq ?? | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | smdavies99 | 
		  
		    
			  
				 Posted: Wed Jun 29, 2016 9:54 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Council
 
 Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land. 
  | 
		  
		    
			  
				[quote="MQMB&WAS"]
   
	| MQsysprog wrote: | 
   
  
	Hi 
 
 
So if a job puts 10 messages to the first aliasq, they will be load balanced to all qmgrs in the cluster.
 
but the msgs  put to the 2nd aliasq will be directing only to it's localq ?? | 
   
 
 
 
Possibly.
 
There are numerous posts there about the sometimes thorny and non obvious topic of 
 
 
 BIND ON OPEN
 
 
https://www.ibm.com/support/knowledgecenter/SSFKSJ_7.5.0/com.ibm.mq.dev.doc/q027030_.htm
 
 
Without looking at the documentation I can't say for certain what would happen but if the open is done with MQOO_BIND_ON_OPEN then the messages may not be distributed around the cluster.
 
Do some research. All your answers are more than likely in the documentation. _________________ WMQ User since 1999
 
MQSI/WBI/WMB/'Thingy' User since 2002
 
Linux user since 1995
 
 
 
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | mqjeff | 
		  
		    
			  
				 Posted: Wed Jun 29, 2016 10:23 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Grand Master
 
 Joined: 25 Jun 2008 Posts: 17447
  
  | 
		  
		    
			  
				Also, messages aren't load balanced across queue managers.
 
 
They're load balanced across channels. _________________ chmod  -R ugo-wx / | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |