Comments (11)
What errors do you see? Have you made sure with another client like mosquitto_pub
that you're able to connect to the broker as expected?
from vmq_mzbench.
Hi, I do not see any errors, I'm used python client (with Eclips paho library) in order to verify the broker is running without issue and I saw the python client connected to the broker but didn't saw the MZbench client.
One more weird thing is that i changed the port from 1883 to 18883 (no service listing to that port) and the script didn't raise any connection errors.
The MZbench server is running via Docker (used the DockerFile to build and run it)
I'm attaching the run log (hope it will be helpful)
with the current port (1883)
log.txt
with the in-current port (18883)
log2.txt
from vmq_mzbench.
I guess the script you posted above is incomplete. From the log it seems you connect 1k publishers and send messages, but you don't have a consumer for those. Please adapt the wait(1 sec)
to 5 seconds or so, in the consumer pool. (everything is async, the subscribe might be wrongly timed)
from vmq_mzbench.
Hi, thanks for the reply.
sorry the scenario didn't match to the logs, I'm changing the wait to 10 sec and will check
from vmq_mzbench.
still no success :/
I have attached the log to the updated scenario
with the current port (1883)
log.txt
with the incurrect port (18883)
log2.txt
from vmq_mzbench.
Can you please post the whole script, as you are trying to run? (anonymising IPs)
from vmq_mzbench.
@ioolkos , what you mean by the "whole script" ?
I ran the following scenario using MZBench GUI
#!benchDL
#######
# Scenario:
# A single subscriber reading from "prefix/clients/#" topic filter
# 1k publisher publishing to exclusive topic "prefix/clients/{client_id}"
# Overall msg rate: 1k msg/s
# Message size: 150 random bytes
# Running time: 5 min
#######
make_install(git = "https://github.com/erlio/vmq_mzbench.git",
branch = "master")
pool(size = 1,
worker_type = mqtt_worker):
connect([t(host, "dev-csp.dc.dojo-labs.com"),
t(port,18883),
t(client,"subscriber1"),
t(clean_session,false),
t(keepalive_interval,60),
t(proto_version,4), t(reconnect_timeout,4)
])
wait(60 sec)
subscribe("prefix/clients/#", 0)
from vmq_mzbench.
OK, my misunderstanding. So it's a script that just connects 1 subscriber. (60 sec wait time is too high btw)
Normally you'd run a whole test scenario, connecting some publishers and send some messages. Otherwise MZBench can't measure latencies etc.
from vmq_mzbench.
I ran the whole test in the first but I didn't see any activity in my broker (traffic) nor the client ID in the broker clients list .
so i started to mess around with the script (change the domain or the port ) I assumed that the test will fail because there is not service that listing to the port I set.
I'm very confuse regarding this mqtt_worker because one of the connect function parameters is the host
from vmq_mzbench.
Don't let things confuse you. An MQTT listener is exposed on an IP and a port. If you want to connect from an MQTT client, you have to provide the IP and the port.
There is no point in experimenting with ports that are not configured. The reason you did not see traffic was that the consumer wasn't subscribed due to a timing issue, therefore you published messages but did not received them.
Try to make a simple script run in MZBench, then take it from there, increasing number of publishers, etc.
from vmq_mzbench.
@shaloba did the suggested approach work better? hope so.. ;)
from vmq_mzbench.
Related Issues (20)
- How to run with user/pass HOT 2
- why I got this error with Mzbench loadtest VerneMQ on my mac HOT 3
- Not getting any data from mqtt.message.consumed.total HOT 12
- mqtt.message.consumed.total is very low compared to published messages HOT 5
- Dynamic deadlock detected for 1_to_1 scenario HOT 2
- vmq_mzbench workers crashed with message "no function clause matching gen_emqtt:handle_frame(waiting_for_connack....)" HOT 7
- Plugin doesn't compile HOT 11
- Not able to start MZBENCH server HOT 3
- Subscriber never receiving message Fan out HOT 9
- Could not compile on OSX HOT 1
- Syntax error on fan_out.bdl scenario HOT 1
- how to test auth for a lot of users HOT 6
- Cannot Start Server HOT 7
- Unable to use mqtt_worker HOT 2
- problem with loading client cert
- Not able to run scenarios on mzbench tool HOT 7
- Connections limit to 28k CCUs
- MQTT live messaging scenario HOT 4
- Receiving worker down crash errors : (Reason : no function clause matching rand:mk_alg(exsss) ) HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vmq_mzbench.