[Koha-devel] Plack only

Jonathan Druart jonathan.druart at bugs.koha-community.org
Thu Feb 8 14:30:32 CET 2018


David,

I cannot imagine Koha without Plack, it must be so slow... unless you run
very old versions.
The wiki page is there since years and the psgi in our codebase as well
(the one outside the debian directory). Did you only try once to read the
wiki page, modify the apache config and run starman or plackup with the
psgi file?
Before the debian package was ready for Plack, I was doing that (since at
least 2014).

You really should compare the performance with and without Plack...

Jonathan

On Wed, 7 Feb 2018 at 21:10 David Cook <dcook at prosentient.com.au> wrote:

> +1 Julian
>
> I've been avoiding Plack because we don't use Debian, but at some point
> I'll have to use it, and it would be great if it was community supported
> beyond just Debian. I'm happy to help test things, so long as I can have
> some guidance on what to do.
>
> (I'd love for the multi-tenant management tools to be de-debianized as
> well, but totally recognize that money/time is an obstacle. It's something
> I'd like to look at more in the future myself, but occupied with non-Koha
> projects at the moment...)
>
> David Cook
> Systems Librarian
> Prosentient Systems
> 72/330 Wattle St
> Ultimo, NSW 2007
> Australia
>
> Office: 02 9212 0899 <02%2092%2012%2008%2099>
> Direct: 02 8005 0595 <02%2080%2005%2005%2095>
>
>
> -----Original Message-----
> From: koha-devel-bounces at lists.koha-community.org [mailto:
> koha-devel-bounces at lists.koha-community.org] On Behalf Of Julian Maurice
> Sent: Thursday, 8 February 2018 3:50 AM
> To: Tomas Cohen Arazi <tomascohen at gmail.com>
> Cc: koha-devel at lists.koha-community.org
> Subject: Re: [Koha-devel] Plack only
>
> Are they really in sync ? They look very different (I cannot use the rest
> api with misc/plack/koha.psgi for instance).
>
> IMO a good starting point would be to move debian/templates/plack.psgi
> outside of debian/ and make it the .psgi reference file for all types of
> install (and remove misc/plack in the process).
> Any thoughts ?
>
> Le 07/02/2018 à 13:37, Tomas Cohen Arazi a écrit :
> > Good point, Julian. You are right.
> >
> > Basically, we ship misc/plack/* which we keep in sync with
> > debian/templates/plack.psgi.
> >
> > I would love to spend some time de-debianizing hte multi-tenant
> > management tools, but its been hard to find sponsorship or time for it.
> > Most people are comfortable with Debian it seems.
> >
> > Regards
> >
> > El mié., 7 feb. 2018 a las 9:26, Julian Maurice
> > (<julian.maurice at biblibre.com <mailto:julian.maurice at biblibre.com>>)
> > escribió:
> >
> >     What about people that do not use Debian ? It seems that there is no
> >     "standard" way to use Plack outside of the Debian world, and it looks
> >     like 90% of https://wiki.koha-community.org/wiki/Plack is outdated.
> >     If we abandon CGI support, I think we should first provide a clear
> setup
> >     documentation. I would happily rewrite the wiki page, but I'm not
> sure
> >     of what to write (how to setup Plack on dev install for instance, or
> >     'standard' install without debian packages).
> >     Or maybe I'm missing some important up-to-date documentation about
> >     Plack ?
> >
> >     (somewhat) related bug:
> >     https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18377
> >
> >     Le 06/02/2018 à 19:50, Tomas Cohen Arazi a écrit :
> >     > For running in Plack-mode, people needs to:
> >     >
> >     > sudo koha-plack --enable <instance>
> >     > sudo koha-plack --start <instance>
> >     > sudo systemctl restart apache2
> >     >
> >     > after creating the <instance>.
> >     >
> >     > What I meant is that we should have people avoid the need for those
> >     > commands. And people with specific needs that require non-Plack
> setups
> >     > can do it.
> >     >
> >     > I started thinking of this in the context of bug 20134 [1] BUT
> also in
> >     > the context of bugs 18315 [2] and 7174 [3].
> >     >
> >     > Both of the latter bugs propose interesting ways of refactoring
> >     > authentication, and I'm sure abandoning CGI-mode could help
> >     simplify the
> >     > process.
> >     >
> >     > [1]
> https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20134
> >     > [2]
> https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18315
> >     > [3] https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7174
> >     >
> >     > El mar., 6 feb. 2018 a las 11:00, Julian Maurice
> >     > (<julian.maurice at biblibre.com <mailto:julian.maurice at biblibre.com>
> >     <mailto:julian.maurice at biblibre.com
> >     <mailto:julian.maurice at biblibre.com>>>)
> >     > escribió:
> >     >
> >     >     What does that mean to "make Plack the default" exactly ?
> >     >
> >     >     Le 06/02/2018 à 14:31, Tomas Cohen Arazi a écrit :
> >     >     > I would like to know if you think there's any reason to keep
> >     the CGI
> >     >     > mode as default in Koha deployments. I think we should make
> >     Plack the
> >     >     > default. There are some issues, tough.
> >     >     >
> >     >     > But if we set that goal, we could focus on fixing them.
> >     >     >
> >     >     > What do you think?
> >     >     > --
> >     >     > Tomás Cohen Arazi
> >     >     > Theke Solutions (https://theke.io <http://theke.io/>)
> >     >     > ✆ +54 9351 3513384 <+54%209%20351%20351-3384>
> <tel:+54%209%20351%20351-3384>
> >     <tel:+54%209%20351%20351-3384>
> >     >     > GPG: B2F3C15F
> >     >     >
> >     >     >
> >     >     > _______________________________________________
> >     >     > Koha-devel mailing list
> >     >     > Koha-devel at lists.koha-community.org
> >     <mailto:Koha-devel at lists.koha-community.org>
> >     >     <mailto:Koha-devel at lists.koha-community.org
> >     <mailto:Koha-devel at lists.koha-community.org>>
> >     >     >
> >     http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
> >     >     > website : http://www.koha-community.org/
> >     >     > git : http://git.koha-community.org/
> >     >     > bugs : http://bugs.koha-community.org/
> >     >     >
> >     >
> >     >     --
> >     >     Julian Maurice <julian.maurice at biblibre.com
> >     <mailto:julian.maurice at biblibre.com>
> >     >     <mailto:julian.maurice at biblibre.com
> >     <mailto:julian.maurice at biblibre.com>>>
> >     >     BibLibre
> >     >     _______________________________________________
> >     >     Koha-devel mailing list
> >     >     Koha-devel at lists.koha-community.org
> >     <mailto:Koha-devel at lists.koha-community.org>
> >     >     <mailto:Koha-devel at lists.koha-community.org
> >     <mailto:Koha-devel at lists.koha-community.org>>
> >     >
> >      http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
> >     >     website : http://www.koha-community.org/
> >     >     git : http://git.koha-community.org/
> >     >     bugs : http://bugs.koha-community.org/
> >     >
> >     > --
> >     > Tomás Cohen Arazi
> >     > Theke Solutions (https://theke.io <http://theke.io/>)
> >     > ✆ +54 9351 3513384 <+54%209%20351%20351-3384>
> <tel:+54%209%20351%20351-3384>
> >     > GPG: B2F3C15F
> >     >
> >     >
> >     > _______________________________________________
> >     > Koha-devel mailing list
> >     > Koha-devel at lists.koha-community.org
> >     <mailto:Koha-devel at lists.koha-community.org>
> >     >
> http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
> >     > website : http://www.koha-community.org/
> >     > git : http://git.koha-community.org/
> >     > bugs : http://bugs.koha-community.org/
> >     >
> >
> >     --
> >     Julian Maurice <julian.maurice at biblibre.com
> >     <mailto:julian.maurice at biblibre.com>>
> >     BibLibre
> >     _______________________________________________
> >     Koha-devel mailing list
> >     Koha-devel at lists.koha-community.org
> >     <mailto:Koha-devel at lists.koha-community.org>
> >     http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
> >     website : http://www.koha-community.org/
> >     git : http://git.koha-community.org/
> >     bugs : http://bugs.koha-community.org/
> >
> > --
> > Tomás Cohen Arazi
> > Theke Solutions (https://theke.io <http://theke.io/>) ✆ +54 9351
> > 3513384
> > GPG: B2F3C15F
>
> --
> Julian Maurice <julian.maurice at biblibre.com> BibLibre
> _______________________________________________
> Koha-devel mailing list
> Koha-devel at lists.koha-community.org
> http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
> website : http://www.koha-community.org/ git :
> http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
>
>
> _______________________________________________
> Koha-devel mailing list
> Koha-devel at lists.koha-community.org
> http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
> website : http://www.koha-community.org/
> git : http://git.koha-community.org/
> bugs : http://bugs.koha-community.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20180208/5e2483cf/attachment-0001.html>


More information about the Koha-devel mailing list