Publish high rate messages with DataService without H2DbService [message #1838476] |
Thu, 25 February 2021 16:22  |
Eclipse User |
|
|
|
Hello,
I want to publish messages with a high rate e.g., 5 messages per second using DataService.
After 1000 messages the DB H2DbService reaches its capacity limit.
ERROR o.e.k.t.TestingPub - Error while publishing register
org.eclipse.kura.KuraStoreCapacityReachedException: "Error performing operation on store. Store capacity exceeded"
Is there a way to disable the DB Service without creating an own version of DataService?
Solution attempts: Rate limiter is disabled, store.purage-age = 5 (minimum), set message publish priority to 3 (then the limit should not apply).
Set store.capacity to MAXINT is one solution, but that is a messy solution.
How to get rid of this DB Service?
|
|
|
|
Re: Publish high rate messages with DataService without H2DbService [message #1838535 is a reply to message #1838476] |
Sun, 28 February 2021 15:09  |
Eclipse User |
|
|
|
If somebody found this thread, this solution worked fine for me.
Max Mueller wrote on Thu, 25 February 2021 21:22set message publish priority to 3 (then the limit should not apply).
I just mixed up the priorities.
//Parameter: topic, StringBufferMessage, qos, retain, priority
m_dataservice.publish(topic, publishMessage.getBytes(), 2, retain, 1);
Priority have to be 1 or 0, then the limit does not apply.
[Updated on: Sun, 28 February 2021 15:10] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03933 seconds