Hello!
On Tue, Apr 13, 2010 at 06:46:50PM +0530, sonal ojha wrote:
> Am very new to Qpid , I wanted to know how could I setup Qpid C++ broker in
> clustering mode.
>
> It said to use corosync but then still couldn't find what all setups are
> involved.
I do not know what distribution you are using, but you can compile
qpid on any recent GNU/Linux distribution. See the attached script
which I used today to cleanly compile and install qpid trunk with
clustering module as well.
Then have a look at Red Hat's MRG documentation:
http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_MRG/
> How can we have them all in multicast mode using a shared database(if qpid
> supports one)
You may also play with persistent store module. Have a look at
http://qpidcomponents.org/
HTH, best regards Ján
--
Red Hat Czech, MRG Quality Assurance Associate
#!/bin/bash -vx
set -o pipefail
set -e
exec </dev/null
exec 3>&1
exec >~/qpid-build.log 2>&1
tailf ~/qpid-build.log >&3 &
trap "kill $!" EXIT
export LC_ALL=C
export LANG=C
unset PYTHONPATH
QPID_DIR=${1:-"$HOME/pub/git/qpid"}
STORE_DIR=${2:-"$HOME/pub/git/store"}
MAKEFLAGS="-j3"
SUDO=sudo
test $UID -eq 0 && unset SUDO
mygit () {
cd $1
test -d .git && { $SUDO git clean -xfd && git pull; }
}
mybootstrap () {
test -n "$1" && cd ${1%/*}
test -x configure || ./bootstrap
}
myconfigure () {
test -r Makefile || ./configure "$@"
}
mymake () {
make $MAKEFLAGS "$@"
}
mycheck () {
make check "$@" || exit 1
LANG=sk_SK.utf8 LC_ALL=sk_SK.utf8 make check "$@" || exit 1
}
myinstall () {
$SUDO make install "$@"
}
build_general () {
DIR=$1; shift
BOOTFLAGS=$1; shift # the rest are flags for configure
mygit $DIR
mybootstrap $BOOTFLAGS &&
myconfigure "$@" &&
mymake &&
#mycheck &&
myinstall
}
build_perftests () {
perftests="perftest topic_listener topic_publisher latencytest client_test
txtest"
pushd $1/cpp/src/tests &&
mymake $perftests &&
for ptest in $perftests; do
$SUDO libtool --mode=install install -m755 $ptest /usr/local/bin
done &&
$SUDO make install-qpidtestSCRIPTS
popd
}
build_python_qpid () {
pushd $1/python &&
python setup.py build &&
$SUDO python setup.py install --prefix=/usr/local &&
cd ../tools &&
python setup.py build &&
$SUDO python setup.py install --prefix=/usr/local &&
cd ../extras/qmf &&
python setup.py build &&
$SUDO python setup.py install --prefix=/usr/local &&
cd ../sasl &&
mybootstrap &&
myconfigure &&
mymake &&
myinstall &&
cd $1/specs &&
$SUDO mkdir -p /usr/local/share/amqp &&
$SUDO install -m644 amqp.0-10-qpid-errata.xml amqp.0-10.dtd
/usr/local/share/amqp/
popd
}
build_general $QPID_DIR cpp/bootstrap --disable-static --with-cpg \
CXXFLAGS="$CXXFLAGS -DNDEBUG -O3" LDFLAGS="-lboost_system -lpthread" &&
build_general $STORE_DIR cpp/bootstrap --disable-static --disable-rpath \
--disable-dependency-tracking \
--with-qpid-checkout=$QPID_DIR \
CXXFLAGS="-DNDEBUG" &&
build_perftests $QPID_DIR &&
build_python_qpid $QPID_DIR
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:[email protected]