Chris C. did some tests with memcached and it seems it's a great way to improve perfs of Koha. However, it requires some code changes. And an additionnal software installed on the server (memcached is provided on debian, and mandriva -contrib-, so it's probably not a true problem) I suggest that we add memcached option to Koha 3.2. Here could be a start for RFCs : - add a syspref usecached, to use or not memcached - memcache reference tables. I see the following reference things : context, sessions, userflags, permissions, language_*, systempreferences. Most of them are useed everytime a page is loaded in Koha (staff or opac) - memcache some other tables, that are often used : branches, itemtypes, auth_types, biblio_framework, categories, cities, ethnicity, opac_news "Memcaching" a reference table means modifying the GetTable() sub to check if the cache is already filled or not for this table : if ($usecache) { require Cache::Memcached; Cache::Memcached->import(); $memd = new Cache::Memcached( 'servers'=>['127.0.0.1:11211'], ); my $result = $memd->get("koha:reftable"); if ($result){ return $result; } else { $result = <retrieve result from SQL>; $memd->set("koha:reftable", $result, 300); # 300 : expire after 300 seconds. Can be set to more } } If you agree with this proposal, i'll add it to RFC for 3.2 pls comment. -- Paul POULAIN http://www.biblibre.com Expert en Logiciels Libres pour l'info-doc Tel : 04 91 31 45 19 _______________________________________________ Koha-devel mailing list Koha-devel@lists.koha.org http://lists.koha.org/mailman/listinfo/koha-devel
On Tue, Jul 1, 2008 at 3:06 AM, Paul POULAIN <paul.poulain@free.fr> wrote:
I suggest that we add memcached option to Koha 3.2.
I think this is a great idea. How will this interact with mod_perl if we were to add a mod_perl option for 3.2 (or beyond)? -Andy _______________________________________________ Koha-devel mailing list Koha-devel@lists.koha.org http://lists.koha.org/mailman/listinfo/koha-devel
Andrew Moore a écrit :
On Tue, Jul 1, 2008 at 3:06 AM, Paul POULAIN <paul.poulain@free.fr> wrote:
I suggest that we add memcached option to Koha 3.2.
I think this is a great idea.
How will this interact with mod_perl if we were to add a mod_perl option for 3.2 (or beyond)?
mod_perl = x3 improvement memcache = x2 improvement so : both = x6 improvement lol. I agree that's only theory. A quick question again : did someone experiment mod_perl recently ? it used to work pretty well something like 1 year ago. cheers. -- Paul POULAIN http://www.biblibre.com Expert en Logiciels Libres pour l'info-doc Tel : 04 91 31 45 19 _______________________________________________ Koha-devel mailing list Koha-devel@lists.koha.org http://lists.koha.org/mailman/listinfo/koha-devel
mod_perl = x3 improvement memcache = x2 improvement
so :
both = x6 improvement
lol. I agree that's only theory.
A quick question again : did someone experiment mod_perl recently ? it used to work pretty well something like 1 year ago.
It works perfectly for OPAC. I didn't test mod_perl with staff interface. With mod_perl, OPAC response time is divided by 6.5 on my test install. By the way, isn't memcached out of proportion. mod_perl has session/global variables. That would be enough to cache syspref and other application-level variables. _______________________________________________ Koha-devel mailing list Koha-devel@lists.koha.org http://lists.koha.org/mailman/listinfo/koha-devel
Hi, On Tue, Jul 1, 2008 at 6:22 AM, Frederic Demians <frederic@tamil.fr> wrote:
By the way, isn't memcached out of proportion. mod_perl has session/global variables. That would be enough to cache syspref and other application-level variables.
We should experiment, of course. Even if mod_perl's session and global variables turn out to be good enough for caching sysprefs, things like the HTML templates may benefit more readily from memcached than mod_perl. Regards, Galen -- Galen Charlton Koha Application Developer LibLime galen.charlton@liblime.com p: 1-888-564-2457 x709 _______________________________________________ Koha-devel mailing list Koha-devel@lists.koha.org http://lists.koha.org/mailman/listinfo/koha-devel
Hi, On Tue, Jul 1, 2008 at 1:06 AM, Paul POULAIN <paul.poulain@free.fr> wrote:
If you agree with this proposal, i'll add it to RFC for 3.2
I agree with pursuing both memcached and mod_perl for 3.2. Regards, Galen -- Galen Charlton Koha Application Developer LibLime galen.charlton@liblime.com p: 1-888-564-2457 x709 _______________________________________________ Koha-devel mailing list Koha-devel@lists.koha.org http://lists.koha.org/mailman/listinfo/koha-devel
Hi, On Tue, Jul 1, 2008 at 1:06 AM, Paul POULAIN <paul.poulain@free.fr> wrote:
- memcache some other tables, that are often used : branches, itemtypes, auth_types, biblio_framework, categories, cities, ethnicity, opac_news
In particular, caching the entire set of active MARC frameworks would be a big win. We don't have to think just in terms of caching individual tables; we can also cache entire data structures and objects that draw from multiple tables. Regards, Galen -- Galen Charlton Koha Application Developer LibLime galen.charlton@liblime.com p: 1-888-564-2457 x709 _______________________________________________ Koha-devel mailing list Koha-devel@lists.koha.org http://lists.koha.org/mailman/listinfo/koha-devel
participants (4)
-
Andrew Moore -
Frederic Demians -
Galen Charlton -
Paul POULAIN