[Koha] Zebra (Koha 3.20.05) - Run it as a cron job or use default daemon?

Tomas Cohen Arazi tomascohen at gmail.com
Tue Nov 3 06:55:20 NZDT 2015


Craig, since 3.18 we have an awesome indexing daemon integrated to the
packages, that should be used by everyone, instead of the cronjob. Might be
worth enabling by default in 3.22.

Using the indexer daemon is WAY BETTER. It seeks for updates every 5
seconds (can be lower/higher, it is user-configurable), so you get almost
instant indexing (instant for the end user). Also, a lot less records get
queued, so indexing time is shorter and there aren't many indexing
processes running at the same time.

To enable it you need to
- Comment the rebuild_zebra.pl line in /etc/cron.d/koha-common
- Enable the indexer daemon in /etc/default/koha-common
- Restart Koha's daemons:
  $ sudo service koha-common stop ; sudo service koha-common start

And yes, do it!


2015-11-01 7:32 GMT-03:00 Katrin Fischer <Katrin.Fischer.83 at web.de>:

> Hi Craig,
>
> using the rebuild_zebra.pl cronjob is currently the default for
> reindexing. If you are using packages there is no need to deactivate
> anything, it is all already set up to work correctly.
>
> Also koha-stop-zebra would stop your Zebra server - so the search would
> stop working. You want to have that running :)
>
> Others might be able to explain that better, but hope this helps.
>
> Katrin
>
> Am 30.10.2015 um 16:34 schrieb Craig Butosi:
> > Hi all,
> >
> > Koha 3.20.05 on Ubuntu 14.04 LTS x64 VPS (package install)
> >
> > Was just wondering if it is still recommended to run zebra as a cron job
> (/usr/share/koha/bin/migration_tools/rebuild_zebra.pl) rather than using
> the zebraqueue. I've read older posts saying that this was case (ca.
> 2008-2013).
> >
> > If it is recommended to run it as a cron job (as koha user of course), I
> read also that it is necessary to disable the zebraqueue to avoid
> conflicts. How would I do that? With <$ service koha-stop-zebra
> instancename>?
> >
> > Thanks all!
> >
> > C
> >
> > 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 at lists.katipo.co.nz
> > https://lists.katipo.co.nz/mailman/listinfo/koha
> >
>
> _______________________________________________
> Koha mailing list  http://koha-community.org
> Koha at lists.katipo.co.nz
> https://lists.katipo.co.nz/mailman/listinfo/koha
>



-- 
Tomás Cohen Arazi
Theke Solutions (http://theke.io)
✆ +54 9351 3513384
GPG: B76C 6E7C 2D80 551A C765  E225 0A27 2EA1 B2F3 C15F


More information about the Koha mailing list