Dear HiveMQ Community,
Best wishes for the new year ahead!
I recently moved to CE 2020.3 after using CE 2020.2 but am still trying to get a handle on the amount of storage space used up in the publish_payload_store and retained_messages folders under data/persistence.
To help me with this, could you kindly advise -
-
what the difference is between in-memory and file modes? (My searches sadly haven’t uncovered an answer to this.)
-
whether there are any additional parameters that can be used under the retained-messages and publish-paylods configs shown below to limit or discard messages?
in-memory in-memory -
what additional parameters could be used to prevent publish_payload_store and retained_messages folders from reaching multiply gigabytes?
-
was support for … parameters (as shown below) only added in CE 2020.3 as per this post on it - https://www.hivemq.com/blog/hivemq-ce-2020-3-released/?
This would explain why my use of these parameters in CE 2020.2 didn’t have any impact on the amount of storage space taken up in the data/persistence folder.
in-memory 60 discard in-memory in-memory<message-flow>
<!-- Changing the incoming message flow -->
<incoming>
<mode>in-memory</mode>
</incoming>
<!-- Changing the outgoing message flow -->
<outgoing>
<mode>in-memory</mode>
</outgoing>
</message-flow>
<!-- Changing the retained message to be in-memory -->
<retained-messages>
<mode>in-memory</mode>
</retained-messages>
<!-- Changing the publish payload persistence to be in-memory -->
<publish-payloads>
<mode>in-memory</mode>
</publish-payloads>
<!-- Changing the session attribute persistence to be in-memory -->
<attribute>
<mode>in-memory</mode>
</attribute>
<!-- Changing the client group persistence to be in-memory -->
<client-group>
<mode>in-memory</mode>
</client-group>
Many thanks,
Johann