Nope, currently. There was a discussion here: Manual scaling effects are
not persisted

On Sat, Nov 8, 2014 at 12:28 PM, Lahiru Sandaruwan <[email protected]> wrote:

> Hi Nirmal,
>
> Do we persist the values set by Manual-scaling command?
>
>
> Thanks.
>
> On Mon, Oct 13, 2014 at 4:32 PM, Nirmal Fernando <[email protected]>
> wrote:
>
>> Hi Lahiru,
>>
>> Yes, VM cluster monitor needs to read relevant properties and update them
>> accordingly.
>>
>> On Mon, Oct 13, 2014 at 12:03 PM, Lahiru Sandaruwan <[email protected]>
>> wrote:
>>
>>> Great. So we can use same AS API for VM cluster monitor updating.. right?
>>>
>>> On Mon, Oct 13, 2014 at 11:58 AM, Reka Thirunavukkarasu <[email protected]>
>>> wrote:
>>>
>>>> +1. This will be nice to have. So, with this feature we can dynamically
>>>> update the cluster monitor.
>>>>
>>>> Thanks,
>>>> Reka
>>>>
>>>> On Mon, Oct 13, 2014 at 8:43 AM, Nirmal Fernando <
>>>> [email protected]> wrote:
>>>>
>>>>> Hi All,
>>>>>
>>>>> I've implemented $subject for Kubernetes - Docker scenario.
>>>>>
>>>>> *Implementation Details:*
>>>>>
>>>>> Autoscaler provides an API to update a cluster monitor created for a
>>>>> particular cluster, by accepting set of properties. Autoscaler API
>>>>> implementation delegates such a request to relevant cluster monitor via
>>>>> AbstractClusterMonitor. It's up to that particular Cluster Monitor to
>>>>> decide, what properties to read and what properties it'll update.
>>>>>
>>>>> *REST API*
>>>>>
>>>>> curl -X PUT -H "Content-Type: application/json" -d
>>>>> @manual-scaling.json -k -v -u admin:admin
>>>>> https://localhost:9443/stratos/admin/subscriptions/{subscriptionAlias}/properties
>>>>>
>>>>> Sample manual-scaling file:
>>>>>
>>>>> {
>>>>>
>>>>>     "property": [
>>>>>
>>>>>             {
>>>>>
>>>>>              "name": "KUBERNETES_REPLICAS_MIN",
>>>>>
>>>>>              "value": "4"
>>>>>
>>>>>             }
>>>>>
>>>>>           ]
>>>>>
>>>>> }
>>>>>
>>>>>
>>>>> *CLI command:*
>>>>>
>>>>> stratos> help update-subscription
>>>>>
>>>>> Update a previously made subscription.
>>>>>
>>>>> usage: update-subscription [cartridge-subscription-alias] [-p <resource
>>>>>
>>>>>        path>]
>>>>>
>>>>>  -p,--resource-path <resource path>  Update subscription properties
>>>>> resource path
>>>>>
>>>>> stratos> update-subscription myphp --resource-path
>>>>> /Volumes/wso2/stratos-4.1.0/M1/manual-scaling.json
>>>>>
>>>>> Successfully updated subscription alias: myphp
>>>>>
>>>>>
>>>>> We can improve this feature further.
>>>>>
>>>>> --
>>>>> Best Regards,
>>>>> Nirmal
>>>>>
>>>>> Nirmal Fernando.
>>>>> PPMC Member & Committer of Apache Stratos,
>>>>> Senior Software Engineer, WSO2 Inc.
>>>>>
>>>>> Blog: http://nirmalfdo.blogspot.com/
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Reka Thirunavukkarasu
>>>> Senior Software Engineer,
>>>> WSO2, Inc.:http://wso2.com,
>>>> Mobile: +94776442007
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> --
>>> Lahiru Sandaruwan
>>> Committer and PMC member, Apache Stratos,
>>> Senior Software Engineer,
>>> WSO2 Inc., http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> email: [email protected] cell: (+94) 773 325 954
>>> blog: http://lahiruwrites.blogspot.com/
>>> twitter: http://twitter.com/lahirus
>>> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>>>
>>>
>>
>>
>> --
>> Best Regards,
>> Nirmal
>>
>> Nirmal Fernando.
>> PPMC Member & Committer of Apache Stratos,
>> Senior Software Engineer, WSO2 Inc.
>>
>> Blog: http://nirmalfdo.blogspot.com/
>>
>
>
>
> --
> --
> Lahiru Sandaruwan
> Committer and PMC member, Apache Stratos,
> Senior Software Engineer,
> WSO2 Inc., http://wso2.com
> lean.enterprise.middleware
>
> email: [email protected] blog: http://lahiruwrites.blogspot.com/
> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>
>


-- 
Best Regards,
Nirmal

Nirmal Fernando.
PPMC Member & Committer of Apache Stratos,
Senior Software Engineer, WSO2 Inc.

Blog: http://nirmalfdo.blogspot.com/

Reply via email to