[Koha-bugs] [Bug 27267] Create more efficient daemon for indexing Zebra

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Mar 1 12:18:59 CET 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27267

Martin Renvoize <martin.renvoize at ptfs-europe.com> changed:

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

--- Comment #9 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
Created attachment 117437
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=117437&action=edit
Bug 27267: Add memory efficient Zebra indexing daemon

This patch adds an alternate Zebra indexing daemon which
is much more memory efficient than the current default daemon.

(For instance, zebra_indexer.pl uses 6MB of RAM vs rebuild_zebra.pl
 which uses about 180MB of RAM out of the box while idle.)

To test:
0. Apply patch
1. koha-indexer --stop kohadev
2. vi /etc/default/koha-common
3. Update ALTERNATE_INDEXER_DAEMON to be
"/kohadevbox/koha/misc/zebra_indexer.pl"
4. koha-indexer --start kohadev
5. Go to
http://localhost:8081/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=29
6. Change 245$a to "Gone" instead of "Gairm" and save the record
7. Go to http://localhost:8081/cgi-bin/koha/catalogue/search.pl?q=Gairm
8. Repeat Step 7 for 5+ seconds until your search returns no results
9. Go to
http://localhost:8081/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=29
10. Change 245$a from "Gone" to "Gairm"
11. Repeat Step 7 for 5+ seconds until your search redirects you to
http://localhost:8081/cgi-bin/koha/catalogue/detail.pl?biblionumber=29&found1=1

To confirm lower memory usage:
12. ps -efww | grep "zebra_indexer"
13. top -p <PID of zebra_indexer.pl process>
14. The top tool should show about 6.1MB usage.

Signed-off-by: Martin Renvoize <martin.renvoize at ptfs-europe.com>

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


More information about the Koha-bugs mailing list