3 ms·
I believe Raft is supposed to handle this; every modification is a log entry, and every recipient has to ack the log entry, a bit like two-phased commit.
by lobster_johnson 11y ago
I believe Raft is supposed to handle this; every modification is a log entry, and every recipient has to ack the log entry, a bit like two-phased commit.
- dcb18 11y agoThis is incorrect, only reads from the current Raft master are guaranteed to not be stale. In the case of InfluxDB, I think caching is safe because the shard metadata is immutable.
- schmichael 11y agoWhere are you seeing that cluster metadata is immutable? I don't even know how that would work. Surely nodes, databases, shards, users, permissions, etc. all can change?
- dcb18 11y agoYep, you're right.
- schmichael 11y agoBut the section I quoted said that local metadata queries go to the cache which is only updated "periodically."