SlideShare ist ein Scribd-Unternehmen logo
1 von 32
Downloaden Sie, um offline zu lesen
WSO2 BAM2 Integration with Mule ESB
         Kasun Weranga Gunathilake
       Software Engineer – WSO2 BAM
Why server monitoring?

 Analyze all business transactions
 To find a root cause for a failure

 Prevent outages with rapid problem identification

and resolution
 Monitor performance and availability of all ESBs

 Understand resource utilization for tuning and

capacity planning
Business Activity Monitoring
“The aggregation, analysis, and
presentation of real-time information
about activities inside organizations
and involving customers and partners.”
- Gartner
Aggregation
●   Capturing data
●   Data storage
●   What data to
    capture?
Analysis
●   Data operations
●   Building KPIs
●   Operate on large
    amounts of historic
    data or new data
●   Building BI
Presentation
●   Visualizing KPIs/BI
●   Custom Dashboards
●   Visualization tools
●   Not just dashboards!
BAM Architecture
Things to Monitor
●   Server logs
●   Server resource consumption
●   Statistics of services in Mule ESB
●   Analyzing business transactions ( by inspecting
    payload)
Monitor Server logs
●   Mule ESB uses log4j for logging.
●   A Log4j appender can be used to capture log
    events.
●   Write a custom BAM agent to publish log
    events from Mule ESB to BAM.
Monitor Server logs
Custom Agents
●   Java SDK provided
●   Asynchronous & non-blocking
●   Use Thrift for high performance message
    throughput
●   Due to Thrift, different languages can be
    supported
●   Compatible with CEP/BAM
Log4jAppender

●   log4j.appender.LOGEVENT=org.wso2.carbon.mule.log.appender.LogEventAppender

    log4j.appender.LOGEVENT.receiverUrl=tcp://localhost:7611

    log4j.appender.LOGEVENT.authenticationUrl=ssl://localhost:7711

    log4j.appender.LOGEVENT.trustStorePassword=wso2carbon

    log4j.appender.LOGEVENT.columnList=%-5p,%d,[%t],%c:,%m%n

    log4j.appender.LOGEVENT.userName=admin

    log4j.appender.LOGEVENT.password=admin

    log4j.appender.LOGEVENT.processingLimit=1000

    log4j.appender.LOGEVENT.maxTolerableConsecutiveFailure=20


●   log4j.rootCategory=INFO, console, LOGEVENT
The Analyzer Engine
●   Analyzers are based on Easy to learn, SQL like
    Hive query language
●   Runs locally or delegates to Hadoop cluster
    ●   Scalable analytics
    ●   Cluster can range from a couple of nodes to 1000s
●   Analyzers can be scheduled
●   Supports Polyglot data architecture
Advantage of Using BAM
●   Provide central place to analyze all the log
    information (ex:- logs of ESB cluster).
●   Ability to analyze large amount of historical log
    events
●   Efficient way to analyze the root cause for a
    failure.
Analyze Mule logs
●   select logTime, logType, threadName, category, logMessage, logTimestamp
    from LogCollector where logtype='WARN' and logTimestamp >
    unix_timestamp('2013-01-06 11:00:00') order by logTimestamp;
Demonstration..
●   Configure Mule ESB to send log events to BAM
●   Analyze logs using BAM
Monitor Business Transactions
●   Capture useful information by inspecting
    payloads
●   A Mule ESB interceptor can be used to capture
    data from payloads
●   Write a custom BAM agent to publish captured
    data from Mule ESB to BAM
Monitor Business Transactions
Mule Interceptor
●   Use Bookstore example comes with Mule
●   Capture order details using Interceptor
    <flow name="OrderService">

        <http:inbound-endpoint address="http://0.0.0.0:8777/services/order" exchange-pattern="request-response" doc:name="Public order interface"/>

        <cxf:jaxws-service serviceClass="org.mule.example.bookstore.OrderService" />

        <custom-interceptor class="org.wso2.carbon.mule.interceptor.BAMInterceptor"/>

        <component doc:name="Order Service">

          <singleton-object class="org.mule.example.bookstore.OrderServiceImpl"/>

        </component>

        <async>

          <vm:outbound-endpoint path="emailNotification" exchange-pattern="one-way" doc:name="Email Notification"/>

          <vm:outbound-endpoint path="dataWarehouse" exchange-pattern="one-way" doc:name="Data Warehouse"/>

        </async>

    </flow>
Analyze and present information
●   Hive queries use to analyze the captured data.
●   Schedule Hive scripts to do the periodic
    summarizations.
●   Gadget gen tool can be used to generate
    gadgets and deploy on dashboard.
●   Plug 3rd party reporting engines to present
    information
Demonstration...
●   Capture order details from Mule bookstore
    sample
●   Summarize sales against book titles and
    authors
●   Visualize in dashboard
Monitor Server via JMX
●   Server resource consumption (CPU, heap/non-
    heap memory, threads, etc..)
●   Statistics of services deployed in Mule ESB
Monitor Server via JMX
●   Enable JMX in Mule ESB (can use <jmx-
    default-config> )
●   Configure JMX agent to pull statistics and store
    in BAM
       –   Provide the JMX server (Mule ESB)
       –   Select JMX attributes need to monitor
       –   Configure publisher
●   Install JMX statistics toolbox in BAM
Monitor Server via JMX
Demonstration
●   Monitor server resources (CPU, Memory)
●   Monitor statistics of order service in Mule ESB
Real time Monitoring of Mule ESB
●   Improve Risk Management by rapid problem
    identifications
●   Detect specific business conditions or patterns
    to enable instantaneous response.
●   To take timely business decisions
Real time Monitoring
●   Real time analytics via CEP
●   Based on Siddhi - A high performance complex
    event processing engine developed at WSO2
●   Can be seamless integrated with BAM to form a
    complete analytics solution
Real time Monitoring
Demonstration...
●   Notify sudden increase in sales
●   Notify users about unusual system errors
Summary
●   Importance of Monitoring the server
●   BAM architecture
●   Monitor server logs
●   Monitor business transactions
●   Monitor server via JMX
●   Realtime monitoring via CEP
Questions?
Useful Links....
●   BAM Docs
    http://docs.wso2.org/wiki/display/BAM201

●   Setting up JMX agent
    http://docs.wso2.org/wiki/display/BAM210/Setting+Up+JMX+Agent+for+BAM

●   Write a custom data-agent
    http://wso2.org/library/articles/2012/07/creating-custom-agents-publish-events-bamcep

●   CEP docs
    http://docs.wso2.org/wiki/display/CEP201

●   Hive query language
    https://cwiki.apache.org/confluence/display/Hive/LanguageManual

●   Mule docs
    http://www.mulesoft.org/documentation/display/MULE3USER/Using+Interceptors

    http://www.mulesoft.org/documentation/display/MULE3USER/JMX+Management

Weitere ähnliche Inhalte

Was ist angesagt?

AWS RDS Oracle - What is missing for a fully managed service?
AWS RDS Oracle - What is missing for a fully managed service?AWS RDS Oracle - What is missing for a fully managed service?
AWS RDS Oracle - What is missing for a fully managed service?DanielHillinger
 
Caching for Microservices Architectures: Session II - Caching Patterns
Caching for Microservices Architectures: Session II - Caching PatternsCaching for Microservices Architectures: Session II - Caching Patterns
Caching for Microservices Architectures: Session II - Caching PatternsVMware Tanzu
 
Managing ESB artifacts with the WSO2 Governance Registry
Managing ESB artifacts with the WSO2 Governance Registry Managing ESB artifacts with the WSO2 Governance Registry
Managing ESB artifacts with the WSO2 Governance Registry WSO2
 
M|18 Welcome Keynote
M|18 Welcome KeynoteM|18 Welcome Keynote
M|18 Welcome KeynoteMariaDB plc
 
Azure reference architectures
Azure reference architecturesAzure reference architectures
Azure reference architecturesMasashi Narumoto
 
Choosing the right Cloud Database
Choosing the right Cloud DatabaseChoosing the right Cloud Database
Choosing the right Cloud DatabaseJanakiram MSV
 
Streaming Data Analytics with ksqlDB and Superset | Robert Stolz, Preset
Streaming Data Analytics with ksqlDB and Superset | Robert Stolz, PresetStreaming Data Analytics with ksqlDB and Superset | Robert Stolz, Preset
Streaming Data Analytics with ksqlDB and Superset | Robert Stolz, PresetHostedbyConfluent
 
Change Data Capture using Kafka
Change Data Capture using KafkaChange Data Capture using Kafka
Change Data Capture using KafkaAkash Vacher
 
Real-Time Analytics Visualized w/ Kafka + Streamliner + MemSQL + ZoomData, An...
Real-Time Analytics Visualized w/ Kafka + Streamliner + MemSQL + ZoomData, An...Real-Time Analytics Visualized w/ Kafka + Streamliner + MemSQL + ZoomData, An...
Real-Time Analytics Visualized w/ Kafka + Streamliner + MemSQL + ZoomData, An...confluent
 
Migration to Alibaba Cloud
Migration to Alibaba CloudMigration to Alibaba Cloud
Migration to Alibaba CloudAlibaba Cloud
 
Cloud migrations Experiences from the Field
Cloud migrations Experiences from the FieldCloud migrations Experiences from the Field
Cloud migrations Experiences from the FieldMariano Kovo
 
A closer look to locaweb IaaS
A closer look to locaweb IaaSA closer look to locaweb IaaS
A closer look to locaweb IaaSGleicon Moraes
 
ETL in data warehouse as a service enviornment
ETL in data warehouse as a service enviornmentETL in data warehouse as a service enviornment
ETL in data warehouse as a service enviornmentSanil Mhatre
 
Scaling up wso2 bam for billions of requests and terabytes of data
Scaling up wso2 bam for billions of requests and terabytes of dataScaling up wso2 bam for billions of requests and terabytes of data
Scaling up wso2 bam for billions of requests and terabytes of dataWSO2
 
Exploring a Real World Use Case
Exploring a Real World Use CaseExploring a Real World Use Case
Exploring a Real World Use CaseWSO2
 
SQL Server Database as a Cloud Service
SQL Server Database as a Cloud ServiceSQL Server Database as a Cloud Service
SQL Server Database as a Cloud ServicePio Balistoy
 
How Kafka and MemSQL Became the Dynamic Duo (Sarung Tripathi, MemSQL) Kafka S...
How Kafka and MemSQL Became the Dynamic Duo (Sarung Tripathi, MemSQL) Kafka S...How Kafka and MemSQL Became the Dynamic Duo (Sarung Tripathi, MemSQL) Kafka S...
How Kafka and MemSQL Became the Dynamic Duo (Sarung Tripathi, MemSQL) Kafka S...HostedbyConfluent
 
Kafka Connect - debezium
Kafka Connect - debeziumKafka Connect - debezium
Kafka Connect - debeziumKasun Don
 
Change data capture with MongoDB and Kafka.
Change data capture with MongoDB and Kafka.Change data capture with MongoDB and Kafka.
Change data capture with MongoDB and Kafka.Dan Harvey
 

Was ist angesagt? (20)

AWS RDS Oracle - What is missing for a fully managed service?
AWS RDS Oracle - What is missing for a fully managed service?AWS RDS Oracle - What is missing for a fully managed service?
AWS RDS Oracle - What is missing for a fully managed service?
 
Caching for Microservices Architectures: Session II - Caching Patterns
Caching for Microservices Architectures: Session II - Caching PatternsCaching for Microservices Architectures: Session II - Caching Patterns
Caching for Microservices Architectures: Session II - Caching Patterns
 
Managing ESB artifacts with the WSO2 Governance Registry
Managing ESB artifacts with the WSO2 Governance Registry Managing ESB artifacts with the WSO2 Governance Registry
Managing ESB artifacts with the WSO2 Governance Registry
 
M|18 Welcome Keynote
M|18 Welcome KeynoteM|18 Welcome Keynote
M|18 Welcome Keynote
 
Azure reference architectures
Azure reference architecturesAzure reference architectures
Azure reference architectures
 
Choosing the right Cloud Database
Choosing the right Cloud DatabaseChoosing the right Cloud Database
Choosing the right Cloud Database
 
Streaming Data Analytics with ksqlDB and Superset | Robert Stolz, Preset
Streaming Data Analytics with ksqlDB and Superset | Robert Stolz, PresetStreaming Data Analytics with ksqlDB and Superset | Robert Stolz, Preset
Streaming Data Analytics with ksqlDB and Superset | Robert Stolz, Preset
 
Change Data Capture using Kafka
Change Data Capture using KafkaChange Data Capture using Kafka
Change Data Capture using Kafka
 
Cloud design principles
Cloud design principlesCloud design principles
Cloud design principles
 
Real-Time Analytics Visualized w/ Kafka + Streamliner + MemSQL + ZoomData, An...
Real-Time Analytics Visualized w/ Kafka + Streamliner + MemSQL + ZoomData, An...Real-Time Analytics Visualized w/ Kafka + Streamliner + MemSQL + ZoomData, An...
Real-Time Analytics Visualized w/ Kafka + Streamliner + MemSQL + ZoomData, An...
 
Migration to Alibaba Cloud
Migration to Alibaba CloudMigration to Alibaba Cloud
Migration to Alibaba Cloud
 
Cloud migrations Experiences from the Field
Cloud migrations Experiences from the FieldCloud migrations Experiences from the Field
Cloud migrations Experiences from the Field
 
A closer look to locaweb IaaS
A closer look to locaweb IaaSA closer look to locaweb IaaS
A closer look to locaweb IaaS
 
ETL in data warehouse as a service enviornment
ETL in data warehouse as a service enviornmentETL in data warehouse as a service enviornment
ETL in data warehouse as a service enviornment
 
Scaling up wso2 bam for billions of requests and terabytes of data
Scaling up wso2 bam for billions of requests and terabytes of dataScaling up wso2 bam for billions of requests and terabytes of data
Scaling up wso2 bam for billions of requests and terabytes of data
 
Exploring a Real World Use Case
Exploring a Real World Use CaseExploring a Real World Use Case
Exploring a Real World Use Case
 
SQL Server Database as a Cloud Service
SQL Server Database as a Cloud ServiceSQL Server Database as a Cloud Service
SQL Server Database as a Cloud Service
 
How Kafka and MemSQL Became the Dynamic Duo (Sarung Tripathi, MemSQL) Kafka S...
How Kafka and MemSQL Became the Dynamic Duo (Sarung Tripathi, MemSQL) Kafka S...How Kafka and MemSQL Became the Dynamic Duo (Sarung Tripathi, MemSQL) Kafka S...
How Kafka and MemSQL Became the Dynamic Duo (Sarung Tripathi, MemSQL) Kafka S...
 
Kafka Connect - debezium
Kafka Connect - debeziumKafka Connect - debezium
Kafka Connect - debezium
 
Change data capture with MongoDB and Kafka.
Change data capture with MongoDB and Kafka.Change data capture with MongoDB and Kafka.
Change data capture with MongoDB and Kafka.
 

Ähnlich wie WSO2 Advantage Webinar WSO2 BAM2 Integration with mule esb

WSO2 Business Activity Monitor (BAM) 2.0 - a new beginning
WSO2 Business Activity Monitor (BAM) 2.0 - a new beginningWSO2 Business Activity Monitor (BAM) 2.0 - a new beginning
WSO2 Business Activity Monitor (BAM) 2.0 - a new beginningWSO2
 
Observability for Integration Using WSO2 Enterprise Integrator
Observability for Integration Using WSO2 Enterprise IntegratorObservability for Integration Using WSO2 Enterprise Integrator
Observability for Integration Using WSO2 Enterprise IntegratorWSO2
 
Gain insights into your business operations with BPM Analytics
Gain insights into your business operations with BPM AnalyticsGain insights into your business operations with BPM Analytics
Gain insights into your business operations with BPM AnalyticsAllen Chan
 
Turning Events and Big Data into Insight with WSO2 CEP and WSO2 BAM
Turning Events and Big Data into Insight with WSO2 CEP and WSO2 BAMTurning Events and Big Data into Insight with WSO2 CEP and WSO2 BAM
Turning Events and Big Data into Insight with WSO2 CEP and WSO2 BAMMohanadarshan Vivekanandalingam
 
Monitoring Your Business with WSO2 BAM
Monitoring Your Business with WSO2 BAMMonitoring Your Business with WSO2 BAM
Monitoring Your Business with WSO2 BAMAnjana Fernando
 
Hbb 2852 gain insights into your business operations with bpm and kibana
Hbb 2852 gain insights into your business operations with bpm and kibanaHbb 2852 gain insights into your business operations with bpm and kibana
Hbb 2852 gain insights into your business operations with bpm and kibanaAllen Chan
 
How to Create Observable Integration Solutions Using WSO2 Enterprise Integrator
How to Create Observable Integration Solutions Using WSO2 Enterprise IntegratorHow to Create Observable Integration Solutions Using WSO2 Enterprise Integrator
How to Create Observable Integration Solutions Using WSO2 Enterprise IntegratorWSO2
 
Introducing the All New WSO2 BAM 2.0
Introducing the All New WSO2 BAM 2.0Introducing the All New WSO2 BAM 2.0
Introducing the All New WSO2 BAM 2.0WSO2
 
How to pinpoint and fix sources of performance problems in your SAP BusinessO...
How to pinpoint and fix sources of performance problems in your SAP BusinessO...How to pinpoint and fix sources of performance problems in your SAP BusinessO...
How to pinpoint and fix sources of performance problems in your SAP BusinessO...Xoomworks Business Intelligence
 
ESB vs API management
ESB vs API managementESB vs API management
ESB vs API managementAdroitLogic
 
WSO2 Business Process Server - Product Overview
WSO2 Business Process Server - Product OverviewWSO2 Business Process Server - Product Overview
WSO2 Business Process Server - Product OverviewWSO2
 
Monitoring in Big Data Platform - Albert Lewandowski, GetInData
Monitoring in Big Data Platform - Albert Lewandowski, GetInDataMonitoring in Big Data Platform - Albert Lewandowski, GetInData
Monitoring in Big Data Platform - Albert Lewandowski, GetInDataGetInData
 
Monitoring Kubernetes with Prometheus (Kubernetes Ireland, 2016)
Monitoring Kubernetes with Prometheus (Kubernetes Ireland, 2016)Monitoring Kubernetes with Prometheus (Kubernetes Ireland, 2016)
Monitoring Kubernetes with Prometheus (Kubernetes Ireland, 2016)Brian Brazil
 
Eko10 Workshop Opensource Database Auditing
Eko10  Workshop Opensource Database AuditingEko10  Workshop Opensource Database Auditing
Eko10 Workshop Opensource Database AuditingJuan Berner
 
Marketing Automation at Scale: How Marketo Solved Key Data Management Challen...
Marketing Automation at Scale: How Marketo Solved Key Data Management Challen...Marketing Automation at Scale: How Marketo Solved Key Data Management Challen...
Marketing Automation at Scale: How Marketo Solved Key Data Management Challen...Continuent
 
WSO2 Business Process Server 3.5.0 - Product Overview
WSO2 Business Process Server 3.5.0 - Product OverviewWSO2 Business Process Server 3.5.0 - Product Overview
WSO2 Business Process Server 3.5.0 - Product OverviewWSO2
 
Eko10 workshop - OPEN SOURCE DATABASE MONITORING
Eko10 workshop - OPEN SOURCE DATABASE MONITORINGEko10 workshop - OPEN SOURCE DATABASE MONITORING
Eko10 workshop - OPEN SOURCE DATABASE MONITORINGPablo Garbossa
 
Delivering Cloud Native Batch Solutions - Dodd Pfeffer
Delivering Cloud Native Batch Solutions - Dodd PfefferDelivering Cloud Native Batch Solutions - Dodd Pfeffer
Delivering Cloud Native Batch Solutions - Dodd PfefferVMware Tanzu
 
QueueMetrics - Tips and Tricks
QueueMetrics - Tips and TricksQueueMetrics - Tips and Tricks
QueueMetrics - Tips and TricksClarotech_Events
 
Scaling up uber's real time data analytics
Scaling up uber's real time data analyticsScaling up uber's real time data analytics
Scaling up uber's real time data analyticsXiang Fu
 

Ähnlich wie WSO2 Advantage Webinar WSO2 BAM2 Integration with mule esb (20)

WSO2 Business Activity Monitor (BAM) 2.0 - a new beginning
WSO2 Business Activity Monitor (BAM) 2.0 - a new beginningWSO2 Business Activity Monitor (BAM) 2.0 - a new beginning
WSO2 Business Activity Monitor (BAM) 2.0 - a new beginning
 
Observability for Integration Using WSO2 Enterprise Integrator
Observability for Integration Using WSO2 Enterprise IntegratorObservability for Integration Using WSO2 Enterprise Integrator
Observability for Integration Using WSO2 Enterprise Integrator
 
Gain insights into your business operations with BPM Analytics
Gain insights into your business operations with BPM AnalyticsGain insights into your business operations with BPM Analytics
Gain insights into your business operations with BPM Analytics
 
Turning Events and Big Data into Insight with WSO2 CEP and WSO2 BAM
Turning Events and Big Data into Insight with WSO2 CEP and WSO2 BAMTurning Events and Big Data into Insight with WSO2 CEP and WSO2 BAM
Turning Events and Big Data into Insight with WSO2 CEP and WSO2 BAM
 
Monitoring Your Business with WSO2 BAM
Monitoring Your Business with WSO2 BAMMonitoring Your Business with WSO2 BAM
Monitoring Your Business with WSO2 BAM
 
Hbb 2852 gain insights into your business operations with bpm and kibana
Hbb 2852 gain insights into your business operations with bpm and kibanaHbb 2852 gain insights into your business operations with bpm and kibana
Hbb 2852 gain insights into your business operations with bpm and kibana
 
How to Create Observable Integration Solutions Using WSO2 Enterprise Integrator
How to Create Observable Integration Solutions Using WSO2 Enterprise IntegratorHow to Create Observable Integration Solutions Using WSO2 Enterprise Integrator
How to Create Observable Integration Solutions Using WSO2 Enterprise Integrator
 
Introducing the All New WSO2 BAM 2.0
Introducing the All New WSO2 BAM 2.0Introducing the All New WSO2 BAM 2.0
Introducing the All New WSO2 BAM 2.0
 
How to pinpoint and fix sources of performance problems in your SAP BusinessO...
How to pinpoint and fix sources of performance problems in your SAP BusinessO...How to pinpoint and fix sources of performance problems in your SAP BusinessO...
How to pinpoint and fix sources of performance problems in your SAP BusinessO...
 
ESB vs API management
ESB vs API managementESB vs API management
ESB vs API management
 
WSO2 Business Process Server - Product Overview
WSO2 Business Process Server - Product OverviewWSO2 Business Process Server - Product Overview
WSO2 Business Process Server - Product Overview
 
Monitoring in Big Data Platform - Albert Lewandowski, GetInData
Monitoring in Big Data Platform - Albert Lewandowski, GetInDataMonitoring in Big Data Platform - Albert Lewandowski, GetInData
Monitoring in Big Data Platform - Albert Lewandowski, GetInData
 
Monitoring Kubernetes with Prometheus (Kubernetes Ireland, 2016)
Monitoring Kubernetes with Prometheus (Kubernetes Ireland, 2016)Monitoring Kubernetes with Prometheus (Kubernetes Ireland, 2016)
Monitoring Kubernetes with Prometheus (Kubernetes Ireland, 2016)
 
Eko10 Workshop Opensource Database Auditing
Eko10  Workshop Opensource Database AuditingEko10  Workshop Opensource Database Auditing
Eko10 Workshop Opensource Database Auditing
 
Marketing Automation at Scale: How Marketo Solved Key Data Management Challen...
Marketing Automation at Scale: How Marketo Solved Key Data Management Challen...Marketing Automation at Scale: How Marketo Solved Key Data Management Challen...
Marketing Automation at Scale: How Marketo Solved Key Data Management Challen...
 
WSO2 Business Process Server 3.5.0 - Product Overview
WSO2 Business Process Server 3.5.0 - Product OverviewWSO2 Business Process Server 3.5.0 - Product Overview
WSO2 Business Process Server 3.5.0 - Product Overview
 
Eko10 workshop - OPEN SOURCE DATABASE MONITORING
Eko10 workshop - OPEN SOURCE DATABASE MONITORINGEko10 workshop - OPEN SOURCE DATABASE MONITORING
Eko10 workshop - OPEN SOURCE DATABASE MONITORING
 
Delivering Cloud Native Batch Solutions - Dodd Pfeffer
Delivering Cloud Native Batch Solutions - Dodd PfefferDelivering Cloud Native Batch Solutions - Dodd Pfeffer
Delivering Cloud Native Batch Solutions - Dodd Pfeffer
 
QueueMetrics - Tips and Tricks
QueueMetrics - Tips and TricksQueueMetrics - Tips and Tricks
QueueMetrics - Tips and Tricks
 
Scaling up uber's real time data analytics
Scaling up uber's real time data analyticsScaling up uber's real time data analytics
Scaling up uber's real time data analytics
 

Mehr von WSO2

Driving Innovation: Scania's API Revolution with WSO2
Driving Innovation: Scania's API Revolution with WSO2Driving Innovation: Scania's API Revolution with WSO2
Driving Innovation: Scania's API Revolution with WSO2WSO2
 
Less Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data PlatformLess Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data PlatformWSO2
 
Modernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using BallerinaModernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using BallerinaWSO2
 
WSO2CON 2024 - Unlocking the Identity: Embracing CIAM 2.0 for a Competitive A...
WSO2CON 2024 - Unlocking the Identity: Embracing CIAM 2.0 for a Competitive A...WSO2CON 2024 - Unlocking the Identity: Embracing CIAM 2.0 for a Competitive A...
WSO2CON 2024 - Unlocking the Identity: Embracing CIAM 2.0 for a Competitive A...WSO2
 
WSO2CON 2024 Slides - Unlocking Value with AI
WSO2CON 2024 Slides - Unlocking Value with AIWSO2CON 2024 Slides - Unlocking Value with AI
WSO2CON 2024 Slides - Unlocking Value with AIWSO2
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityWSO2
 
Quantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation ComputingQuantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation ComputingWSO2
 
WSO2CON 2024 - Elevating the Integration Game to the Cloud
WSO2CON 2024 - Elevating the Integration Game to the CloudWSO2CON 2024 - Elevating the Integration Game to the Cloud
WSO2CON 2024 - Elevating the Integration Game to the CloudWSO2
 
WSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & Innovation
WSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & InnovationWSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & Innovation
WSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & InnovationWSO2
 
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open SourceWSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open SourceWSO2
 
WSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 Slides - Open Source to SaaSWSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 Slides - Open Source to SaaSWSO2
 
WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2
 
WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...
WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...
WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...WSO2
 
WSO2CON 2024 - Architecting AI in the Enterprise: APIs and Applications
WSO2CON 2024 - Architecting AI in the Enterprise: APIs and ApplicationsWSO2CON 2024 - Architecting AI in the Enterprise: APIs and Applications
WSO2CON 2024 - Architecting AI in the Enterprise: APIs and ApplicationsWSO2
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2
 
WSO2CON 2024 - Software Engineering for Digital Businesses
WSO2CON 2024 - Software Engineering for Digital BusinessesWSO2CON 2024 - Software Engineering for Digital Businesses
WSO2CON 2024 - Software Engineering for Digital BusinessesWSO2
 
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...WSO2
 
WSO2CON 2024 - Designing Event-Driven Enterprises: Stories of Transformation
WSO2CON 2024 - Designing Event-Driven Enterprises: Stories of TransformationWSO2CON 2024 - Designing Event-Driven Enterprises: Stories of Transformation
WSO2CON 2024 - Designing Event-Driven Enterprises: Stories of TransformationWSO2
 
WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!
WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!
WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!WSO2
 
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2
 

Mehr von WSO2 (20)

Driving Innovation: Scania's API Revolution with WSO2
Driving Innovation: Scania's API Revolution with WSO2Driving Innovation: Scania's API Revolution with WSO2
Driving Innovation: Scania's API Revolution with WSO2
 
Less Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data PlatformLess Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data Platform
 
Modernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using BallerinaModernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using Ballerina
 
WSO2CON 2024 - Unlocking the Identity: Embracing CIAM 2.0 for a Competitive A...
WSO2CON 2024 - Unlocking the Identity: Embracing CIAM 2.0 for a Competitive A...WSO2CON 2024 - Unlocking the Identity: Embracing CIAM 2.0 for a Competitive A...
WSO2CON 2024 - Unlocking the Identity: Embracing CIAM 2.0 for a Competitive A...
 
WSO2CON 2024 Slides - Unlocking Value with AI
WSO2CON 2024 Slides - Unlocking Value with AIWSO2CON 2024 Slides - Unlocking Value with AI
WSO2CON 2024 Slides - Unlocking Value with AI
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Quantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation ComputingQuantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation Computing
 
WSO2CON 2024 - Elevating the Integration Game to the Cloud
WSO2CON 2024 - Elevating the Integration Game to the CloudWSO2CON 2024 - Elevating the Integration Game to the Cloud
WSO2CON 2024 - Elevating the Integration Game to the Cloud
 
WSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & Innovation
WSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & InnovationWSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & Innovation
WSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & Innovation
 
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open SourceWSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
 
WSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 Slides - Open Source to SaaSWSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 Slides - Open Source to SaaS
 
WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?
 
WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...
WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...
WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...
 
WSO2CON 2024 - Architecting AI in the Enterprise: APIs and Applications
WSO2CON 2024 - Architecting AI in the Enterprise: APIs and ApplicationsWSO2CON 2024 - Architecting AI in the Enterprise: APIs and Applications
WSO2CON 2024 - Architecting AI in the Enterprise: APIs and Applications
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
 
WSO2CON 2024 - Software Engineering for Digital Businesses
WSO2CON 2024 - Software Engineering for Digital BusinessesWSO2CON 2024 - Software Engineering for Digital Businesses
WSO2CON 2024 - Software Engineering for Digital Businesses
 
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
 
WSO2CON 2024 - Designing Event-Driven Enterprises: Stories of Transformation
WSO2CON 2024 - Designing Event-Driven Enterprises: Stories of TransformationWSO2CON 2024 - Designing Event-Driven Enterprises: Stories of Transformation
WSO2CON 2024 - Designing Event-Driven Enterprises: Stories of Transformation
 
WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!
WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!
WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!
 
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
 

WSO2 Advantage Webinar WSO2 BAM2 Integration with mule esb

  • 1. WSO2 BAM2 Integration with Mule ESB Kasun Weranga Gunathilake Software Engineer – WSO2 BAM
  • 2. Why server monitoring?  Analyze all business transactions  To find a root cause for a failure  Prevent outages with rapid problem identification and resolution  Monitor performance and availability of all ESBs  Understand resource utilization for tuning and capacity planning
  • 3. Business Activity Monitoring “The aggregation, analysis, and presentation of real-time information about activities inside organizations and involving customers and partners.” - Gartner
  • 4. Aggregation ● Capturing data ● Data storage ● What data to capture?
  • 5. Analysis ● Data operations ● Building KPIs ● Operate on large amounts of historic data or new data ● Building BI
  • 6. Presentation ● Visualizing KPIs/BI ● Custom Dashboards ● Visualization tools ● Not just dashboards!
  • 8. Things to Monitor ● Server logs ● Server resource consumption ● Statistics of services in Mule ESB ● Analyzing business transactions ( by inspecting payload)
  • 9. Monitor Server logs ● Mule ESB uses log4j for logging. ● A Log4j appender can be used to capture log events. ● Write a custom BAM agent to publish log events from Mule ESB to BAM.
  • 11. Custom Agents ● Java SDK provided ● Asynchronous & non-blocking ● Use Thrift for high performance message throughput ● Due to Thrift, different languages can be supported ● Compatible with CEP/BAM
  • 12. Log4jAppender ● log4j.appender.LOGEVENT=org.wso2.carbon.mule.log.appender.LogEventAppender log4j.appender.LOGEVENT.receiverUrl=tcp://localhost:7611 log4j.appender.LOGEVENT.authenticationUrl=ssl://localhost:7711 log4j.appender.LOGEVENT.trustStorePassword=wso2carbon log4j.appender.LOGEVENT.columnList=%-5p,%d,[%t],%c:,%m%n log4j.appender.LOGEVENT.userName=admin log4j.appender.LOGEVENT.password=admin log4j.appender.LOGEVENT.processingLimit=1000 log4j.appender.LOGEVENT.maxTolerableConsecutiveFailure=20 ● log4j.rootCategory=INFO, console, LOGEVENT
  • 13. The Analyzer Engine ● Analyzers are based on Easy to learn, SQL like Hive query language ● Runs locally or delegates to Hadoop cluster ● Scalable analytics ● Cluster can range from a couple of nodes to 1000s ● Analyzers can be scheduled ● Supports Polyglot data architecture
  • 14. Advantage of Using BAM ● Provide central place to analyze all the log information (ex:- logs of ESB cluster). ● Ability to analyze large amount of historical log events ● Efficient way to analyze the root cause for a failure.
  • 15. Analyze Mule logs ● select logTime, logType, threadName, category, logMessage, logTimestamp from LogCollector where logtype='WARN' and logTimestamp > unix_timestamp('2013-01-06 11:00:00') order by logTimestamp;
  • 16. Demonstration.. ● Configure Mule ESB to send log events to BAM ● Analyze logs using BAM
  • 17. Monitor Business Transactions ● Capture useful information by inspecting payloads ● A Mule ESB interceptor can be used to capture data from payloads ● Write a custom BAM agent to publish captured data from Mule ESB to BAM
  • 19. Mule Interceptor ● Use Bookstore example comes with Mule ● Capture order details using Interceptor <flow name="OrderService"> <http:inbound-endpoint address="http://0.0.0.0:8777/services/order" exchange-pattern="request-response" doc:name="Public order interface"/> <cxf:jaxws-service serviceClass="org.mule.example.bookstore.OrderService" /> <custom-interceptor class="org.wso2.carbon.mule.interceptor.BAMInterceptor"/> <component doc:name="Order Service"> <singleton-object class="org.mule.example.bookstore.OrderServiceImpl"/> </component> <async> <vm:outbound-endpoint path="emailNotification" exchange-pattern="one-way" doc:name="Email Notification"/> <vm:outbound-endpoint path="dataWarehouse" exchange-pattern="one-way" doc:name="Data Warehouse"/> </async> </flow>
  • 20. Analyze and present information ● Hive queries use to analyze the captured data. ● Schedule Hive scripts to do the periodic summarizations. ● Gadget gen tool can be used to generate gadgets and deploy on dashboard. ● Plug 3rd party reporting engines to present information
  • 21. Demonstration... ● Capture order details from Mule bookstore sample ● Summarize sales against book titles and authors ● Visualize in dashboard
  • 22. Monitor Server via JMX ● Server resource consumption (CPU, heap/non- heap memory, threads, etc..) ● Statistics of services deployed in Mule ESB
  • 23. Monitor Server via JMX ● Enable JMX in Mule ESB (can use <jmx- default-config> ) ● Configure JMX agent to pull statistics and store in BAM – Provide the JMX server (Mule ESB) – Select JMX attributes need to monitor – Configure publisher ● Install JMX statistics toolbox in BAM
  • 25. Demonstration ● Monitor server resources (CPU, Memory) ● Monitor statistics of order service in Mule ESB
  • 26. Real time Monitoring of Mule ESB ● Improve Risk Management by rapid problem identifications ● Detect specific business conditions or patterns to enable instantaneous response. ● To take timely business decisions
  • 27. Real time Monitoring ● Real time analytics via CEP ● Based on Siddhi - A high performance complex event processing engine developed at WSO2 ● Can be seamless integrated with BAM to form a complete analytics solution
  • 29. Demonstration... ● Notify sudden increase in sales ● Notify users about unusual system errors
  • 30. Summary ● Importance of Monitoring the server ● BAM architecture ● Monitor server logs ● Monitor business transactions ● Monitor server via JMX ● Realtime monitoring via CEP
  • 32. Useful Links.... ● BAM Docs http://docs.wso2.org/wiki/display/BAM201 ● Setting up JMX agent http://docs.wso2.org/wiki/display/BAM210/Setting+Up+JMX+Agent+for+BAM ● Write a custom data-agent http://wso2.org/library/articles/2012/07/creating-custom-agents-publish-events-bamcep ● CEP docs http://docs.wso2.org/wiki/display/CEP201 ● Hive query language https://cwiki.apache.org/confluence/display/Hive/LanguageManual ● Mule docs http://www.mulesoft.org/documentation/display/MULE3USER/Using+Interceptors http://www.mulesoft.org/documentation/display/MULE3USER/JMX+Management