You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by Eric Leu <b2...@mail.com> on 2016/01/25 22:27:41 UTC
[Qpid Dispatch] router config question
https://github.com/apache/qpid-dispatch/blob/0.5/tests/config-2/A.conf &
B.conf define two router config. The two routers are connected. I'm trying
to figure out how to distribute messages using 'closest' bias in
fixedAddress.
case 1)
The first message sent will be received by one receiver. The second message
sent will be received by the other receiver. This looks fine.
case 2)
Add router C, which connects to router A as follows.
In this case, the first message will be received by both receivers. The
second message sent will also be received by both receivers. Question: How
to change the router config so that each message sent will be received by
one of the receivers but not both? (i.e. how to get the same behavior as in
case #1?)
Thanks,
-Eric
--
View this message in context: http://qpid.2158936.n2.nabble.com/Qpid-Dispatch-router-config-question-tp7637239.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org
Re: [Qpid Dispatch] router config question
Posted by Gordon Sim <gs...@redhat.com>.
On 01/25/2016 09:27 PM, Eric Leu wrote:
> https://github.com/apache/qpid-dispatch/blob/0.5/tests/config-2/A.conf &
> B.conf define two router config. The two routers are connected. I'm trying
> to figure out how to distribute messages using 'closest' bias in
> fixedAddress.
>
> case 1)
>
>
>
>
> The first message sent will be received by one receiver. The second message
> sent will be received by the other receiver. This looks fine.
>
> case 2)
>
> Add router C, which connects to router A as follows.
>
>
>
>
> In this case, the first message will be received by both receivers. The
> second message sent will also be received by both receivers. Question: How
> to change the router config so that each message sent will be received by
> one of the receivers but not both? (i.e. how to get the same behavior as in
> case #1?)
What does the config for C look like? In particular does it define the
/closest/ address?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org
Re: [Qpid Dispatch] router config question
Posted by Eric Leu <b2...@mail.com>.
Thanks Ted. Will follow up.
--
View this message in context: http://qpid.2158936.n2.nabble.com/Qpid-Dispatch-router-config-question-tp7637239p7637359.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org
Re: [Qpid Dispatch] router config question
Posted by Ted Ross <tr...@redhat.com>.
Eric,
Thanks for pointing this out. I've raise an issue here:
https://issues.apache.org/jira/browse/DISPATCH-208
The fix will be merged momentarily.
-Ted
On 01/26/2016 02:14 PM, Ted Ross wrote:
> Eric,
>
> I've reproduced your symptom here. You are correct that this is not
> expected behavior. I'm looking into it.
>
> -Ted
>
> On 01/26/2016 01:47 PM, Eric Leu wrote:
>> C.conf:
>> =====
>>
>> container {
>> workerThreads: 4
>> containerName: Qpid.Dispatch.Router.C
>> }
>>
>> listener {
>> addr: 0.0.0.0
>> port: 20103
>> saslMechanisms: ANONYMOUS
>> }
>>
>> connector {
>> role: inter-router
>> addr: 0.0.0.0
>> port: 20102
>> saslMechanisms: ANONYMOUS
>> }
>>
>> router {
>> mode: interior
>> routerId: QDR.C
>> }
>>
>> fixedAddress {
>> prefix: /closest/
>> fanout: single
>> bias: closest
>> }
>>
>> fixedAddress {
>> prefix: /spread/
>> fanout: single
>> bias: spread
>> }
>>
>> fixedAddress {
>> prefix: /multicast/
>> fanout: multiple
>> }
>>
>> fixedAddress {
>> prefix: /
>> fanout: multiple
>> }
>>
>> log {
>> module: ROUTER
>> enable: trace+
>> }
>>
>> The difference between B.conf and C.conf:
>>
>> 19c19
>> < containerName: Qpid.Dispatch.Router.B
>> ---
>>> containerName: Qpid.Dispatch.Router.C
>> 28c28
>> < port: 20101
>> ---
>>> port: 20103
>> 41c41
>> < routerId: QDR.B
>> ---
>>> routerId: QDR.C
>>
>> From qdstat on router A, closest/q is mobile local (count=2) in
>> case#1 and
>> mobile remote (count=2) in case #2. But somehow the two cases have
>> different behaviors in message distribution.
>>
>> $ qdstat -a -b 0.0.0.0:20100
>> local remote
>> mobile closest/q
>>
>>
>> -Eric
>>
>>
>>
>> --
>> View this message in context:
>> http://qpid.2158936.n2.nabble.com/Qpid-Dispatch-router-config-question-tp7637239p7637319.html
>>
>> Sent from the Apache Qpid users mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
>> For additional commands, e-mail: users-help@qpid.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> For additional commands, e-mail: users-help@qpid.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org
Re: [Qpid Dispatch] router config question
Posted by Ted Ross <tr...@redhat.com>.
Eric,
I've reproduced your symptom here. You are correct that this is not
expected behavior. I'm looking into it.
-Ted
On 01/26/2016 01:47 PM, Eric Leu wrote:
> C.conf:
> =====
>
> container {
> workerThreads: 4
> containerName: Qpid.Dispatch.Router.C
> }
>
> listener {
> addr: 0.0.0.0
> port: 20103
> saslMechanisms: ANONYMOUS
> }
>
> connector {
> role: inter-router
> addr: 0.0.0.0
> port: 20102
> saslMechanisms: ANONYMOUS
> }
>
> router {
> mode: interior
> routerId: QDR.C
> }
>
> fixedAddress {
> prefix: /closest/
> fanout: single
> bias: closest
> }
>
> fixedAddress {
> prefix: /spread/
> fanout: single
> bias: spread
> }
>
> fixedAddress {
> prefix: /multicast/
> fanout: multiple
> }
>
> fixedAddress {
> prefix: /
> fanout: multiple
> }
>
> log {
> module: ROUTER
> enable: trace+
> }
>
> The difference between B.conf and C.conf:
>
> 19c19
> < containerName: Qpid.Dispatch.Router.B
> ---
>> containerName: Qpid.Dispatch.Router.C
> 28c28
> < port: 20101
> ---
>> port: 20103
> 41c41
> < routerId: QDR.B
> ---
>> routerId: QDR.C
>
> From qdstat on router A, closest/q is mobile local (count=2) in case#1 and
> mobile remote (count=2) in case #2. But somehow the two cases have
> different behaviors in message distribution.
>
> $ qdstat -a -b 0.0.0.0:20100
> local remote
> mobile closest/q
>
>
> -Eric
>
>
>
> --
> View this message in context: http://qpid.2158936.n2.nabble.com/Qpid-Dispatch-router-config-question-tp7637239p7637319.html
> Sent from the Apache Qpid users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> For additional commands, e-mail: users-help@qpid.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org
Re: [Qpid Dispatch] router config question
Posted by Eric Leu <b2...@mail.com>.
C.conf:
=====
container {
workerThreads: 4
containerName: Qpid.Dispatch.Router.C
}
listener {
addr: 0.0.0.0
port: 20103
saslMechanisms: ANONYMOUS
}
connector {
role: inter-router
addr: 0.0.0.0
port: 20102
saslMechanisms: ANONYMOUS
}
router {
mode: interior
routerId: QDR.C
}
fixedAddress {
prefix: /closest/
fanout: single
bias: closest
}
fixedAddress {
prefix: /spread/
fanout: single
bias: spread
}
fixedAddress {
prefix: /multicast/
fanout: multiple
}
fixedAddress {
prefix: /
fanout: multiple
}
log {
module: ROUTER
enable: trace+
}
The difference between B.conf and C.conf:
19c19
< containerName: Qpid.Dispatch.Router.B
---
> containerName: Qpid.Dispatch.Router.C
28c28
< port: 20101
---
> port: 20103
41c41
< routerId: QDR.B
---
> routerId: QDR.C
>From qdstat on router A, closest/q is mobile local (count=2) in case#1 and
mobile remote (count=2) in case #2. But somehow the two cases have
different behaviors in message distribution.
$ qdstat -a -b 0.0.0.0:20100
local remote
mobile closest/q
-Eric
--
View this message in context: http://qpid.2158936.n2.nabble.com/Qpid-Dispatch-router-config-question-tp7637239p7637319.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org