LP#1729610: make it possible to set max_backlog_queue in opensrf.xml
authorGalen Charlton <gmc@equinoxinitiative.org>
Tue, 6 Nov 2018 20:14:55 +0000 (15:14 -0500)
committerMike Rylander <mrylander@gmail.com>
Fri, 4 Jan 2019 19:06:37 +0000 (14:06 -0500)
This patch adds a new service configuration option, max_backlog_queue,
to allow controlling the size of the backlog queue.

If not otherwise specified in opensrf.xml, max_backlog_queue defaults
to 1000.

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
examples/opensrf.xml.example
src/perl/lib/OpenSRF/System.pm

index 2e52c7a..7157787 100644 (file)
@@ -198,6 +198,7 @@ vim:et:ts=2:sw=2:
           <max_children>5</max_children>
           <min_spare_children>1</min_spare_children>
           <max_spare_children>2</max_spare_children>
+          <max_backlog_queue>10</max_backlog_queue>
         </unix_config>
       </opensrf.slooooooow>
 
index c9534dc..ece232f 100644 (file)
@@ -113,6 +113,7 @@ sub run_service {
         min_children =>  $getval->(unix_config => 'min_children') || 1,
         min_spare_children =>  $getval->(unix_config => 'min_spare_children'),
         max_spare_children =>  $getval->(unix_config => 'max_spare_children'),
+        max_backlog_queue =>  $getval->(unix_config => 'max_backlog_queue'),
         stderr_log_path => $stderr_path
     );