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
540
Analytics
kmklabs
0
660
BBM Call Out 101
kmklabs
0
720
Introduction to GRPC
kmklabs
1
690
Other Decks in Education
See All in Education
Data Representation - Lecture 3 - Information Visualisation (4019538FNR)
signer
PRO
1
2.9k
Avoin jakaminen ja Creative Commons -lisenssit
matleenalaakso
0
2.1k
Design Guidelines and Principles - Lecture 7 - Information Visualisation (4019538FNR)
signer
PRO
0
2.9k
2025-12-19-LT
takesection
0
120
栃木にいても「だいじ」だっぺ〜! 栃木&全国アジャイルコミュニティへの参加・運営の魅力
sasakendayo
1
180
Going over the Edge
jonoalderson
0
790
Data Processing and Visualisation Frameworks - Lecture 6 - Information Visualisation (4019538FNR)
signer
PRO
1
2.9k
Measuring your measuring
jonoalderson
2
780
演習:Gitの応用操作 / 05-git-advanced
kaityo256
PRO
0
230
高校数学B「統計的な推測」 分野の問題と課題
shimizudan
1
120
アジャイルなマインドセットを「取り戻す」新人研修づくり
chinmo
1
250
Gesture-based Interaction - Lecture 6 - Next Generation User Interfaces (4018166FNR)
signer
PRO
0
2.1k
Featured
See All Featured
エンジニアに許された特別な時間の終わり
watany
106
240k
Practical Orchestrator
shlominoach
191
11k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
93
Google's AI Overviews - The New Search
badams
0
950
Art, The Web, and Tiny UX
lynnandtonic
304
21k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
240
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
360
Building Flexible Design Systems
yeseniaperezcruz
330
40k
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
1
1.9k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.6k
Ten Tips & Tricks for a 🌱 transition
stuffmc
0
91
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