本文介绍了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文档:

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

06-27 01:01