← Back to team overview

mahara-contributors team mailing list archive

[Bug 1732565] A change has been merged

 

Reviewed:  https://reviews.mahara.org/8283
Committed: https://git.mahara.org/mahara/mahara/commit/aac8315fc68c68dc7711250c24781cff92ebb742
Submitter: Robert Lyon (robertl@xxxxxxxxxxxxxxx)
Branch:    master

commit aac8315fc68c68dc7711250c24781cff92ebb742
Author: Robert Lyon <robertl@xxxxxxxxxxxxxxx>
Date:   Thu Nov 16 12:10:53 2017 +1300

Bug 1732565: Allow for faster indexing of large sites into elasticsearch

Currently if you index 386,000 records at 10,000 at a time
- default cron at every 5 mins takes 195 mins (3.25 hours)
- cron set to every minute should take 39 mins (but if indexing not
finished the following minute may be skipped)

With fast_index.php it starts next index straight after last finishes
so runs thru at optimal speed
- took only 25 minutes (almost 66% faster than per minute cron and way
faster than default cron speed)

behatnotneeded

Change-Id: I65bfb19ab6481a95bafb120d3139d37e0ef28f92
Signed-off-by: Robert Lyon <robertl@xxxxxxxxxxxxxxx>

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1732565

Title:
  Allow faster indexing of elasticsearch via cli script

Status in Mahara:
  Fix Committed

Bug description:
  When one re-indexes a large site it can take hours before the site is
  fully re-indexed. This is because even though we index via the bulk
  system it is restricted by number of records we can read into memory
  and speed of cron run.

  A way we could speed this up is via a fast index CLI script that
  allows us to fire off the next cron run for elasticsearch indexing
  immediately after previous one finishes

  This way we would save the 'dead time' between runs waiting for the
  server clock to tick over to the next minute

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1732565/+subscriptions


References