You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
harden switching extension components by renaming the prefix (#3015)
* harden switching extension components by renaming the prefix
* forgot to commit consistency change
* fix tests
* forgot to remove old lines in test file
* add tests
* update docs and improve loop on waiting for isClosed
| directory.path | string ||`true`| Directory path where BadgerDB files will be stored. Each component gets a subdirectory. |
10
+
| directory.path_prefix | string |`badger`|`false`| Optional prefix added to component directory names. Prevents naming collisions when multiple storage extensions share the same directory. Set to empty string to disable. |
10
11
| sync_writes | bool |`true`|`false`| Whether to sync writes to disk immediately. `false` survives process crashes via mmap. |
11
12
| memory.table_size | int64 | 67108864 (64MB) |`false`| Size of each memtable in bytes. Larger values improve write performance but use more memory. |
12
13
| memory.block_cache_size | int64 | 268435456 (256MB) |`false`| Size of block cache in bytes. Larger values improve read performance but use more memory. |
@@ -89,15 +90,35 @@ service:
89
90
90
91
Each component that uses the badger extension gets an isolated database instance at:
| directory.path | string ||`true`| Directory path where Pebble database files will be stored. Each component gets a subdirectory. |
10
-
| cache.size | int64 |`0`|`false`| Size in bytes of the block cache. When 0, uses Pebble's default cache behavior. Larger values improve read performance at the cost of memory usage. |
11
-
| sync | bool |`false`|`false`| Whether to sync writes to disk immediately. `false` provides better performance while still being durable. |
7
+
| Field | Type | Default | Required | Description |
| directory.path | string ||`true`| Directory path where Pebble database files will be stored. Each component gets a subdirectory. |
10
+
| directory.path_prefix | string |`pebble`|`false`| Optional prefix added to component directory names. Prevents naming collisions when multiple storage extensions share the same directory. Set to empty string to disable. |
11
+
| cache.size | int64 |`0`|`false`| Size in bytes of the block cache. When 0, uses Pebble's default cache behavior. Larger values improve read performance at the cost of memory usage. |
12
+
| sync | bool |`true`|`false`| Whether to sync writes to disk immediately. `true` provides safer durability guarantees. |
12
13
13
14
## Example Configuration
14
15
@@ -71,15 +72,35 @@ service:
71
72
72
73
Each component that uses the pebble extension gets an isolated database instance at:
0 commit comments