[pgpool-hackers: 4095] Re: Proposal: enable parameters related to logging_collector of RPM packages by default

Bo Peng pengbo at sraoss.co.jp
Thu Jan 13 15:52:30 JST 2022


Hi Ishii-san,

On Thu, 13 Jan 2022 15:47:46 +0900 (JST)
Tatsuo Ishii <ishii at sraoss.co.jp> wrote:

> >> How does pgpool currently set logging for RPM? syslog?
> > 
> > Currently Pgpool-II RPMs use the default setting:
> > 
> >   #log_destination = 'stderr'
> >   #logging_collector = off
> 
> But RPM users need to do more. From the Pgpool-II doc, it seems
> following settings are needed to make it workable.
> 
> log_destination = 'stderr'
> logging_collector = on
> log_directory = '/var/log/pgpool_log'
> log_filename = 'pgpool-%Y-%m-%d_%H%M%S.log'
> log_truncate_on_rotation = on
> log_rotation_age = 1d
> log_rotation_size = 10MB
> 
> If so why do you enable only logging_collector?
> Don't you need to set other log_* parameter as well?

Yes.
We also need to set other parameters below:

  log_destination = 'stderr'
  logging_collector = on
  log_directory = '/var/log/pgpool_log'
  log_filename = 'postgresql-%a.log'
  log_rotation_age = 1d
  log_rotation_size = 0
  log_truncate_on_rotation = on

> Best reagards,
> --
> Tatsuo Ishii
> SRA OSS, Inc. Japan
> English: http://www.sraoss.co.jp/index_en.php
> Japanese:http://www.sraoss.co.jp


-- 
Bo Peng <pengbo at sraoss.co.jp>
SRA OSS, Inc. Japan
http://www.sraoss.co.jp/


More information about the pgpool-hackers mailing list