Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Bucardo.pdf
Search
KMKLabs
January 18, 2016
Education
1
220
Bucardo.pdf
KMKLabs
January 18, 2016
Tweet
Share
More Decks by KMKLabs
See All by KMKLabs
Understanding (a bit of) G1 GC
kmklabs
0
130
WebSocket Authentication on VIDIO.COM
kmklabs
0
1.4k
AudioVisual Assets in Vidio App
kmklabs
0
1.5k
Daily in the life of a TE in Vidio
kmklabs
0
680
Test Engineering - Life of a TE in BBM
kmklabs
0
110
BBM Wallet
kmklabs
0
530
Analytics
kmklabs
0
650
BBM Call Out 101
kmklabs
0
710
Introduction to GRPC
kmklabs
1
680
Other Decks in Education
See All in Education
【旧:ZEPメタバース校舎操作ガイド】
ainischool
0
790
10分で学ぶ すてきなモナド
soukouki
1
140
1008
cbtlibrary
0
130
滑空スポーツ講習会2025(実技講習)EMFT学科講習資料/JSA EMFT 2025
jsaseminar
0
220
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.2k
Activité_5_-_Les_indicateurs_du_climat_global.pdf
bernhardsvt
0
140
Cifrado asimétrico
irocho
0
380
Introdución ás redes
irocho
0
530
IHLヘルスケアリーダーシップ研究会17期説明資料
ihlhealthcareleadership
0
850
【ZEPホスト用メタバース校舎操作ガイド】
ainischool
0
170
1111
cbtlibrary
0
270
NUTMEG紹介スライド
mugiiicha
0
870
Featured
See All Featured
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
180
Become a Pro
speakerdeck
PRO
31
5.8k
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
63
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
320
Site-Speed That Sticks
csswizardry
13
1.1k
Speed Design
sergeychernyshev
33
1.5k
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
350
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
19k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
34k
How to Ace a Technical Interview
jacobian
281
24k
The Mindset for Success: Future Career Progression
greggifford
PRO
0
230
Transcript
PostgreSQL Replication with Bucardo robertus
Bucardo? U NO BUCARDO
Bucardo • async PostgreSQL replication system • allow multi-master and
multi-slave op • Developed by Jon Jesen and Greg Sabino • Free and Open Source (BSD License)
Bucardo Capabilities • master to master • conflict resolution •
custom code
Sync Types • Push Delta • Full Copy • Swap
Bucardo Terms • Goat : database object such as tables
and sequence • Herd : a group of goats • Sync : sync event. one sync, one herd
Architecture controller source_db destination_db
Installing (Ubuntu 14.04) • add repo : deb http://apt.postgresql.org/pub/repos/ apt/
trusty-pgdg main • install requirement : • perl, dbix-safe-perl, postgresql-plperl • get source code : https://github.com/bucardo/ bucardo/archive/5.3.1.tar.gz
Config • ./bucardo install • ./bucardo add all tables db=source_db
• ./bucardo add all sequences db=source_db • ./bucardo add herd copying_herd all tables
El Replicado • Test • ./bucardo validate all • Replicate
• ./bucardo add sync vidio_sync relgroup=copying_herd dbs=source_db:source,dest_db:target onetimecopy=2 • ./bucardo start
Inside Bucardo
Goat ./bucardo list tables
Status
Bucardo Log
How Bucardo Replicate INSERT/UPDATE/ DELETE BUCARDO ADD DELTA BUCARDO TRIGGER
SYNC CONTROLLER SYNC KID NOTIFY/ LISTEN REPLICATION EVENT
Verdict • No lock on slave • Conflict resolution •
Multi Master and Multi Slave • ————————————————- • not for HA / Failover • not available on windows
References • bucardo.org • https://www.compose.io/articles/using- bucardo-5-3-to-migrate-a-live-postgresql-database/ • image source: getty
image