Downgrade "we have hit the ceiling" log.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Mon, 12 Dec 2022 06:20:55 +0000 (15:20 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Mon, 12 Dec 2022 06:20:55 +0000 (15:20 +0900)
Under dynamic process management, when connection request exceeds
num_init_children, pgpool keeps on logging every 2 seconds "we have
hit the ceiling", which is flooding log file. So downgrade the log
level from LOG to DEBUG5.

src/main/pgpool_main.c

index 1fc25bd5f54e347d839dd3d161a136aadc338a74..acfcbd6f9c442f4fcf4c110098e1467af2fa16e8 100644 (file)
@@ -5026,7 +5026,7 @@ service_child_processes(void)
                        new_spawn_no += pool_config->max_spare_children / 4;
                        if (new_spawn_no + current_child_process_count > pool_config->num_init_children)
                        {
-                               ereport(LOG,
+                               ereport(DEBUG5,
                                        (errmsg("we have hit the ceiling, spawning %d child(ren)",
                                                                        pool_config->num_init_children - current_child_process_count)));
                                new_spawn_no = pool_config->num_init_children - current_child_process_count;