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

Support defining arbitrary autoscaling simulation scenarios

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.4
    • Component/s: None
    • Labels:
      None

      Description

      In many cases where the bin/solr autoscaling tool is used it would be very useful to be able to specify a concrete scenario to play out, eg:

      • load a snapshot (or create a simulated cluster of N nodes)
      • calculate suggestions
      • apply suggestions
      • kill one or more nodes
      • loop N times
      • make some arbitrary SolrRequest-s
      • save snapshot
      • etc...

       

      This could be expressed as a very simple DSL that can be loaded from a text file, with the following format:

      # comments
      // or comments
      create_cluster numNodes=5 // inline comment
      solr_request /admin/collections?action=CREATE&name=testCollection&numShards=2&replicationFactor=2
      loop_start iterations=10
        calculate_suggestions
        apply_suggestions
      loop_end
      save_snapshot path=/foo

       

        Attachments

        1. SOLR-13831.patch
          52 kB
          Andrzej Bialecki
        2. SOLR-13831.patch
          64 kB
          Andrzej Bialecki

          Activity

            People

            • Assignee:
              ab Andrzej Bialecki
              Reporter:
              ab Andrzej Bialecki
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: