Bugzilla – Attachment 68814 Details for
Bug 17610
[16.11.x] Allow the number of plack workers and max connections to be set in koha-conf.xml
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17610 - (16.11.x) Allow the number of plack workers and max connections to be set in koha-conf.xml
Bug-17610---Allow-the-number-of-plack-workers-and-.patch (text/plain), 2.26 KB, created by
Josef Moravec
on 2017-10-29 21:36:20 UTC
(
hide
)
Description:
Bug 17610 - (16.11.x) Allow the number of plack workers and max connections to be set in koha-conf.xml
Filename:
MIME Type:
Creator:
Josef Moravec
Created:
2017-10-29 21:36:20 UTC
Size:
2.26 KB
patch
obsolete
>From 4861bf495956b7509eac37d42497b32b2e227ba2 Mon Sep 17 00:00:00 2001 >From: Pongtawat C <pongtawat@punsarn.asia> >Date: Wed, 28 Jun 2017 17:58:24 +0700 >Subject: [PATCH] Bug 17610 - Allow the number of plack workers and max > connections to be set in koha-conf.xml > >Signed-off-by: Josef Moravec <josef.moravec@gmail.com> >--- > debian/scripts/koha-plack | 7 ++++++- > debian/templates/koha-conf-site.xml.in | 4 ++++ > etc/koha-conf.xml | 4 ++++ > 3 files changed, 14 insertions(+), 1 deletion(-) > >diff --git a/debian/scripts/koha-plack b/debian/scripts/koha-plack >index 5d2799a..5e1fc9c 100755 >--- a/debian/scripts/koha-plack >+++ b/debian/scripts/koha-plack >@@ -74,7 +74,12 @@ start_plack() > > _check_and_fix_perms $instancename > >- STARMANOPTS="-M FindBin --max-requests 50 --workers 2 \ >+ PLACK_MAX_REQUESTS=$(run_safe_xmlstarlet $instancename plack_max_requests) >+ [ -z $PLACK_MAX_REQUESTS ] && PLACK_MAX_REQUESTS="50" >+ PLACK_WORKERS=$(run_safe_xmlstarlet $instancename plack_workers) >+ [ -z $PLACK_WORKERS ] && PLACK_WORKERS="2" >+ >+ STARMANOPTS="-M FindBin --max-requests ${PLACK_MAX_REQUESTS} --workers ${PLACK_WORKERS} \ > --user=${instancename}-koha --group ${instancename}-koha \ > --pid ${PIDFILE} \ > --daemonize \ >diff --git a/debian/templates/koha-conf-site.xml.in b/debian/templates/koha-conf-site.xml.in >index 7ba39f3..9b9af44 100644 >--- a/debian/templates/koha-conf-site.xml.in >+++ b/debian/templates/koha-conf-site.xml.in >@@ -315,6 +315,10 @@ __END_SRU_PUBLICSERVER__ > <font type="HBO">/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-BoldOblique.ttf</font> > </ttf> > >+ <!-- Configuration for Plack --> >+ <plack_max_requests>50</plack_max_requests> >+ <plack_workers>2</plack_workers> >+ > <elasticsearch> > <server>localhost:9200</server> > <index_name>koha___KOHASITE__</index_name> >diff --git a/etc/koha-conf.xml b/etc/koha-conf.xml >index a30eb35..d2d9119 100644 >--- a/etc/koha-conf.xml >+++ b/etc/koha-conf.xml >@@ -142,5 +142,9 @@ __PAZPAR2_TOGGLE_XML_POST__ > <font type="HBO">__FONT_DIR__/DejaVuSans-BoldOblique.ttf</font> > </ttf> > >+ <!-- Configuration for Plack --> >+ <plack_max_requests>50</plack_max_requests> >+ <plack_workers>2</plack_workers> >+ > </config> > </yazgfs> >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 17610
:
57437
|
57438
|
57439
|
57490
|
59377
|
59680
|
64699
| 68814