Replies: 2 comments
-
Your program of dumping All DB data seems not correct, please refer to example below on how to dump all data, Lines 91 to 119 in c0f7c3c In term of performance,
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Yes, we use a WAL. But how exactly does it improve performance? Or is it simply because all writes go to the WAL first, so we don’t really need to worry about when the actual write to the main storage happens? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We’re working on a POC to use BoltDB as the underlying database with MultiRaft for a scalable stats infrastructure. Each shard has its own independent BoltDB instance. In the background, the service scrapes stats from target sidecar pods and writes them to BoltDB. However, we're facing an issue when reading the DB concurrently with writes — during active scrapes, reading the DB sometimes returns partial or no key-value data. For example, out of 10 expected keys, we may see only a few or none. When there are no ongoing writes, the full dataset is visible.
Is this behavior expected? To be honest, I've used BoltDB before and never encountered this issue. If I recall correctly, BoltDB internally uses a read-write mutex to manage transactions.
Dump All DB Data.
The second question is about performance. Our goal is to store stats in a key-value database rather than a time-series database because we need to continuously update the same metric and later read the entire DB to aggregate data across targets before sending it to OpenTelemetry. We're planning to start with 64 shards. Do you think BoltDB can handle that volume of reads and writes? I know etcd is built on top of BoltDB and offers good read performance, but I haven't been able to find concrete performance numbers for our use case.
Beta Was this translation helpful? Give feedback.
All reactions