Massconnect test Websocket-Node Server

Hi all,

I want to stress test a Websocket-Node server I have installed with the help of Authobahn Testsuite.

I have installed the websocket server on a different machine and it works properly while connecting from browser through my application.

On a different server I have installed wstest command tool.
I run the following command

wstest -m massconnect -s massconnect.json -d

and massconnect,json is (i just run 10 connections to see console results and understand how it works)
{
“options”: {
“connections”: 10,
“batchsize”: 10,
“batchdelay”: 10,
“retrydelay”: 10
},
“servers”: [
{
“name”: "Websocket-Node ",
“uri”: “ws://192.211.203.122:8080”,
“desc”: "Websocket-Node "
}
]
}

It does not coonect, and after the specified delay it retries but no luck
Output is

wstest -m massconnect -s massconnect.json -d

/root/wstest/local/lib/python2.7/site-packages/OpenSSL/crypto.py:12: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.

from cryptography import x509

Using explicit spec file ‘massconnect.json’

Loading spec from /root/massconnect.json

2020-11-26 13:40:07+0200 [-] Log opened.

2020-11-26 13:40:07+0200 [-]

2020-11-26 13:40:07+0200 [-] Using Twisted reactor class <class ‘twisted.internet.epollreactor.EPollReactor’>

2020-11-26 13:40:07+0200 [-] Using UTF8 Validator class <type ‘wsaccel.utf8validator.Utf8Validator’>

2020-11-26 13:40:07+0200 [-] Using XOR Masker classes <type ‘wsaccel.xormask.XorMaskerNull’>

2020-11-26 13:40:07+0200 [-]

2020-11-26 13:40:07+0200 [-] {u’options’: {u’connections’: 10, u’batchsize’: 10, u’retrydelay’: 10, u’batchdelay’: 10}, u’servers’: [{u’desc’: u’Autobahn WebSocket Python on localhost’, u’name’: u’Websocket-Node on Developer ERT’, u’uri’: u’ws://192.211.203.122:8080’}]}

2020-11-26 13:40:07+0200 [-] Starting factory <autobahntestsuite.massconnect.MassConnectFactory object at 0x7f00ee9f9210>

2020-11-26 13:40:07+0200 [-] Starting factory <autobahntestsuite.massconnect.MassConnectFactory object at 0x7f00ee9f92d0>

2020-11-26 13:40:07+0200 [-] Starting factory <autobahntestsuite.massconnect.MassConnectFactory object at 0x7f00ee9f9390>

2020-11-26 13:40:07+0200 [-] Starting factory <autobahntestsuite.massconnect.MassConnectFactory object at 0x7f00ee9f9450>

2020-11-26 13:40:07+0200 [-] Starting factory <autobahntestsuite.massconnect.MassConnectFactory object at 0x7f00ee9f9510>

2020-11-26 13:40:07+0200 [-] Starting factory <autobahntestsuite.massconnect.MassConnectFactory object at 0x7f00ee9f9610>

2020-11-26 13:40:07+0200 [-] Starting factory <autobahntestsuite.massconnect.MassConnectFactory object at 0x7f00ee9f9750>

2020-11-26 13:40:07+0200 [-] Starting factory <autobahntestsuite.massconnect.MassConnectFactory object at 0x7f00ee9f9890>

2020-11-26 13:40:07+0200 [-] Starting factory <autobahntestsuite.massconnect.MassConnectFactory object at 0x7f00ee9f99d0>

2020-11-26 13:40:07+0200 [-] Starting factory <autobahntestsuite.massconnect.MassConnectFactory object at 0x7f00ee9f9b10>

2020-11-26 13:40:37+0200 [-] Stopping factory <autobahntestsuite.massconnect.MassConnectFactory object at 0x7f00ee9f9210>

2020-11-26 13:40:37+0200 [-] Stopping factory <autobahntestsuite.massconnect.MassConnectFactory object at 0x7f00ee9f92d0>

2020-11-26 13:40:37+0200 [-] Stopping factory <autobahntestsuite.massconnect.MassConnectFactory object at 0x7f00ee9f9390>

2020-11-26 13:40:37+0200 [-] Stopping factory <autobahntestsuite.massconnect.MassConnectFactory object at 0x7f00ee9f9450>

2020-11-26 13:40:37+0200 [-] Stopping factory <autobahntestsuite.massconnect.MassConnectFactory object at 0x7f00ee9f9510>

2020-11-26 13:40:37+0200 [-] Stopping factory <autobahntestsuite.massconnect.MassConnectFactory object at 0x7f00ee9f9610>

2020-11-26 13:40:37+0200 [-] Stopping factory <autobahntestsuite.massconnect.MassConnectFactory object at 0x7f00ee9f9750>

2020-11-26 13:40:37+0200 [-] Stopping factory <autobahntestsuite.massconnect.MassConnectFactory object at 0x7f00ee9f9890>

2020-11-26 13:40:37+0200 [-] Stopping factory <autobahntestsuite.massconnect.MassConnectFactory object at 0x7f00ee9f99d0>

2020-11-26 13:40:37+0200 [-] Stopping factory <autobahntestsuite.massconnect.MassConnectFactory object at 0x7f00ee9f9b10>

2020-11-26 13:40:37+0200 [-] Starting factory <autobahntestsuite.massconnect.MassConnectFactory object at 0x7f00ee9f9210>

2020-11-26 13:40:37+0200 [-] Starting factory <autobahntestsuite.massconnect.MassConnectFactory object at 0x7f00ee9f92d0>

2020-11-26 13:40:37+0200 [-] Starting factory <autobahntestsuite.massconnect.MassConnectFactory object at 0x7f00ee9f9390>

2020-11-26 13:40:37+0200 [-] Starting factory <a…etc

do I have to test it i a different way? or how can check the reason it fails?
I am new to it and I need some help…

thank you very much!

@oberstet In order to test the massconnect mode , should i start first my Websocket-Node server in echoserver mode from inside the same machine?
that means 1. install wstest tool on the same machine my server is implemented, then 2. run echo server mode from there, and then 3. run massconnect mode test from another machine?

If that is the correct way, then the reason massconnect test failed in my case, is because i was running my server with “node” command in one machine and was trying to test with wstest from another machine.

Is correct my assumption?

@oberstet Hi Tobias, I forgot to tag you in the initial email. Could you please help me on how is the correct way to test it or check for failure reasons?

Best,
Evi