[Koha-bugs] [Bug 20630] An attempt at multitenancy with Mojolicious

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jun 20 20:53:38 CEST 2018


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20630

Jerome Charaoui <jcharaoui at cmaisonneuve.qc.ca> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jcharaoui at cmaisonneuve.qc.c
                   |                            |a

--- Comment #3 from Jerome Charaoui <jcharaoui at cmaisonneuve.qc.ca> ---
Created attachment 76218
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=76218&action=edit
bug 20630: Various improvements

Thank you for this patch. I've done some testing with it and it appears to work
great. Compared to Plack, this method is much more efficient and less
memory-hungry when running multiple instances. I'm currently using it to run 20
instances on a VM with 4GB of RAM, and will soon test with 120 instances on the
same host. I'll be sure to report any further issues and results here.

In the mean time, I'd like to share a patch which applies on top of the initial
one, improving it in the following ways:

* Use absolute paths instead of relative paths to allow deployment in the
context of (real-world) package-based installations
* Read a configuration file for the Mojo app
* Provide a systemd service for running the app using the optimized hypnotoad
server
* Provide a catch-all route for general 404 errors
* Add headers to instruct clients to cache static resources

I'm absolutely new to Mojolicious deployments so there might be better ways to
achieve these goals but I thought it would probably be better to share this
than let it soak in my local repository.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list