我正在寻找一种能够生成多个 Xmpp 连接的工具,以使用安全连接对 XMPP 服务器进行负载测试,尤其是 starttls。
对于 xmpp 纯文本身份验证,我使用了 jab_simul(随后 本教程) 和 tsung 都取得了成功。
但我无法将上面的收费用于 starttls,我查看了这两个工具的代码并尝试了工具的不同配置。
我正在考虑的另一个选择是使用 xmpp 库,例如 eXmpp 并制作一个特定的我自己使用负载测试工具,而不是更改 jab_simul (带有我不理解的语言注释的 C 软件)或更改 tsung (通用负载测试工具,所以很多地方可能会出错)。
简短的故事 - 我正在寻找对 xmpp 服务器进行压力测试/负载测试的工具或建议。
I am looking for a tool capable of generating multiple Xmpp connections to load-test a XMPP server with a secure connection, especially starttls.
For a xmpp plain text authentication I had used jab_simul(followed this tutorial) and tsung both with success.
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).
short-story - I am looking for a tool or advice to stress-testing/load-testing a xmpp server.
我们现在面临着完全相同的挑战。经过深思熟虑,我们发现只有专门构建的软件才能提供我们想要测试的负载。 (记住,您可以将 ejabberd 配置为非常具体的东西:-)
为此,我们开发了一个名为 xmpp_talker https:// github.com/burinov/xmpp_talker(Apache 许可证),这是一种作为 gen_server 制作的 xmpp 客户端。我发现这是构建任何类型的负载模拟软件的一个非常好的起点。还包括 echo_worker 示例。所以,你已经有了良好的开始基础。目前 xmpp_talker 适用于 exmpp 0.9.7。据我所知,几天后就会发布 1.0.0 版本。 (或0.9.9?)有许多错误修复(相信我,你不想知道它们)。周一我将发布 exmpp 0.9.8 的 xmpp_talker,并提供适当的服务中断处理。
如果您决定采用同样的方式,xmpp_talker 可能对您有用。
添加:这也是与该主题相关的精彩文章:
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 :-)
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. I find it is a very nice starting point to build any kind of load simulation software. There is also echo_worker example included. So, you have good base to start. At the moment xmpp_talker is suited for exmpp 0.9.7. As far as I know in a few days will be out version 1.0.0. (or 0.9.9?) There are many bug fixes (trust me you don't want to know about them). On monday I will release xmpp_talker for exmpp 0.9.8 with proper service interruption handling.
In case you deside to go the same way xmpp_talker could be useful for you.
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