Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 7.0
    • SolrCloud

    Description

      Add set-policy and remove-policy APIs for adding, updating and deleting autoscaling policies from Zookeeper.

      curl -H 'Content-type:application/json' -d '{
       "set-cluster-preferences":[
              {"minimize": "replicas", "precision": 3},
              {"maximize": "freedisk","precision": 100},
              {"minimize": "cpu","precision": 10}]
        }
        "set-cluster-policy": [
            {"cores":"<10", "node":"#ANY"},
            {"replica":"<2", "shard": "#EACH", "node": "#ANY"},
            {"nodeRole":"!overseer", "replica":"#ANY"}
          ],
       "set-policy":{
           "mypolicy":  [
            {"cores":"<10", "node":"#ANY"}    
          ] }
      }' http://localhost:8983/solr/admin/autoscaling
      
      curl -H 'Content-type:application/json' -d '{
        "remove-policy": "policy1"
      }' http://localhost:8983/solr/admin/autoscaling
      

      This issue is only for the CRUD APIs. The actual implementation of these policies will be done in a separate issue.

      Attachments

        1. SOLR-10374.new.patch
          18 kB
          Shalin Shekhar Mangar
        2. SOLR-10374.new.patch
          12 kB
          Cao Manh Dat
        3. SOLR-10374.new.patch
          8 kB
          Cao Manh Dat
        4. SOLR-10374.patch
          9 kB
          Cao Manh Dat
        5. SOLR-10374.patch
          10 kB
          Cao Manh Dat
        6. SOLR-10374.patch
          9 kB
          Cao Manh Dat

        Activity

          People

            caomanhdat Cao Manh Dat
            shalin Shalin Shekhar Mangar
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: