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
210
Bucardo.pdf
KMKLabs
January 18, 2016
Tweet
Share
More Decks by KMKLabs
See All by KMKLabs
Understanding (a bit of) G1 GC
kmklabs
0
110
WebSocket Authentication on VIDIO.COM
kmklabs
0
1.3k
AudioVisual Assets in Vidio App
kmklabs
0
1.5k
Daily in the life of a TE in Vidio
kmklabs
0
630
Test Engineering - Life of a TE in BBM
kmklabs
0
80
BBM Wallet
kmklabs
0
470
Analytics
kmklabs
0
590
BBM Call Out 101
kmklabs
0
640
Introduction to GRPC
kmklabs
1
610
Other Decks in Education
See All in Education
America and the World
oripsolob
0
500
郷土教育モデル事業(香川県小豆島町).pdf
bandg
0
190
SkimaTalk Introduction for Students
skimatalk
0
380
演習問題
takenawa
0
3.2k
Dashboards - Lecture 11 - Information Visualisation (4019538FNR)
signer
PRO
1
2k
SkimaTalk Tutorial for Corporate Customers
skimatalk
0
280
探究的な学び:Monaca Educationで学ぶプログラミングとちょっとした課題解決
asial_edu
0
380
Avoin jakaminen ja Creative Commons -lisenssit
matleenalaakso
0
1.9k
第1回大学院理工学系説明会|東京科学大学(Science Tokyo)
sciencetokyo
PRO
0
3.7k
Course Review - Lecture 12 - Next Generation User Interfaces (4018166FNR)
signer
PRO
0
1.7k
Constructing a Custom TeX Ecosystem for Educational Institutions—Beyond Academic Typesetting
doratex
1
7.6k
Padlet opetuksessa
matleenalaakso
4
14k
Featured
See All Featured
How to Think Like a Performance Engineer
csswizardry
24
1.7k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
45
7.3k
Balancing Empowerment & Direction
lara
1
290
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
31
1.2k
Why You Should Never Use an ORM
jnunemaker
PRO
56
9.4k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
248
1.3M
How GitHub (no longer) Works
holman
314
140k
The Invisible Side of Design
smashingmag
299
51k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
16
920
Typedesign – Prime Four
hannesfritz
42
2.7k
Statistics for Hackers
jakevdp
799
220k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
130
19k
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