[pgpool-general: 5892] Re: Pgpool-3.7.1 segmentation fault
philip at adaptly.com
Thu Jan 25 01:49:33 JST 2018
> Do you have an issue with "indexed health checks"? I thought it was
> fixed in 3.7.1.
I was working through debugging my problem, my debug logs were full of
health checks reports. I was experimenting with controlling each one
individually. I can confidently report that health_check_period and
health_check_periodN work quite well. :)
> I've also added an extra pre-start step, which removes the
> > pgpool_status file.
> That might be a solution but I would like to add a guard to Pgpool-II
> against the segfault. The segfault occurs when conditions below are
> all met:
> 1) fail_over_on_backend_error is off.
> 2) ALWAYS_MASTER flags is set to the master (writer) node.
> Attached patch implements the guard against the segfault. Developers
> will start a discussion regarding the patch in pgpool-hackers.
That sounds like a good idea. You might also consider doing the same for
the socket files.
I ran into issues with lingering sockets. I'm on an ubuntu system, running
upstart. At some point, I ran stop pgpool. I tried start pgpool a few
minutes later. I found that it could not start, because the socket files
had not been removed during shutdown and pgpool would not remove them
during startup. My init script removes the socket files from the run
directory and the state file from the log directory.
I also think it would be great if pgpool exposed the number of zero,
non-zero, and exits due to signals the children generated. Parsing the log
for that will be a bit cumbersome.
Thanks for the great work! :)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the pgpool-general