[Koha-devel] /usr/share/koha/api/v1/app.pl slow to startup

dcook at prosentient.com.au dcook at prosentient.com.au
Thu Mar 25 04:56:13 CET 2021


Hi all,

 

Does anyone else notice that /usr/share/koha/api/v1/app.pl is slow to
startup, especially when starting up many instances (for example when
installing/upgrading koha-common)? 

 

I already have a bug open to improve the koha-upgrade-schema performance
(https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26596) for
package install/upgrade. However with /usr/share/koha/api/v1/app.pl (and
thus "/usr/share/koha/lib/Koha/REST/V1.pm") it seems trickier. 

 

Using --preload-app with Starman might be helpful as it might reduce the
load (by preloading the app into the master process before forking).
However, I think a lot of the work is done by the API startup when it's
merging and validating the API schema. I'm not sure there's really any way
around that. Maybe there are efficiencies to be gained but would need to do
some profiling.

 

Anyway, I suppose I'm just mostly interested to see if other people are also
finding it painfully slow, especially for larger scale installations.

 

David Cook

Software Engineer

Prosentient Systems

Suite 7.03

6a Glen St

Milsons Point NSW 2061

Australia

 

Office: 02 9212 0899

Online: 02 8005 0595

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20210325/bf445d4a/attachment.htm>


More information about the Koha-devel mailing list