Changeset 30303


Ignore:
Timestamp:
2015-10-09T18:20:40+13:00 (9 years ago)
Author:
ak19
Message:

Dr Bainbridge worked out the fix for getting solr collections working off a readonly location like a DVD-ROM.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/build.xml

    r30279 r30303  
    143143    <property name="readonly-packages.home" value="${basedir}/packages"/>
    144144    <property name="packages.home" value="${gsdl3.writablehome}/packages"/>
     145    <!--
     146     To run solr from a readonly location (like a DVD-ROM), its locktype needs to be "single",
     147     else solr tries to write out a lock file to the collection's index folder which is read-only.
     148
     149     https://cwiki.apache.org/confluence/display/solr/IndexConfig+in+SolrConfig
     150     says that the "single" locktype is "for special situations of a read-only index directory, or ...."
     151     
     152     See also http://wiki.apache.org/lucene-java/AvailableLockFactories
     153     and look for the documentation on "locktype" in solr collection's etc/conf/solrconfig.xml
     154     for further information on the different locktypes/
     155
     156     To set the locktype property from the commandline (it's a property to the server web), pass in
     157     "-Dsolr.lock.type=..." to the web server, as explained in
     158     http://lucene.472066.n3.nabble.com/Where-can-we-set-the-parameters-in-Solr-Config-td4183706.html
     159      -->
     160    <property name="readonly.catalina.opts" value="-Dsolr.lock.type=single"/>
    145161  <else>
    146162    <property name="packages.home" value="${basedir}/packages"/>
     163    <property name="readonly.catalina.opts" value=""/>
    147164  </else>
    148165  </if>
     
    15091526    <if><bool>
    15101527    <isset property="fedora.maxpermsize"/></bool>
    1511       <property name="catalina.opts" value="-Djava.util.prefs.syncInterval=2000000 -DGSDL3HOME=$GSDL3HOME -DGSDLOS=$GSDLOS -DPATH=$PATH -Xmx800M ${fedora.maxpermsize}"/>
     1528      <property name="catalina.opts" value="-Djava.util.prefs.syncInterval=2000000 -DGSDL3HOME=$GSDL3HOME -DGSDLOS=$GSDLOS -DPATH=$PATH -Xmx800M ${readonly.catalina.opts} ${fedora.maxpermsize}"/>
    15121529      <else>
    1513     <property name="catalina.opts" value="-Djava.util.prefs.syncInterval=2000000 -DGSDL3HOME=$GSDL3HOME -DGSDLOS=$GSDLOS -DPATH=$PATH -Xmx800M"/>
     1530    <property name="catalina.opts" value="-Djava.util.prefs.syncInterval=2000000 -DGSDL3HOME=$GSDL3HOME -DGSDLOS=$GSDLOS -DPATH=$PATH -Xmx800M ${readonly.catalina.opts}"/>
    15141531      </else>
    15151532    </if>
     
    15761593    <if><bool>
    15771594    <isset property="fedora.maxpermsize"/></bool>
    1578       <property name="catalina.opts" value="-Djava.util.prefs.syncInterval=2000000 -DGSDL3HOME=$GSDL3HOME -DGSDLOS=$GSDLOS -DPATH=$PATH -Xmx800M ${fedora.maxpermsize}"/>
     1595      <property name="catalina.opts" value="-Djava.util.prefs.syncInterval=2000000 -DGSDL3HOME=$GSDL3HOME -DGSDLOS=$GSDLOS -DPATH=$PATH -Xmx800M ${readonly.catalina.opts} ${fedora.maxpermsize}"/>
    15791596      <else>
    1580     <property name="catalina.opts" value="-Djava.util.prefs.syncInterval=2000000 -DGSDL3HOME=$GSDL3HOME -DGSDLOS=$GSDLOS -DPATH=$PATH -Xmx800M"/>
     1597    <property name="catalina.opts" value="-Djava.util.prefs.syncInterval=2000000 -DGSDL3HOME=$GSDL3HOME -DGSDLOS=$GSDLOS -DPATH=$PATH -Xmx800M ${readonly.catalina.opts}"/>
    15811598      </else>
    15821599    </if>
Note: See TracChangeset for help on using the changeset viewer.