SlideShare a Scribd company logo
Miguel Pérez Colino // @mmmmmmpc
CLOUD OPERATIONS WITH STREAMING
ANALYTICS USING BIG DATA TOOLS
DataWorks Summit Sydney 2017
Miguel Pérez Colino
Senior Design Product Manager, ISBU - Red Hat
miguel@redhat.com / @mmmmmmpc
Suneel Marthi
Senior Principal Software Engineer - Red Hat
smarthi@redhat.com / @suneelmarthi
Miguel Pérez Colino // @mmmmmmpc
THE PROBLEM
Miguel Pérez Colino // @mmmmmmpc
Cloud Deployments
Act as one single thing …
… and need to be managed and operated as one
Source: https://commons.wikimedia.org/wiki/File:Auklet_flock_Shumagins_1986.jpg
Miguel Pérez Colino // @mmmmmmpc
Cloud Deployments
They do really scale ...
https://www.cncf.io/blog/2016/08/23/deploying-1000-nodes-of-openshift-on-the-cncf-cluster-part-1/
● Higher scalability
● More workloads per physical
machine (multi-tenant)
● Network and Storage also
Software Defined
● Containers and
Microservices providing
more granularity
Miguel Pérez Colino // @mmmmmmpc
THE CHALLENGE
Miguel Pérez Colino // @mmmmmmpc
Questions to solve
● Who is the user?
● What is there problem?
● How do other people solve this problem?
● How can we better solve the problem?
● What would the end result look/feel like?
Miguel Pérez Colino // @mmmmmmpc
[DESIGN THINKING]
THE BEST WAY TO HAVE A GOOD
IDEA IS TO HAVE LOTS OF IDEAS.
Miguel Pérez Colino // @mmmmmmpc
Who is the user? (Personas)
● Cloud Ops
● Developer
● Security Ops
● Monitoring
● Service Designer
● Marketing
● IT Manager
● Infrastructure Architect?
Customer’s issues are mostly
“Day 2” → Operations
● Operate OpenStack
● Operate OpenShift
○ Platform Ops
○ Developer logs
Logs → root cause analysis + forensic
Miguel Pérez Colino // @mmmmmmpc
Logs
Config
Telemetry
App debug info
Events
Monitoring
Provides Events,
Consumes Logs
Cloud Ops
Root Cause Analysis
Developer
App Analysis & Debug
Security Engineer
Sec Analysis, Audits
Marketing
Access to stats
Service
DesignerIT Manager
Access to aggregated
data, i.e. SLA, usage
Personae
Miguel Pérez Colino // @mmmmmmpc
What are there problems?
● Data aggregation
○ Ingestion
○ Transport
● Data Model → Common Data Model
● Correlation
○ With external sources (Events / Metrics / Config …)
○ Add more Information types to the solution
● Coherency (Data format and Enrichment)
Miguel Pérez Colino // @mmmmmmpc
Data (What)
Data + Information flow in Log Aggregation
ProcessIngest StoreCollect Query ViewGenerate
Derived from: http://www.dataintensive.info/
Miguel Pérez Colino // @mmmmmmpc
Personae (Who)
That can use Log Aggregation
Log Aggregation
Monitoring
Provides Events,
Consumes Logs
Cloud Ops
Root Cause
Analysis
Developer
App Analysis &
Debug
Security Engineer
Sec Analysis, Audits
User /
Marketing
Access to stats
Service
DesignerIT Manager
Access to
aggregated data,
i.e. SLA, usage
Miguel Pérez Colino // @mmmmmmpc
Personae (Motivation)
That need Log Aggregation
Cloud Ops (Apps)
“I want to proactively know
about active or potential
degradation of service”
Cloud Ops (OpenStack)
“User reports that their VM
request failed and returned
error”
Developer (OpenShift)
“My recent commit resulted in
Jenkins test failure”
“Application (multi-tiered)
launched from CloudForms
returns error”
Cloud Suite User
Miguel Pérez Colino // @mmmmmmpc
Situational Awareness (Why)
Or the need of it!
Source: https://en.wikipedia.org/wiki/Situation_awareness
Miguel Pérez Colino // @mmmmmmpc
THE SOLUTION
Miguel Pérez Colino // @mmmmmmpc
Focus on One Persona and Use Case
“Oscar the OpenStack Operator”
Log Aggregation
Monitoring
Provides Events,
Consumes Logs
Cloud Ops
Root Cause
Analysis
Developer
App Analysis &
Debug
Security Engineer
Sec Analysis, Audits
User /
Marketing
Access to stats
Service
DesignerIT Manager
Access to
aggregated data,
i.e. SLA, usage
Miguel Pérez Colino // @mmmmmmpc
Prototyped User Experience
Creating User Interface Mockups
Miguel Pérez Colino // @mmmmmmpc
Implementation
Red Hat’s containerized solution with EFK stack
ElasticFluent Kibana
ProcessIngest StoreCollect Query ViewCreate
Miguel Pérez Colino // @mmmmmmpc
Implementation
KEEDIO’s containerized solution with a Big Data toolset
SOLR /
Cassandra
Kafka PatternFly
ProcessIngest StoreCollect Query ViewCreate
Flume / NiFi
HDFS
(tier 2)
Spark / FlinkRsyslog
Miguel Pérez Colino // @mmmmmmpc
Implementation: Generation
Rsyslog
What?
● Open-source software used for
forwarding log messages in a network.
● Implements the syslog protocol
Why?
● Fast system for log processing.
● High performance, Low footprint,
included in the OS
● Inputs from wide variety of sources
Miguel Pérez Colino // @mmmmmmpc
Implementation: Ingestion
Apache Nifi
What?
● Reliable system to process and
distribute data
● Language: Java
Why?
● Graphical management
● Clusterizable
● Data Provenance
● Many sources and destinations
Miguel Pérez Colino // @mmmmmmpc
Use Case: Ingestion
Apache Nifi
Easily customize “tagging” and processing
rules via Graphical User Interface
Review steps with data provenance
“Like having an IDE and a Debugger for
data processing rules.”
Miguel Pérez Colino // @mmmmmmpc
Implementation: Collect
Apache Kafka
What?
● Open-source distributed messaging
system
● Languages: Java & Scala
Why?
● High throughput and low-latency
● Clusterable, load balancing and async
send.
● Allows handling real-time data feeds
● Customizable data retention on disk
● Enables multiple consumers on the
same data
● “Rewind and Replay”
Miguel Pérez Colino // @mmmmmmpc
Implementation: Process
Apache Flink
What?
● Open-source stream processing
framework for distributed, high-
performing, always-available, and
accurate data streaming apps.
● Language: Java, Scala
Why?
● Streaming-first, continuous processing
● Fault-tolerant, stateful computations
● Scalable & performance. High
throughput, low latency
● Advanced filtering capabilities (CEP)
Miguel Pérez Colino // @mmmmmmpc
Use Case: Collect + Process
Apache Kafka + Flink
● Long retention periods in queue
enable new post processing targets
to previous events
● Only the right info sent to the right
target
● Detect anomalies and trigger alerts
Miguel Pérez Colino // @mmmmmmpc
Use Case: Collect + Process
Apache Kafka + Flink
● Different storage targets with filtered post
processed output
Miguel Pérez Colino // @mmmmmmpc
Use Case: Collect + Process
Apache Kafka + Flink
● Alerts sent to Kafka. A listener can enable
all kind of alerts
Alert ListenerTelegramE-Mail
Miguel Pérez Colino // @mmmmmmpc
Implementation: Store + Query
Apache Cassandra
What?
● Open source NoSQL database, <key,
value> based
● Language: Java
Why?
● Fault tolerant
● Decentralized & scalable
● Fully proven & high performant
● Flexible data model
Miguel Pérez Colino // @mmmmmmpc
Implementation: View
Patternfly
What?
● Open Source responsive framework for
frontends
● Language: Javascript, Bootstrap,
AngularJS 1
Why?
● Easy to implement new interfaces
● Includes capabilities for graphs
● (d3 JS + c3 JS)
● Natively responsive (mobile / tablet)
● Well supported and extended (Used in
most Red Hat products)
Miguel Pérez Colino // @mmmmmmpc
Implementation
Infrastructure
Miguel Pérez Colino // @mmmmmmpc
Deployment
Miguel Pérez Colino // @mmmmmmpc
Deployment: View
Patternfly
Miguel Pérez Colino // @mmmmmmpc
Deployment: View
Patternfly
Miguel Pérez Colino // @mmmmmmpc
Deployment: View
Patternfly
Miguel Pérez Colino // @mmmmmmpc
USE CASE EXAMPLE (CEP)
Miguel Pérez Colino // @mmmmmmpc
Use Case: OpenStack Timeouts
Network Timeout by default 30 secs
1. Request of VM
2. Request of vPort (Virtual NIC)
3. vPort generated in more than 30 secs → Timeout!
4. Error generating VM
5. No error generating vPort
Need correlation to detect
Miguel Pérez Colino // @mmmmmmpc
Use Case: OpenStack Timeouts
What we see ...
Error in Nova
2016-12-05 10:28:14.292 10253 ERROR nova.compute.manager [req-190de497-d90f-48e0-91ea-
f1f1c0877704688ae4039aad471fbab98da1b1e1fcb6 e21be8c7ab34490386508bbd0c58f511 - - -] Instance failed
network setup after 1 attempt(s)
2016-12-05 10:28:14.292 10253 ERROR nova.compute.manager ConnectTimeout: Request to
https://[::1]:9696/v2.0/ports.json timed out
Info in Neutron
2016-12-05 10:28:16.878 13187 INFO neutron.wsgi
[req-827495e1-2ae2-41c1-b51b-2eda57f4ba1d688ae4039aad471fbab98da1b1e1fcb6
e21be8c7ab34490386508bbd0c58f511 - - -] ::1 - - [05/Dec/2016 10:28:16] "POST /v2.0/ports.json HTTP/1.1" 201
900 32.589028
Miguel Pérez Colino // @mmmmmmpc
Use Case: OpenStack Timeouts
Both lines detected correlated and alert generated. → Alert sent to Kafka
ErrorAlert:
Nova-3-2017-04-28 12:48:20.321
Neutron-6-2017-04-28 12:48:23.123
{"severity":"3","body":"[ Generating synthetic log
CEP_ID=67c8c1cc3d48c3987aee13dce5cf35a1]","spriority":"191","hostname":"overcloud-compute-
1","protocol":"TCP","port":"7790","sender":"/192.168.1.16","service":"Nova","id":"c1318482-11a1-41cd-949e-
5195c54767e5","facility":"23","timestamp":"2017-04-28 12:48:20.321"}
{"severity":"6","body":"[ Generating synthetic log
CEP_ID=67c8c1cc3d48c3987aee13dce5cf35a1]","spriority":"191","hostname":"overcloud-controller-
1","protocol":"TCP","port":"7793","sender":"/192.168.1.13","service":"Neutron","id":"e617d049-7e40-4114-8727-
c6c41140567e","facility":"23","timestamp":"2017-04-28 12:48:23.123"}
Miguel Pérez Colino // @mmmmmmpc
Use Case: OpenStack Timeouts
Both lines detected correlated and alert generated. → Alert routed to Telegram
Miguel Pérez Colino // @mmmmmmpc
THANK YOU
plus.google.com/+RedHat
linkedin.com/company/red-hat
youtube.com/user/RedHatVideos
facebook.com/redhatinc
twitter.com/RedHatNews
Miguel Pérez Colino // @mmmmmmpc
BACKUP SLIDES
Miguel Pérez Colino // @mmmmmmpc
Deployment

More Related Content

What's hot (20)

PPTX
Streaming in the Wild with Apache Flink
DataWorks Summit/Hadoop Summit
 
PDF
Running Zeppelin in Enterprise
DataWorks Summit
 
PDF
HAWQ Meets Hive - Querying Unmanaged Data
DataWorks Summit
 
PPTX
Enabling Modern Application Architecture using Data.gov open government data
DataWorks Summit
 
PPTX
Cloudy with a chance of Hadoop - real world considerations
DataWorks Summit
 
PPTX
Apache Deep Learning 201
DataWorks Summit
 
PPT
Running Spark in Production
DataWorks Summit/Hadoop Summit
 
PPTX
Debunking Common Myths in Stream Processing
DataWorks Summit/Hadoop Summit
 
PPTX
Real-Time Data Flows with Apache NiFi
Manish Gupta
 
PDF
Migrating pipelines into Docker
DataWorks Summit/Hadoop Summit
 
PPTX
Overview of Apache Flink: the 4G of Big Data Analytics Frameworks
DataWorks Summit/Hadoop Summit
 
PPTX
LLAP: Sub-Second Analytical Queries in Hive
DataWorks Summit/Hadoop Summit
 
PPTX
Seattle spark-meetup-032317
Nan Zhu
 
PDF
SparkR Best Practices for R Data Scientists
DataWorks Summit
 
PPTX
LLAP: Sub-Second Analytical Queries in Hive
DataWorks Summit/Hadoop Summit
 
PDF
Deep learning on HDP 2018 Prague
Timothy Spann
 
PDF
IoT Edge Processing with Apache NiFi and MiniFi and Apache MXNet for IoT NY 2018
Timothy Spann
 
PPTX
LLAP: Sub-Second Analytical Queries in Hive
DataWorks Summit/Hadoop Summit
 
PPTX
Unifying Stream, SWL and CEP for Declarative Stream Processing with Apache Flink
DataWorks Summit/Hadoop Summit
 
Streaming in the Wild with Apache Flink
DataWorks Summit/Hadoop Summit
 
Running Zeppelin in Enterprise
DataWorks Summit
 
HAWQ Meets Hive - Querying Unmanaged Data
DataWorks Summit
 
Enabling Modern Application Architecture using Data.gov open government data
DataWorks Summit
 
Cloudy with a chance of Hadoop - real world considerations
DataWorks Summit
 
Apache Deep Learning 201
DataWorks Summit
 
Running Spark in Production
DataWorks Summit/Hadoop Summit
 
Debunking Common Myths in Stream Processing
DataWorks Summit/Hadoop Summit
 
Real-Time Data Flows with Apache NiFi
Manish Gupta
 
Migrating pipelines into Docker
DataWorks Summit/Hadoop Summit
 
Overview of Apache Flink: the 4G of Big Data Analytics Frameworks
DataWorks Summit/Hadoop Summit
 
LLAP: Sub-Second Analytical Queries in Hive
DataWorks Summit/Hadoop Summit
 
Seattle spark-meetup-032317
Nan Zhu
 
SparkR Best Practices for R Data Scientists
DataWorks Summit
 
LLAP: Sub-Second Analytical Queries in Hive
DataWorks Summit/Hadoop Summit
 
Deep learning on HDP 2018 Prague
Timothy Spann
 
IoT Edge Processing with Apache NiFi and MiniFi and Apache MXNet for IoT NY 2018
Timothy Spann
 
LLAP: Sub-Second Analytical Queries in Hive
DataWorks Summit/Hadoop Summit
 
Unifying Stream, SWL and CEP for Declarative Stream Processing with Apache Flink
DataWorks Summit/Hadoop Summit
 

Similar to Cloud Operations with Streaming Analytics using Apache NiFi and Apache Flink (20)

PDF
Cloud operations with streaming analytics using big data tools
Miguel Pérez Colino
 
PDF
John adams talk cloudy
John Adams
 
PDF
Platform Clouds, Containers, Immutable Infrastructure Oh My!
Stuart Charlton
 
PPTX
Cloud Security Monitoring and Spark Analytics
amesar0
 
PPTX
Cassandra Lunch #88: Cadence
Anant Corporation
 
PPTX
Kubernetes Infra 2.0
Deepak Sood
 
PDF
C19013010 the tutorial to build shared ai services session 2
Bill Liu
 
PDF
Migrating to Public Cloud
Adrian Cockcroft
 
PPTX
Hot to build continuously processing for 24/7 real-time data streaming platform?
GetInData
 
PDF
The Rise of Cloud Computing Systems
Daehyeok Kim
 
PPTX
Some Advanced OpenStack Overview Document
TrungPhamVan10
 
PDF
The Netflix Open Source Platform
Ruslan Meshenberg
 
PDF
SV Forum Platform Architecture SIG - Netflix Open Source Platform
Adrian Cockcroft
 
PDF
Threat Modeling the CI/CD Pipeline to Improve Software Supply Chain Security ...
Denim Group
 
PPTX
Overview: Building Open Source Cloud Computing Environments
Mark Hinkle
 
PDF
Datacenter Computing with Apache Mesos - BigData DC
Paco Nathan
 
PDF
Superpower Your Apache Kafka Applications Development with Complementary Open...
Paul Brebner
 
PDF
Enterprise Data Lakes
Farid Gurbanov
 
PPT
Avoiding cloud lock-in
Sebastien Goasguen
 
PPTX
Cloud Native Summit 2019 Summary
Everett Toews
 
Cloud operations with streaming analytics using big data tools
Miguel Pérez Colino
 
John adams talk cloudy
John Adams
 
Platform Clouds, Containers, Immutable Infrastructure Oh My!
Stuart Charlton
 
Cloud Security Monitoring and Spark Analytics
amesar0
 
Cassandra Lunch #88: Cadence
Anant Corporation
 
Kubernetes Infra 2.0
Deepak Sood
 
C19013010 the tutorial to build shared ai services session 2
Bill Liu
 
Migrating to Public Cloud
Adrian Cockcroft
 
Hot to build continuously processing for 24/7 real-time data streaming platform?
GetInData
 
The Rise of Cloud Computing Systems
Daehyeok Kim
 
Some Advanced OpenStack Overview Document
TrungPhamVan10
 
The Netflix Open Source Platform
Ruslan Meshenberg
 
SV Forum Platform Architecture SIG - Netflix Open Source Platform
Adrian Cockcroft
 
Threat Modeling the CI/CD Pipeline to Improve Software Supply Chain Security ...
Denim Group
 
Overview: Building Open Source Cloud Computing Environments
Mark Hinkle
 
Datacenter Computing with Apache Mesos - BigData DC
Paco Nathan
 
Superpower Your Apache Kafka Applications Development with Complementary Open...
Paul Brebner
 
Enterprise Data Lakes
Farid Gurbanov
 
Avoiding cloud lock-in
Sebastien Goasguen
 
Cloud Native Summit 2019 Summary
Everett Toews
 
Ad

More from DataWorks Summit (20)

PPTX
Data Science Crash Course
DataWorks Summit
 
PPTX
Floating on a RAFT: HBase Durability with Apache Ratis
DataWorks Summit
 
PPTX
Tracking Crime as It Occurs with Apache Phoenix, Apache HBase and Apache NiFi
DataWorks Summit
 
PDF
HBase Tales From the Trenches - Short stories about most common HBase operati...
DataWorks Summit
 
PPTX
Optimizing Geospatial Operations with Server-side Programming in HBase and Ac...
DataWorks Summit
 
PPTX
Managing the Dewey Decimal System
DataWorks Summit
 
PPTX
Practical NoSQL: Accumulo's dirlist Example
DataWorks Summit
 
PPTX
HBase Global Indexing to support large-scale data ingestion at Uber
DataWorks Summit
 
PPTX
Scaling Cloud-Scale Translytics Workloads with Omid and Phoenix
DataWorks Summit
 
PPTX
Building the High Speed Cybersecurity Data Pipeline Using Apache NiFi
DataWorks Summit
 
PPTX
Supporting Apache HBase : Troubleshooting and Supportability Improvements
DataWorks Summit
 
PPTX
Security Framework for Multitenant Architecture
DataWorks Summit
 
PDF
Presto: Optimizing Performance of SQL-on-Anything Engine
DataWorks Summit
 
PPTX
Introducing MlFlow: An Open Source Platform for the Machine Learning Lifecycl...
DataWorks Summit
 
PPTX
Extending Twitter's Data Platform to Google Cloud
DataWorks Summit
 
PPTX
Event-Driven Messaging and Actions using Apache Flink and Apache NiFi
DataWorks Summit
 
PPTX
Securing Data in Hybrid on-premise and Cloud Environments using Apache Ranger
DataWorks Summit
 
PPTX
Big Data Meets NVM: Accelerating Big Data Processing with Non-Volatile Memory...
DataWorks Summit
 
PDF
Computer Vision: Coming to a Store Near You
DataWorks Summit
 
PPTX
Big Data Genomics: Clustering Billions of DNA Sequences with Apache Spark
DataWorks Summit
 
Data Science Crash Course
DataWorks Summit
 
Floating on a RAFT: HBase Durability with Apache Ratis
DataWorks Summit
 
Tracking Crime as It Occurs with Apache Phoenix, Apache HBase and Apache NiFi
DataWorks Summit
 
HBase Tales From the Trenches - Short stories about most common HBase operati...
DataWorks Summit
 
Optimizing Geospatial Operations with Server-side Programming in HBase and Ac...
DataWorks Summit
 
Managing the Dewey Decimal System
DataWorks Summit
 
Practical NoSQL: Accumulo's dirlist Example
DataWorks Summit
 
HBase Global Indexing to support large-scale data ingestion at Uber
DataWorks Summit
 
Scaling Cloud-Scale Translytics Workloads with Omid and Phoenix
DataWorks Summit
 
Building the High Speed Cybersecurity Data Pipeline Using Apache NiFi
DataWorks Summit
 
Supporting Apache HBase : Troubleshooting and Supportability Improvements
DataWorks Summit
 
Security Framework for Multitenant Architecture
DataWorks Summit
 
Presto: Optimizing Performance of SQL-on-Anything Engine
DataWorks Summit
 
Introducing MlFlow: An Open Source Platform for the Machine Learning Lifecycl...
DataWorks Summit
 
Extending Twitter's Data Platform to Google Cloud
DataWorks Summit
 
Event-Driven Messaging and Actions using Apache Flink and Apache NiFi
DataWorks Summit
 
Securing Data in Hybrid on-premise and Cloud Environments using Apache Ranger
DataWorks Summit
 
Big Data Meets NVM: Accelerating Big Data Processing with Non-Volatile Memory...
DataWorks Summit
 
Computer Vision: Coming to a Store Near You
DataWorks Summit
 
Big Data Genomics: Clustering Billions of DNA Sequences with Apache Spark
DataWorks Summit
 
Ad

Recently uploaded (20)

PDF
ArcGIS Utility Network Migration - The Hunter Water Story
Safe Software
 
PDF
My Journey from CAD to BIM: A True Underdog Story
Safe Software
 
PDF
Optimizing the trajectory of a wheel loader working in short loading cycles
Reno Filla
 
PDF
Why aren't you using FME Flow's CPU Time?
Safe Software
 
PDF
ICONIQ State of AI Report 2025 - The Builder's Playbook
Razin Mustafiz
 
PDF
🚀 Let’s Build Our First Slack Workflow! 🔧.pdf
SanjeetMishra29
 
PPTX
Practical Applications of AI in Local Government
OnBoard
 
PDF
Darley - FIRST Copenhagen Lightning Talk (2025-06-26) Epochalypse 2038 - Time...
treyka
 
PDF
Quantum Threats Are Closer Than You Think – Act Now to Stay Secure
WSO2
 
PPSX
Usergroup - OutSystems Architecture.ppsx
Kurt Vandevelde
 
PDF
Unlocking FME Flow’s Potential: Architecture Design for Modern Enterprises
Safe Software
 
PDF
Proactive Server and System Monitoring with FME: Using HTTP and System Caller...
Safe Software
 
PDF
Understanding AI Optimization AIO, LLMO, and GEO
CoDigital
 
PDF
Bitkom eIDAS Summit | European Business Wallet: Use Cases, Macroeconomics, an...
Carsten Stoecker
 
PPTX
01_Approach Cyber- DORA Incident Management.pptx
FinTech Belgium
 
PDF
TrustArc Webinar - Navigating APAC Data Privacy Laws: Compliance & Challenges
TrustArc
 
PPTX
Wondershare Filmora Crack Free Download 2025
josanj305
 
PPTX
Reimaginando la Ciberdefensa: De Copilots a Redes de Agentes
Cristian Garcia G.
 
PDF
Automating the Geo-Referencing of Historic Aerial Photography in Flanders
Safe Software
 
PDF
DoS Attack vs DDoS Attack_ The Silent Wars of the Internet.pdf
CyberPro Magazine
 
ArcGIS Utility Network Migration - The Hunter Water Story
Safe Software
 
My Journey from CAD to BIM: A True Underdog Story
Safe Software
 
Optimizing the trajectory of a wheel loader working in short loading cycles
Reno Filla
 
Why aren't you using FME Flow's CPU Time?
Safe Software
 
ICONIQ State of AI Report 2025 - The Builder's Playbook
Razin Mustafiz
 
🚀 Let’s Build Our First Slack Workflow! 🔧.pdf
SanjeetMishra29
 
Practical Applications of AI in Local Government
OnBoard
 
Darley - FIRST Copenhagen Lightning Talk (2025-06-26) Epochalypse 2038 - Time...
treyka
 
Quantum Threats Are Closer Than You Think – Act Now to Stay Secure
WSO2
 
Usergroup - OutSystems Architecture.ppsx
Kurt Vandevelde
 
Unlocking FME Flow’s Potential: Architecture Design for Modern Enterprises
Safe Software
 
Proactive Server and System Monitoring with FME: Using HTTP and System Caller...
Safe Software
 
Understanding AI Optimization AIO, LLMO, and GEO
CoDigital
 
Bitkom eIDAS Summit | European Business Wallet: Use Cases, Macroeconomics, an...
Carsten Stoecker
 
01_Approach Cyber- DORA Incident Management.pptx
FinTech Belgium
 
TrustArc Webinar - Navigating APAC Data Privacy Laws: Compliance & Challenges
TrustArc
 
Wondershare Filmora Crack Free Download 2025
josanj305
 
Reimaginando la Ciberdefensa: De Copilots a Redes de Agentes
Cristian Garcia G.
 
Automating the Geo-Referencing of Historic Aerial Photography in Flanders
Safe Software
 
DoS Attack vs DDoS Attack_ The Silent Wars of the Internet.pdf
CyberPro Magazine
 

Cloud Operations with Streaming Analytics using Apache NiFi and Apache Flink

  • 1. Miguel Pérez Colino // @mmmmmmpc CLOUD OPERATIONS WITH STREAMING ANALYTICS USING BIG DATA TOOLS DataWorks Summit Sydney 2017 Miguel Pérez Colino Senior Design Product Manager, ISBU - Red Hat [email protected] / @mmmmmmpc Suneel Marthi Senior Principal Software Engineer - Red Hat [email protected] / @suneelmarthi
  • 2. Miguel Pérez Colino // @mmmmmmpc THE PROBLEM
  • 3. Miguel Pérez Colino // @mmmmmmpc Cloud Deployments Act as one single thing … … and need to be managed and operated as one Source: https://commons.wikimedia.org/wiki/File:Auklet_flock_Shumagins_1986.jpg
  • 4. Miguel Pérez Colino // @mmmmmmpc Cloud Deployments They do really scale ... https://www.cncf.io/blog/2016/08/23/deploying-1000-nodes-of-openshift-on-the-cncf-cluster-part-1/ ● Higher scalability ● More workloads per physical machine (multi-tenant) ● Network and Storage also Software Defined ● Containers and Microservices providing more granularity
  • 5. Miguel Pérez Colino // @mmmmmmpc THE CHALLENGE
  • 6. Miguel Pérez Colino // @mmmmmmpc Questions to solve ● Who is the user? ● What is there problem? ● How do other people solve this problem? ● How can we better solve the problem? ● What would the end result look/feel like?
  • 7. Miguel Pérez Colino // @mmmmmmpc [DESIGN THINKING] THE BEST WAY TO HAVE A GOOD IDEA IS TO HAVE LOTS OF IDEAS.
  • 8. Miguel Pérez Colino // @mmmmmmpc Who is the user? (Personas) ● Cloud Ops ● Developer ● Security Ops ● Monitoring ● Service Designer ● Marketing ● IT Manager ● Infrastructure Architect? Customer’s issues are mostly “Day 2” → Operations ● Operate OpenStack ● Operate OpenShift ○ Platform Ops ○ Developer logs Logs → root cause analysis + forensic
  • 9. Miguel Pérez Colino // @mmmmmmpc Logs Config Telemetry App debug info Events Monitoring Provides Events, Consumes Logs Cloud Ops Root Cause Analysis Developer App Analysis & Debug Security Engineer Sec Analysis, Audits Marketing Access to stats Service DesignerIT Manager Access to aggregated data, i.e. SLA, usage Personae
  • 10. Miguel Pérez Colino // @mmmmmmpc What are there problems? ● Data aggregation ○ Ingestion ○ Transport ● Data Model → Common Data Model ● Correlation ○ With external sources (Events / Metrics / Config …) ○ Add more Information types to the solution ● Coherency (Data format and Enrichment)
  • 11. Miguel Pérez Colino // @mmmmmmpc Data (What) Data + Information flow in Log Aggregation ProcessIngest StoreCollect Query ViewGenerate Derived from: http://www.dataintensive.info/
  • 12. Miguel Pérez Colino // @mmmmmmpc Personae (Who) That can use Log Aggregation Log Aggregation Monitoring Provides Events, Consumes Logs Cloud Ops Root Cause Analysis Developer App Analysis & Debug Security Engineer Sec Analysis, Audits User / Marketing Access to stats Service DesignerIT Manager Access to aggregated data, i.e. SLA, usage
  • 13. Miguel Pérez Colino // @mmmmmmpc Personae (Motivation) That need Log Aggregation Cloud Ops (Apps) “I want to proactively know about active or potential degradation of service” Cloud Ops (OpenStack) “User reports that their VM request failed and returned error” Developer (OpenShift) “My recent commit resulted in Jenkins test failure” “Application (multi-tiered) launched from CloudForms returns error” Cloud Suite User
  • 14. Miguel Pérez Colino // @mmmmmmpc Situational Awareness (Why) Or the need of it! Source: https://en.wikipedia.org/wiki/Situation_awareness
  • 15. Miguel Pérez Colino // @mmmmmmpc THE SOLUTION
  • 16. Miguel Pérez Colino // @mmmmmmpc Focus on One Persona and Use Case “Oscar the OpenStack Operator” Log Aggregation Monitoring Provides Events, Consumes Logs Cloud Ops Root Cause Analysis Developer App Analysis & Debug Security Engineer Sec Analysis, Audits User / Marketing Access to stats Service DesignerIT Manager Access to aggregated data, i.e. SLA, usage
  • 17. Miguel Pérez Colino // @mmmmmmpc Prototyped User Experience Creating User Interface Mockups
  • 18. Miguel Pérez Colino // @mmmmmmpc Implementation Red Hat’s containerized solution with EFK stack ElasticFluent Kibana ProcessIngest StoreCollect Query ViewCreate
  • 19. Miguel Pérez Colino // @mmmmmmpc Implementation KEEDIO’s containerized solution with a Big Data toolset SOLR / Cassandra Kafka PatternFly ProcessIngest StoreCollect Query ViewCreate Flume / NiFi HDFS (tier 2) Spark / FlinkRsyslog
  • 20. Miguel Pérez Colino // @mmmmmmpc Implementation: Generation Rsyslog What? ● Open-source software used for forwarding log messages in a network. ● Implements the syslog protocol Why? ● Fast system for log processing. ● High performance, Low footprint, included in the OS ● Inputs from wide variety of sources
  • 21. Miguel Pérez Colino // @mmmmmmpc Implementation: Ingestion Apache Nifi What? ● Reliable system to process and distribute data ● Language: Java Why? ● Graphical management ● Clusterizable ● Data Provenance ● Many sources and destinations
  • 22. Miguel Pérez Colino // @mmmmmmpc Use Case: Ingestion Apache Nifi Easily customize “tagging” and processing rules via Graphical User Interface Review steps with data provenance “Like having an IDE and a Debugger for data processing rules.”
  • 23. Miguel Pérez Colino // @mmmmmmpc Implementation: Collect Apache Kafka What? ● Open-source distributed messaging system ● Languages: Java & Scala Why? ● High throughput and low-latency ● Clusterable, load balancing and async send. ● Allows handling real-time data feeds ● Customizable data retention on disk ● Enables multiple consumers on the same data ● “Rewind and Replay”
  • 24. Miguel Pérez Colino // @mmmmmmpc Implementation: Process Apache Flink What? ● Open-source stream processing framework for distributed, high- performing, always-available, and accurate data streaming apps. ● Language: Java, Scala Why? ● Streaming-first, continuous processing ● Fault-tolerant, stateful computations ● Scalable & performance. High throughput, low latency ● Advanced filtering capabilities (CEP)
  • 25. Miguel Pérez Colino // @mmmmmmpc Use Case: Collect + Process Apache Kafka + Flink ● Long retention periods in queue enable new post processing targets to previous events ● Only the right info sent to the right target ● Detect anomalies and trigger alerts
  • 26. Miguel Pérez Colino // @mmmmmmpc Use Case: Collect + Process Apache Kafka + Flink ● Different storage targets with filtered post processed output
  • 27. Miguel Pérez Colino // @mmmmmmpc Use Case: Collect + Process Apache Kafka + Flink ● Alerts sent to Kafka. A listener can enable all kind of alerts Alert ListenerTelegramE-Mail
  • 28. Miguel Pérez Colino // @mmmmmmpc Implementation: Store + Query Apache Cassandra What? ● Open source NoSQL database, <key, value> based ● Language: Java Why? ● Fault tolerant ● Decentralized & scalable ● Fully proven & high performant ● Flexible data model
  • 29. Miguel Pérez Colino // @mmmmmmpc Implementation: View Patternfly What? ● Open Source responsive framework for frontends ● Language: Javascript, Bootstrap, AngularJS 1 Why? ● Easy to implement new interfaces ● Includes capabilities for graphs ● (d3 JS + c3 JS) ● Natively responsive (mobile / tablet) ● Well supported and extended (Used in most Red Hat products)
  • 30. Miguel Pérez Colino // @mmmmmmpc Implementation Infrastructure
  • 31. Miguel Pérez Colino // @mmmmmmpc Deployment
  • 32. Miguel Pérez Colino // @mmmmmmpc Deployment: View Patternfly
  • 33. Miguel Pérez Colino // @mmmmmmpc Deployment: View Patternfly
  • 34. Miguel Pérez Colino // @mmmmmmpc Deployment: View Patternfly
  • 35. Miguel Pérez Colino // @mmmmmmpc USE CASE EXAMPLE (CEP)
  • 36. Miguel Pérez Colino // @mmmmmmpc Use Case: OpenStack Timeouts Network Timeout by default 30 secs 1. Request of VM 2. Request of vPort (Virtual NIC) 3. vPort generated in more than 30 secs → Timeout! 4. Error generating VM 5. No error generating vPort Need correlation to detect
  • 37. Miguel Pérez Colino // @mmmmmmpc Use Case: OpenStack Timeouts What we see ... Error in Nova 2016-12-05 10:28:14.292 10253 ERROR nova.compute.manager [req-190de497-d90f-48e0-91ea- f1f1c0877704688ae4039aad471fbab98da1b1e1fcb6 e21be8c7ab34490386508bbd0c58f511 - - -] Instance failed network setup after 1 attempt(s) 2016-12-05 10:28:14.292 10253 ERROR nova.compute.manager ConnectTimeout: Request to https://[::1]:9696/v2.0/ports.json timed out Info in Neutron 2016-12-05 10:28:16.878 13187 INFO neutron.wsgi [req-827495e1-2ae2-41c1-b51b-2eda57f4ba1d688ae4039aad471fbab98da1b1e1fcb6 e21be8c7ab34490386508bbd0c58f511 - - -] ::1 - - [05/Dec/2016 10:28:16] "POST /v2.0/ports.json HTTP/1.1" 201 900 32.589028
  • 38. Miguel Pérez Colino // @mmmmmmpc Use Case: OpenStack Timeouts Both lines detected correlated and alert generated. → Alert sent to Kafka ErrorAlert: Nova-3-2017-04-28 12:48:20.321 Neutron-6-2017-04-28 12:48:23.123 {"severity":"3","body":"[ Generating synthetic log CEP_ID=67c8c1cc3d48c3987aee13dce5cf35a1]","spriority":"191","hostname":"overcloud-compute- 1","protocol":"TCP","port":"7790","sender":"/192.168.1.16","service":"Nova","id":"c1318482-11a1-41cd-949e- 5195c54767e5","facility":"23","timestamp":"2017-04-28 12:48:20.321"} {"severity":"6","body":"[ Generating synthetic log CEP_ID=67c8c1cc3d48c3987aee13dce5cf35a1]","spriority":"191","hostname":"overcloud-controller- 1","protocol":"TCP","port":"7793","sender":"/192.168.1.13","service":"Neutron","id":"e617d049-7e40-4114-8727- c6c41140567e","facility":"23","timestamp":"2017-04-28 12:48:23.123"}
  • 39. Miguel Pérez Colino // @mmmmmmpc Use Case: OpenStack Timeouts Both lines detected correlated and alert generated. → Alert routed to Telegram
  • 40. Miguel Pérez Colino // @mmmmmmpc THANK YOU plus.google.com/+RedHat linkedin.com/company/red-hat youtube.com/user/RedHatVideos facebook.com/redhatinc twitter.com/RedHatNews
  • 41. Miguel Pérez Colino // @mmmmmmpc BACKUP SLIDES
  • 42. Miguel Pérez Colino // @mmmmmmpc Deployment

Editor's Notes

  • #25: Flink Session windows → Enable CEP Checkpointing → Takes a snapshot if the system goes down Exactly once semantics → Same thing is not processed twice Sub second latency (Spark doesn’t provide)