Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-constant-payload produces the default payload instead of indicated one #70

Closed
simGudim opened this issue Sep 9, 2021 · 1 comment
Closed

Comments

@simGudim
Copy link

simGudim commented Sep 9, 2021

i have been setting the -constant-payload flag, but I seem to be getting the default messages each time. this seems to happen with the topic set by the flag -topic-base-path(see the logs below). I am using rust's paho_mqtt for my client and mosquitto as the broker.

Here is my command:
docker run --rm inovex/mqtt-stresser -broker tcp://xxxxxxx:1883 -num-clients 1 -num-messages 1 -rampup-delay 1s -rampup-size 10 -global-timeout 180s -timeout 20s -skip-tls-verification true -constant-payload hello -topic-base-path 1231asss/1212asss/event

I am using rust to deserialize the payload using the serde crate on my client side:

    let report = std::str::from_utf8(payload_str);
    info!("THIS IS A TEST: {:?}", report);

and this is the result from my logs:

2021-09-09T12:57:32.240024471-04:00 INFO mqtt_bin::mqttmod::mqtt_bin - do async_wait_message topic received: internal/mqtt-stresser/b262e40f3baa/worker0-722306144
 

2021-09-09T12:57:32.242970317-04:00 INFO mqtt_bin::mqttmod::mqtt_event_process::event_process - event_porcess_func-payload: [116, 104, 105, 115, 32, 105, 115, 32, 109, 115, 103, 32, 35, 48, 33] 

2021-09-09T12:57:32.243107067-04:00 INFO mqtt_bin::mqttmod::mqtt_event_process::event_process - THIS IS A TEST: Ok("this is msg #0!") 
@simGudim
Copy link
Author

simGudim commented Sep 9, 2021

Okay I get it now! These flahs should have indicated before:

docker run --rm inovex/mqtt-stresser -broker tcp://192.168.2.13:1883 -constant-payload hello -topic-base-path 1231asss/1212asss/event -num-clients 10 -num-messages 1 -rampup-delay 1s -rampup-size 10 -global-timeout 180s -timeout 30s -skip-tls-verification true

@simGudim simGudim closed this as completed Sep 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant