Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Captured TODOs and special considerations from weekly Slack meeting

...

  • The search core might be dropped and the repository re-indexed.
  • The statistics core could be rebuilt if a site has kept its DSpace logs (or the extracts prepared by bin/dspace stats-log-converter).  We also have a dump/restore tool.
  • The authority core contains information that is not easily reproduced, so it may be best to dump and reload it (which may require building or adapting a tool).
  • How might the other cores (oai, ???) be migrated, if need be?

...

  • If multiple shards are already in use, how should those be migrated into the new version of Solr.?
  • As a Solr instance grows (specifically statistics), what scaling options exist?  If Solr Cloud is the solution, how difficult will it be to make that migration later?

...

Recent Solr provides APIs for schema management.  We may want to make use of them.  It's been suggested that we could use this for probing the condition of the required cores, and even for future schema updates.

Other issues

We may want to begin work with the "search" core, which should be simplest to work with.

This writer thinks that we should not try to give comprehensive instruction in setting up Solr.

We have existing code for discovering the version of a Solr instance and running upgrades provided by newer Solr versions, which could be adapted.  https://github.com/DSpace/DSpace/blob/master/dspace/src/main/config/build.xml#L951

Sharding

DSpace optionally uses sharding to limit the size of the statistics core(s).  From Slack discussion, 28-Nov-2018:

Terry Brady 10:19

I see the following use cases

- One DSpace 6 stats shard

- Multiple DSpace 6 stats shards (uuid migration complete)

- One DSpace 5 stats shard (unmigrated)

- Multiple DSpace 5 stats shards (unmigrated)

- No existing cores (new install)

How do we deal with this?

CLI tools

We need to consider our existing tools related to Solr, including:

...

Before plunging into work to make DSpace use the Solr APIs to manage its cores:  What's the Simplest Thing That Could Work?  We could simply document where to find the current core configurations in DSpace, and instruct the installer to copy them to a place where Solr will find and use them.  We could provide some general hints about how to find the destination of these files.  Besides being simple, this handles the case in which the people who run DSpace and the people who run Solr are not the same people and issues of access rights ensue.

TODO (not final)

  •  Complete upgrade of client code to SolrJ 7_x.
  •  Remove the dspace-solr artifact.
  •  Work out manual steps for installing empty cores in a free-standing Solr (for a new installation).
  •  See what manual steps can be moved into Ant's fresh_install scripts.
  •  Determine whether schema updates are required.
  •  Create dump/restore or migration tools for indexes which cannot be recreated (statistics, authority).
  •  Work out manual steps for copying/migrating/recreating cores with index records into a free-standing Solr.
  •  See what manual steps can be moved into Ant's update scripts.  This is only for transition from our outdated dspace-solr artifact to current stock Solr.

Related Tickets and Pull Requests

...