Koha 3.2 in virtualization or with several database : Is it effective ?
Hello everyone, I'm preparing to install Koha 3.2 for 20 schools and I was wondering if some of you had used the method of virtualization (VMWare or Virtualbox). If yes, is it effective? What are the problems you encountered? Have you done any benchmarks? I am also looking for a method with one Koha and several databases and Zebras : Is this a successful method? Thank you for your answers! *Brice Sanchez* Programmeur Web brice.sanchez@sys-tech.net <mailto:brice.sanchez@sys-tech.net> 418 520-0739 poste 136 514 907-0036 / 1-877-969-8324 *SYS-TECH / Technologies de l'information libres* 6700 BOUL PIERRE-BERTRAND BUREAU 209 QUÉBEC QC G2J 0B4 http://www.sys-tech.net /Membre supporteur de l'Association TYPO3 <http://typo3.org>/
Koha can be effectively virtualized for production in VMware, Virtualbox or xen. It is quite common and helpful. And yes, you can use the same codebase with different Koha instances. You will have to do edit your $KOHA_CONF files accordingly. But start with one instance and get familiar with it first before trying to add additional ones. --Joe 2010/8/2 Brice Sanchez <brice.sanchez@sys-tech.net>
Hello everyone,
I'm preparing to install Koha 3.2 for 20 schools and I was wondering if some of you had used the method of virtualization (VMWare or Virtualbox). If yes, is it effective? What are the problems you encountered? Have you done any benchmarks?
I am also looking for a method with one Koha and several databases and Zebras : Is this a successful method?
Thank you for your answers!
*Brice Sanchez* Programmeur Web
brice.sanchez@sys-tech.net 418 520-0739 poste 136 514 907-0036 / 1-877-969-8324
*SYS-TECH / Technologies de l'information libres* 6700 BOUL PIERRE-BERTRAND BUREAU 209 QUÉBEC QC G2J 0B4 http://www.sys-tech.net
*Membre supporteur de l'Association TYPO3 <http://typo3.org>*
Thank you for your reply, I've already done several installations of Koha in DEV and Single mode. But when we have multiple installations on one server we have problems with the Zebra indexing engine. This is why we try to virtualize (with Xen), or to install a single Koha running with several databases. We are therefore looking for feedback and help to build the right architecture : that is the most easily maintainable for 20 School and can easily accommodate 500 simultaneous users. Brice On 02/08/2010 12:18, Joe Atzberger wrote:
Koha can be effectively virtualized for production in VMware, Virtualbox or xen. It is quite common and helpful.
And yes, you can use the same codebase with different Koha instances. You will have to do edit your $KOHA_CONF files accordingly. But start with one instance and get familiar with it first before trying to add additional ones.
--Joe
2010/8/2 Brice Sanchez <brice.sanchez@sys-tech.net <mailto:brice.sanchez@sys-tech.net>>
Hello everyone,
I'm preparing to install Koha 3.2 for 20 schools and I was wondering if some of you had used the method of virtualization (VMWare or Virtualbox). If yes, is it effective? What are the problems you encountered? Have you done any benchmarks?
I am also looking for a method with one Koha and several databases and Zebras : Is this a successful method?
Thank you for your answers!
*Brice Sanchez* Programmeur Web
brice.sanchez@sys-tech.net <mailto:brice.sanchez@sys-tech.net> 418 520-0739 poste 136 514 907-0036 / 1-877-969-8324
*SYS-TECH / Technologies de l'information libres* 6700 BOUL PIERRE-BERTRAND BUREAU 209 QUÉBEC QC G2J 0B4 http://www.sys-tech.net
/Membre supporteur de l'Association TYPO3 <http://typo3.org>/
Op maandag 02-08-2010 om 13:31 uur [tijdzone -0400], schreef Brice Sanchez:
I've already done several installations of Koha in DEV and Single mode. But when we have multiple installations on one server we have problems with the Zebra indexing engine.
That's what the packages are good for, see http://wiki.koha-community.org/wiki/Koha_3.2_on_Debian_Squeeze I can set up a new Koha instance in about 30 seconds with these by just doing: $ sudo koha-create --create-db newlibrary They're not really production-ready yet, but they are getting closer all the time. -- Robin Sheat Catalyst IT Ltd. ✆ +64 4 803 2204 GPG: 5957 6D23 8B16 EFAB FEF8 7175 14D3 6485 A99C EB6D
2010/8/2 Brice Sanchez <brice.sanchez@sys-tech.net>:
Thank you for your reply,
I've already done several installations of Koha in DEV and Single mode. But when we have multiple installations on one server we have problems with the Zebra indexing engine.
This is why we try to virtualize (with Xen), or to install a single Koha running with several databases.
We are therefore looking for feedback and help to build the right architecture : that is the most easily maintainable for 20 School and can easily accommodate 500 simultaneous users.
We've successfully installed multiple instances within the same server using the following schema: each instance is called koha_<instance name>. Then in an standard install when you're asked for the install dir you put koha_<instance name> and the koha installer creates: /etc/koha_<instance name> /usr/share/koha_<instance name> /var/lib/koha_<instance name> etc... You can then set a shell variable: # export KOHAINSTANCE=koha_<instance name> and run the following for finishing the setup: # ln -s $KOHAPATH/bin/koha-zebra-ctl.sh /etc/init.d/$KOHAINSTANCE-zebra-daemon # update-rc.d $KOHAINSTANCE-zebra-daemon defaults # ln -s /etc/$KOHAINSTANCE/koha-httpd.conf /etc/apache2/sites-available/$KOHAINSTANCE # a2ensite $KOHAINSTANCE # apache2ctl reload Assuming you're running on Ubuntu/Debian. You then have to fix your cronjobs to match this schema. Probably having to prepend KOHA_CONF=/etc/koha_<instance name>/koha-conf.xml to your commands, for example: If you want to rebuild the zebra database of an instance: su - koha -c "KOHA_CONF=/etc/$KOHAINSTANCE/koha-conf.xml /usr/share/koha_saludpublica/bin/migration_tools/rebuild_zebra.pl -a -b -w -r -v" Or put an incremental reindex in the cronjob: 0/2 * * * * root KOHA_CONF=/etc/$KOHAINSTANCE/koha-conf.xml /usr/share/koha_saludpublica/bin/migration_tools/rebuild_zebra.pl -a -b -z If you have trouble with this setup, feel free to contact. To+
Thank you for your reply, Your method is very interesting, I'll try it with my colleagues. Thank you for sharing your knowledge. -- *Brice Sanchez* Programmeur Web brice.sanchez@sys-tech.net <mailto:brice.sanchez@sys-tech.net> 418 520-0739 poste 136 514 907-0036 / 1-877-969-8324 *SYS-TECH / Technologies de l'information libres* 6700 BOUL PIERRE-BERTRAND BUREAU 209 QUÉBEC QC G2J 0B4 http://www.sys-tech.net /Membre supporteur de l'Association TYPO3 <http://typo3.org>/ On 04/08/2010 11:46, Tomas Cohen Arazi wrote:
2010/8/2 Brice Sanchez<brice.sanchez@sys-tech.net>:
Thank you for your reply,
I've already done several installations of Koha in DEV and Single mode. But when we have multiple installations on one server we have problems with the Zebra indexing engine.
This is why we try to virtualize (with Xen), or to install a single Koha running with several databases.
We are therefore looking for feedback and help to build the right architecture : that is the most easily maintainable for 20 School and can easily accommodate 500 simultaneous users.
We've successfully installed multiple instances within the same server using the following schema: each instance is called koha_<instance name>. Then in an standard install when you're asked for the install dir you put koha_<instance name> and the koha installer creates:
/etc/koha_<instance name> /usr/share/koha_<instance name> /var/lib/koha_<instance name> etc...
You can then set a shell variable:
# export KOHAINSTANCE=koha_<instance name>
and run the following for finishing the setup:
# ln -s $KOHAPATH/bin/koha-zebra-ctl.sh /etc/init.d/$KOHAINSTANCE-zebra-daemon # update-rc.d $KOHAINSTANCE-zebra-daemon defaults # ln -s /etc/$KOHAINSTANCE/koha-httpd.conf /etc/apache2/sites-available/$KOHAINSTANCE # a2ensite $KOHAINSTANCE # apache2ctl reload
Assuming you're running on Ubuntu/Debian.
You then have to fix your cronjobs to match this schema. Probably having to prepend KOHA_CONF=/etc/koha_<instance name>/koha-conf.xml to your commands, for example:
If you want to rebuild the zebra database of an instance: su - koha -c "KOHA_CONF=/etc/$KOHAINSTANCE/koha-conf.xml /usr/share/koha_saludpublica/bin/migration_tools/rebuild_zebra.pl -a -b -w -r -v"
Or put an incremental reindex in the cronjob:
0/2 * * * * root KOHA_CONF=/etc/$KOHAINSTANCE/koha-conf.xml /usr/share/koha_saludpublica/bin/migration_tools/rebuild_zebra.pl -a -b -z
If you have trouble with this setup, feel free to contact.
To
On Wed, Aug 4, 2010 at 12:46 PM, Tomas Cohen Arazi <tomascohen@gmail.com> wrote:
You can then set a shell variable:
# export KOHAINSTANCE=koha_<instance name>
and run the following for finishing the setup:
# ln -s $KOHAPATH/bin/koha-zebra-ctl.sh /etc/init.d/$KOHAINSTANCE-zebra-daemon
As you can see, I missed the definition of the KOHAPATH variable # export KOHAPATH=/usr/share/$KOHAINSTANCE To+
participants (4)
-
Brice Sanchez -
Joe Atzberger -
Robin Sheat -
Tomas Cohen Arazi