Do we have any docs explaining these things in auto-scaling. For example, I have a an app. If I get more than two hundred concurrent requests, which will take at least 30 seconds to process, I want to auto-scale the app. But I'm not sure which values to put in auto-scaling policy.
It would be great if we have docs for these. Shall we also improve the design by moving relevant logic to CEP as Imesh has mentioned? On Sat, Apr 12, 2014 at 7:59 AM, Lahiru Sandaruwan <[email protected]> wrote: > Hi Imesh, > > Yes. The reason was, the request in flight count does not reduce if the > response is not sent back to client. It kept increasing and held at a high > value even there were no request sent due that reason. > > Thanks. > > Sent from my mobile. > On Apr 11, 2014 7:06 PM, "Imesh Gunaratne" <[email protected]> wrote: > >> Hi Lahiru, >> >> This is regarding the modification we did in load balancer statistics >> publishing logic in LB to publish statistics every one minute from LB to >> CEP. >> >> Commit Revision: 7d8a8b3cdfb112affc230c6716d71a24e0a35c0a >> >> I think there is a problem with this design. Ideally the time window >> processing logic should reside in CEP. I just went through the CEP >> artefacts and found that we already have an execution plan to calculate >> load balancer statistics every one minute and publish to Auto-scaler: >> >> <queryExpressions><![CDATA[ >> from lbStats1#window.timeBatch(1 min) >> select cluster_id,network_partition_id, avg(in_flight_request_count) as >> count group by cluster_id,network_partition_id insert into >> average_in_flight_requests;]]></queryExpressions> >> >> Could you recall what was the exact issue we experienced when we decided >> to do this modification? >> >> Thanks >> >> >> >> -- >> Imesh Gunaratne >> >> Technical Lead, WSO2 >> Committer & PPMC Member, Apache Stratos >> > -- Isuru Perera Senior Software Engineer | WSO2, Inc. | http://wso2.com/ Lean . Enterprise . Middleware about.me/chrishantha
