Changes between Version 54 and Version 55 of apachesolr


Ignore:
Timestamp:
Jun 7, 2011, 7:04:08 PM (13 years ago)
Author:
Bart
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • apachesolr

    v54 v55  
    99== Security ==
    1010
    11 Solr does not come with a generic authentification mechanism. The Solr installation on mirabal uses a two-level security system. The connection between the web and the Solr server is secured by ssh against attacks from the web. The instances (denoted by $SITENAME) on the Solr server are protected by random admin paths (denoted by $SITEPATH) from one another. The random admin paths are generated by ''core_'' followed by {{{pwgen -1 --secure 30}}}
     11Solr does not come with a generic authentification mechanism. The Solr installation on mirabal uses a two-level security system. The connection between the web and the Solr server is secured by ssh against attacks from the web. The instances (denoted by $CORENAME) on the Solr server are protected by random admin paths (denoted by $COREPATH) from one another. The random admin paths are generated by ''core_'' followed by {{{pwgen -1 --secure 30}}}
    1212
    1313== Reliability ==
     
    1515The ssh connections between the web and the Solr server is supervised by [http://smarden.org/runit/ runit]. If there is a problem ssh will end the connection and runit will restart ssh. Sometimes Solr crashes Tomcat if there are too many requests at once. So we use [http://mmonit.com/monit/ monit] to monitor Solr and restart Tomcat automatically if it crashed.
    1616
    17 == Web site Administrators ==
     17== Website Administrators ==
    1818
    19 If you run a Drupal web site, you can use Solr.  The first step is to determine if you primary host is connected to our Solr server. The following hosts are currently connected:
     19If you run a Drupal website, you can use Solr.  The first step is to determine if you primary host is connected to our Solr server. The following hosts are currently connected:
    2020
    2121 * lucy.mayfirst.org
     
    4343Solr host name: localhost
    4444Solr port: 9080
    45 Solr path: /solr/$SITEPATH
     45Solr path: /solr/$COREPATH
    4646}}}
    4747
     
    9999==== Create new Solr configuration ====
    100100
    101 Use {{{solr_addsite}}} to create a new Solr instance
     101Use {{{solr_addcore}}} to create a new Solr instance
    102102
    103 {{{solr_addsite $SITENAME}}}
     103{{{solr_addcore $CORENAME}}}
    104104
    105 The script will output the Solr admin path ($SITEPATH) for the new Solr instance.
     105The script will output the Solr admin path ($COREPATH) for the new Solr instance.
    106106
    107 You can list instances with {{{solr_listsite}}} and delete an instance with {{{solr_delsite $SITENAME}}} (add {{{--man}}} for help and more options).
     107You can list instances with {{{solr_listcore}}} and delete an instance with {{{solr_delcore $CORENAME}}} (add {{{--man}}} for help and more options).
    108108
    109109==== Restart Apache Tomcat ====
     
    114114}}}
    115115
    116 ==== Test new Solr site ====
     116==== Test new Solr core ====
    117117
    118118Check that the new core is accessible with:
    119119{{{
    120 curl http://localhost:8080/solr/$SITEPATH/admin/.
     120curl http://localhost:8080/solr/$COREPATH/admin/.
    121121}}}
    122122