From 7618c4a08229834883c8ade90e52c8c41eb81901 Mon Sep 17 00:00:00 2001 From: Ludwig Schwiedrzik Date: Tue, 18 Jun 2024 09:58:07 +0200 Subject: Add persistent storage grpc API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In the current demo, user settings such as radio stations and HVAC preferences are lost upon poweroff. The agl-persistent-storage-api adds a simple grpc API that enables persistent storage of key-value pairs using RocksDB. The API supports Write, Read, Delete, and Search calls, as well as calls to recursively list or delete nodes (intended for use with VSS-like keys) and to destroy the database. Separate namespaces are also supported. The API is written in Rust, the repo can be viewed under this URL: https://github.com/LSchwiedrzik/agl-persistent-storage-api Test builds were successfully carried out by Jan-Simon Möller. Bug-AGL: [SPEC-5187] Change-Id: Ic11d31c75268f922c84785da8cd29fa6b022612f Signed-off-by: Ludwig Schwiedrzik Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl-demo/+/29996 Reviewed-by: Jan-Simon Moeller Tested-by: Jenkins Job builder account --- .../files/agl-persistent-storage-api.service | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 recipes-demo/agl-persistent-storage-api/files/agl-persistent-storage-api.service (limited to 'recipes-demo/agl-persistent-storage-api/files') diff --git a/recipes-demo/agl-persistent-storage-api/files/agl-persistent-storage-api.service b/recipes-demo/agl-persistent-storage-api/files/agl-persistent-storage-api.service new file mode 100644 index 00000000..9f1f7214 --- /dev/null +++ b/recipes-demo/agl-persistent-storage-api/files/agl-persistent-storage-api.service @@ -0,0 +1,11 @@ +[Unit] +After=network-online.target + +[Service] +Type=simple +ExecStart=/usr/bin/agl-service-persistent-storage +Restart=on-failure +#User=persistent-api + +[Install] +WantedBy=default.target -- cgit