I am running a distributed load test for mqtt message broker using tsung. I have configured the nodes with shh keys and checked that shh is happening properly between the nodes and with single client the test is running succesfully but when i start the tsung.xml file with 2 nodes i encounter the internal server error.
I have checked on versions and paths of erlang and tsung installed in both nodes. They have same verions and paths even.
<clients>
<client host="1.2.3.4" cpu="1" maxusers="300"/>
<client host="2.3.4.6" cpu="1" maxusers="100"/>
</clients>
<servers>
<server host="1.2.3.4" port="1883" type="tcp" />
</servers>
when i run tsung for reports at 1.2.3.4:8091
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator unknown@unknown, and inform them of the time the error occurred and anything you might have done that may have caused the error.
And [email protected] says
ts_config_server:(0:<0.158.0>) Can't start newbeam on host '2.3.4.6' (reason: timeout) ! Aborting!
Is their any reason for this issue or a solution of how to solve the error?
You have not written what operating system you are using. I assume you are using Linux. I easily reproduced the bug (I just deleted the ssh-key line from another node's ~/.ssh/authorized_keys file).
I describe my experiences(Linux Debian):
I have a Debian install script for Tsung 1.6:
ssh key authentication: https://debian-administration.org/article/530/SSH_with_authentication_key_instead_of_password
Copy these lines to the end of your /etc/hosts file on every node.
Your config should be like this:
this is how I start:
I use this tweak script on Linux: