[Tsung] problems getting controller to start slave on remote box
Paul G
paul at perforge.com
Thu Nov 8 05:05:53 CET 2007
folks,
i'm running into a bit of trouble getting tsung's distributed mode
working, specifically with the controller failing to start a tsung
slave on another machine.
here's the appropriate snippet of tsung.xml (ip addresses redacted to
rfc1918 space to protect the innocent):
<clients>
<client host="load1" weight="1" maxusers="600">
<ip value="192.168.1.12"></ip>
</client>
<client host="load2" weight="1" maxusers="600">
<ip value="192.168.1.13"></ip>
</client>
</clients>
"load2" is the controller machine. when i run tsung start on load2,
the following log file is produced:
=INFO REPORT==== 7-Nov-2007::22:46:39 ===
ts_config_server:(5:<0.43.0>) Config server started, logdir is
"/root/.tsung/log/20071108-03:46"
=INFO REPORT==== 7-Nov-2007::22:46:39 ===
ts_mon:(5:<0.42.0>) starting monitor, global
=INFO REPORT==== 7-Nov-2007::22:46:39 ===
ts_mon:(5:<0.44.0>) Init, log dir is
"/root/.tsung/log/20071108-03:46"
=INFO REPORT==== 7-Nov-2007::22:46:39 ===
ts_mon:(5:<0.44.0>) starting monitor
=INFO REPORT==== 7-Nov-2007::22:46:39 ===
ts_os_mon:(5:<0.42.0>) starting os_mon
=INFO REPORT==== 7-Nov-2007::22:46:39 ===
ts_os_mon:(5:<0.49.0>) os_mon started
=INFO REPORT==== 7-Nov-2007::22:46:39 ===
ts_config:(5:<0.43.0>) Reading config file: /root/.tsung/tsung.xml
=INFO REPORT==== 7-Nov-2007::22:46:39 ===
ts_config_http:(4:<0.43.0>) Get user agent: 80 "Mozilla/5.0
(X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050513 Galeon/1.3.21"
=INFO REPORT==== 7-Nov-2007::22:46:39 ===
ts_config_http:(4:<0.43.0>) Get user agent: 20 "Mozilla/5.0
(Windows; U; Windows NT 5.2; fr-FR; rv:1.7.8) Gecko/20050511
Firefox/1.0.4"
=INFO REPORT==== 7-Nov-2007::22:46:39 ===
ts_config:(5:<0.43.0>) Session name for id 1 is "hp_test"
=INFO REPORT==== 7-Nov-2007::22:46:39 ===
ts_config:(5:<0.43.0>) Session type: persistent=true
=INFO REPORT==== 7-Nov-2007::22:46:39 ===
ts_config_server:(5:<0.43.0>) SYSINFO:Erlang version: Erlang
(BEAM) emulator version 5.5.5 [source] [async-threads:1] [hipe]
[kernel-poll:false]
=INFO REPORT==== 7-Nov-2007::22:46:39 ===
ts_config_server:(5:<0.43.0>) SYSINFO:System architecture i686-pc-linux-gnu
=INFO REPORT==== 7-Nov-2007::22:46:39 ===
ts_config_server:(5:<0.43.0>) SYSINFO:Current path:
/usr/local/lib/erlang/lib/tsung-1.2.1/ebin/tsung.beam
=INFO REPORT==== 7-Nov-2007::22:46:39 ===
ts_os_mon:(5:<0.40.0>) os_mon disabled
=INFO REPORT==== 7-Nov-2007::22:46:39 ===
ts_mon:(5:<0.44.0>) Activate clients with text backend
=INFO REPORT==== 7-Nov-2007::22:46:39 ===
ts_config_server:(5:<0.43.0>) started newbeam on node tsung0 at load2
=INFO REPORT==== 7-Nov-2007::22:46:39 ===
ts_config_server:(5:<0.43.0>) ping tsung0 at load2 pong
=INFO REPORT==== 7-Nov-2007::22:47:11 ===
ts_config_server:(0:<0.43.0>) Can't start newbeam on host load1
(reason: timeout) ! Aborting!
=ERROR REPORT==== 7-Nov-2007::22:47:11 ===
** Generic server ts_config_server terminating
** Last message in was {'$gen_cast',{newbeam,load1,[]}}
** When Server state == {state,
{config,
undefined,
5,
none,
text,
undefined,
[{client,"load2",1.00000,600,[{192,168,1,13}]},
{client,
"load1",
1.00000,
600,
[{192,168,1,12}]}],
[{server,"example.org",80,gen_tcp}],
[],
[{arrivalphase,
1,
180,
undefined,
undefined,
1.00000e-2,
infinity}],
undefined,
false,
[],
undefined,
[{session,
1,
100,
ts_http,
true,
negociate,
undefined}],
16,
false,
undefined,
3,
2,
undefined,
negociate},
"/root/.tsung/log/20071108-03:46",
undefined,
load2,
1,
0,
undefined,
2.00000}
** Reason for termination ==
** {bad_return_value,{stop,normal}}
=INFO REPORT==== 7-Nov-2007::22:47:11 ===
ts_mon:(0:<0.44.0>) Aborting by request !
=INFO REPORT==== 7-Nov-2007::22:47:11 ===
ts_os_mon:(5:<0.49.0>) Terminating ts_os_mon, stop beams: []
=INFO REPORT==== 7-Nov-2007::22:47:11 ===
ts_mon:(5:<0.44.0>) stoping monitor ({normal,
{gen_server,
call,
[ts_os_mon,
{stop},
infinity]}})
i've followed the directions in the faq, and ssh load1 erl
successfully brings up the erlang shell. ssh keys are all set up
correctly etc.
any ideas on how to debug this further? i don't know erlang yet, so
please be gentle ;]
cheers,
-p
More information about the Tsung-users
mailing list