Skip to main content



      Home
Home » Eclipse Projects » Kura » Publish high rate messages with DataService without H2DbService
Publish high rate messages with DataService without H2DbService [message #1838476] Thu, 25 February 2021 16:22 Go to next message
Eclipse UserFriend
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 #1838485 is a reply to message #1838476] Fri, 26 February 2021 03:03 Go to previous messageGo to next message
Eclipse UserFriend
Hello,
no, in the default implementation of the data service the db store cannot be removed.
As you have noted, you can tune the "Store Housekeeper-interval", the "Store Purge-age" and the "Store Capacity" to kick in more frequently and have a store capacity bigger than the default one.

Best regards,
Matteo
Re: Publish high rate messages with DataService without H2DbService [message #1838535 is a reply to message #1838476] Sun, 28 February 2021 15:09 Go to previous message
Eclipse UserFriend
If somebody found this thread, this solution worked fine for me.
Max Mueller wrote on Thu, 25 February 2021 21:22
set 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

Previous Topic:How to publish MQTT messages with a Kura component?
Next Topic:I am unable to access raspberry pi 3 using VNC after installing kura
Goto Forum:
  


Current Time: Mon Jun 16 13:23:48 EDT 2025

Powered by FUDForum. Page generated in 0.03933 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top