mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
Allow BASE_BACKUP to be throttled
A new MAX_RATE option allows imposing a limit to the network transfer rate from the server side. This is useful to limit the stress that taking a base backup has on the server. pg_basebackup is now able to specify a value to the server, too. Author: Antonin Houska Patch reviewed by Stefan Radomski, Andres Freund, Zoltán Böszörményi, Fujii Masao, and Álvaro Herrera.
This commit is contained in:
@@ -188,6 +188,27 @@ PostgreSQL documentation
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-r <replaceable class="parameter">rate</replaceable></option></term>
|
||||
<term><option>--max-rate=<replaceable class="parameter">rate</replaceable></option></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The maximum transfer rate of data transferred from the server. Values are
|
||||
in kilobytes per second. Use a suffix of <literal>M</> to indicate megabytes
|
||||
per second. A suffix of <literal>k</> is also accepted, and has no effect.
|
||||
Valid values are between 32 kilobytes per second and 1024 megabytes per second.
|
||||
</para>
|
||||
<para>
|
||||
The purpose is to limit the impact of <application>pg_basebackup</application>
|
||||
on the running server.
|
||||
</para>
|
||||
<para>
|
||||
This option always affects transfer of the data directory. Transfer of
|
||||
WAL files is only affected if the collection method is <literal>fetch</literal>.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-R</option></term>
|
||||
<term><option>--write-recovery-conf</option></term>
|
||||
|
Reference in New Issue
Block a user