Re: C++ Client. Cluster failover.

2011-04-18 Thread Sergey_Zhemzhitsky
Hi Gordon, Thanks a lot for the help. Best Regards, Sergey Zhemzhitsky Information Technology Division Troika Dialog, 4, Romanov lane, Moscow 125009, Russia Phone. +7 495 2580500 ext. 1246 Gordon Sim 18.04.2011 19:52 Please respond to users@qpid.apache.org To users@qpid.apache.org cc Sub

C++ Client. Cluster failover.

2011-04-18 Thread Sergey_Zhemzhitsky
Hi there, According to the http://qpid.apache.org/books/0.8/Programming-In-Apache-Qpid/html/ch02s14.html we can configure a client failover by means of the following snippet of code Connection connection("localhost:5672"); connection.setOption("reconnect", true); try { connection.open();

Re: I/O Errors

2011-04-05 Thread Sergey_Zhemzhitsky
Hi there, Sorry for so long answer. We are planning to use the MRG Messaging with the latest updates, so the problem may disappear. For now I've raised the JIRA issue https://issues.apache.org/jira/browse/QPID-3189 with minor priority because such a behavior is hardly reproducable. Best Rega

Re: I/O Errors

2011-03-31 Thread Sergey_Zhemzhitsky
Hi Alan, Thanks for information, >From you message I understood that queue policy error can occur due to previous errors with persistent store, for example, queue policy is incremented and just after that the error occurs when trying to persist a message. Best Regards, Sergey Zhemzhitsky

Re: Single exchange with multiple binding keys vs. multiple exchanges with single binding key.

2011-03-31 Thread Sergey_Zhemzhitsky
Hi Alan, I thought that such tests should have already been done. Unfortunately I don't have enough time to do it right now so I try to do it later. Best Regards, Sergey Zhemzhitsky Alan Conway 31.03.2011 17:07 Please respond to users@qpid.apache.org To users@qpid.apache.org cc sergey_z

Single exchange with multiple binding keys vs. multiple exchanges with single binding key.

2011-03-30 Thread Sergey_Zhemzhitsky
Hi there, I would like to have a reliable single broker system and I wonder is there any dirrerence in performance and reliability between a single exchange with multiple binding keys and multiple exchanges with single binding key? What is more reliable, a single exchange with multiple binding

I/O Errors

2011-03-30 Thread Sergey_Zhemzhitsky
Hi there, I'm using qpid 0.8 and sending only durable messages. >From time to time the following exceptions can occur: 1. Journal "MyQueue": get_events() returned JERR_JCNTL_AIOCMPLWAIT; wmgr_status: wmgr: pi=29 pc=44 po=0 aer=32 edac:TFFF ps=[] wrfc: state: Act

Re: Qpid CLIENT_ACKNOWLEDGE

2011-03-24 Thread Sergey_Zhemzhitsky
Marnie, Rajith thanks a lot. We try to omit to use transactions because of performance penalty. To achieve the maximum performance and have our messages guaranteed delivered we have the following configuration: 1. cluster of two qpid brokers 2. all queues are cluster-durable 3. all messages ar

Qpid CLIENT_ACKNOWLEDGE

2011-03-22 Thread Sergey_Zhemzhitsky
Hi there I'm working with qpid 0.8 by means of JMS API and I'm using CLIENT_ACKNOWLEDGE mode to get higher performance comparing to transactinal processing. As a rule performance is rather pure in both cases. In transactional mode I can receive about 1.6K messages per second, in CLIENT_ACKNOWLE

Re: QPID: message ordering

2011-03-03 Thread Sergey_Zhemzhitsky
We have to replay all the data which is some kind of deals, and the most recent deals must be processed in the first place, so LVQ seems not to fit our needs. Best Regards, Sergey Zhemzhitsky Gordon Sim 03.03.2011 11:39 Please respond to users@qpid.apache.org To users@qpid.apache.org cc

Re: QPID: message ordering

2011-03-02 Thread Sergey_Zhemzhitsky
Hi Gordon, We have a queue with market data, sometimes we need to resend all the data and we would like to process the most recent data earlier in that case. Best Regards, Sergey Zhemzhitsky Gordon Sim 02.03.2011 19:12 Please respond to users@qpid.apache.org To users@qpid.apache.org cc

Re: QPID: message ordering

2011-03-02 Thread Sergey_Zhemzhitsky
Hi Gordon, Maybe I have not properly understood LVQ. I thought that LVQ allows to read messages in reverse order. It is a nice feature to have, so that we will be able to read the most recent messages in the first place. Best Regards, Sergey Zhemzhitsky Gordon Sim 02.03.2011 16:14 Please

QPID: message ordering

2011-03-02 Thread Sergey_Zhemzhitsky
Hi there, I have some questions regarding message ordering. Could you please help? 1. Is it possible to read messages from the queue in reverse order to get the most recent messages? 2. If queue is declared as LVQ is it possible to use durable messages in the latest version of qpid? 3. Is it po

Re: QPID Clustering

2011-03-01 Thread Sergey_Zhemzhitsky
Alan, thanks a lot. It's more clearer now. Best Regards, Sergey Zhemzhitsky Alan Conway 01.03.2011 00:25 Please respond to users@qpid.apache.org To users@qpid.apache.org cc sergey_zhemzhit...@troika.ru Subject Re: QPID Clustering On 02/28/2011 10:58 AM, sergey_zhemzhit...@troika.r

Re: QPID Clustering

2011-02-28 Thread Sergey_Zhemzhitsky
Hi Alan, thanks for support >> I'm not familiar with stonish. Sorry for mistyping, I have meant stonith. So, does it make sense to use cman instead of corosync in case of two-node cluster? Are there any benefits in using cman? Best Regards, Sergey Zhemzhitsky Information Technology Division Tr

QPID Clustering

2011-02-28 Thread Sergey_Zhemzhitsky
Hi there, I'm using MRG 1.3 and I have the following questions regarding qpid clustering? 1. Is it possible to use quorum, fencing, stonish if I'm using a messaging cluster ( http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_MRG/1.3/html/Messaging_Installation_Guide/chap-Messaging_Installati

Re: Building qpid 0.8 with clustering on RHEL 6

2011-02-24 Thread Sergey_Zhemzhitsky
Alan, thanks a lot. I will give it a try. Best Regards, Sergey Zhemzhitsky Alan Conway 24.02.2011 18:02 Please respond to users@qpid.apache.org To users@qpid.apache.org cc sergey_zhemzhit...@troika.ru Subject Re: Building qpid 0.8 with clustering on RHEL 6 On 02/24/2011 02:04 AM, s

Re: Building qpid 0.8 with clustering on RHEL 6

2011-02-23 Thread Sergey_Zhemzhitsky
Hi Chris, I'm afraid of using corosynclib-devel-1.2.0 for building qpid that will be used with corosynclib-1.2.3, because of possible incompatibility, so I prefer to build corosync-1.2.3 additionally. Finally I have managed to find that selinux was the problem although corosync was from the di

Re: Building qpid 0.8 with clustering on RHEL 6

2011-02-22 Thread Sergey_Zhemzhitsky
Hi Alan, Thanks for response. There is no corosynclib-devel in the RHEL 6 distribution. Both qpid and corosync are started as services, so SELinux must not bring any problems. And firewall allows all traffic. As I have mentioned the problem occurs only after reboot, and services are started m

Building qpid 0.8 with clustering on RHEL 6

2011-02-22 Thread Sergey_Zhemzhitsky
Hi there, I'm trying to build qpid 0.8 with support of clustering on the RedHat Enterprise Linux 6. For the clustering support to be available it is necessary corosync headers and object files to be available, but in there are only corosync_1.2.3-21.el6.x86_64.rpm, corosynclib_1.2.3-21.el6.x86_

Re: Qpid: cluster-durable queues

2011-02-09 Thread Sergey_Zhemzhitsky
Thanks a lot for help. Best Regards, Sergey Zhemzhitsky Alan Conway 09.02.2011 17:40 Please respond to users@qpid.apache.org To users@qpid.apache.org cc sergey_zhemzhit...@troika.ru Subject Re: Qpid: cluster-durable queues On 02/08/2011 01:47 AM, sergey_zhemzhit...@troika.ru wrote:

Re: QPID 0.8: Time callback overran

2011-02-09 Thread Sergey_Zhemzhitsky
Alan, thanks for help. Best Regards, Sergey Zhemzhitsky Alan Conway 09.02.2011 17:36 Please respond to users@qpid.apache.org To users@qpid.apache.org cc sergey_zhemzhit...@troika.ru Subject Re: QPID 0.8: Time callback overran On 02/08/2011 02:40 AM, sergey_zhemzhit...@troika.ru wrote

QPID 0.8: Time callback overran

2011-02-08 Thread Sergey_Zhemzhitsky
Hi there, I'm using qpid 0.8 c++ broker and java client. In the log I have a lot of messages like these Feb 7 11:01:24 cto-sandbox qpidd[10157]: 2011-02-07 11:01:24 warning JournalInactive:MyQueue timer callback overran by 7ms [taking 14000ns] Feb 7 11:01:25 cto-sandbox qpidd[10157]: 2011-02-0

Re: Qpid: cluster-durable queues

2011-02-07 Thread Sergey_Zhemzhitsky
Carl, thanks a lot. Could you provide me with links to read more about cman and quorum manager? Best Regards, Sergey Zhemzhitsky Carl Trieloff 07.02.2011 16:56 Please respond to users@qpid.apache.org To users@qpid.apache.org cc Subject Re: Qpid: cluster-durable queues yes, that

Re: Qpid: cluster-durable queues

2011-02-06 Thread Sergey_Zhemzhitsky
Hi Gordon, So, if a queue is --durable, no persistent messages will be lost. If the queue is --durable and --cluster-durable all non persistent messages will become persistent when only one node of the cluster remains. Is my understanding of --cluster-durable option correct? Best Regards, Ser

Re: QPID Reliability

2011-02-04 Thread Sergey_Zhemzhitsky
Gordon, I completely agree about filtering. At least now I understand what they are for. Thanks a lot. Best Regards, Sergey Zhemzhitsky Gordon Sim 04.02.2011 13:22 Please respond to users@qpid.apache.org To users@qpid.apache.org cc Subject Re: QPID Reliability On 02/04/2011 09:32

Re: QPID Reliability

2011-02-04 Thread Sergey_Zhemzhitsky
Hi Alan, First of all thanks for helping to understand the meaning of these queues. How long the broker will keep those queues? Because if they exist until the broker restarts, it will be difficult to find a concrete queue because of amount of _@amq.failover_. Best Regards, Sergey Zhem

Re: Qpid: cluster-durable queues

2011-02-03 Thread Sergey_Zhemzhitsky
Hi Carl, I want my queue to become durable when only one node in the cluster stands alive. I believe this is what the --cluster-durable option is for. Best Regards, Sergey Zhemzhitsky Carl Trieloff 03.02.2011 17:36 Please respond to users@qpid.apache.org To users@qpid.apache.org cc Sub

Qpid: cluster-durable queues

2011-02-03 Thread Sergey_Zhemzhitsky
Hi there, I'm using qpid 0.8 and I'd like to use cluster durable queues. Here is my test case: 1. Start a cluster that contains two nodes. 2. Create cluster durable queue: qpid-config add queue MyQueue --cluster-durable 3. Kill one node by means of kill -9 4. Restart qpid on the second node 5.

Re: QPID Reliability

2011-02-03 Thread Sergey_Zhemzhitsky
Jonathan, thanks for help. Those are queues, not exchanges. There are a lot of queues like that _@amq.failover_54cb1666-c325-472b-9b83-1bececd2f0a8 when I'm executing qpid-stat -q. It seems that they are created automatically? When client starts for the first time there are no such queues.

Re: QPID Reliability

2011-02-03 Thread Sergey_Zhemzhitsky
By the way, I'm using qpid 0.8. Best Regards, Sergey Zhemzhitsky sergey_zhemzhit...@troika.ru 03.02.2011 12:31 Please respond to users@qpid.apache.org To users@qpid.apache.org cc Subject QPID Reliability Hi there I'm testing reliability of my application Connection Factory URL: a

QPID Reliability

2011-02-03 Thread Sergey_Zhemzhitsky
Hi there I'm testing reliability of my application Connection Factory URL: amqp: //guest:guest@/?brokerlist='tcp://host1:5672?tcp_nodelay='true';tcp://host2:5672?tcp_nodelay='true''&failover='failover_exchange'&connectdelay='5000'&retries='10' Queue URL: BURL:direct://MyExchange//MyQueue?routing

Re: Delete all the messages from a queue.

2011-02-02 Thread Sergey_Zhemzhitsky
It's interesting to know. I will investigate this issue if I have more time. Thanks for help. Best Regards, Sergey Zhemzhitsky Ted Ross 02.02.2011 17:02 Please respond to users@qpid.apache.org To users@qpid.apache.org cc Subject Re: Delete all the messages from a queue. Interestin

Re: Delete all the messages from a queue.

2011-02-02 Thread Sergey_Zhemzhitsky
The issue was in a remaining subscriber. When I killed it I was able to purge my queue. Best Regards, Sergey Zhemzhitsky sergey_zhemzhit...@troika.ru 02.02.2011 10:20 Please respond to users@qpid.apache.org To users@qpid.apache.org cc Subject Re: Delete all the messages from a queue.

Re: Delete all the messages from a queue.

2011-02-01 Thread Sergey_Zhemzhitsky
Ted, sessions are not transactional. It seems that the only way is to recreate queue. Is it possible to get amount of messages or get all the messages by means of plain qpid API even if there are transactional sessions? Best Regards, Sergey Ted Ross 01.02.2011 18:27 Please respond to use

Re: Delete all the messages from a queue.

2011-02-01 Thread Sergey_Zhemzhitsky
Hi Gordon, I'm not able to reproduce such a behavior on another environment. When I'm trying to execute call purge 0, the command executes successfully and there aren't exceptions in the log file. However "show " and "qpid-stat" show that some messages remain. Best Regards, Sergey Zhemzhitsk

Re: Delete all the messages from a queue.

2011-02-01 Thread Sergey_Zhemzhitsky
Here is the command I have used qpid-config --durable --file-count 128 --file-size 32 add queue MyQueue Best Regards, Sergey Zhemzhitsky Gordon Sim 01.02.2011 18:13 Please respond to users@qpid.apache.org To users@qpid.apache.org cc Subject Re: Delete all the messages from a queue.

Re: Delete all the messages from a queue.

2011-02-01 Thread Sergey_Zhemzhitsky
Hi Jonathan, I have tried all the ways to get a valid number of messages but without success. qpid-stat and qpid-tool return the same number of messages that is not 0. If I try to browse the queue by means of HermesJMS there are no messages in the queue. Best Regards, Sergey Zhemzhitsky

Re: Delete all the messages from a queue.

2011-02-01 Thread Sergey_Zhemzhitsky
Well, queue seems to be empty, because I can't read a message from it. Does anybody know how make qpid-tool and qpid-stat return an appropriate information? Here is output of the qpid-stat command Queues queue dur autoDel excl msg msgIn msgOut

Delete all the messages from a queue.

2011-02-01 Thread Sergey_Zhemzhitsky
Hi there, Is there any guaranteed way to remove all the messages from a queue? I'm using MRG 1.3, and I have tried the following way: qpid-tool qpid: list qpid: list queue qpid: call queue-id purge 0 quit but without success. Could you please tell where the problem could be? And what to p

Re: OSGi version for Java?

2011-01-27 Thread Sergey_Zhemzhitsky
Pete, if you need only client to be OSGi-fied take a look here http://repo1.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.qpid/0.8.0_1/ The following feature for the Apache Karaf should work just fine (please let me know if not): mvn:edu.emory.mathcs.backpor

Re: Differences between AMQP 0.10 and AMQP 1.0

2011-01-26 Thread Sergey_Zhemzhitsky
Gordon, Thanks for such a detailed answer. It's much clearer now. Best Regards, Sergey Zhemzhitsky Gordon Sim 26.01.2011 15:06 Please respond to users@qpid.apache.org To users@qpid.apache.org cc Subject Re: Differences between AMQP 0.10 and AMQP 1.0 On 01/26/2011 06:57 AM, sergey

Differences between AMQP 0.10 and AMQP 1.0

2011-01-25 Thread Sergey_Zhemzhitsky
Hi there, I'm using qpid 0.6 and AMQP 0.10. Not so far ago we decided to migrate to the latest version of qpid, which currently is 0.8. I have looked through the AMQP 1.0 specification and discovered that it's completely different from the previous one. I wonder what is the analog of the exchang

Re: Difference between subjects and routing keys

2011-01-25 Thread Sergey_Zhemzhitsky
Ted thanks a lot. As far as I understand 'subject' is more preferable to use, because there are no routing keys in the AMQP 1.0. There are filters instead. Am I right? Best Regards, Sergey Zhemzhitsky Ted Ross 25.01.2011 22:20 Please respond to users@qpid.apache.org To users@qpid.apach

Difference between subjects and routing keys

2011-01-25 Thread Sergey_Zhemzhitsky
Hi there, According to following link http://qpid.apache.org/books/0.8/Programming-In-Apache-Qpid/html/ch02s04.html#id3068029 subjects can be used to direct messages to different destinations. Routing and binding keys can used for the same purpose. So what is the difference between subjects a