任何人都可以发布一个如何在Tsung中启用SSL的示例吗? [英] Can anyone post an example of how to enable SSL in Tsung?
问题描述
我正在使用Tsung从另一台计算机上加载CouchDB服务器,需要建立安全连接。不幸的是,我无法在文档或在线中找到语法示例...
I'm load testing a CouchDB server from another machine using Tsung, and need to establish a secure connection. Unfortunately, I've not been able to find an example of the syntax in the documentation or online...
任何帮助都将不胜感激!
Any help would be greatly appreciated!
推荐答案
在tsung.xml中:
In tsung.xml:
<servers>
<server host="HOSTNAME_HERE" port="443" type="ssl"></server>
</servers>
来自当前的Tsung文档:
6.2. Clients and Server > Basic setup:
类型可以是
tcp
,ssl
,udp
(对于IPv6,请使用tcp6
,ssl6
或udp6
;仅适用于1.4.2及更高版本)或websocket
(仅适用于1.5.0及更高版本)):
Type can be
tcp
,ssl
,udp
(for IPv6, usetcp6
,ssl6
orudp6
; only available in version 1.4.2 and newer) orwebsocket
(only available in version 1.5.0 and newer)):
<servers>
<server host="server1" port="80" type="ssl" weight="4"></server>
<server host="server2" port="80" type="ssl" weight="1"></server>
</servers>
10. FAQ > Tsung crashes when I start it
您的Erlang系统是否启用了SSL支持?
测试它:
Does your Erlang system has SSL support enabled?
To test it:
erl
Eshell V5.2 (abort with ^G)
1> ssl:start().
you should see 'ok'
这篇关于任何人都可以发布一个如何在Tsung中启用SSL的示例吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!