Changes between Version 54 and Version 55 of apachesolr
- Timestamp:
- Jun 7, 2011, 7:04:08 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
apachesolr
v54 v55 9 9 == Security == 10 10 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}}}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 $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}}} 12 12 13 13 == Reliability == … … 15 15 The 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. 16 16 17 == Web 17 == Website Administrators == 18 18 19 If you run a Drupal web 19 If 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: 20 20 21 21 * lucy.mayfirst.org … … 43 43 Solr host name: localhost 44 44 Solr port: 9080 45 Solr path: /solr/$ SITEPATH45 Solr path: /solr/$COREPATH 46 46 }}} 47 47 … … 99 99 ==== Create new Solr configuration ==== 100 100 101 Use {{{solr_add site}}} to create a new Solr instance101 Use {{{solr_addcore}}} to create a new Solr instance 102 102 103 {{{solr_add site $SITENAME}}}103 {{{solr_addcore $CORENAME}}} 104 104 105 The script will output the Solr admin path ($ SITEPATH) for the new Solr instance.105 The script will output the Solr admin path ($COREPATH) for the new Solr instance. 106 106 107 You can list instances with {{{solr_list site}}} and delete an instance with {{{solr_delsite $SITENAME}}} (add {{{--man}}} for help and more options).107 You can list instances with {{{solr_listcore}}} and delete an instance with {{{solr_delcore $CORENAME}}} (add {{{--man}}} for help and more options). 108 108 109 109 ==== Restart Apache Tomcat ==== … … 114 114 }}} 115 115 116 ==== Test new Solr site ====116 ==== Test new Solr core ==== 117 117 118 118 Check that the new core is accessible with: 119 119 {{{ 120 curl http://localhost:8080/solr/$ SITEPATH/admin/.120 curl http://localhost:8080/solr/$COREPATH/admin/. 121 121 }}} 122 122