Skip to content

Commit

Permalink
Add Example Config (eclipse-zenoh#193)
Browse files Browse the repository at this point in the history
* Add Example Config

* Update EXAMPLE_CONFIG.json5

Co-authored-by: oteffahi <[email protected]>

---------

Co-authored-by: oteffahi <[email protected]>
  • Loading branch information
Charles-Schleich and oteffahi authored Sep 11, 2024
1 parent 9ae0cfd commit b9bb2e1
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions EXAMPLE_CONFIG.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
plugins: {
// configuration of "storages" plugin:
storage_manager: {
volumes: {
// configuration of a "rocksdb" volume (the "zenoh_backend_rocksdb" backend library will be loaded at startup)
rocksdb: {}
},
storages: {
// configuration of a "demo" storage using the "rocksdb" volume
demo: {
// the key expression this storage will subscribes to
key_expr: "demo/example/**",
// this prefix will be stripped from the received key when converting to database key.
// i.e.: "demo/example/a/b" will be stored as "a/b"
strip_prefix: "demo/example",
volume: {
id: "rocksdb",
// the RocksDB database will be stored in this directory (relative to ${ZENOH_BACKEND_ROCKSDB_ROOT})
dir: "example",
// create the RocksDB database if not already existing
create_db: true
}
}
}
},
}
}

0 comments on commit b9bb2e1

Please sign in to comment.