Probably this is the reason. I use the following command to start my cluster:
sudo /usr/sbin/qpidd -p 5673 -t --cluster-name=mycluster --store-dir /export/home/amqmadm/qpidclus --auth no --ssl-cert-password-file /export/home/amqmadm/sandbox/cert.password --ssl-cert-db /export/home/amqmadm/sandbox/test_cert_db The /etc/qpidd.conf file is empty, so I guess there's no heartbeat setup? How can I set the heartbeat in config file or through command line? I can't find any clues in the documents. Thanks, Shan -----Original Message----- From: Carl Trieloff [mailto:[email protected]] Sent: 16 March 2009 20:49 To: [email protected] Subject: Re: a question about the FailoverManager Gordon Sim wrote: > Shan Wang wrote: >> As I understand it, FailoverManager::execute() will try to reconnect if >> no open connection is available, by using the last known brokers >> list(because it uses connect() which has an empty brokers url list?), >> and if that succeeded, a new session will be created and >> Command::execute() will be called. And if the reconnect failed, it will >> through an exception. > > That is correct; when the current connection fails it will try to > reconnect using the list of known urls retrieved when connected. It > will try each of these in turn then fail if it can't connect to any of > them. Another thing is to make sure you have configured a heartbeat, so the fail-over happens on heartbeat interval and not on socket timeout. regards Carl. --------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:[email protected] The information contained in this email is strictly confidential and for the use of the addressee only, unless otherwise indicated. If you are not the intended recipient, please do not read, copy, use or disclose to others this message or any attachment. Please also notify the sender by replying to this email or by telephone (+44 (0)20 7896 0011) and then delete the email and any copies of it. Opinions, conclusions (etc.) that do not relate to the official business of this company shall be understood as neither given nor endorsed by it. IG Index plc is a company registered in England and Wales under number 01190902. VAT registration number 761 2978 07. Registered Office: Friars House, 157-168 Blackfriars Road, London SE1 8EZ. Authorised and regulated by the Financial Services Authority. FSA Register number 114059. --------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:[email protected]
