4 ms·
Etcd is designed to be able to cache it's entire working set in memory. https://etcd.io/docs/v3.3.12/dev-guide/limit/ https://etcd.io/docs/v3.3.12/dev-guide/li
by gregwebs 7y ago
Etcd is designed to be able to cache it's entire working set in memory.
https://etcd.io/docs/v3.3.12/dev-guide/limit/ https://etcd.io/docs/v3.3.12/dev-guide/limit/
https://github.com/etcd-io/etcd/blob/master/Documentation/op-guide/hardware.md#memory https://github.com/etcd-io/etcd/blob/master/Documentation/op...
TiKV, a distributed kv store that can store many terabytes of data, actually uses etcd internally for metadata storage.
- fulafel 7y agoMost databases fit in memory though.
- aphyr 7y agoMany do, and even large DBs can be accomodated by throwing terabytes of RAM at the problem, but etcd is fundamentally targeted at a different problem domain than a general-purpose database. Everything in etcd is represented by a single-threaded state machine, which is great for simplicity and correctness, but that comes with performance limitations.