-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Backing up and cloning the production Solr instance #771
Comments
What I thought should work but didn't: either creating a snapshot from which to create an image -- or creating a new image directly. I could make an image but when I spun the image up, I had problems with the ssh keys. I think the problem is that the current production solr instance is old and that any new images made from it is not properly configured as a guest. I managed to ssh in using the Google cloud UI but Solr didn't seem to be working properly. So I've abandoned that approach. |
I have an outline of a working approach: build a new Solr instance using Vagrant/ansible and then copy over the old Solr indexes from a recent snapshot of the production Solr instance. It seems that I can use Solr 7 (e.g., 7.7.2) and copy the Solr 6 indices over -- but Solr 8 doesn't seem to work [though I can doublecheck.]. Here's the error:
It might be better to build a Solr 6.4 version (to match the production version) -- given Major Changes in Solr 8 | Apache Solr Reference Guide 8.1:
|
java - Solr indexing issue after upgrading from 4.7 to 7.1 - Stack Overflow:
|
I think we'll need to fully rebuild the Solr 8 index from scratch. We're
making some significant schema updates anyway.
…On Mon, Dec 9, 2019 at 2:55 PM Raymond Yee ***@***.***> wrote:
java - Solr indexing issue after upgrading from 4.7 to 7.1 - Stack Overflow
<https://stackoverflow.com/questions/47454434/solr-indexing-issue-after-upgrading-from-4-7-to-7-1>
:
You can't upgrade through that many versions in a single upgrade. Solr
(Lucene) only supports the index format from the previous version, so
you might have to do each version by itself.
There's a tool bundled with Solr to help you do this - the
IndexUpgrader
<https://lucene.apache.org/solr/guide/7_1/indexupgrader-tool.html>.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#771?email_source=notifications&email_token=AAJ2EVTEC75MK73UZ62EC3LQX3EGLA5CNFSM4JYTRFSKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGK73YA#issuecomment-563477984>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJ2EVVG3WOOY6G7WAOQ65LQX3EGLANCNFSM4JYTRFSA>
.
|
Here's some notes on how I built the Solr instance I have for backing the staging server. I used open-context-py/build_solr.yml at i766_build_solr · rdhyee/open-context-py to build
I then
Mount the oc-solr-20191206-disk drive. I use Compute Engine - OpenContxt Python Dev - Google Cloud Platform and hit the "+Attach existing disk", pick I ssh into the new machine (
set up configuration files:
Now do a restore of the Solr index (Making and Restoring Backups | Apache Solr Reference Guide 7.7) using HTTPie – command line HTTP client:
or
You can restorestatus:
or
|
While we are in the process of migrating to new production Solr instances (Build new production Solr instances · Issue #766 · ekansa/open-context-py), it's very helpful to be able to clone the current production Solr instance. In this issue, I will work out a working method for backing up and cloning the production instance.
The text was updated successfully, but these errors were encountered: