On Sat, Nov 8, 2014 at 8:14 PM, Rajkumar Rajaratnam <rajkum...@wso2.com>
wrote:

> Oh, I think I am confused here. Ignore the previous mail.
>
> But #3 can cover all the scenario :)
>

Yes. User can input 0 for #1 and 1 for #2. May be we can just have one
option to the users then.

>
> Thanks.
>
> On Sat, Nov 8, 2014 at 8:07 PM, Rajkumar Rajaratnam <rajkum...@wso2.com>
> wrote:
>
>> Hi Lahiru,
>>
>> #3 includes #1 and #2.
>>
>> If user input < 0.5 implies #1
>> If user input >= 0.5 implies #2
>>
>> IMO, we can go with only #3.
>>
>> wdyt?
>>
>> Thanks.
>>
>> On Sat, Nov 8, 2014 at 7:57 PM, Lahiru Sandaruwan <lahi...@wso2.com>
>> wrote:
>>
>>> Hi all,
>>>
>>> I'm working on $subject. When we predict the instance count from
>>> statistics and dependency based ratio in application, we will get numbers
>>> with fraction. E.g. 1.2, 3.9, 4.5. Therefore we have to round the instance
>>> count for creating instances in IaaS.
>>>
>>>
>>> I have thought of three types to choose from.
>>>
>>>
>>>    1. Floor
>>>    2. Ceiling
>>>    3. Custom percentage
>>>
>>> #3 means, user can give a limit of fraction to decide whether to round
>>> to floor or ceiling.
>>>
>>> e.g. User fives fraction as 0.2,
>>>
>>> Instance count 3.1 Rounded value 3
>>> Instance count 3.21: Rounded value 4
>>> Instance count 1.19: Rounded value 1
>>>
>>> Feel free to give feedback.
>>>
>>> Thanks.
>>>
>>>
>>>
>>>
>>> --
>>> --
>>> Lahiru Sandaruwan
>>> Committer and PMC member, Apache Stratos,
>>> Senior Software Engineer,
>>> WSO2 Inc., http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> email: lahi...@wso2.com blog: http://lahiruwrites.blogspot.com/
>>> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>>>
>>>
>>
>>
>> --
>> Raj
>>
>
>
>
> --
> Raj
>



-- 
--
Lahiru Sandaruwan
Committer and PMC member, Apache Stratos,
Senior Software Engineer,
WSO2 Inc., http://wso2.com
lean.enterprise.middleware

email: lahi...@wso2.com blog: http://lahiruwrites.blogspot.com/
linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146

Reply via email to