#102 ✓resolved
Andrew

Master Slave Configuration Bug

Reported by Andrew | March 24th, 2010 @ 10:33 PM | in Bugs

Hey Mat

We are using sunspot and sunspot_rails in a master/slave configuration. I ran into a problem getting the configuration setup correctly.

The configuration.rb in sunspot rails documentation suggests you should setup the master/slave like this

#   production:
#     solr:
#       hostname: localhost
#       port: 8983
#       path: /solr/myindex
#       log_level: WARNING
#       solr_home: /some/path
#     master_solr:
#       hostname: localhost
#       port: 8982
#       path: /solr

however the code is really looking for something like this

#   production:
#     solr:
#       master_hostname: 192.168.0.3
#       hostname: 192.168.0.2
#       master_port: 8983
#       port: 8983
#       master_path: /solr/myindex
#       path: /solr/myindex
#       log_level: WARNING
#       solr_home: /some/path
#     master_solr:
#       hostname: not_read
#       port: not_read
#       path: not_read

Note that you still need the master_solr section to tell it that you want to use the master/slave setup. Even though it proceeds to read the mater_hostname, etc from under the solr section of the config.

Thanks for your work on the sunspot gems, we really appreciate it. And sorry I don't have time to submit a patch for this issue atm.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Awesome Solr interaction for Ruby

Tags

Pages