Re: syslog_line_prefix

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: syslog_line_prefix
Дата
Msg-id 603c8f070909280446k52459fcco908e49efa0a9c1a2@mail.gmail.com
обсуждение исходный текст
Ответ на Re: syslog_line_prefix  (Magnus Hagander <magnus@hagander.net>)
Список pgsql-hackers
On Mon, Sep 28, 2009 at 6:51 AM, Magnus Hagander <magnus@hagander.net> wrote:
>> I think it's better to spool the log messages to files, and then let
>> the external utility read the files.  The external utility can still
>> fall behind, but even if it does the cluster will continue running.
>
> The difficulty there is to make it "live enough". But I guess if it
> implements the same method as tail -f, it would do that - the only
> issue then would be the fact that this would require much more I/O on
> disk.

The I/O issue is a tricky one.  If that's an issue, then maybe a pipe
or socket is a better fit.  But if the pipe fills up, then the logging
collector needs to begin spooling the messages to disk so that the
whole system doesn't pile up on the external log analyzer.  Figuring
out the right design here is a bit tricky.

...Robert


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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: Rejecting weak passwords
Следующее
От: "Ing. Marcos L. Ortí­z Valmaseda"
Дата:
Сообщение: Re: Rejecting weak passwords