Dab tsi yog streaming replication hauv Postgres?
Dab tsi yog streaming replication hauv Postgres?

Video: Dab tsi yog streaming replication hauv Postgres?

Video: Dab tsi yog streaming replication hauv Postgres?
Video: Leng Yang - Yog Vim Dab Tsi (Official Full Song | Nkauj Tawm Tshiab) 2020/05/24 2024, Hlis ntuj nqeg
Anonim

Los ntawm PostgreSQL wiki

Streaming Replication (SR) muab lub peev xwm los txuas ntxiv nkoj thiab siv WAL XLOG cov ntaub ntawv rau qee tus naj npawb ntawm cov servers nyob rau hauv thiaj li yuav khaws lawv tam sim no. Qhov no feature tau ntxiv rau PostgreSQL 9.0

Yog li ntawd, PostgreSQL replication ua haujlwm li cas?

Thaum koj pib lub rov ua dua , tus txheej txheem wal receiver xa LSN (Log Sequence Number) mus txog thaum WAL cov ntaub ntawv tau rov ua dua ntawm tus qhev, rau tus tswv. Thiab tom qab ntawd tus txheej txheem wal sender ntawm tus tswv xa WAL cov ntaub ntawv kom txog rau thaum LSN zaum kawg pib los ntawm LSN xa los ntawm wal receiver, rau tus qhev.

Kuj Paub, yog dab tsi logical replication? Logical replication yog ib txoj kev rov ua dua cov ntaub ntawv khoom thiab lawv cov kev hloov pauv, raws li lawv rov ua dua tus kheej (feem ntau yog tus yuam sij tseem ceeb). Peb siv lub sij hawm logical sib piv rau lub cev rov ua dua , uas siv cov chaw nyob thaiv qhov tseeb thiab byte-by-byte rov ua dua.

Ib sab saum toj no, PostgreSQL puas txhawb nqa rov ua dua?

Features nyob rau hauv lub Core ntawm PostgreSQL Kub Standby / streaming Replication yog muaj li ntawm PostgreSQL 9.0 thiab muab asynchronous binary rov ua dua rau ib qho lossis ntau dua standbys. Standbys kuj tseem tuaj yeem ua qhov kub standbys txhais tau tias lawv ua tau yuav queried raws li ib tug nyeem nkaus xwb database.

Max_wal_senders yog dab tsi?

max_wal_senders (integer) Qhia txog tus lej siab tshaj plaws ntawm kev sib txuas sib txuas los ntawm cov servers standby lossis streaming hauv paus backup cov neeg siv khoom (piv txwv li, qhov siab tshaj plaws ntawm ib txhij khiav WAL cov txheej txheem xa tawm). Lub neej ntawd yog xoom, lub ntsiab lus replication yog neeg xiam.

Pom zoo: