Hi,
I'm tryin to make pair of qpids (qpid0.26) working as a HA pair.
Here is my very simplistic config, identical for both nodes:
worker-threads=10
mgmt-qmf2=yes
mgmt-qmf1=yes
enable-timestamp=yes
log-enable=info+
log-time=yes
log-category=yes
ha-queue-replication=yes
ha-replicate=all
ha-cluster=yes
ha-brokers-url=amqp:qpid1,qpid2
link-maintenance-interval=1
link-heartbeat-interval=3
I am using examples/messaging/hello_world to check if I can connect to any of
the nodes and getting the same error on both nodes:
[radek@qpid1 ~]$
/home/radek/src/qpid-cpp-0.26/build/examples/messaging/hello_world
2014-05-23 11:35:02 [Client] warning Connection
[127.0.0.1:42581-localhost:5672] closed
Failed to connect (reconnect disabled)
This is what I see on the servers, the same when I am trying connect to any of
nodes:
[HA] debug Backup: Rejected connection qpid.127.0.0.1:5672-127.0.0.1:42556
And this is the full qpidd trace output
2014-05-23 11:28:05 [Network] info Set TCP_NODELAY on connection to
127.0.0.1:42556
2014-05-23 11:28:05 [System] debug RECV [qpid.127.0.0.1:5672-127.0.0.1:42556]:
INIT(0-10)
2014-05-23 11:28:05 [Security] debug External ssf=0 and auth=
2014-05-23 11:28:05 [Security] debug min_ssf: 0, max_ssf: 256, external_ssf: 0
2014-05-23 11:28:05 [Security] info SASL: Mechanism list: ANONYMOUS
2014-05-23 11:28:05 [Broker] debug LinkRegistry::notifyConnection();
key=qpid.127.0.0.1:5672-127.0.0.1:42556
2014-05-23 11:28:05 [Model] trace Mgmt create connection.
id:qpid.127.0.0.1:5672-127.0.0.1:42556
2014-05-23 11:28:05 [Management] debug Management object (V1) added:
org.apache.qpid.broker:connection:qpid.127.0.0.1:5672-127.0.0.1:42556
2014-05-23 11:28:05 [Protocol] trace SENT
[qpid.127.0.0.1:5672-127.0.0.1:42556]: INIT(0-10)
2014-05-23 11:28:05 [Protocol] trace SENT
[qpid.127.0.0.1:5672-127.0.0.1:42556]: Frame[BEbe; channel=0;
{ConnectionStartBody:
server-properties={qpid.federation_tag:V2:36:str16(48096762-a992-4f4d-9836-b9895965c499)};
mechanisms=str16{V2:9:str16(ANONYMOUS)}; locales=str16{V2:5:str16(en_US)}; }]
2014-05-23 11:28:05 [Protocol] trace RECV
[qpid.127.0.0.1:5672-127.0.0.1:42556]: Frame[BEbe; channel=0;
{ConnectionStartOkBody:
client-properties={qpid.client_pid:F4:int32(456),qpid.client_ppid:F4:int32(342),qpid.client_process:V2:11:str16(hello_world),qpid.session_flow:F4:int32(1)};
mechanism=ANONYMOUS; response=xxxxxx; locale=en_US; }]
2014-05-23 11:28:05 [Security] info SASL: Starting authentication with
mechanism: ANONYMOUS
2014-05-23 11:28:05 [Management] debug SEND raiseEvent (v1)
class=org.apache.qpid.broker.clientConnect
2014-05-23 11:28:05 [Management] debug SEND raiseEvent (v2)
class=org.apache.qpid.broker.clientConnect
2014-05-23 11:28:05 [Model] debug Create connection. user:anonymous@QPID
rhost:qpid.127.0.0.1:5672-127.0.0.1:42556
2014-05-23 11:28:05 [Security] info qpid.127.0.0.1:5672-127.0.0.1:42556 SASL:
Authentication succeeded for: anonymous@QPID
2014-05-23 11:28:05 [Protocol] trace SENT
[qpid.127.0.0.1:5672-127.0.0.1:42556]: Frame[BEbe; channel=0;
{ConnectionTuneBody: channel-max=32767; max-frame-size=65535; heartbeat-min=0;
heartbeat-max=120; }]
2014-05-23 11:28:05 [Protocol] trace RECV
[qpid.127.0.0.1:5672-127.0.0.1:42556]: Frame[BEbe; channel=0;
{ConnectionTuneOkBody: channel-max=32767; max-frame-size=65535; heartbeat=0; }]
2014-05-23 11:28:05 [Protocol] trace RECV
[qpid.127.0.0.1:5672-127.0.0.1:42556]: Frame[BEbe; channel=0;
{ConnectionOpenBody: virtual-host=; capabilities=void{}; insist=1; }]
2014-05-23 11:28:05 [HA] debug Backup: Rejected connection
qpid.127.0.0.1:5672-127.0.0.1:42556
2014-05-23 11:28:05 [System] debug DISCONNECTED
[qpid.127.0.0.1:5672-127.0.0.1:42556]
2014-05-23 11:28:05 [Model] trace Mgmt destroying connection.
id:qpid.127.0.0.1:5672-127.0.0.1:42556 Statistics: {bytesFromClient:226,
bytesToClient:49, closing:False, framesFromClient:3, framesToClient:2,
msgsFromClient:0, msgsToClient:0}
2014-05-23 11:28:05 [Management] debug SEND raiseEvent (v1)
class=org.apache.qpid.broker.clientDisconnect
2014-05-23 11:28:05 [Management] debug SEND raiseEvent (v2)
class=org.apache.qpid.broker.clientDisconnect
2014-05-23 11:28:05 [Model] debug Delete connection. user:anonymous@QPID
rhost:qpid.127.0.0.1:5672-127.0.0.1:42556
Thanks for advice,
- Radoslaw Smigielski
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]