Lock in $30 Savings on PRO—Offer Ends Soon! ⏳
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
120
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
100
BBM Wallet
kmklabs
0
530
Analytics
kmklabs
0
650
BBM Call Out 101
kmklabs
0
700
Introduction to GRPC
kmklabs
1
670
Other Decks in Education
See All in Education
Introdución ás redes
irocho
0
510
多様なメンター、多様な基準
yasulab
5
19k
AIは若者の成長機会を奪うのか?
frievea
0
130
俺と地方勉強会 - KomeKaigi・地方勉強会への期待 -
pharaohkj
1
1.5k
Node-REDで広がるプログラミング教育の可能性
ueponx
1
210
Web Architectures - Lecture 2 - Web Technologies (1019888BNR)
signer
PRO
0
3.3k
Evaluation Methods - Lecture 6 - Human-Computer Interaction (1023841ANR)
signer
PRO
0
1.2k
核軍備撤廃に向けた次の大きな一歩─核兵器を先には使わないと核保有国が約束すること
hide2kano
0
180
HCI and Interaction Design - Lecture 2 - Human-Computer Interaction (1023841ANR)
signer
PRO
0
1.4k
Introduction - Lecture 1 - Human-Computer Interaction (1023841ANR)
signer
PRO
0
2.7k
くまのココロンともぐらのロジ
frievea
0
120
2025年度伊藤正彦ゼミ紹介
imash
0
140
Featured
See All Featured
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
10
730
Bash Introduction
62gerente
615
210k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.3k
Leading Effective Engineering Teams in the AI Era
addyosmani
8
1.3k
Site-Speed That Sticks
csswizardry
13
1k
Java REST API Framework Comparison - PWX 2021
mraible
34
9k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
5.8k
Being A Developer After 40
akosma
91
590k
Rails Girls Zürich Keynote
gr2m
95
14k
It's Worth the Effort
3n
187
29k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
1.6k
Building Adaptive Systems
keathley
44
2.9k
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