Author |
Message
|
pcelari |
Posted: Fri Apr 24, 2015 11:50 am Post subject: Multi-instance QM fail-over - Loss of non-persistent msg |
|
|
Chevalier
Joined: 31 Mar 2006 Posts: 411 Location: New York
|
Hello,
it seems non-persistent messages on a queue will be lost after a fail-over of multi-instance qmgr. Is this the designed behavior?
Given all messages are stored in the shared FS, I wonder why non-persistent messages can be lost without a qmgr restart.
any insight would be appreciated. _________________ pcelari
-----------------------------------------
- a master of always being a newbie |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Apr 24, 2015 12:04 pm Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Non persistent messages can be lost simply by restarting a queue manager.
Non persistent messages can be lost under a large set of different scenarios.
You can read about NPMCLASS. |
|
Back to top |
|
 |
markt |
Posted: Sat Apr 25, 2015 6:05 am Post subject: |
|
|
 Knight
Joined: 14 May 2002 Posts: 508
|
what on earth makes you think that
Quote: |
all messages are stored in the shared FS, |
|
|
Back to top |
|
 |
fjb_saper |
Posted: Sat Apr 25, 2015 8:24 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
If you cannot afford to loose a message, it (the message) should be persistent. It is the responsibility of the sender to set the persistence of the message...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
pcelari |
Posted: Mon Apr 27, 2015 6:32 am Post subject: |
|
|
Chevalier
Joined: 31 Mar 2006 Posts: 411 Location: New York
|
markt wrote: |
what on earth makes you think that
Quote: |
all messages are stored in the shared FS, |
|
Granted, I made a thinking error.
The messages could well be in memory at the time of the fail-over. Wonder if there is way to force the messages be written to the FS. Generally, I prefer to avoid using persistent messages.
thanks a lot, _________________ pcelari
-----------------------------------------
- a master of always being a newbie |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Apr 27, 2015 6:32 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
This thread contains all the answers you need. |
|
Back to top |
|
 |
zpat |
Posted: Mon Apr 27, 2015 6:43 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
Yes there is a way to force the message to the FS - make the message persistent.
Incidentally if you are using modern SAN storage - then you can change the TripleWrite to SingleWrite, which makes it faster.
There are other ways to improve persistent message throughput - such as increasing the number of log buffer pages.
Either you want to protect against system failure or you don't. If you do and you are concerned about performance - there are various ways to tune it. _________________ 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.
Last edited by zpat on Mon Apr 27, 2015 11:57 pm; edited 1 time in total |
|
Back to top |
|
 |
RogerLacroix |
Posted: Mon Apr 27, 2015 1:34 pm Post subject: |
|
|
 Jedi Knight
Joined: 15 May 2001 Posts: 3264 Location: London, ON Canada
|
pcelari wrote: |
I made a thinking error. |
Well, there you have it (the root of your problem).
Non-persistent should ONLY EVER be used for messages that CAN be lost. The answer is really that simple.
Regards,
Roger Lacroix
Capitalware Inc. _________________ Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter |
|
Back to top |
|
 |
|