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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
KMKLabs
January 18, 2016
Education
250
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Bucardo.pdf
KMKLabs
January 18, 2016
More Decks by KMKLabs
See All by KMKLabs
Understanding (a bit of) G1 GC
kmklabs
0
160
WebSocket Authentication on VIDIO.COM
kmklabs
0
1.4k
AudioVisual Assets in Vidio App
kmklabs
0
1.6k
Daily in the life of a TE in Vidio
kmklabs
0
700
Test Engineering - Life of a TE in BBM
kmklabs
0
130
BBM Wallet
kmklabs
0
550
Analytics
kmklabs
0
660
BBM Call Out 101
kmklabs
0
730
Introduction to GRPC
kmklabs
1
710
Other Decks in Education
See All in Education
Visionary Initiative: Materials-Positive Society 「モノの進化をポジティブな社会の原動力に」|Science Tokyo(東京科学大学)
sciencetokyo
PRO
0
780
AI-Based Speaking Assessment of a Short-Term Study Abroad Program
uranoken
0
380
2026年度春学期 統計学 第7回 データの関係を知る(2)ー 回帰と決定係数 (2026. 5. 21)
akiraasano
PRO
0
230
良書紹介08_ 頭のいい子がやっているすごいグラフの読み方
bunnchinn3
0
120
Beyond the Prompt: Programming as a Pathway to Statistical Thinking
minecr
0
280
2026年度春学期 統計学 第4回 データを「分布」で見る (2026. 4. 30)
akiraasano
PRO
0
200
データマネジメント試験対策教材1〜データマネジメント基礎〜
yoshimura_datam
1
510
Human-AI Interaction - Lecture 11 - Next Generation User Interfaces (4018166FNR)
signer
PRO
0
1.1k
[2026前期火5] 論理学(京都大学文学部 前期 第5回)「 ならばの問題演習・proof net・かつの規則」
yatabe
0
370
[2026前期火5] 論理学(京都大学文学部 前期 第3回)「形式言語と四つのキーワード:メタ・構成・意味論・ハーモニー」
yatabe
0
600
View Manipulation and Reduction - Lecture 9 - Information Visualisation (4019538FNR)
signer
PRO
1
2.8k
We部コミュニティスライド2026-04-24
junhat6
0
200
Featured
See All Featured
Making the Leap to Tech Lead
cromwellryan
135
10k
The Cost Of JavaScript in 2023
addyosmani
55
10k
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
230
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
62
45k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
200
Done Done
chrislema
186
16k
How to build a perfect <img>
jonoalderson
1
5.8k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.3k
Reflections from 52 weeks, 52 projects
jeffersonlam
356
21k
Optimising Largest Contentful Paint
csswizardry
37
3.8k
AI: The stuff that nobody shows you
jnunemaker
PRO
9
840
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