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!