diff options
| author | Fujii Masao <fujii@postgresql.org> | 2015-02-23 20:55:17 +0900 |
|---|---|---|
| committer | Fujii Masao <fujii@postgresql.org> | 2015-02-23 20:55:17 +0900 |
| commit | 5d2b45e3f78a85639f30431181c06d4c3221c5a1 (patch) | |
| tree | 845775ab6e3021da1a16b7a552d9e6989f6061a0 /doc/src | |
| parent | 2a3f6e368babdac7b586a7d43105af60fc08b1a3 (diff) | |
Add GUC to control the time to wait before retrieving WAL after failed attempt.
Previously when the standby server failed to retrieve WAL files from any sources
(i.e., streaming replication, local pg_xlog directory or WAL archive), it always
waited for five seconds (hard-coded) before the next attempt. For example,
this is problematic in warm-standby because restore_command can fail
every five seconds even while new WAL file is expected to be unavailable for
a long time and flood the log files with its error messages.
This commit adds new parameter, wal_retrieve_retry_interval, to control that
wait time.
Alexey Vasiliev and Michael Paquier, reviewed by Andres Freund and me.
Diffstat (limited to 'doc/src')
| -rw-r--r-- | doc/src/sgml/config.sgml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/src/sgml/config.sgml b/doc/src/sgml/config.sgml index 6bcb106518e..a3917aac785 100644 --- a/doc/src/sgml/config.sgml +++ b/doc/src/sgml/config.sgml @@ -2985,6 +2985,24 @@ include_dir 'conf.d' </listitem> </varlistentry> + <varlistentry id="guc-wal-retrieve-retry-interval" xreflabel="wal_retrieve_retry_interval"> + <term><varname>wal_retrieve_retry_interval</varname> (<type>integer</type>) + <indexterm> + <primary><varname>wal_retrieve_retry_interval</> configuration parameter</primary> + </indexterm> + </term> + <listitem> + <para> + Specify how long the standby server should wait when WAL data is not + available from any sources (streaming replication, + local <filename>pg_xlog</> or WAL archive) before retrying to + retrieve WAL data. This parameter can only be set in the + <filename>postgresql.conf</> file or on the server command line. + The default value is 5 seconds. Units are milliseconds if not specified. + </para> + </listitem> + </varlistentry> + </variablelist> </sect2> </sect1> |
