Bug 5165 - Rewrite zebraqueue scripts to use rebuild_zebra.pl
Summary: Rewrite zebraqueue scripts to use rebuild_zebra.pl
Status: CLOSED DUPLICATE of bug 5166
Alias: None
Product: Koha
Classification: Unclassified
Component: Command-line Utilities (show other bugs)
Version: master
Hardware: All All
: PATCH-Sent (DO NOT USE) enhancement (vote)
Assignee: Tomás Cohen Arazi
QA Contact: Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-24 16:13 UTC by Tomás Cohen Arazi
Modified: 2012-10-26 00:41 UTC (History)
5 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments
Initial patch (20.28 KB, patch)
2010-08-24 16:24 UTC, Tomás Cohen Arazi
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Tomás Cohen Arazi 2010-08-24 16:13:26 UTC
I proposed to rewrite zebraqueue so that we can manage updates to auth and biblio database in zebra faster than cron's 1 minute limit.
Comment 1 Tomás Cohen Arazi 2010-08-24 16:24:56 UTC
Created attachment 2566 [details] [review]
Initial patch
Comment 2 MJ Ray (software.coop) 2010-08-24 16:39:41 UTC
Is it safe to remove the kohalib.pl call?  Has this been tested carefully?
I suspect not, as there's -I $PERL5LIB on the daemon command lines.
Please reconsider this deletion.
Comment 3 Tomás Cohen Arazi 2010-08-24 17:40:59 UTC
(In reply to comment #2)
> Is it safe to remove the kohalib.pl call?  Has this been tested carefully?
> I suspect not, as there's -I $PERL5LIB on the daemon command lines.
> Please reconsider this deletion.

In the version I've been testing I didn't have the '-I $PERL5LIB' parameter in the startup script. It was running fine. I must have copied a wrong version.

I don't know about the need of that part of the code, and thus removed it. If you could explain me the concerns about that removal...
Comment 4 MJ Ray (software.coop) 2010-08-25 17:08:38 UTC
The kohalib.pl call attempts to locate and use the correct set of koha libraries for the script even if the -I option is not set.
Comment 5 Zeno Tajoli 2010-10-17 11:36:41 UTC
Dear Tomas,

I want to try your patch for the bug 5165.
But the patch use a new module,
C4::Catalog::Rebuild

Where do you have pubish this module ?

Bye
Comment 6 Tomás Cohen Arazi 2010-10-20 12:58:26 UTC
Look at http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=5166
Comment 7 Zeno Tajoli 2010-11-04 08:54:03 UTC
In sept 2010 I try to fix  the problem of zebraqueue.
I find that is too difficult for me. But I find a solution (for my library).
Every night I stop the demon zebraqueue and zebreserver for 5 minutes
Every sunday I reboot the server.
Every month I rebuilt all zebra indexes.


Now (on my library) the problem is not present.
I have 6000 bib records with 8,000 holdings.
My server is linux debian, 1 CPU and 512 MB.
Staff work not very much on records and loans (20 transation every day).

I find that more RAM I have, less I need to reboot.
Probably a more used server needs a reboot every day.
Comment 8 MJ Ray (software.coop) 2010-11-11 12:34:16 UTC
Is this a duplicate of bug 1993?
Comment 9 MJ Ray (software.coop) 2010-11-11 12:34:59 UTC
Not duplicate - I meant related.  Sorry.
Comment 10 Zeno Tajoli 2010-11-11 13:10:53 UTC
No, is not connect or releted with bug 1993.
My solution uses crontab (and reboot with cron because is it a virtal HW).
Comment 11 Tomás Cohen Arazi 2011-03-21 17:46:00 UTC
This bug has moved to bug 5166, which this is dependent on (Catalog::Zebra).
If needed I can submit the zebraqueue_daemon.pl patch here too, but I think is not necesary.
Comment 12 Tomás Cohen Arazi 2011-03-30 11:36:48 UTC

*** This bug has been marked as a duplicate of bug 5166 ***