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

Allow more simultaneous MQTT publishments #637

Open
schneiti opened this issue Mar 29, 2022 · 1 comment
Open

Allow more simultaneous MQTT publishments #637

schneiti opened this issue Mar 29, 2022 · 1 comment
Labels
improvement Improvement of an existing feature

Comments

@schneiti
Copy link
Collaborator

schneiti commented Mar 29, 2022

If the MBP performs many publishments within a short period of time a MQTT exception is thrown which prevents the MBP of sending anything to any actuator. Here, a better publishing mechanism would make sense which protects the MBP to publish too exessively.

Alternatively one could think of setting the number of allowed inflight messages for the paho client higher:
See https://stackoverflow.com/questions/38751546/send-many-publish-message-too-many-publishes-in-progress-error

MqttException: Too many publishes in progress

Too many publishes in progress (32202)

at org.eclipse.paho.client.mqttv3.internal.ClientState.send(ClientState.java:527)

at org.eclipse.paho.client.mqttv3.internal.ClientComms.internalSend(ClientComms.java:163)

at org.eclipse.paho.client.mqttv3.internal.ClientComms.sendNoWait(ClientComms.java:193)

at org.eclipse.paho.client.mqttv3.MqttAsyncClient.publish(MqttAsyncClient.java:1375)

at org.eclipse.paho.client.mqttv3.MqttClient.publish(MqttClient.java:570)

at de.ipvs.as.mbp.service.messaging.impl.mqtt.MQTTClientConnector.publish(MQTTClientConnector.java:191)

at de.ipvs.as.mbp.service.messaging.PubSubService.publish(PubSubService.java:126)

at de.ipvs.as.mbp.service.rules.execution.actuator_action.ActuatorActionExecutor.execute(ActuatorActionExecutor.java:160)

at de.ipvs.as.mbp.service.rules.RuleExecutor.executeRule(RuleExecutor.java:73)

at de.ipvs.as.mbp.service.rules.RuleEngine.induceRuleExecution(RuleEngine.java:192)

at de.ipvs.as.mbp.service.cep.trigger.CEPTriggerService.lambda$registerTrigger$0(CEPTriggerService.java:87)

at de.ipvs.as.mbp.service.cep.engine.esper.EsperCEPQueryDispatcher.lambda$update$0(EsperCEPQueryDispatcher.java:36)

at java.base/java.lang.Thread.run(Unknown Source)
@schneiti schneiti added the improvement Improvement of an existing feature label Mar 29, 2022
@schneiti schneiti changed the title Allow more simultaneous MQTT publishes Allow more simultaneous MQTT publishments Mar 29, 2022
@schneiti
Copy link
Collaborator Author

Also it seems that unnecessarily many reconnects are performed.
grafik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Improvement of an existing feature
Projects
None yet
Development

No branches or pull requests

1 participant