- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
有没有办法配置客户端通过端口进行通信。
我的设置:
所以我想在配置文件中添加如下内容。这里的 client-master 是主要的客户端主机。 client-slave-1 和 client-slave-2 是在主机 10.0.0.101 和 10.0.0.102 respy 上运行的 docker 容器,可通过 10.0.0.101:8123 和 10.0.0.102:8123 respy 访问。
<clients>
<client host="client-master" use_controller_vm="true" maxusers="10000"/>
<client host="client-slave-11" port="8123" weight="3" maxusers="40000" cpu="1">
<ip value="10.0.0.101"></ip>
</client>
<client host="client-slave-2" port="8123" weight="3" maxusers="40000" cpu="1">
<ip value="10.0.0.102"></ip>
</client>
</clients>
就像在 client-master 上一样,如果我执行 ssh -p 8123 root@10.0.0.101,我就可以登录到 client-slave-1。但我不确定如何配置 tsung 以使用此端口配置,或者 tsung 是否允许这样做。
所以我想要的是- 如果 tsung 允许客户端配置包含端口号,我该如何配置它。- 如果没有,那么是否有其他选项可以使用容器来执行此操作。
最佳答案
如果 tsung 中没有内置解决方案,您可以使用 ~/.ssh/config 来实现。
在 ~/.ssh/config 中:
Host client-slave-11
Hostname 10.0.0.101
User root
Port 8123
Host client-slave-2
Hostname 10.0.0.102
User root
Port 8123
由于 tsung 的行为,Host 的值必须是在其配置中提供给 tsung 的域名的最左侧部分。 Tsung 在调用 ssh 二进制文件时只会使用最左边的组件。
或者,您也可以使用包装脚本并为 tsung 使用 -r 参数。这是参数文档:
-r <command> set remote connector (default is ssh)
使用 <command>
的包装脚本.
关于docker - Tsung:使用端口的客户端连接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34013589/
我在我的 mac 上设置了一个 Tsung 配置,并尝试在我正在开发的网站上记录一个测试。 我跑了:“tsung-recorder start”并在 firefox localhost:8090 中为
有没有办法配置客户端通过端口进行通信。 我的设置: 我想设置多个 tsung 客户端来分配负载生成。 tsung 客户端是 Docker 容器,每个容器都在不同的盒子中运行。因此从客户端主站连接到客户
我用过Ejabberd版本:15.10Erlang/OTP版本: 18Tsung 版本: 1.6.1 当我在“make install”之后启动 tsung 时,使用: xxxxx:~/.tsung$
在运行Tsung负载测试时,我很难让munin报告正常工作。 我的设置如下。 网站登台服务器(staging4): 2个CPU 宗服务器 2个CPU 我的Tsung服务器在端口4950上有一个到sta
我正在尝试为 ejabberd 创建负载测试场景与 tsung . 我想模拟来自数千个客户端的数千个 XMPP 事件。据 tsung 的 manual我可以使用 for 创建重复操作环形: [.
JMeter 和 Tsung 有什么区别?我读到如果使用相同的硬件进行测试,Tsung 可能会产生比 JMeter 更多的负载,但它与现实有多接近呢? 最佳答案 Tsung 是用 Erlang 编写的
我对 ERLANG 和 TSung 很陌生,我从未在这方面工作过,但我非常渴望了解基础知识并为我的 Web 应用程序进行分布式负载测试。我已经完成了一半,但我有一个很大的障碍,无法前进,请阅读以下ts
我开始使用 tsung 通过 socket.io 测试我的服务器。 我下载了 Github Zip,编译并安装了最新的“dev”,包括 Websockets 兼容性。 在浏览了这个邮件列表中的大量 G
运行 Tsung 时出现此错误 Config Error, aborting ! {undef, [{xmerl_scan,file,
Tsung 不想从我的 csv 文件中设置变量。 这是我的 tsung 配置:
我正在本地计算机上使用 Tsung 测试 eJabberd 服务器。这是我的配置文件。一切都正常工作并运行。
我已设置 Tsung 在 ubuntu 虚拟机上进行一些负载测试。如果我手动编写安装脚本,Tsung 本身工作正常,但我想使用 tsung-recorder 通过浏览器动态构建我的脚本。 但是,当我启
我正在尝试使用 Tsung 创建分布式客户端网络。我有一个由 14 台不同机器组成的集群。我想使用 m01 作为服务器,机器 m02 和 m03 作为客户端(或模拟用户)。 这是我写的:
我是 tsung 性能测试的新手。我已经使用 brew 在 Mac OS X 中安装了 Tsung。 经过多次尝试并解决了一些其他问题后,我对以下错误感到震惊,并且在其他地方找不到合适的解决方案。 我
Tsung 和 Erlan 的新手,遇到了一个我无法找到答案的问题。我在 Tsung dynvars Erlang 函数中使用 erlang-mysql-driver,我似乎遇到了转义引号的问题。 我
我正在尝试测试 Tigase XMPP 服务器 5.2.0 的功能。 我正在使用 tsung 1.4.2 运行测试,以达到 20K 用户的连接(一旦 20K 工作正常,我将尝试使用 150K 进行检查
我正在使用 Tsung 从另一台机器对 CouchDB 服务器进行负载测试,需要建立安全连接。不幸的是,我无法在文档或在线中找到语法示例... 如有任何帮助,我们将不胜感激! 最佳答案 在 tsung
我正在使用 tsung ,用 openssl 和 erlang 编译来发送查询。 在 tsung_controller.log 中我收到这个错误: ** Reason for termination
我正在尝试使用 Tsung 创建一个 POST 请求 如何在 contents 属性中发送 JSON 文档? contents='{"name": "alex"}' 当然是无效的... 有没
我是一名优秀的程序员,十分优秀!