Enabling Memcached on Koha 3.18.06
Hi all, Not much on enabling memcached for Koha 3.18.06 (Ubuntu 14.04 LTS 64-bit VPS), so I'm posting here for the community. It looks like I successfully installed memcached on localhost 11211. But it doesn't look like Koha appears as an entry when I run $ memcdump --servers localhost. Here's what I did: 1. Installed memcached sudo apt-get install memcached 2. Navigated to /etc/koha/koha-sites.conf and changed MEMCACHED environment variable to 'yes' from 'no' 3. Restarted apache service apache2 restart 4. Telnetted localhost at port 11211 telnet localhost 11211 and was able to successfully connect. 5. I then installed libmemcached-tools to test sudo apt-get install libmemcached-tools 6. I then checked to see if my Koha instance appeared as a memcached entry (according to http://wiki.koha-community.org/wiki/Troubleshooting_memcached) memcdump --servers localhost 7. But, nothing gets returned. Only a new, blank command line. Any thoughts on why Koha is not showing up after running #6? Many thanks! Craig Butosi, MA, MLIS, B Mus (Hons.) LIBRARY SERVICES MANAGER the royal conservatory TELUS Centre for Performance and Learning 273 Bloor Street West Toronto, ON M5S 1W2 416.408.2824 x338 www.rcmusic.ca<http://www.rcmusic.ca/> Note: This email message and any attachments are intended only for the use of the individual to which it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the recipient of this email is not the intended recipient (or the employee or agent responsible for delivering the email to the intended recipient), you are hereby notified that any review, dissemination, distribution or copying or other use of this message is strictly prohibited. If you have received this communication in error, please notify the sender immediately by return email and delete this message and attachments from your system, thank you.
Try this, https://code.google.com/p/memcache-top/ *-- Larry Letelier N.* *F: **+56 2 3205 2737* *F: **+56 9 7589 6842* 2015-05-04 18:09 GMT-03:00 Craig Butosi <craig.butosi@rcmusic.ca>:
Hi all,
Not much on enabling memcached for Koha 3.18.06 (Ubuntu 14.04 LTS 64-bit VPS), so I'm posting here for the community. It looks like I successfully installed memcached on localhost 11211. But it doesn't look like Koha appears as an entry when I run $ memcdump --servers localhost. Here's what I did:
1. Installed memcached
sudo apt-get install memcached
2. Navigated to /etc/koha/koha-sites.conf and changed MEMCACHED environment variable to 'yes' from 'no'
3. Restarted apache
service apache2 restart
4. Telnetted localhost at port 11211
telnet localhost 11211
and was able to successfully connect.
5. I then installed libmemcached-tools to test
sudo apt-get install libmemcached-tools
6. I then checked to see if my Koha instance appeared as a memcached entry (according to http://wiki.koha-community.org/wiki/Troubleshooting_memcached)
memcdump --servers localhost
7. But, nothing gets returned. Only a new, blank command line.
Any thoughts on why Koha is not showing up after running #6?
Many thanks!
Craig Butosi, MA, MLIS, B Mus (Hons.) LIBRARY SERVICES MANAGER the royal conservatory TELUS Centre for Performance and Learning 273 Bloor Street West Toronto, ON M5S 1W2 416.408.2824 x338 www.rcmusic.ca<http://www.rcmusic.ca/>
Note: This email message and any attachments are intended only for the use of the individual to which it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the recipient of this email is not the intended recipient (or the employee or agent responsible for delivering the email to the intended recipient), you are hereby notified that any review, dissemination, distribution or copying or other use of this message is strictly prohibited. If you have received this communication in error, please notify the sender immediately by return email and delete this message and attachments from your system, thank you. _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
Just to verify, have you tried logging into Koha since you enabled memcached? Koha won't actually store anything in memcached until it has to. 2015-05-04 15:25 GMT-06:00 Larry Letelier <larry@opengeek.cl>:
Try this, https://code.google.com/p/memcache-top/
*-- Larry Letelier N.* *F: **+56 2 3205 2737* *F: **+56 9 7589 6842*
2015-05-04 18:09 GMT-03:00 Craig Butosi <craig.butosi@rcmusic.ca>:
Hi all,
Not much on enabling memcached for Koha 3.18.06 (Ubuntu 14.04 LTS 64-bit VPS), so I'm posting here for the community. It looks like I successfully installed memcached on localhost 11211. But it doesn't look like Koha appears as an entry when I run $ memcdump --servers localhost. Here's what I did:
1. Installed memcached
sudo apt-get install memcached
2. Navigated to /etc/koha/koha-sites.conf and changed MEMCACHED environment variable to 'yes' from 'no'
3. Restarted apache
service apache2 restart
4. Telnetted localhost at port 11211
telnet localhost 11211
and was able to successfully connect.
5. I then installed libmemcached-tools to test
sudo apt-get install libmemcached-tools
6. I then checked to see if my Koha instance appeared as a memcached entry (according to http://wiki.koha-community.org/wiki/Troubleshooting_memcached)
memcdump --servers localhost
7. But, nothing gets returned. Only a new, blank command line.
Any thoughts on why Koha is not showing up after running #6?
Many thanks!
Craig Butosi, MA, MLIS, B Mus (Hons.) LIBRARY SERVICES MANAGER the royal conservatory TELUS Centre for Performance and Learning 273 Bloor Street West Toronto, ON M5S 1W2 416.408.2824 x338 www.rcmusic.ca<http://www.rcmusic.ca/>
Note: This email message and any attachments are intended only for the use of the individual to which it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the recipient of this email is not the intended recipient (or the employee or agent responsible for delivering the email to the intended recipient), you are hereby notified that any review, dissemination, distribution or copying or other use of this message is strictly prohibited. If you have received this communication in error, please notify the sender immediately by return email and delete this message and attachments from your system, thank you. _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
_______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
-- Jesse Weaver
El 4/5/2015 6:12 p. m., "Craig Butosi" <craig.butosi@rcmusic.ca> escribió:
1. Installed memcached
sudo apt-get install memcached
Good
2. Navigated to /etc/koha/koha-sites.conf and changed MEMCACHED environment variable to 'yes' from 'no'
Wrong. Explanation: that configuration variable controls wether memcached is enabled on each created instance, ON CREATION TIME. So already created instances won't use memcached unless you explicitly created it using the --use-memcached option switch.
Any thoughts on why Koha is not showing up after running #6?
Yes! You need to set the relevant variables on the instance's apache virtualhosts configuration file. You are welcome!
Yes! You need to set the relevant variables on the instance's apache virtualhosts configuration file. You are welcome! Thank you for clarifying Tomas. Your suggestion worked. So in all, the steps I took were: 1. Install memcached (sudo apt-get install memcached) 2. Navigated to /etc/koha/koha-sites.conf and changed MEMCACHED environment variable to 'yes' from 'no' 3. Restarted Apache (service apache2 restart) 4. Check memcached server connection (telnet localhost 11211) - Successful 5. Installed libmemcached-tools to test if koha is memcached at this point (sudo apt-get install libmemcached-tools) - Unsuccessful 6. Navigated to /etc/apache2/sites-available/library.conf and added the memcached server <IP:Port> and a memcached name (in my case: 127.0.0.1:11211 and koha_library) 7. Restarted Apache (service apache2 restart) 8. Ran memcdump to test if instance is memcached (memcdump --servers localhost) 9. Output is as follows: root@vps43351:~# memcdump --servers localhost koha_libraryismemcached koha_library569c3d3a6db71bb72dedcf5be25e27fe koha_library095f4ee0d58b7919fb213439ad1a531d koha_library9e4a3f110dd37561d60ae982a38f274d koha_librarykohaconf Thanks for the help all. You guys are great. Best, Craig Butosi, MA, MLIS, B Mus (Hons.) LIBRARY SERVICES MANAGER the royal conservatory TELUS Centre for Performance and Learning 273 Bloor Street West Toronto, ON M5S 1W2 416.408.2824 x338 www.rcmusic.ca<https://webmail.rcmusic.ca/owa/redir.aspx?C=b481823b299d45ee94b0016389bb76e9&URL=http%3a%2f%2fwww.rcmusic.ca%2f> ________________________________ From: Tomas Cohen Arazi [tomascohen@gmail.com] Sent: Monday, May 04, 2015 10:26 PM To: Craig Butosi Cc: koha Subject: Re: [Koha] Enabling Memcached on Koha 3.18.06 El 4/5/2015 6:12 p. m., "Craig Butosi" <craig.butosi@rcmusic.ca<mailto:craig.butosi@rcmusic.ca>> escribió:
1. Installed memcached
sudo apt-get install memcached
Good
2. Navigated to /etc/koha/koha-sites.conf and changed MEMCACHED environment variable to 'yes' from 'no'
Wrong. Explanation: that configuration variable controls wether memcached is enabled on each created instance, ON CREATION TIME. So already created instances won't use memcached unless you explicitly created it using the --use-memcached option switch.
Any thoughts on why Koha is not showing up after running #6?
Yes! You need to set the relevant variables on the instance's apache virtualhosts configuration file. You are welcome! Note: This email message and any attachments are intended only for the use of the individual to which it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the recipient of this email is not the intended recipient (or the employee or agent responsible for delivering the email to the intended recipient), you are hereby notified that any review, dissemination, distribution or copying or other use of this message is strictly prohibited. If you have received this communication in error, please notify the sender immediately by return email and delete this message and attachments from your system, thank you.
Craig Butosi schreef op ma 04-05-2015 om 21:09 [+0000]:
Not much on enabling memcached for Koha 3.18.06 (Ubuntu 14.04 LTS 64-bit VPS), so I'm posting here for the community. It looks like I successfully installed memcached on localhost 11211. But it doesn't look like Koha appears as an entry when I run
You need to tell Koha to use your memcached server. This is done through environment variables, and seems to be underdocumented. I found this: http://wiki.koha-community.org/wiki/Performance#Memcache which is correct, but doesn't actually tell you the "how", but does lead to this: http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6193#c23 Which sorta does. Additionally, changing /etc/koha-sites.conf will only apply to new instances created with koha-create. To make it apply to old ones, you will need to edit the relevant apache configuration for your instance. Sorta related: I really want to make the koha-sites.conf configuration by filled in by debconf when you first install koha-common, but have too much on my plate right now to do so. Any volunteers? -- Robin Sheat Catalyst IT Ltd. ✆ +64 4 803 2204 GPG: 5FA7 4B49 1E4D CAA4 4C38 8505 77F5 B724 F871 3BDF
participants (5)
-
Craig Butosi -
Jesse -
Larry Letelier -
Robin Sheat -
Tomas Cohen Arazi