lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cao Manh Dat (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (SOLR-10374) Implement set-policy and remove-policy APIs
Date Mon, 10 Apr 2017 06:49:42 GMT

     [ https://issues.apache.org/jira/browse/SOLR-10374?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Cao Manh Dat resolved SOLR-10374.
---------------------------------
    Resolution: Fixed

> Implement set-policy and remove-policy APIs
> -------------------------------------------
>
>                 Key: SOLR-10374
>                 URL: https://issues.apache.org/jira/browse/SOLR-10374
>             Project: Solr
>          Issue Type: Sub-task
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: SolrCloud
>            Reporter: Shalin Shekhar Mangar
>            Assignee: Cao Manh Dat
>              Labels: autoscaling
>             Fix For: master (7.0)
>
>         Attachments: SOLR-10374.patch, SOLR-10374.patch, SOLR-10374.patch
>
>
> Add {{set-policy}} and {{remove-policy}} APIs for adding, updating and deleting autoscaling
policies from Zookeeper.
> {code}
> curl -H 'Content-type:application/json' -d {
>   "set-policy": {
>     "name" : "default",
>     "preferences": [
>         {
>           "minimize": "replicas",
>           "precision": 3
>         },
>         {
>           "maximize": "freedisk",
>           "precision": 100
>         },
>         {
>           "minimize": "cpu",
>           "precision": 10
>         }
>     ]
>   }
> }' http://localhost:8983/solr/admin/autoscaling
> {code}
> {code}
> curl -H 'Content-type:application/json' -d '{
>   "remove-policy": "policy1"
> }' http://localhost:8983/solr/admin/autoscaling
> {code}
> This issue is only for the CRUD APIs. The actual implementation of these policies will
be done in a separate issue.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message