gather those events : instrumenting everything for analysis

72
Gather those Events Instrumenting Everything for Analysis Sriskandarajah Suhothayan (Suho) Technical Lead WSO2 Inc.

Upload: sriskandarajah-suhothayan

Post on 27-Jan-2015

120 views

Category:

Data & Analytics


0 download

DESCRIPTION

About WSO2CEP and WSO2BAM on WSO2Con 2014 Europe Barcelona

TRANSCRIPT

Page 1: Gather those events : Instrumenting everything for analysis

Gather  those  Events  Instrumenting  Everything  for  Analysis

Sriskandarajah  Suhothayan  (Suho)Technical  Lead  

WSO2  Inc.            

Page 2: Gather those events : Instrumenting everything for analysis

Connected  Business  !

Page 3: Gather those events : Instrumenting everything for analysis

Connected  Business  !

Page 4: Gather those events : Instrumenting everything for analysis

Connected  Business  !

● Services ● Systems ● Data ● APIs ● Cloud ● Mobile ● Workflows ● ….

Page 5: Gather those events : Instrumenting everything for analysis

Connected  Business  !

● on-premise / cloud ● From WSO2/ 3rd party

geographical locations ● using various protocols &

message formats

Page 6: Gather those events : Instrumenting everything for analysis

Issues  

Page 7: Gather those events : Instrumenting everything for analysis

Issues  

Page 8: Gather those events : Instrumenting everything for analysis

Issues  

Page 9: Gather those events : Instrumenting everything for analysis

Issues  

Page 10: Gather those events : Instrumenting everything for analysis

Issues  

Page 11: Gather those events : Instrumenting everything for analysis

Issues  

Page 12: Gather those events : Instrumenting everything for analysis

Issues  

Page 13: Gather those events : Instrumenting everything for analysis

Monitor  ..!

Present

!

Page 14: Gather those events : Instrumenting everything for analysis

Analyse  ..!

Present

!

           Analyse  !!

!  

 

Page 15: Gather those events : Instrumenting everything for analysis

Gather  Info    ..!

Present  

!

           Analyse  !!

!  

 

           Gather  !!

Page 16: Gather those events : Instrumenting everything for analysis

Gather  Info    ..!

                                                                                                                               Present  !  !! !            Gather  

!!

Having proper data @ proper place

@ proper time !

Page 17: Gather those events : Instrumenting everything for analysis

Gather  Info    ..!

                                                                                                                               Present  !  !! !            Gather  

!!

Having proper data @ proper place

@ proper time ! !

What is Proper ?

Page 18: Gather those events : Instrumenting everything for analysis

Do  we  know  what  proper  is  ?  

Page 19: Gather those events : Instrumenting everything for analysis

Do  we  know  what  proper  is  ?  

Page 20: Gather those events : Instrumenting everything for analysis

YES  !

We captor them direct them for analysis & write queries to produce alerts using !

&

Page 21: Gather those events : Instrumenting everything for analysis

NO  &  Maybe  !  

?

Lost !

http://aroundtheworldineightywaves.com/wp-content/uploads/lost.jpg

Page 22: Gather those events : Instrumenting everything for analysis

NO  &  Maybe  !  

?

How we can solve ?

http://aroundtheworldineightywaves.com/wp-content/uploads/lost.jpg

Page 23: Gather those events : Instrumenting everything for analysis

NO  &  Maybe  !  

?

How we can solve ?

http://aroundtheworldineightywaves.com/wp-content/uploads/lost.jpg

Page 24: Gather those events : Instrumenting everything for analysis

How  we  gather  ?

           Gather  !!

Analysis

Real time Post

Real time √ √

Batch x √

Page 25: Gather those events : Instrumenting everything for analysis

How  We  Gather  ?

           Gather  !!

Strategy ...

Page 26: Gather those events : Instrumenting everything for analysis

From  Where  We  Start  ?  

• There is always some sensitive parts of infrastructure Which we have to monitor !

• We can enrich them…. !

• When we have an infrastructure to analyse data, Add some more data

Page 27: Gather those events : Instrumenting everything for analysis

From  where  we  gather?

Page 28: Gather those events : Instrumenting everything for analysis

From  where  we  gather?

Page 29: Gather those events : Instrumenting everything for analysis

From  where  we  gather?

Page 30: Gather those events : Instrumenting everything for analysis

From  where  we  gather?

Page 31: Gather those events : Instrumenting everything for analysis

From  where  we  gather?

Page 32: Gather those events : Instrumenting everything for analysis

From  where  we  gather?

Page 33: Gather those events : Instrumenting everything for analysis

From  where  we  gather?

Page 34: Gather those events : Instrumenting everything for analysis

From  where  we  gather?

Page 35: Gather those events : Instrumenting everything for analysis

From  where  we  gather?

Page 36: Gather those events : Instrumenting everything for analysis

From  where  we  gather?

Page 37: Gather those events : Instrumenting everything for analysis

From  where  we  gather?

Page 38: Gather those events : Instrumenting everything for analysis

From  where  we  gather?

Page 39: Gather those events : Instrumenting everything for analysis

From  where  we  gather?

Page 40: Gather those events : Instrumenting everything for analysis

From  where  we  gather?

!! Is it only from WSO2 Servers ?

Page 41: Gather those events : Instrumenting everything for analysis

From  where  we  gather?

!

Page 42: Gather those events : Instrumenting everything for analysis

From  where  we  gather?

!

Page 43: Gather those events : Instrumenting everything for analysis

From  where  we  gather?

!

Page 44: Gather those events : Instrumenting everything for analysis

From  where  we  gather?

!

Page 45: Gather those events : Instrumenting everything for analysis

From  where  we  gather?

!

Page 46: Gather those events : Instrumenting everything for analysis

From  where  we  gather?

!

Page 47: Gather those events : Instrumenting everything for analysis

From  where  we  gather?

!

Page 48: Gather those events : Instrumenting everything for analysis

From  where  we  gather?

!

Page 49: Gather those events : Instrumenting everything for analysis

From  where  we  gather?

!

Page 50: Gather those events : Instrumenting everything for analysis

From  where  we  gather?

!

Page 51: Gather those events : Instrumenting everything for analysis

From  where  we  gather?

!All

Page 52: Gather those events : Instrumenting everything for analysis

From  where  we  gather?

!All

All these from Custom Data Publishers !

Page 53: Gather those events : Instrumenting everything for analysis

They can do … !

• Asynchronous • Auto retry • Auto recovery • Load-balancing • Fail-over

How  good  the  Data  Publishers  are  ?

Page 54: Gather those events : Instrumenting everything for analysis

!! Only from Thrift ?

How  we  gather?  

Page 55: Gather those events : Instrumenting everything for analysis

!!!!!

How  we  gather?  

Page 56: Gather those events : Instrumenting everything for analysis

!!!!!

How  we  gather?  

They have many forms

• XML • JSON • Text • Map • WSO2 Event

Page 57: Gather those events : Instrumenting everything for analysis

How  we  gather?

!!!!!

Page 58: Gather those events : Instrumenting everything for analysis

How  we  gather?

!!!!!

!

Page 59: Gather those events : Instrumenting everything for analysis

How  we  gather?  

!

Page 60: Gather those events : Instrumenting everything for analysis

How  we  gather?  

!

Page 61: Gather those events : Instrumenting everything for analysis

Performance  

!!

• 1.8M Events/Sec on same JVM • About 250K over network for single node !!!

• 30K over Network to 3 node Casandra cluster

Page 62: Gather those events : Instrumenting everything for analysis

How  we  manage  ?

•Data is in different formats •Converted to a common format •Virtualised as Streams of Events •Events Stream has

Name : phone.retail.shop Version : 1.0.0 ! & also they have a Definition!

Page 63: Gather those events : Instrumenting everything for analysis

Stream  Definition

{ 'name':'phone.retail.shop', 'version':'1.0.0', 'nickName': 'Phone_Retail_Shop', 'description': 'Phone Sales', 'metaData':[ {'name':'clientType','type':'STRING'} ], 'correlaitonData':[ {'name':’transactionID’,'type':'STRING'} ], 'payloadData':[ {'name':'brand','type':'STRING'}, {'name':'quantity','type':'INT'}, {'name':'total','type':'INT'}, {'name':'user','type':'STRING'} ] } !!

Page 64: Gather those events : Instrumenting everything for analysis

The  Big  Data  View

Page 65: Gather those events : Instrumenting everything for analysis

HA  /  Scalability  of  

Page 66: Gather those events : Instrumenting everything for analysis

HA  /  Scalability  of  

Page 67: Gather those events : Instrumenting everything for analysis

HA  /  Scalability  of  

Page 68: Gather those events : Instrumenting everything for analysis

HA  /  Scalability  of  

Page 69: Gather those events : Instrumenting everything for analysis

HA  of  

!

Page 70: Gather those events : Instrumenting everything for analysis

HA  of  

!

Page 71: Gather those events : Instrumenting everything for analysis

What gets measured, gets managed. !

~ Peter Drucker ~

Page 72: Gather those events : Instrumenting everything for analysis

Thank  You