Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 21:22 Go to next message
Max Mueller is currently offline Max MuellerFriend
Messages: 9
Registered: November 2020
Junior Member
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 08:03 Go to previous messageGo to next message
Matteo Maiero is currently offline Matteo MaieroFriend
Messages: 423
Registered: July 2015
Location: Italy
Senior Member
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 20:09 Go to previous message
Max Mueller is currently offline Max MuellerFriend
Messages: 9
Registered: November 2020
Junior Member
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 20:10]

Report message to a 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: Sat Dec 14 08:18:29 GMT 2024

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

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

Back to the top