[Cisl-comunidade] PostgreSQL multi master bidrectional replication

Andre Felipe Machado andre.machado em serpro.gov.br
Sexta Dezembro 26 16:32:53 BRST 2014


Olá,
O novo PostgreSQL 9.4, que já faz parte do próximo Debian 8.0 Jessie, começa a incorporar oficialmente os recursos necessários para fazer uma replicação multi-master bidirecional assíncrona (eventualmente consistente, com janela de tempo de replicação).

http://www.postgresql.org/about/news/1557/

http://www.postgresql.org/docs/9.4/static/warm-standby.html#STREAMING-REPLICATION-SLOTS

É o Bidirectional Data Replication (BDR)
https://wiki.postgresql.org/wiki/BDR_Project
https://wiki.postgresql.org/wiki/BDR_User_Guide
https://wiki.postgresql.org/wiki/BDR_Administration
https://wiki.postgresql.org/wiki/BDR_Quick_Start

Atualmente, suporta até 48 masters.
http://2ndquadrant.com/en/resources/bdr/
E como usa os WAL para replicar assíncronamente, o impacto é baixo em latência, comparado a outras soluções
http://2ndquadrant.com/en/resources/bdr/bdr-performance/

Uma rápida explicação de como funciona a tecnologia básica e de como resolve conflitos (split-brain) até certos limites.
http://blog.2ndquadrant.com/postgresql-9-4-slots/
http://evol-monkey.blogspot.com.br/2014/08/postgresql-bi-directional-replication.html
http://blogs.enterprisedb.com/2014/10/28/edb-support-for-postgresql-bdr/
http://rhaas.blogspot.com.br/2014/03/postgresql-now-has-logical-decoding.html

Obrigado.
-- 
André Felipe Machado

CEAGO/COTSC/COSTE
As Lou Gerstner, former Chairman 
and CEO of IBM, observed: 'I came to see, in my time at IBM that culture
 isn’t just one aspect of the game; it *IS* the game.'
-------------

-


"Esta mensagem do SERVIÇO FEDERAL DE PROCESSAMENTO DE DADOS (SERPRO), empresa pública federal regida pelo disposto na Lei Federal nº 5.615, é enviada exclusivamente a seu destinatário e pode conter informações confidenciais, protegidas por sigilo profissional. Sua utilização desautorizada é ilegal e sujeita o infrator às penas da lei. Se você a recebeu indevidamente, queira, por gentileza, reenviá-la ao emitente, esclarecendo o equívoco."

"This message from SERVIÇO FEDERAL DE PROCESSAMENTO DE DADOS (SERPRO) -- a government company established under Brazilian law (5.615/70) -- is directed exclusively to its addressee and may contain confidential data, protected under professional secrecy rules. Its unauthorized use is illegal and may subject the transgressor to the law's penalties. If you're not the addressee, please send it back, elucidating the failure."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/cisl-comunidade/attachments/20141226/0deebd1b/attachment.html>


More information about the Cisl-comunidade mailing list