My goal is to have a decentralized P2P database
in a local only network (all nodes 192.168.x.x addresses) where each node has the identical data.
Nodes can be dynamically added.
The nodes are read-only but somehow data must be pushed into this system initially from inside from on of these nodes. The idea would be to have only one writer (I assume this is the leader then) which is dynamically selected.
I.e. the first added peer will be the leader, but as soon as this node is shutdown a different node should act as the writer.
Is such a setup possible?
The deployment should be server less,
i.e. no dedicated write node only deployed especially for this purpose must exist in the system.Thanks.
--
You received this message because you are subscribed to the Google Groups "rqlite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rqlite+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rqlite/ab0fcc66-4c44-47e8-b834-0ac92f8dcdd7n%40googlegroups.com.
Decentralized mean here that there is no special server. Each node is identical in the system. E.g. there is also no consul or etc leader election node how it might be in other systems. Also any node can fail anytime and the system still works.All nodes are able to talk constantly to each other, they will be in the same local network, e.g. 192.168.x.x addresses. My steps based on the answers would be:Start an initial node with:rqlited -node-id 1 -http-addr=$HOST1:4001 -raft-addr=$HOST1:4002 \ -bootstrap-expect 1 -join $HOST1:4002 dataOn the second node and all others I can use:rqlited -node-id 2 -http-addr host2:4001 -raft-addr host2:4002 -join host1:4002 dataAnd that's it. Whenever the leader fails one of the read only nodes will be come a leader. is this correct?
To view this discussion on the web visit https://groups.google.com/d/msgid/rqlite/9c0f9470-3564-4061-ba5f-c421241e555bn%40googlegroups.com.
I think I have understood this now. Then I will start with just one bootstrap node and let the other join. What is a practical limit of nodes? Is 100 still OK?
To view this discussion on the web visit https://groups.google.com/d/msgid/rqlite/e268c02c-d914-47cf-b3a2-68e678e38b8en%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rqlite/CAEajhJNPk2L-q4Eg8HdzRdAPUPQLn19MbfJasywW2OG%3D9g%3D6kg%40mail.gmail.com.
In this scenario even 100 would be up, but later 90 might have shut down and then the 10 remaining should still work.
Or does the system remember the 100 nodes and there is no way to go back to less then 51?
To view this discussion on the web visit https://groups.google.com/d/msgid/rqlite/CALZD023Hsm8DgTKCnakcODv%2BHCjKxMEnebWjW-4Mf5qgyBi7Lw%40mail.gmail.com.