编程技术网

关注微信公众号,定时推送前沿、专业、深度的编程技术资料。

 找回密码
 立即注册

QQ登录

只需一步,快速开始

极客时间

Tsung分布式客户端负载测试-简单的HTTP请求:Tsung Distributed Client Load Testing - Simple HTTP Requests

legenddcr 软件测试 2022-5-11 10:27 11人围观

腾讯云服务器
Tsung分布式客户端负载测试-简单的HTTP请求的处理方法

我正在尝试使用Tsung创建一个分布式客户端网络.我有一个由14台不同机器组成的集群.我想将m01用作服务器,将m02和m03用作客户端(或模拟用户).

I am trying to create a distributed client network using Tsung. I have a cluster of 14 different machines. I want to use m01 as the server and machines m02 and m03 as the clients (or simulated users).

这是我写的:

<!-- Client side setup --> <clients> <client host="localhost" maxusers="400" cpu="1"><ip value="192.168.1.2"/></client> <client host="m03" maxusers="400" cpu="1"><ip value="192.168.1.3"/></client> </clients> 

我要定位的服务器在这里定义:

The server I am targeting is defined here:

<!-- Server side setup --> <servers> <server host="192.168.1.1" port="5000" type="tcp"></server> </servers> 

每当我尝试运行此命令时,都会出现以下错误:

Whenever I try to run this, I get the following error:

Host key verification failed. 

出于说明目的,m02是我在tsung上运行的本地主机.

For notes purposes, m02 is a localhost that I am running tsung on.

我已在所有计算机上安装了tsung和erlan,并进行了各种测试以确保我可以运行非分布式测试.

I have installed tsung and erlan on all machines and have done various testing to make sure that I can run non-distributed tests.

我不确定如何从这里搬走.

I am not sure how to move from here.

问题解答

Tsung分布式负载测试基于SSH Shell分发.确保设置了SSH系统,以便从主节点到所有从节点的ssh都没有密码提示(带有密钥).

Tsung distributed load testing is based on SSH shell distribution. Make sure you set up your SSH system so that you can ssh without password prompt (with key) from master to all the slave nodes.

来自 Tsung文档:

对于分布式测试,您需要通过ssh访问没有密码的远程计算机(使用没有密码短语或ssh-agent的RSA/DSA密钥)(也支持rsh)

for distributed tests, you need an ssh access to remote machines without password (use a RSA/DSA key without pass-phrase or ssh-agent) (rsh is also supported)

这篇关于Tsung分布式客户端负载测试-简单的HTTP请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程技术网(www.editcode.net)!

腾讯云服务器 阿里云服务器
关注微信
^