On Wed, Jun 15, 2016 at 1:47 PM, CD Athuraliya <[email protected]> wrote:
> Hi CEP team, > > HI CD, > I'm running performance tests for an execution plan which is used to send > session termination events for security analytics dashboard. I need to > perform a load test for flushing an event table scenario. We have added > another temp stream to trigger the event table flush as below. Since we > need to measure throughput/latency for event table flushing we have > (temporally) added current timestamp to one attribute of each event. But it > appears that the timestamp is same for every event, which causes erroneous > latency values. Is this the expected behavior of below Siddhi syntax? Or > else what would be the best approach to load test a scenario like this? > Appreciate your thoughts/comments. I'm using this consumers/publishers, > based on these samples [1]. > > from flushStream join EventTerminationTable > select sessionId, time:timestampInMilliseconds(time:currentTimestamp(), > 'yyyy-MM-dd HH:mm:ss') as sessionStart, sessionRenew, sessionTermination, > action, username, userStoreDomain, ip, tenantId, rememberFlag > insert into TestSessionAnalyticsOutputStream; > As I mentioned offline, time:timestampInMilliseconds method will be called for every join. Since this operation if faster you couldn't see much difference in the timestamp value, (when you have large no of events then you can see some change in timestamp).. Thanks, Mohan > > [1] https://github.com/wso2/product-cep/tree/master/modules/samples > > Thanks, > CD > > -- > *CD Athuraliya* > Software Engineer > WSO2, Inc. > lean . enterprise . middleware > Mobile: +94 716288847 <94716288847> > LinkedIn <http://lk.linkedin.com/in/cdathuraliya> | Twitter > <https://twitter.com/cdathuraliya> | Blog > <https://cdathuraliya.wordpress.com/> > -- *V. Mohanadarshan* *Associate Tech Lead,* *Data Technologies Team,* *WSO2, Inc. http://wso2.com <http://wso2.com> * *lean.enterprise.middleware.* email: [email protected] phone:(+94) 771117673
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
