Skip to content
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

🌌 Clusterize #2749

Draft
wants to merge 18 commits into
base: master
Choose a base branch
from
Draft

🌌 Clusterize #2749

wants to merge 18 commits into from

Conversation

mrharpo
Copy link
Contributor

@mrharpo mrharpo commented Apr 16, 2024

Clusterize

Updates for Kubernetes deployment

  • Sets AAPB_LOG env for production

@mrharpo mrharpo self-assigned this Apr 16, 2024
@mrharpo mrharpo added CD 🏗️ Relating to Continuous Deployment production 🎭 Relating to the production deployment labels Apr 16, 2024
@@ -419,7 +419,7 @@ def playlist_order
end
def playlist_map
@playlist_map ||= begin
response = RSolr.connect(url: 'http://localhost:8983/solr/').get('select', params:
response = RSolr.connect(url: config.solr_url).get('select', params:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mrharpo where does the config method come from here?

# TODO: Get separate dev and test cores, and change this back to 8888. bug #1
production:
url: http://127.0.0.1:8983/solr/blacklight-core
url: <%= ENV['SOLR_URL'] || 'http://127.0.0.1:8983/solr/' %>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think Blacklight might be expecting the core name (blacklight-core) as part of the URL, isn't it?

@@ -10,7 +10,8 @@ class Solr
def initialize
environment = ENV['RAILS_ENV'] || DEFAULT
conf = YAML.load_file(Rails.root + 'config/blacklight.yml')
@connect = RSolr.connect(url: conf[environment]['url'])
solr_url = ENV['SOLR_URL'] || conf[environment]['url']
@connect = RSolr.connect(url: solr_url + 'blacklight-core')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(see also above comment)

Blacklight gem may be expecting the core name to be a part of the configured URL, so we may run into issues by removing it from blacklight.yml and adding it back here.

@@ -112,7 +112,7 @@ def process_query(query)
q = QueryMaker.translate(query)
$LOG.info("Query solr for #{query}")

@options[:ids] = RSolr.connect(url: 'http://localhost:8983/solr/')
@options[:ids] = RSolr.connect(url: config.solr_url)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(see other related comments)

we're leaving the core name off here, but adding it when connecting to Solr in lib/solr.rb.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CD 🏗️ Relating to Continuous Deployment production 🎭 Relating to the production deployment
Projects
Status: 🏗 In progress
Development

Successfully merging this pull request may close these issues.

None yet

2 participants