diff options
| author | Alan Conway <aconway@apache.org> | 2012-03-08 21:47:04 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2012-03-08 21:47:04 +0000 |
| commit | 6c101f2b7ca22619dc4c0874f918c4654f6bbc89 (patch) | |
| tree | 33d0a44922f0765c360ba8ee12c1b32aeca24098 /qpid/cpp/src | |
| parent | 4c9383f086e36d61656bff975bc9b0188c08b85f (diff) | |
| download | qpid-python-6c101f2b7ca22619dc4c0874f918c4654f6bbc89.tar.gz | |
QPID-3603: rgmanager integration for new HA cluster
- service start script qpid-primary, called by rgmanager to promote a broker.
- example cluster.conf
- minor changes to qpid-ha
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1298602 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src')
| -rwxr-xr-x | qpid/cpp/src/tests/cluster_failover | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/qpid/cpp/src/tests/cluster_failover b/qpid/cpp/src/tests/cluster_failover new file mode 100755 index 0000000000..c978ee910c --- /dev/null +++ b/qpid/cpp/src/tests/cluster_failover @@ -0,0 +1,18 @@ +#!/bin/sh +# A simple manual failover test, sends a stream of numbered messages. +# You can kill the connected broker and verify that the client reconnects +# and no messages are lost. + +URL=$1 +test -n "$URL" || { echo Usage: $0 URL ; exit 1; } +SEND=$(mktemp /tmp/send.XXXXXXXXXX) +RECV=$(mktemp /tmp/recv.XXXXXXXXXX) +echo $SEND $RECV + +seq 1000000 > $SEND + +qpid-receive -f -a 'q;{create:always}' -b $URL --connection-options "{reconnect:true}" | tee $RECV & + +qpid-send -a 'q;{create:always}' -b $URL --connection-options "{reconnect:true}" --send-rate 10 --content-stdin < $SEND & + +wait |
