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

Add pid file to snapinstaller to skip script overruns, and recover from failure

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.4
    • replication (scripts)
    • None

    Description

      The pid file will allow snapinstaller to be run as fast as possible without overruns. Also it will recover from a last failed run should an older snapinstaller process no longer be running.

      Avoiding overruns means that snapinstaller can be run as fast as possible, but without suffering from the performance issue described here:

      http://wiki.apache.org/solr/SolrPerformanceFactors#head-fc7f22035c493431d58c5404ab22aef0ee1b9909

      This means that one can do the following

      */1 * * * * ..../bin/snappuller && ..../bin/snapinstaller

      Even with a 'properly tuned' setup, there can be times where snapinstaller can suffer from overruns due to a lack of resources, or an unoptimized index using more resources etc.

      currently the pid will live in /tmp ... perhaps it should be in the logs dir?

      Attachments

        1. SOLR-990.patch
          1 kB
          Dan Rosher
        2. SOLR-990.patch
          0.8 kB
          Dan Rosher
        3. SOLR-990.patch
          0.9 kB
          Dan Rosher
        4. SOLR-990.patch
          0.9 kB
          Dan Rosher

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            otis Otis Gospodnetic
            rosher Dan Rosher
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment