[Koha-bugs] [Bug 10733] Memcached on package installs

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Aug 15 00:29:37 CEST 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10733

Tomás Cohen Arazi <tomascohen at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #20356|0                           |1
        is obsolete|                            |

--- Comment #3 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 20357
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=20357&action=edit
Bug 10733: Memcached on package installs

This patch makes the koha-create script adjust the koha-conf.xml file
with the proper string substitutions to enable the use of memcached
for the created Koha instance.

It adds three option switches that control this:

 --use-memcached (defaults to "no")
 --memcached-servers "host1:port1,..." (defaults to 127.0.0.1:11211)
 --memcached-namespace "desired_namespace" (defaults to koha_${instance})

Note: the docs discourage setting user's own namespace.

Using memcached is off as the default. The relevant configuration variables
will remain empty
if the user doesn't pass --use-memcached to the command. It matches the current
behaviour.

To test:
- Apply the patch
- Build your own packages and install them on a test server
a) Create a new instance without using the new switches like:
 $ koha-create --create-db memctest
 - Check that /etc/koha/sites/memctest/koha-conf.xml contains:
   * Empty <memcached_servers> tag.
   * Empty <memcached_namespace> tag.
b) Play with the possible combination of option switches
(Note that the code defaults to empty and will remain like that if
--use-memcached is not
used, so less tests...)
 $ koha-create --create-db --use-memcached memctest
 $ koha-create --create-db --use-memcached --memcached-servers "anything:xxx"
memctest
 $ koha-create --create-db --use-memcached --memcached-servers "anything:xxx"
--memcached-namespace "something" memctest
 $ koha-create --create-db --use-memcached --memcached-namespace "something"
memctest
 - Check the koha-conf.xml file reflects the chosen options.
c) Run
 $ koha-create --help
 - It should advertise this addition accordingly.
d) Run
 $ man koha-create
 - Man page for koha-create should provide good information on the new switches
behaviour

Enjoy
To+

Sponsored-by: Universidad Nacional de Cordoba

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


More information about the Koha-bugs mailing list