I wrote a small script to replace zebraqueue_daemon, which instead calls rebuild_zebra -a -b -z ever few minutes as a stopgap. A better approach would be a perl script that check the queue every n seconds (e.g. 15 seconds) and then call rebuild_zebra -a -b -z if the queue is non-zero in length. I'll try to pull that together and post it here later. this approach should be both timely, cpu efficient (the check will cost almost nothing) and not have any memory problems. Is there any reason that the script should not also clean done entries from the zebra queue? Keeping the queue short makes the test for unprocessed entries cheap.<div>
<br></div><div>-Doug-<br><br><div class="gmail_quote">2009/12/1 Magnus Enger <span dir="ltr"><<a href="mailto:magnus@enger.priv.no">magnus@enger.priv.no</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
2009/11/29 Jesse <<a href="mailto:pianohacker@gmail.com">pianohacker@gmail.com</a>>:<br>
<div class="im">> 2009/11/29 Doug Kingston <<a href="mailto:dpk@randomnotes.org">dpk@randomnotes.org</a>><br>
</div><div class="im">>> Also, can someone comment on the time taken by <a href="http://rebuild_zebra.pl" target="_blank">rebuild_zebra.pl</a> vs the<br>
>> older zebraqueue_daemon? We have around 13K records.<br>
><br>
> zebraqueue_daemon works well (in my limited testing) and has little lag, but<br>
> due to some problems with code organization in Koha as a whole, it leaks<br>
> memory pretty steadily. <a href="http://rebuild_zebra.pl" target="_blank">rebuild_zebra.pl</a> in a cronjob is the approach of<br>
> most Koha users.<br>
<br>
</div>Does that mean<br>
<a href="http://git.koha.org/cgi-bin/gitweb.cgi?p=Koha;a=blob_plain;f=INSTALL.debian-lenny;hb=HEAD" target="_blank">http://git.koha.org/cgi-bin/gitweb.cgi?p=Koha;a=blob_plain;f=INSTALL.debian-lenny;hb=HEAD</a><br>
should be updated? It seems to recommend both setting up the<br>
zebraqueue_daemon and running <a href="http://rebuild_zebra.pl" target="_blank">rebuild_zebra.pl</a> from cron?<br>
<br>
Regards,<br>
<font color="#888888">Magnus Enger<br>
<a href="http://libriotech.no" target="_blank">libriotech.no</a><br>
</font><div><div></div><div class="h5">_______________________________________________<br>
Koha mailing list<br>
<a href="mailto:Koha@lists.katipo.co.nz">Koha@lists.katipo.co.nz</a><br>
<a href="http://lists.katipo.co.nz/mailman/listinfo/koha" target="_blank">http://lists.katipo.co.nz/mailman/listinfo/koha</a><br>
</div></div></blockquote></div><br></div>