Correction:
this should be an element, not a property.

<maxInstanceLimit>2</maxInstanceLimit>


On Tue, Mar 19, 2013 at 4:02 AM, Amila Maha Arachchi <[email protected]>wrote:

>
>
> On Tue, Mar 19, 2013 at 4:24 PM, Nirmal Fernando <[email protected]> wrote:
>
>>
>>
>>
>> On Tue, Mar 19, 2013 at 3:48 AM, Amila Maha Arachchi <[email protected]>wrote:
>>
>>> What I meant by a default values was something usable in the runtime :)
>>> Not the -1. But I dont know whether there will be any other side effects on
>>> starting a default number of VMs (most probably 1). Sometimes we
>>> intentionally use -1 to disable some configs. In that case -1 becomes a
>>> valid config.
>>
>>
>> Yes, this is exactly why I used -1, as I mentioned earlier. :-)
>>
>> This is the message,
>>
>> "Spawning a new VM means money and if you really want to spawn instances
>> you should specify a max limit, otherwise we don't want to spend your money
>> without your permission"
>>
>
> +1 :)
>
>
>>
>>>
>>> On Tue, Mar 19, 2013 at 4:04 PM, Nirmal Fernando <[email protected]>wrote:
>>>
>>>> Indeed there's a default value :-), but it is set to -1. Since this is
>>>> not represent some random integer, but a real VM. But I'm not sure. :-)
>>>>
>>>>
>>>> On Mon, Mar 18, 2013 at 8:04 PM, Amila Maha Arachchi 
>>>> <[email protected]>wrote:
>>>>
>>>>> Just a suggestion. How about having a default value such as 1 if the
>>>>> max limit is not defined. Normally, when we program, if we expect some
>>>>> parameter and if it is not available, we should go with a default value
>>>>> (should also log about it - "MaxLimit not defined. Using the default value
>>>>> 1" kind of a message). This way, we make our stuff work regardless of
>>>>> users' mis configs.
>>>>>
>>>>>
>>>>> On Tue, Mar 19, 2013 at 5:02 AM, Nirmal Fernando <[email protected]>wrote:
>>>>>
>>>>>> Guys,
>>>>>>
>>>>>> Note the $subject. Otherwise no instance would be spawned with the
>>>>>> latest code.
>>>>>>
>>>>>> Refer to the https://wso2.org/jira/browse/SPI-145 JIRA for more info.
>>>>>>
>>>>>> eg:
>>>>>> <property name="maxInstanceLimit" value="2"/>
>>>>>>
>>>>>> --
>>>>>>
>>>>>> Thanks & regards,
>>>>>> Nirmal
>>>>>>
>>>>>> Software Engineer- Platform Technologies Team, WSO2 Inc.
>>>>>> Mobile: +94715779733
>>>>>> Blog: http://nirmalfdo.blogspot.com/
>>>>>>
>>>>>> <http://nirmalfdo.blogspot.com/>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> *Amila Maharachchi*
>>>>> Technical Lead
>>>>> Member, Management Committee - Cloud & Platform TG
>>>>> WSO2, Inc.; http://wso2.com
>>>>>
>>>>> Blog: http://maharachchi.blogspot.com
>>>>> Mobile: +94719371446
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> Thanks & regards,
>>>> Nirmal
>>>>
>>>> Software Engineer- Platform Technologies Team, WSO2 Inc.
>>>> Mobile: +94715779733
>>>> Blog: http://nirmalfdo.blogspot.com/
>>>>
>>>> <http://nirmalfdo.blogspot.com/>
>>>>
>>>
>>>
>>>
>>> --
>>> *Amila Maharachchi*
>>> Technical Lead
>>> Member, Management Committee - Cloud & Platform TG
>>> WSO2, Inc.; http://wso2.com
>>>
>>> Blog: http://maharachchi.blogspot.com
>>> Mobile: +94719371446
>>>
>>>
>>
>>
>> --
>>
>> Thanks & regards,
>> Nirmal
>>
>> Software Engineer- Platform Technologies Team, WSO2 Inc.
>> Mobile: +94715779733
>> Blog: http://nirmalfdo.blogspot.com/
>>
>> <http://nirmalfdo.blogspot.com/>
>>
>
>
>
> --
> *Amila Maharachchi*
> Technical Lead
> Member, Management Committee - Cloud & Platform TG
> WSO2, Inc.; http://wso2.com
>
> Blog: http://maharachchi.blogspot.com
> Mobile: +94719371446
>
>


-- 

Thanks & regards,
Nirmal

Software Engineer- Platform Technologies Team, WSO2 Inc.
Mobile: +94715779733
Blog: http://nirmalfdo.blogspot.com/

<http://nirmalfdo.blogspot.com/>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to