Implement new feature not to accept incoming connections.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Tue, 4 Dec 2018 07:20:48 +0000 (16:20 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Tue, 4 Dec 2018 07:20:48 +0000 (16:20 +0900)
commit693a6284cf2dfc2e60d5a2489c9ee5167defc3dc
tree921ca6a5ea5241a4cf669d71ea9c4c7b6aee7be1
parent169f7c3648be2768887af9e09e94aca1dfe0981b
Implement new feature not to accept incoming connections.

Currently Pgpool-II accepts up to num_init_children frontends and
queues up more connection requests until one of child process becomes
free. This mostly works well, but if each session take long time, the
queue grows long and the whole system does not work smoothly.

To overcome the problem, I propose a new way to deal with many
connection requests from frontend: just complain and refuses to
connect to Pgpool-II if number of num_init_children is already filled
up. This is exactly the same behavior as PostgreSQL.

Discussion: https://www.pgpool.net/pipermail/pgpool-hackers/2018-November/003153.html

Patch by Tatsuo Ishii.
doc.ja/src/sgml/connection-settings.sgml
doc/src/sgml/connection-settings.sgml
src/config/pool_config_variables.c
src/include/pool_config.h
src/protocol/child.c
src/sample/pgpool.conf.sample
src/sample/pgpool.conf.sample-logical
src/sample/pgpool.conf.sample-master-slave
src/sample/pgpool.conf.sample-replication
src/sample/pgpool.conf.sample-stream
src/utils/pool_process_reporting.c