-
Notifications
You must be signed in to change notification settings - Fork 2
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
Update Solr replication factor #620
Conversation
…op and the index commits)
@@ -110,7 +110,7 @@ def self.create_collection(solr_alias_uri, collection_name) | |||
create_query = build_uri( | |||
base_uri: solr_alias_uri, | |||
path: "/solr/admin/collections", | |||
query: "action=CREATE&name=#{collection_name}&collection.configName=#{config_set}&numShards=1&replicationFactor=2" | |||
query: "action=CREATE&name=#{collection_name}&collection.configName=#{config_set}&numShards=1&replicationFactor=3" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the real change on this PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
@@ -26,6 +26,11 @@ namespace :index do | |||
DspaceResearchDataHarvester.harvest(false) | |||
SolrCloudHelper.collection_writer_commit! | |||
Rails.logger.info "Indexing: Harvesting and indexing DataSpace research data collections completed" | |||
rescue => ex | |||
# DataSpace errors quite often. | |||
# Log the exception and let other process continue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
Closes #584
Below is how the new Solr collection looks in staging with
replication factor = 3