PostgreSQL參數(shù)—wal_sender_timeout
PostgreSQL參數(shù)—wal_sender_timeout
參數(shù)說明
postgres=# show wal_sender_timeout;
wal_sender_timeout
--------------------
1min
(1 row)
postgres=# \x
Expanded display is on.
postgres=# select * from pg_settings where name = 'wal_sender_timeout';
-[ RECORD 1 ]---+---------------------------------------------------
name | wal_sender_timeout
setting | 60000
unit | ms
category | Replication / Sending Servers
short_desc | Sets the maximum time to wait for WAL replication.
extra_desc |
context | user
vartype | integer
source | default
min_val | 0
max_val | 2147483647
enumvals |
boot_val | 60000
reset_val | 60000
sourcefile |
sourceline |
pending_restart | f
postgres=#
| 參數(shù)名 | wal_sender_timeout |
|---|---|
| 當(dāng)前設(shè)置值 | 60000 |
| 默認值 | 60000 |
| 單位 | 豪秒(ms) |
| 參數(shù)類別 | 復(fù)制/發(fā)送服務(wù)器 |
| 參數(shù)描述 | 設(shè)置等待WAL復(fù)制的最長時間 |
| context | user |
| 數(shù)據(jù)類型 | integer |
| 取值范圍 | 0 ~~ 2147483647 |
參數(shù)設(shè)置
postgres=# set wal_sender_timeout = 120000;
SET
postgres=# show wal_sender_timeout;
wal_sender_timeout
--------------------
2min
(1 row)
postgres=#
參數(shù)含義
本參數(shù)指定處于inactive狀態(tài)多長時間之后,終止掉復(fù)制連接。
較小的本參數(shù)值有助于快速的連接故障檢測;
較高的本參數(shù)值有助于判斷standby server的健康狀況。
「喜歡這篇文章,您的關(guān)注和贊賞是給作者最好的鼓勵」
關(guān)注作者
【版權(quán)聲明】本文為墨天輪用戶原創(chuàng)內(nèi)容,轉(zhuǎn)載時必須標(biāo)注文章的來源(墨天輪),文章鏈接,文章作者等基本信息,否則作者和墨天輪有權(quán)追究責(zé)任。如果您發(fā)現(xiàn)墨天輪中有涉嫌抄襲或者侵權(quán)的內(nèi)容,歡迎發(fā)送郵件至:contact@modb.pro進行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,墨天輪將立刻刪除相關(guān)內(nèi)容。




