Postgres-BDR with Google Cloud Platform

AWS/Google Cloud Solution Architect, Linux System Administrator, PostgreSQL DBA
Oct. 18, 2016
Postgres-BDR with Google Cloud Platform
Postgres-BDR with Google Cloud Platform
Postgres-BDR with Google Cloud Platform
Postgres-BDR with Google Cloud Platform
Postgres-BDR with Google Cloud Platform
Postgres-BDR with Google Cloud Platform
Postgres-BDR with Google Cloud Platform
Postgres-BDR with Google Cloud Platform
Postgres-BDR with Google Cloud Platform
Postgres-BDR with Google Cloud Platform
Postgres-BDR with Google Cloud Platform
Postgres-BDR with Google Cloud Platform
Postgres-BDR with Google Cloud Platform
Postgres-BDR with Google Cloud Platform
Postgres-BDR with Google Cloud Platform
Postgres-BDR with Google Cloud Platform
Postgres-BDR with Google Cloud Platform
Postgres-BDR with Google Cloud Platform
Postgres-BDR with Google Cloud Platform
Postgres-BDR with Google Cloud Platform
Postgres-BDR with Google Cloud Platform
Postgres-BDR with Google Cloud Platform
Postgres-BDR with Google Cloud Platform
Postgres-BDR with Google Cloud Platform
Postgres-BDR with Google Cloud Platform
Postgres-BDR with Google Cloud Platform
Postgres-BDR with Google Cloud Platform
Postgres-BDR with Google Cloud Platform
Postgres-BDR with Google Cloud Platform
Postgres-BDR with Google Cloud Platform
Postgres-BDR with Google Cloud Platform
Postgres-BDR with Google Cloud Platform
Postgres-BDR with Google Cloud Platform
Postgres-BDR with Google Cloud Platform
Postgres-BDR with Google Cloud Platform
Postgres-BDR with Google Cloud Platform
Postgres-BDR with Google Cloud Platform
Postgres-BDR with Google Cloud Platform
Postgres-BDR with Google Cloud Platform
Postgres-BDR with Google Cloud Platform
Postgres-BDR with Google Cloud Platform
Postgres-BDR with Google Cloud Platform
Postgres-BDR with Google Cloud Platform
Postgres-BDR with Google Cloud Platform
Postgres-BDR with Google Cloud Platform
Postgres-BDR with Google Cloud Platform
Postgres-BDR with Google Cloud Platform
Postgres-BDR with Google Cloud Platform
Postgres-BDR with Google Cloud Platform
Postgres-BDR with Google Cloud Platform
1 of 50

More Related Content

What's hot

SCALE 15x Minimizing PostgreSQL Major Version Upgrade DowntimeSCALE 15x Minimizing PostgreSQL Major Version Upgrade Downtime
SCALE 15x Minimizing PostgreSQL Major Version Upgrade DowntimeJeff Frost
Oracle cluster  installation with grid and iscsiOracle cluster  installation with grid and iscsi
Oracle cluster installation with grid and iscsiChanaka Lasantha
Advanced ReplicationAdvanced Replication
Advanced ReplicationMongoDB
Ac cuda c_2Ac cuda c_2
Ac cuda c_2Josh Wyatt
Managing PostgreSQL with Ansible - FOSDEM PGDay 2016Managing PostgreSQL with Ansible - FOSDEM PGDay 2016
Managing PostgreSQL with Ansible - FOSDEM PGDay 2016Gulcin Yildirim Jelinek
MySQL Audit using Percona audit plugin and ELKMySQL Audit using Percona audit plugin and ELK
MySQL Audit using Percona audit plugin and ELKI Goo Lee

Viewers also liked

Pgday bdr 천정대Pgday bdr 천정대
Pgday bdr 천정대PgDay.Seoul
PGDay.Seoul 2016 lightingtalkPGDay.Seoul 2016 lightingtalk
PGDay.Seoul 2016 lightingtalkhyeongchae lee
PostgreSQL 9.6 새 기능 소개PostgreSQL 9.6 새 기능 소개
PostgreSQL 9.6 새 기능 소개PgDay.Seoul
PostgreSQL 공간관리 살펴보기 이근오PostgreSQL 공간관리 살펴보기 이근오
PostgreSQL 공간관리 살펴보기 이근오PgDay.Seoul
Lg Cns System Management Improvement(Summary)Lg Cns System Management Improvement(Summary)
Lg Cns System Management Improvement(Summary)xpert13
[2015 Oracle Cloud Summit] 8. Finance Cloud -업무역할별 Dashboard를 통한 재무 통찰력 강화[2015 Oracle Cloud Summit] 8. Finance Cloud -업무역할별 Dashboard를 통한 재무 통찰력 강화
[2015 Oracle Cloud Summit] 8. Finance Cloud -업무역할별 Dashboard를 통한 재무 통찰력 강화Oracle Korea

Viewers also liked(20)

Similar to Postgres-BDR with Google Cloud Platform

Oracle on AWS RDS Migration - 성기명Oracle on AWS RDS Migration - 성기명
Oracle on AWS RDS Migration - 성기명AWSKRUG - AWS한국사용자모임
Replication using PostgreSQL ReplicatorReplication using PostgreSQL Replicator
Replication using PostgreSQL ReplicatorCommand Prompt., Inc
Oracle to Postgres Migration - part 2Oracle to Postgres Migration - part 2
Oracle to Postgres Migration - part 2PgTraining
Deep dive into the Rds PostgreSQL Universe Austin 2017Deep dive into the Rds PostgreSQL Universe Austin 2017
Deep dive into the Rds PostgreSQL Universe Austin 2017Grant McAlister
What’s new in 9.6, by PostgreSQL contributorWhat’s new in 9.6, by PostgreSQL contributor
What’s new in 9.6, by PostgreSQL contributorMasahiko Sawada
Stacki - The1600+ Server JourneyStacki - The1600+ Server Journey
Stacki - The1600+ Server JourneySalesforce Engineering

Recently uploaded

Semantic Search_ NLP_ ML.pdfSemantic Search_ NLP_ ML.pdf
Semantic Search_ NLP_ ML.pdfPlamenaDzharadat
El camino hacia el éxito con las bases de datos de grafos, la ciencia de dato...El camino hacia el éxito con las bases de datos de grafos, la ciencia de dato...
El camino hacia el éxito con las bases de datos de grafos, la ciencia de dato...Neo4j
GemStone Update 2023GemStone Update 2023
GemStone Update 2023ESUG
advanced java.pdfadvanced java.pdf
advanced java.pdfAli Bozkurt
RoHubRoHub
RoHubSebastian Luna-Valero
Exploring GitHub Actions through EGAD: An Experience ReportExploring GitHub Actions through EGAD: An Experience Report
Exploring GitHub Actions through EGAD: An Experience ReportESUG

Postgres-BDR with Google Cloud Platform

Editor's Notes

  1. 구글은 하나의 네트워크로 구성되어 있어 BDR을 테스트하고 사용함에 있어 최적의 조건을 가지고 있다.
  2. # 모든 서버 요청에 대해서 받을수 있게 설정 listen_addresses = '*' # BDR 이 매개 변수는 쉼표로 구분 된 값 중 하나 BDR을 포함한다.매개 변수는 서버 기동시 변경 될 수 있습니다. shared_preload_libraries = 'bdr' # BDR 둘다 이 변수는 logical 을 세팅해야 함 wal_level = 'logical' # BDR을 사용하기 위해서는 이 변수가 true 세팅 되어야 하며, UDR을 사용할 경우 false, 문서와 실제 파일이 안 맞음 on 으로 세팅 track_commit_timestamp = on max_connections = 100 # 접속가능한 슬레이브의 접속수를 설정( 슬레이브 수 + 2)인거 같은데.. backup용 확실치 않음 max_wal_senders = 10 # 노드 + 1 max_replication_slots = 10 # BDR 구성 데이터베이스 당 하나의 작업자 및 연결 당 하나의 작업자을 가지고 충분히 큰 값으로 설정해야합니다. max_worker_processes = 10
  3. bdr-asia-1 서버 생성 bdr-asia-2 서버를 bdr-asia-1 로 join bdr-us-1 서버를 bdr-asia-1 로 join bdr-us-2 서버를 bdr-us-1 로 join bdr-eu-1 서버를 bdr-us-1 로 join bdr-eu-2 서버를 bdr-eu-1 로 join
  4. bdr-asia-1 서버 생성 bdr-asia-2 서버를 bdr-asia-1 로 join bdr-us-1 서버를 bdr-asia-1 로 join bdr-us-2 서버를 bdr-us-1 로 join bdr-eu-1 서버를 bdr-us-1 로 join bdr-eu-2 서버를 bdr-eu-1 로 join
  5. max_wal_senders : 접속가능한 슬레이브의 접속수를 설정( 슬레이브 수 + 2) For BDR this needs to be set big enough so that every connection to this node has a free wal sender process. max_replication_slots : 노드 + 1 For BDR this needs to be set big enough so that every connection to this node has a free replication slot. max_worker_processes : 충분히 큰 값으로 설정 For BDR this has to be set to a big enough value to have one worker per configured database, and one worker per connection.