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

initiate a client connection clean_session=false #6

Open
Biswajeeban opened this issue Mar 19, 2018 · 2 comments
Open

initiate a client connection clean_session=false #6

Biswajeeban opened this issue Mar 19, 2018 · 2 comments

Comments

@Biswajeeban
Copy link

The problem occurs while stress testing some brokers like Bevywise MQTT Route and HiveMq as they support only 25 clients to be connected in their evaluation versions.

MQTT Route keeps a client connection count which works based on the Clean Session. Hence what happens while connecting to the Broker Server(using MQTT Stresser) the second connection request from the same client​ ​(MQTT Stresser ) to publish/subscribe some msgs is being treated as a New client and client counter gets increased by 1 and thus exceeds 25.
screenshot from 2018-03-06 23-01-51

If we could initiate a client connection to the MQTTRoute setting the Clean session as false ( 0 ), It will treats the second connection request with the same unique Client ID as a re-connection and will not increase the connected client count and I can conduct some fare stress test keeping all the testing parameters constant for all the brokers that I put for evaluation of performace.

@invadersmustdie
Copy link
Member

@bechtoldt any thoughts on this?

@Biswajeeban Biswajeeban changed the title Is there anyway any configurational option in MQTT Stresser to initiate a client collection keeping the clean session "False" ? Is there anyway any configurational option in MQTT Stresser to initiate a client connection keeping the clean session "False" ? Jun 8, 2018
@arnisoph arnisoph changed the title Is there anyway any configurational option in MQTT Stresser to initiate a client connection keeping the clean session "False" ? initiate a client connection clean_session=false Jun 11, 2018
@arnisoph
Copy link
Contributor

sure, there's an option to set CleanSession to false. we would just have to make it configurable while keeping "true" as default and make all MQTT client IDs (WorkerId) the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants