apache qpidc安装:
必须安装:
* boost <http://www.boost.org> (1.35)(*)
* e2fsprogs <http://e2fsprogs.sourceforge.net/> (1.39)
* pkgconfig <http://pkgconfig.freedesktop.org/wiki/> (0.21)
可选:
集群特性依赖:
* openais <http://openais.org/> (0.80.3)
XML依赖:
* xqilla <http://xqilla.sourceforge.net/HomePage> (2.0.0)
* xerces-c <http://xerces.apache.org/xerces-c/> (2.7.0)
SSL 支持依赖:
* nss <http://www.mozilla.org/projects/security/pki/nss/>
* nspr <http://www.mozilla.org/projects/nspr/>
基础依赖:
* gcc <http://gcc.gnu.org/> (3.4.6)
* GNU make <http://www.gnu.org/software/make/> (3.8.0)
* autoconf <http://www.gnu.org/software/autoconf/> (2.61)
* automake <http://www.gnu.org/software/automake/> (1.9.6)
* help2man <http://www.gnu.org/software/help2man/> (1.36.4)
* libtool <http://www.gnu.org/software/libtool/> (1.5.22)
* doxygen <ftp://ftp.stack.nl/pub/users/dimitri/> (1.5.1)
* graphviz <http://www.graphviz.org/> (2.12)
* ruby 1.8 <http://www.ruby-lang.org> (1.8.4)
安装中遇到的问题:
checking boost/shared_ptr.hpp usability... nochecking boost/shared_ptr.hpp presence... nochecking for boost/shared_ptr.hpp... noconfigure: error: Missing required header files.:hfqaqpidsvr02:root > rpm -qa|grep boost
4 Install boost
然后把uuid目录拷过去 cp -r lib/uuid/ /usr/includechecking boost/shared_ptr.hpp usability... yeschecking boost/shared_ptr.hpp presence... yeschecking for boost/shared_ptr.hpp... yes
Issue2 for UUID/uuid.h--reference http://www.cnblogs.com/jiamei/
checking uuid/uuid.h usability... nochecking uuid/uuid.h presence... nochecking for uuid/uuid.h... noconfigure: error: Missing required header files.tar xvzf e2fsprogs-1.41.14.tar.gz进入e2fsprogs-1.41.14目录后执行/configure --prefix=/usr/local/e2fsprogsmake make install
qpid/log/Logger.cpp:26:43: error: boost/pool/detail/singleton.hpp: No such file or directoryqpid/log/Logger.cpp: In static member function 'static qpid::log::Logger& qpid::log::Logger::instance()':qpid/log/Logger.cpp:48: error: 'boost::details::pool' has not been declaredqpid/log/Logger.cpp:48: error: expected primary-expression before '>' tokenqpid/log/Logger.cpp:48: error: '::instance' has not been declaredmake[3]: *** [qpid/log/Logger.lo] Error 1make[3]: Leaving directory `/usr/local/xuguang/software/qpid-0.14/cpp/src'make[2]: *** [all-recursive] Error 1make[2]: Leaving directory `/usr/local/xuguang/software/qpid-0.14/cpp/src'make[1]: *** [all] Error 2make[1]: Leaving directory `/usr/local/xuguang/software/qpid-0.14/cpp/src'make: *** [all-recursive] Error 1
Fix-method:hfqaqpidsvr01:root > cp /usr/local/xuguang/software/qpid-0.14/cpp/boost/pool/detail/singleton.hpp /usr/include/boost/pool/detail/ -r
/usr/include/boost/lexical_cast.hpp:1184: warning: ISO C++ does not support the '%lg' printf formatmake[3]: *** [qpid/types/Variant.lo] Error 1make[3]: Leaving directory `/usr/local/xuguang/software/qpid-0.14/cpp/src'make[2]: *** [all-recursive] Error 1make[2]: Leaving directory `/usr/local/xuguang/software/qpid-0.14/cpp/src'make[1]: *** [all] Error 2make[1]: Leaving directory `/usr/local/xuguang/software/qpid-0.14/cpp/src'make: *** [all-recursive] Error 1
Fix-method-rootcause boost库没有完全安装好重新安装依赖项http://hi.baidu.com/%CC%D8%B0%AE%C0%B6%C1%AB%BB%A8/blog/item/74303121fc436782033bf6de.htmlyum install boost-devel e2fsprogs-devel pkgconfig gcc-c++ make autoconf automake ruby libtool help2man doxygen graphviz -y
或者 yum install boost-devel e2fsprogs-devel pkgconfig gcc-c++ autoconf automake ruby libtool help2man doxygen graphviz -y(可以fix yum安装的问题)
yum install openais-devel cman-devel cyrus-sasl-devel nss-devel nspr-devel xqilla-devel xerces-c-devel ruby-devel swig -y
启动:
1.qpidd -p 5673 -d
Cluster 配置与安装
Run command
/usr/local/xuguang/software/qpid-0.14/cpp/src/.libs/lt-qpidd --data-dir /usr/local/qpid/data_2/ --log-enable info+ --log-to-file /usr/local/qpid/qpidd_2.log -d --auth 0 -p 5673 --enable-timestamp yes --cluster-name='HFQA_one
性能测试
Testenv:
Broker:Number 1 run on VM 2 cpu 8G memory
Sender../map_sender -T 100 -N 100 -U 10.224.57.128:5673 (100 thread eachthread send 100 times To the broker)
Receive./map_receiver 10.224.57.128:5673 > receive.result(each message I have addthe timestamp)
TestResult
1.Sender 10000 message cost Time cost is5598.691895 ms so we can define the Send Request 1785 request/s
2. Receivereceive 10000 messages cost Time.will be nearly 500request/s
3 Broker CPU/Memory
CPU:We can get the CPU high level when allthread send the message on the Broker ,when the message send done ,it will down
Memory.All message will be keep on Queue ,after the receive have receive done