2012-07-20 35 views
1

我目前正在对亚马逊的EC2服务进行分布式负载测试,并努力遵循所有文档/论坛/支持关于如何让事情工作,但不幸的是发现自己在这一点上陷入困​​境。没有人在任何有关IRC的已经能够要么回答这个...tsung ts_config_server无法在主机上启动新的光束(原因:超时)正在中止

这是我所看到的:

我在一个点,我可以向聪很好的工作,如果我跑它只是在控制器本身,但有以下选项:

FROM tsung.xml 
<client host="tester0" weight="8" maxusers="10000" cpu="4"/> 

此外 - 它可以处理更高/更低的CPU值。

我也可以很容易得到它的本地使用工作:

use_controller_vm="true" 

但这是没有用的,现在对我,因为我不能得到我想要的吞吐量。

为了使事情正常工作,我安装了ssh密钥。我已经打开了这些服务器上的所有端口[0 - 65535],并且拥有与Tsung,Erlang完全相同的版本,以及服务器上的所有内容实际上是相同的(它们是彼此的图像)。

崇1.4.2版本 二郎R15B01 Ubuntu的12.04LTS 同EC2安全组(所有端口开放 - 无论是TCP & UPD和NO的iptables或SELinux)的 同一EC2可用区域

当我开始聪,我得到它的工作时,只发送如上面tester0和ts_config_server开始newbeam有:

ts_config_server:(6:<0.84.0>) starting newbeam on host tester0 with Args " -rsh ssh -detached -setcookie tsung -smp disable +A 16 +P 250000 -kernel inet_dist_listen_min 64000 -kernel inet_dist_listen_max 65500 -boot /usr/lib/erlang//lib/tsung-1.4.2/priv/tsung -boot_var TSUNGPATH /usr/lib/erlang/ -pa /usr/lib/erlang//lib/tsung-1.4.2/ebin -pa /usr/lib/erlang//lib/tsung_controller-1.4.2/ebin +K true -tsung debug_level 7 -tsung log_file ts_encoded_47home_47ubuntu_47_46tsung_47log_4720120719_451751" 

然而,每当我试图与任何远程服务器运行此,整个测试失败,我得到的用户数为0 :

<client host="tester1" weight="8" maxusers="10000" cpu="1"/> 

ts_config_server:(6:<0.84.0>) starting newbeam on host tester1 with Args " -rsh ssh -detached -setcookie tsung -smp disable +A 16 +P 250000 -kernel inet_dist_listen_min 64000 -kernel inet_dist_listen_max 65500 -boot /usr/lib/erlang//lib/tsung-1.4.2/priv/tsung -boot_var TSUNGPATH /usr/lib/erlang/ -pa /usr/lib/erlang//lib/tsung-1.4.2/ebin -pa /usr/lib/erlang//lib/tsung_controller-1.4.2/ebin +K true -tsung debug_level 7 -tsung log_file ts_encoded_47home_47ubuntu_47_46tsung_47log_4720120719_451924" 

然而,当我尝试使用两个客户端运行(即,如下):

<client host="tester0" weight="8" maxusers="10000" cpu="1"/> 
<client host="tester1" weight="8" maxusers="10000" cpu="1"/> 

我再次获得零个用户开始打我的Web服务器。我不知道为什么,这对我来说根本不直观。

ts_config_server:(6:<0.84.0>) starting newbeam on host tester1 with Args " -rsh ssh -detached -setcookie tsung -smp disable +A 16 +P 250000 -kernel inet_dist_listen_min 64000 -kernel inet_dist_listen_max 65500 -boot /usr/lib/erlang//lib/tsung-1.4.2/priv/tsung -boot_var TSUNGPATH /usr/lib/erlang/ -pa /usr/lib/erlang//lib/tsung-1.4.2/ebin -pa /usr/lib/erlang//lib/tsung_controller-1.4.2/ebin +K true -tsung debug_level 7 -tsung log_file ts_encoded_47home_47ubuntu_47_46tsung_47log_4720120719_451751" 
ts_config_server:(6:<0.85.0>) starting newbeam on host tester0 with Args " -rsh ssh -detached -setcookie tsung -smp disable +A 16 +P 250000 -kernel inet_dist_listen_min 64000 -kernel inet_dist_listen_max 65500 -boot /usr/lib/erlang//lib/tsung-1.4.2/priv/tsung -boot_var TSUNGPATH /usr/lib/erlang/ -pa /usr/lib/erlang//lib/tsung-1.4.2/ebin -pa /usr/lib/erlang//lib/tsung_controller-1.4.2/ebin +K true -tsung debug_level 7 -tsung log_file ts_encoded_47home_47ubuntu_47_46tsung_47log_4720120719_451751" 

有一两件事,我做的通知是,所有的ARGS传递到从站:开始时,只有一个不存在的,这是继-boot指令中的一个:

/usr/lib/erlang//lib/tsung-1.4.2/priv/tsung 

相反,在该目录中,我只有以下文件:

:~$ ls /usr/lib/erlang//lib/tsung-1.4.2/priv 
tsung.boot     tsung_controller.rel  tsung_recorder.boot   tsung_recorder.script 
tsung_controller.boot   tsung_controller.script tsung_recorder_load.boot tsung.rel 
tsung_controller_load.boot tsung_load.boot   tsung_recorder_load.script tsung.script 
tsung_controller_load.script tsung_load.script  tsung_recorder.rel  

其实我已经尝试过的最后一件事是登录的是与我的SSH会话发生时,我尝试从站:开始,但我没有得到任何结果。我这样做是运行:

erl -rsh ssh -sname tsung -r ssh_log_me 

其中ssh_log_me是:

#!/bin/sh 

echo "$0" "[email protected]" > /tmp/my-ssh.log 
ssh -v "[email protected]" 2>&1 | tee -a /tmp/my-ssh.log 

但我没有得到任何输出,当我运行:

([email protected])1> slave:start_link(tester1, tsung, " -rsh ssh -detached -setcookie tsung -smp disable +A 16 +P 250000 -kernel inet_dist_listen_min 64000 -kernel inet_dist_listen_max 65500 -boot /usr/lib/erlang//lib/tsung-1.4.2/priv/tsung -boot_var TSUNGPATH /usr/lib/erlang/ -pa /usr/lib/erlang//lib/tsung-1.4.2/ebin -pa /usr/lib/erlang//lib/tsung_controller-1.4.2/ebin +K true -tsung debug_level 7 -tsung log_file ts_encoded_47home_47ubuntu_47_46tsung_47log_4720120719_451751"). 
{error,timeout} 

我已经经历了Erlang的-boot指令,并通过看实际的erlang代码(对于ts_config_server),但在这一点上我有点失落,可能会丢失最后一条信息。

我请您看看我的xml文件的位置:http://pastebin.com/2MEbL6gd

回答

0

我重新编译使用Git的最新版本,它的工作---奇怪的是,它并没有与我的安装deb包工作..

来展示你 - 不确定时从源代码编译!

0

确保SSH密钥验证被禁用 的〜/ .ssh /配置主机* StrictHostKeyChecking没有UserKnownHostsFile =的/ dev/null的

确保所有端口都跨控制器和工作节点进行访问。如果它位于云中,请确保防火墙或安全组允许所有端口。 3.Erlang,Tsung必须有相同的版本。

4.Ensure所有机器的网络层可达彼此

5.Run二郎测试

ERL -rsh SSH -name subbu -setcookie聪二郎R16B03-1(专家评审组-5.10.4)[源] [64位] [smp:2:2] [异步线程:10] [hipe] [kernel-poll:false]

Eshell V5.10.4(放弃使用^ G)(daya @ ip-10 -0-100-224.ec2.internal)1> slave:start(“worker1.com”,bar,“ - setcookie tsung”)。

警告:将'worker1,10.0.100.225'(ECDSA)永久添加到已知主机列表中。 {ok,bar @ worker1}

将此测试从控制器运行到所有工作节点。

您应该可以在没有任何问题的情况下运行测试。

祝你好运!

Subbu

相关问题