简体   繁体   English

负载测试xmpp服务器

[英]Load-testing xmpp server

I am looking for a tool capable of generating multiple Xmpp connections to load-test a XMPP server with a secure connection, especially starttls. 我正在寻找一个能够生成多个Xmpp连接的工具,以便通过安全连接对XMPP服务器进行负载测试,尤其是starttls。

For a xmpp plain text authentication I had used jab_simul (followed this tutorial ) and tsung both with success. 对于xmpp纯文本身份验证,我使用了jab_simul (遵循本教程 )和tsung都成功。

But I was unable to use the tolls above for the starttls,I peeked into the code of both tools and tried different configurations of the tools. 但我无法使用上面的通行费来启动,我偷看了两个工具的代码并尝试了不同的工具配置。

Another option I am pondering is using a xmpp library like eXmpp and make a specific load-testing tool myself with, instead of altering jab_simul (C software with comments in language i do not understand) or altering tsung(all purpose load-testing tool, so lots of place where you can go wrong). 我正在思考的另一个选择是使用像eXmpp这样的xmpp库,并自己制作一个特定的负载测试工具,而不是改变jab_simul(C语言中我用不懂的语言评论)或改变tsung(通用负载测试工具,所以很多地方你可能会出错)。


short-story - I am looking for a tool or advice to stress-testing/load-testing a xmpp server. 短篇小说 - 我正在寻找一个工具或建议来对xmpp服务器进行压力测试/负载测试。

We are facing exactly the same challenge right now. 我们现在面临着同样的挑战。 After deep consideration we found out that only especially build software can deliver the load we want to test. 经过深思熟虑后,我们发现只有特别构建的软件才能提供我们想要测试的负载。 (Remember, you can configure ejabberd to something very specific :-) (请记住,您可以将ejabberd配置为非常具体的东西:-)

For that we developed a small library called xmpp_talker https://github.com/burinov/xmpp_talker (Apache Licence) which is a kind of xmpp client made as a gen_server. 为此,我们开发了一个名为xmpp_talker的小型库https://github.com/burinov/xmpp_talker(Apache License),它是一种作为gen_server的xmpp客户端。 I find it is a very nice starting point to build any kind of load simulation software. 我发现构建任何类型的负载模拟软件都是一个非常好的起点。 There is also echo_worker example included. 还包括echo_worker示例。 So, you have good base to start. 所以,你有良好的基础开始。 At the moment xmpp_talker is suited for exmpp 0.9.7. 目前xmpp_talker适合exmpp 0.9.7。 As far as I know in a few days will be out version 1.0.0. 据我所知,在几天内将推出版本1.0.0。 (or 0.9.9?) There are many bug fixes (trust me you don't want to know about them). (或0.9.9?)有很多错误修复(相信我,你不想知道它们)。 On monday I will release xmpp_talker for exmpp 0.9.8 with proper service interruption handling. 星期一,我将通过适当的服务中断处理释放exmpp 0.9.8的xmpp_talker。

In case you deside to go the same way xmpp_talker could be useful for you. 如果您希望以相同的方式使用xmpp_talker对您有用。

Added: Here is also great article that is realted to the topic: https://support.process-one.net/doc/display/EXMPP/Scalable+XMPP+bots+with+erlang+and+exmpp 补充:以下是关于该主题的精彩文章: https//support.process-one.net/doc/display/EXMPP/Scalable+XMPP+bots+with+erlang+and+exmpp

There's also the recently started XMPP benchmarking project called xmppench which aims to be a high-performance benchmarking tool simulating some reasonable use cases of XMPP servers. 最近还启动了名为xmppench的 XMPP基准测试项目,该项目旨在成为模拟XMPP服务器的一些合理用例的高性能基准测试工具。 It's written in C++, based on Swiften and boost. 它是用C ++编写的,基于Swiften和boost。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM