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 » General IBM MQ Support » Queues not retaining messages after failover

Post new topic  Reply to topic
 Queues not retaining messages after failover « View previous topic :: View next topic » 
Author Message
zhaider
PostPosted: Wed Oct 14, 2015 4:28 am    Post subject: Queues not retaining messages after failover Reply with quote

Apprentice

Joined: 08 Oct 2015
Posts: 40

I have configured a two node MSCS cluster. The problem I'm facing is that after putting any message in the Local queue when I failover to the other node I found the same queue to be empty. If I failover to the original node again, the queue is still empty.

The messages put inside the queue gets deleted once I switch over to the other node. Please help me.

And if possible can someone also tell me the solution to the problem I'm facing here: http://www.mqseries.net/phpBB2/viewtopic.php?p=398790
I found a work around by setting a 1 minute timer but still I'll be grateful for the permanent solution.

Thanks
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Oct 14, 2015 4:56 am    Post subject: Re: Queues not retaining messages after failover Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

zhaider wrote:
The messages put inside the queue gets deleted once I switch over to the other node. Please help me.


What makes you think they should still be there? If the messages are not persistent, functioning as designed.

(I offer the traditional warning about claiming the messages are persistent because the default persistence of the queue is "YES". Fire and pain result).

zhaider wrote:
can someone also tell me the solution to the problem I'm facing here: http://www.mqseries.net/phpBB2/viewtopic.php?p=398790


Apparently not, or they'd have posted it to that thread.....
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Oct 14, 2015 4:57 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Moved to "General IBM MQ Support" as this isn't the kind of clustering that section is dedicated to....
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
zhaider
PostPosted: Wed Oct 14, 2015 9:32 am    Post subject: Re: Queues not retaining messages after failover Reply with quote

Apprentice

Joined: 08 Oct 2015
Posts: 40

Vitor wrote:
zhaider wrote:
The messages put inside the queue gets deleted once I switch over to the other node. Please help me.


What makes you think they should still be there? If the messages are not persistent, functioning as designed.

(I offer the traditional warning about claiming the messages are persistent because the default persistence of the queue is "YES". Fire and pain result).



Okay thanks! Can you clarify it further? What does I need to do to make it persistent unless they are consumed by some services. I basically wants to keep maintain the state of the queue at the time of failover.

Sorry, I'm new to this stuff.
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Oct 14, 2015 9:54 am    Post subject: Re: Queues not retaining messages after failover Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

zhaider wrote:
What does I need to do to make it persistent unless they are consumed by some services.


Make sure that the application that puts the message on the queue sets the message to be persistent. This is either done by the application explicitly setting the message persistence, or by the application taking the queue default and the default being set to persistent.

(It's a common misconception that the queue setting controls the persistence, when in fact the application controls it and the queue only offers a suggestion.)

If you ask 3 MQ experts which of the two methods is best, you'll get 5 different answers. Neither method is "wrong", nor is either method "better", and I'll probably get flamed in a moment.....

zhaider wrote:
I basically wants to keep maintain the state of the queue at the time of failover.


Be sure that's what you want. Aside from deciding how to set message persistence, deciding when to set message persistence is another thorny question. It's perfectly possible that the messages in a queue are redundant post-failover. Consider this slightly contrived example:

An application is happily sending messages and getting responses from another application, both connected to this queue manager you have under MSCS. There's a system level issue (for Windows, something like the server's been running for 2 days without being restarted) and the queue manager crashes. The applications get a face full of 2009 errors and rollback, reconnect and otherwise recover. When the queue manager restarts, it will take time performing a forward recovery on the queue to retrieve the messages which may be responses the enquiring application has already given up on, and then has to spend time reading and ignoring.

zhaider wrote:
Sorry, I'm new to this stuff.


Welcome to the world. Enjoy reading the InfoCenter, and get yourself on some training courses.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Wed Oct 14, 2015 11:19 am    Post subject: Re: Queues not retaining messages after failover Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9396
Location: US: west coast, almost. Otherwise, enroute.

Vitor wrote:
... and I'll probably get flamed in a moment.....

No flaming from here.
Vitor wrote:
Be sure that's what you want.

The business requirement will determine whether messages should be persistent or non-persistent. As Vitor suggests, there are consequences for either/both.

Vitor wrote:
Welcome to the world. Enjoy reading the InfoCenter, and get yourself on some training courses.

Get some training.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
zhaider
PostPosted: Thu Oct 15, 2015 3:43 am    Post subject: Reply with quote

Apprentice

Joined: 08 Oct 2015
Posts: 40

Thanks guys for the help. Since I'm just starting up, I just try to learn on my own. Paid training right now is not an option, I'm afraid.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Thu Oct 15, 2015 5:14 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9396
Location: US: west coast, almost. Otherwise, enroute.

I recommend that you download and begin reading this primer on MQ http://www.redbooks.ibm.com/abstracts/redp0021.html?Open
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Queues not retaining messages after failover
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.