GithubHelp home page GithubHelp logo

Comments (11)

larshesel avatar larshesel commented on July 24, 2024

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.

shaloba avatar shaloba commented on July 24, 2024

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.

ioolkos avatar ioolkos commented on July 24, 2024

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.

shaloba avatar shaloba commented on July 24, 2024

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.

shaloba avatar shaloba commented on July 24, 2024

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.

ioolkos avatar ioolkos commented on July 24, 2024

Can you please post the whole script, as you are trying to run? (anonymising IPs)

from vmq_mzbench.

shaloba avatar shaloba commented on July 24, 2024

@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.

ioolkos avatar ioolkos commented on July 24, 2024

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.

shaloba avatar shaloba commented on July 24, 2024

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.

ioolkos avatar ioolkos commented on July 24, 2024

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.

ioolkos avatar ioolkos commented on July 24, 2024

@shaloba did the suggested approach work better? hope so.. ;)

from vmq_mzbench.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.