martin-doyle / node-red-contrib-aedes

MQTT broker for Node-RED based on Aedes
MIT License
62 stars 12 forks source link

support aedes-persistence-level #45

Open twocolors opened 3 years ago

twocolors commented 3 years ago

please add support aedes-persistence-level to save data in local storage

martin-doyle commented 3 years ago

Currently persistence between Node-RED restarts is only supported for MongoDB. Aedes provides a few more storage options. NeDB might be an option if persistence without an external database is required. Let me check this.

Martin

martin-doyle commented 3 years ago

There is a new branch NeDB. Would you mind testing it?

Martin

martin-doyle commented 3 years ago

Unfortunately, the stability test for the NeDB persistence failed. This needs more investigation.

twocolors commented 2 years ago

any ideas how to implement this?

martin-doyle commented 2 years ago

To be honest I did not test it since then. Did you try the NeDB branch?

twocolors commented 1 year ago

for my work find, but i recommended use LevelDB . aedes-persistence-nedb now not support

martin-doyle commented 1 year ago

OK. I will check it. It is supported by aedes now.

martin-doyle commented 1 year ago

The latest version 0.11 supports LevelDB. It is not published yet to npm. Are you willing to test it from Github?

twocolors commented 1 year ago

yup

martin-doyle commented 1 year ago

I was not sure if you need a npm package. So I published today version 0.11.0 with LevelDB persistence.

twocolors commented 1 year ago

i see you remove support, i can test from git ... mb set path for db like https://github.com/NRCHKB/node-red-contrib-homekit-bridged/blob/b52945d671ad5ea286361e1f26095075785882cd/src/nodes/nrchkb.ts#L43

twocolors commented 1 year ago

@martin-doyle hi, have you any idea ?

martin-doyle commented 1 year ago

I tested LevelDB and it caused a Node-RED crash on ARM64 in a docker container. So, I do not want to deploy this in the main branch.

twocolors commented 1 year ago

try aedes-persistence-nedb ?

GAZ082 commented 1 month ago

Hi @martin-doyle . I see there is the "LocalDB" persistence option when configuring the node, but i'm not sure if it's working as it does not asks for a DB path. Is this working? If so, is there some file i can edit to configure it? Thanks.