Hi Fridolin,

I assume that's only 1 Plack instance on that 1 machine though, yes?

David Cook
Systems Librarian
Prosentient Systems
72/330 Wattle St
Ultimo, NSW 2007
Australia

Office: 02 9212 0899
Direct: 02 8005 0595


-----Original Message-----
From: koha-devel-boun...@lists.koha-community.org 
[mailto:koha-devel-boun...@lists.koha-community.org] On Behalf Of Fridolin 
SOMERS
Sent: Saturday, 10 February 2018 2:40 AM
To: koha-devel@lists.koha-community.org
Subject: Re: [Koha-devel] Plack only

Our tests when installing Plack shows a RAM use of around 200Mo, that's cool.
We added a nightly reboot (made by logrotate) of starman for security.
Page processing goes from 2 seconds without plack to 100-200ms with it, not the 
search pages of course because they depend on Zebra request time.
We use 2 or 4 workers on a 4 CPU machine.
We used 8 workers on a 4 CPU machine once for a library with a lot of accesses.

Regards,

Le 08/02/2018 à 23:41, David Cook a écrit :
> Jonathan,
> 
>   
> 
> It is certainly slower than I would like.
> 
>   
> 
> The Plack support in Koha wasn’t great last time I tried it. I’m curious to 
> try it again now, since people have worked on it more. I have used Plack for 
> non-Koha apps and it’s worked great, so I’d like to move away from CGI.
> 
>   
> 
> I’m planning to use Plack for dedicated servers, but for larger multitenant 
> deployments, I’m wary of the resources that Starman would require when 
> aggregated all together. While higher performance would be great, it 
> certainly comes at the cost of resources. But… I haven’t tried that out 
> recently, so I’m keen to see what the actual memory requirements will be.
> 
>   
> 
> David Cook
> 
> Systems Librarian
> 
> Prosentient Systems
> 
> 72/330 Wattle St
> 
> Ultimo, NSW 2007
> 
> Australia
> 
>   
> 
> Office: 02 9212 0899
> 
> Direct: 02 8005 0595
> 
>   
> 
> From: Jonathan Druart [mailto:jonathan.dru...@bugs.koha-community.org]
> Sent: Friday, 9 February 2018 12:31 AM
> To: David Cook <dc...@prosentient.com.au>
> Cc: koha-devel@lists.koha-community.org
> Subject: Re: [Koha-devel] Plack only
> 
>   
> 
> 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 <dc...@prosentient.com.au 
> <mailto:dc...@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 <tel:02%2092%2012%2008%2099>
> Direct: 02 8005 0595 <tel:02%2080%2005%2005%2095>
> 
> 
> -----Original Message-----
> From: koha-devel-boun...@lists.koha-community.org 
> <mailto:koha-devel-boun...@lists.koha-community.org>  
> [mailto:koha-devel-boun...@lists.koha-community.org 
> <mailto:koha-devel-boun...@lists.koha-community.org> ] On Behalf Of 
> Julian Maurice
> Sent: Thursday, 8 February 2018 3:50 AM
> To: Tomas Cohen Arazi <tomasco...@gmail.com 
> <mailto:tomasco...@gmail.com> >
> Cc: koha-devel@lists.koha-community.org 
> <mailto:koha-devel@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.maur...@biblibre.com <mailto:julian.maur...@biblibre.com>  
>> <mailto:julian.maur...@biblibre.com 
>> <mailto:julian.maur...@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.maur...@biblibre.com <mailto:julian.maur...@biblibre.com>  
>> <mailto:julian.maur...@biblibre.com <mailto:julian.maur...@biblibre.com> >
>>      <mailto:julian.maur...@biblibre.com <mailto:julian.maur...@biblibre.com>
>>      <mailto:julian.maur...@biblibre.com 
>> <mailto:julian.maur...@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 <tel:+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@lists.koha-community.org 
>> <mailto:Koha-devel@lists.koha-community.org>
>>      <mailto:Koha-devel@lists.koha-community.org 
>> <mailto:Koha-devel@lists.koha-community.org> >
>>      >     <mailto:Koha-devel@lists.koha-community.org 
>> <mailto:Koha-devel@lists.koha-community.org>
>>      <mailto:Koha-devel@lists.koha-community.org 
>> <mailto:Koha-devel@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.maur...@biblibre.com 
>> <mailto:julian.maur...@biblibre.com>
>>      <mailto:julian.maur...@biblibre.com 
>> <mailto:julian.maur...@biblibre.com> >
>>      >     <mailto:julian.maur...@biblibre.com 
>> <mailto:julian.maur...@biblibre.com>
>>      <mailto:julian.maur...@biblibre.com 
>> <mailto:julian.maur...@biblibre.com> >>>
>>      >     BibLibre
>>      >     _______________________________________________
>>      >     Koha-devel mailing list
>>      >     Koha-devel@lists.koha-community.org 
>> <mailto:Koha-devel@lists.koha-community.org>
>>      <mailto:Koha-devel@lists.koha-community.org 
>> <mailto:Koha-devel@lists.koha-community.org> >
>>      >     <mailto:Koha-devel@lists.koha-community.org 
>> <mailto:Koha-devel@lists.koha-community.org>
>>      <mailto:Koha-devel@lists.koha-community.org 
>> <mailto:Koha-devel@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 <tel:+54%209%20351%20351-3384>  
>> <tel:+54%209%20351%20351-3384>
>>      > GPG: B2F3C15F
>>      >
>>      >
>>      > _______________________________________________
>>      > Koha-devel mailing list
>>      > Koha-devel@lists.koha-community.org 
>> <mailto:Koha-devel@lists.koha-community.org>
>>      <mailto:Koha-devel@lists.koha-community.org 
>> <mailto:Koha-devel@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.maur...@biblibre.com 
>> <mailto:julian.maur...@biblibre.com>
>>      <mailto:julian.maur...@biblibre.com 
>> <mailto:julian.maur...@biblibre.com> >>
>>      BibLibre
>>      _______________________________________________
>>      Koha-devel mailing list
>>      Koha-devel@lists.koha-community.org 
>> <mailto:Koha-devel@lists.koha-community.org>
>>      <mailto:Koha-devel@lists.koha-community.org 
>> <mailto:Koha-devel@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.maur...@biblibre.com 
> <mailto:julian.maur...@biblibre.com> > BibLibre 
> _______________________________________________
> Koha-devel mailing list
> Koha-devel@lists.koha-community.org 
> <mailto:Koha-devel@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@lists.koha-community.org 
> <mailto:Koha-devel@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@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/
> 

-- 
Fridolin SOMERS <fridolin.som...@biblibre.com>
BibLibre - software and system maintainer
_______________________________________________
Koha-devel mailing list
Koha-devel@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@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/

Reply via email to