Use WebSphere MQ Shared Queues - Time Is Money - Mar 2010
Use WebSphere MQ Shared Queues - Time Is Money - Mar 2010
16 March 2010
Session - 1613
Agenda
1
Outages are evil
Hardware
10.0%
Application
40.0%
Gartner data
Process
40.0%
2
Outages are evil
3
What are Shared Queues?
4
What are Shared Queues?
CF04
Structures:
CSQ_ADMIN
APPLICATION1
PERSISTENT
DUPLEXED
LPAR – SC49 LPAR – SC54
WMQ-MQH1 Coupling Facilities WMQ-MQH2
Broker – MQH1BRK Broker – MQH2BRK
DB2 DSG – D9HG DB2 DSG – D9HG
CF05
Structures:
DUPLEXED
10
5
How are Shared Queues different from other
availability techniques?
11
12
6
How are Shared Queues different from other
availability techniques?
13
Q Mgr 1
B Msg1
Queue 1 Msg5
Q Mgr 2 Msg8
B
Msg2
Queue
Queue 1 1
Msg6
Q Mgr 3
Q Mgr 0 B
Msg3
A ? Queue 1
Msg7
SYSTEM.CLUSTER.TRANSMIT.QUEUE
Q Mgr 4
B Msg4-
Queue 1 Marooned
14
7
Reducing Outages by using QSGs
Msg3
Msg7
Q Mgr 1
Msg8
B
Msg11
CF Q Mgr 2 Msg4
B Msg5
Queue 1 Msg6
Queue 1
Q Mgr 3
Q Mgr 0 B Msg1-
? Processed
A
Q Mgr 4
B
Msg2
Msg9
QSG1 Msg10
15
16
8
How can I reduce outages using shared
queues?
17
18
9
Client Connections to Inbound shared channel
Client 0
LPAR 1
Client 1
QMG1
Sysplex
CF LPAR 2
Distributor QMG2
Queue 1
Queue 1
LPAR 3
MQCONN(QSG1)
MQClient 0 QMG3
Client 2
MQCONN(QSG1)
MQClient 1
LPAR 4
MQCONN(QSG1) QMG4
MQClient 2
Client 2
QSG1
19
20
10
Potential issues with shared queues
21
• Well……It depends
• Availability is not free
• CPU utilization is higher for shared queues
• Use of CF resources
• Large messages, over 63K, cost a great deal more
• Throughput can suffer – especially for large messages
• System management changes
• BACKUP CFSTRUCT
• RECOVER CFSTRUCT
22
11
Shared Queue Costs
23
24
12
Duplexing CF Structures
25
CF04
Structures:
CSQ_ADMIN
APPLICATION1
PERSISTENT
DUPLEXED
LPAR – SC49 LPAR – SC54
WMQ-MQH1 Coupling Facilities WMQ-MQH2
Broker – MQH1BRK Broker – MQH2BRK
DB2 DSG – D9HG DB2 DSG – D9HG
CF05
Structures:
DUPLEXED
26
13
Sample WMQ Policy Definition
• STRUCTURE NAME(MQHGDUPLEXED)
SIZE(30000)
INITSIZE(20000)
MINSIZE(20000)
PREFLIST(CF04,CF05)
FULLTHRESHOLD(85)
ALLOWAUTOALT(YES)
DUPLEX(ENABLED)
27
Duplexing CF Structures
28
14
Duplexed Structure – Coupling Facility
CF04
29
30
15
Dynamic Duplexing
31
Shameless Promotion
32
16