Re:Rqlite: Replicated SQLite using the Raft consensus protocol
by CodeWriter23 on Sunday February 28, 2016 @04:36PM
(#11192489)
What was your motivation to DIY instead of using Bucardo?
Re:Rqlite: Replicated SQLite using the Raft consensus protocol
by mslot on Sunday February 28, 2016 @07:56PM
(#11193153)
Bucardo provides asynchronous (eventually consistent) replication. If you need strong consistency with fault-tolerance, you need something like pg_paxos, but it comes at a significant performance penalty so it's not really an alternative for existing replication solutions.
Re:Rqlite: Replicated SQLite using the Raft consensus protocol
by CodeWriter23 on Thursday March 03, 2016 @01:50AM
(#11215424)
Thanks. I've been looking at PG replication solutions to get rid of the hand-coded synchronization built into a couple of my apps that date back to the dial-up days.
Re:Rqlite: Replicated SQLite using the Raft consensus protocol
by paulryanrogers on Saturday February 27, 2016 @07:13PM
(#11189116)
Pgpool replication can work that way too
pg_paxos is an extension that uses PostgreSQL's query execution hooks so it doesn't require any external components. An advantage of pg_paxos is that you can do reads and writes on any node. Would love to know what people think and whether it's something you would use (if rigorously tested). Small warning: it replicates SQL queries and doesn't stop you from using volatile functions like now() yet, which would give inconsistent results.
A possible application is a reliable cron service. Each cron node tries to add an entry to a replicated locks table with the same primary key on any of the PostgreSQL nodes. Only one will succeed and then runs the cron job.
Some more details in these slides: http://www.p2d2.cz/files/pg_paxos.pdf