Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-16326

ReplicationHandler should support all parameters for backupAfter

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 8.11.1
    • None
    • Backup/Restore
    • None

    Description

      It is currently not possible to change the default location for backups because the ReplicationHandler does not support the location parameter unless an actual query is made. That means that backups provide a means to roll back to a previous version of the data, but no protection from hardware failure, as the backup will always be on the same file system as the index.

      Ideally, a configuration like the following would allow for setting the default backup location, while still supporting alternate locations via request.

      <requestHandler name="/replication" class="solr.ReplicationHandler">
        <lst name="leader">
          <str name="replicateAfter">optimize</str>
          <str name="backupAfter">optimize</str>
        </lst>
        <int name="maxNumberOfBackups">2</int>
        <str name="commitReserveDuration">00:00:20</str>
        <lst name="defaults">
          <str name="location">/var/i8s/backup/solr/${i8s.environment}/${solr.core.name}</str>
        </lst>
      </requestHandler>

       

      There are probably other parameters that need to work the same way, but I only know for sure that location does not work.

      Attachments

        Activity

          People

            Unassigned Unassigned
            twoodard Thomas Woodard
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: