Re: WAL Rate Limiting

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Re: WAL Rate Limiting
Дата
Msg-id CA+U5nMJo-m8SakCuYtE+OMgBJZLwJdh66wCkLPaoOTjCvmi=XA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: WAL Rate Limiting  (Greg Stark <stark@mit.edu>)
Ответы Re: WAL Rate Limiting  (Greg Stark <stark@mit.edu>)
Re: WAL Rate Limiting  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
On 19 February 2014 13:28, Greg Stark <stark@mit.edu> wrote:
> On Mon, Jan 20, 2014 at 5:37 PM, Simon Riggs <simon@2ndquadrant.com> wrote:
>
>> Agreed; that was the original plan, but implementation delays
>> prevented the whole vision/discussion/implementation. Requirements
>> from various areas include WAL rate limiting for replication, I/O rate
>> limiting, hard CPU and I/O limits for security and mixed workload
>> coexistence.
>>
>> I'd still like to get something on this in 9.4 that alleviates the
>> replication issues, leaving wider changes for later releases.
>
> My first reaction was that we should just have a generic I/O resource
> throttling. I was only convinced this was a reasonable idea by the
> replication use case. It would help me to understand the specific
> situations where replication breaks down due to WAL bandwidth
> starvation.

The various bulk operations mentioned in the OP can dump GBs of data
into WAL. That causes replication to immediately fall behind, which
slows everything down if you are using synchronous replication. This
has been discussed before on list over last few years (and Heroku
staff have been involved in that, fyi).

General I/O limiting is a nice-to-have but what is suggested here is
an essential aspect of running bulk commands when using replication,
especially synchronous replication.

The use cases for I/O limiting and replication limiting are different
in both their effects and their criticality.

The design choice of making the limit only apply to bulk ops is
because that is where the main problem lies. Rate limiting will cause
a loss of performance in the main line for non-bulk operations, so
adding tests there will not be valuable.

-- Simon Riggs                   http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training & Services



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Greg Stark
Дата:
Сообщение: Re: WAL Rate Limiting
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Selecting large tables gets killed