Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

2.1 Explanation

Drawio
mVer2
zoom1
simple0
zoominComment10
inCommentcustContentId03679945223
pageId3673391206
custContentIdlbox36799452231
diagramDisplayNamecsd-streaming-customer-v1
lbox1
contentVer4
revision4
baseUrlhttps://dbvisit.atlassian.net/wiki
diagramNamecsd-streaming-customer-v1
pCenter0
width1021
links
tbstyle
height1334.23

...

  1. The method used for creating the DR cluster (WAL Streaming)

  2. The replication user that is used for streaming connection to the primary cluster. By default, the Postgres user is used. It is recommended to use a different user for establishing this connection. Sample user creation SQL used. SUPERUSER role needed here because only SUPERUSER can retrieve the for the user because retrieving streaming sync status between primary database and standby database requires SUPERUSER access. Sample user creation SQL used

Code Block
create user repuser replication login encrypted password 'xxxxxx';
alter ROLE repuser SUPERUSER;

...

Below is a detailed explanation of how the DR cluster is created in the background.

Drawio
mVer2
zoom1
simple0
zoominComment10
inCommentcustContentId03679846991
pageId3673391206
custContentIdlbox36798469911
diagramDisplayNamecsd-archive-customer-v1.drawio
lbox1
contentVer3
revision3
baseUrlhttps://dbvisit.atlassian.net/wiki
diagramNamecsd-archive-customer-v1.drawio
pCenter0
width1038.4999999999998
links
tbstyle
height877.1199999999999

...

This method of creating the standby is specific to Dbvisit. The wal files from the primary are copied to standby at regular intervals and applied on the standby.

Drawio
mVer2
zoom1
simple0
zoominComment10
inCommentcustContentId03679880259
pageId3673391206
custContentIdlbox36798802591
diagramDisplayNamecsd-logshipping-customer-v1.drawiolbox1
contentVer3
revision3
baseUrlhttps://dbvisit.atlassian.net/wiki
diagramNamecsd-logshipping-customer-v1.drawio
pCenter0
width1038.5
links
tbstyle
height1107.12

...