News for hackers. Stuff that matters.
Re:Dqlite – High-Availability SQLite by free-ekanayaka on Friday August 30, 2019 @11:13AM (#20839383)
Depends on how fast is your disk, what file system and kernel you use, and how low is your network latency. Difficult to predict. But it's basically as fast as it can get given 1) hardware constraints 2) raft consensus.

If you want light-speed insert/delete, you could probably don't use the disk at all: as long as a majority of your nodes don't die, you won't lose any data. You can also go somewhere in between and save to disk only at specific intervals.

Re:Dqlite – High-Availability SQLite by zellyn on Friday August 30, 2019 @12:05PM (#20839875)
Do all nodes participate as full RAFT nodes? Or can you have read-only nodes?
Re:Dqlite – High-Availability SQLite by setr on Friday August 30, 2019 @12:49PM (#20840252)
Aren't non-leader RAFT nodes already read-only?
Re:Dqlite – High-Availability SQLite by zellyn on Friday August 30, 2019 @01:25PM (#20840587)
I guess I meant observer nodes, with read-only DB access.
Re:Dqlite – High-Availability SQLite by setr on Saturday August 31, 2019 @03:39AM (#20845089)
I just mean that RAFT nodes are already read-only for most of their lives — it’s not clear to me why you’d want nodes to be dedicated as read-only; it would only reduce consistency guarantees (and I believe you wouldn’t be avoiding the heartbeat and data consistency network chatter).. I think the leadership functionality comes cheap
Re:Dqlite – High-Availability SQLite by zellyn on Saturday August 31, 2019 @10:31AM (#20846492)
That makes sense. I need to read up on Raft again.

I know Zookeeper, for example, supports observer nodes: essentially a cheaper read-only cache. Chubby at Google had the same thing.