SlideShare a Scribd company logo
Last Updated: June. 2015
Containers in Production with
Docker, CoreOS, Kubernetes and
Apache Stratos
**
About Me
Lakmal Warusawithana
Vise President, Apache Stratos
Director - Cloud Architecture, WSO2 Inc
lakmal@apache.org / lakmal@wso2.com
Twitter : lakwarus
**
Agenda
๏ Introduction to Apache Stratos
๏ Apache Stratos Architecture
๏ Does Docker Production ready?
๏ Introduction to CoreOS, Flannel, Kubernetes
๏ Apache Stratos 4.1 – Containerization and Composition
Release
๏ Apache Stratos with Docker
- Kubernetes Resources Used by Stratos
๏ Why Composite Application Support?
๏ Discuss few Apache Stratos features
๏ Demo - Docker, Kubernetes with autoscaling
**
Apache Stratos
๏ Apache Stratos is a highly-extensible Platform-as-a-
Service (PaaS) framework that helps run Apache
Tomcat, PHP, and MySQL applications and can be
extended to support many more environments on all
major cloud infrastructures
๏ Stratos initially developed by WSO2 and last year
donated to Apache Software Foundation
๏ After successfully complete the incubating process
Stratos now graduated as Top Level Project
**
Apache Stratos Layered Architecture
**
Apache Stratos Cartridges
**
๏ Docker network?
- Deploying in Docker host cluster
๏ Can run enterprise apps in a single docker container?
๏ Problems of running enterprize appl in multiple docker
containers?
- File System sharing?
- Network sharing?
- Process space
- How to identified an unit?
Does Docker Production Ready?
**
๏ Application Composition
๏ Containerization
๏ Docker based cartridge support
๏ integration with CoreOS
๏ integration with Kubernetes
๏ integration with flannel
๏ integration with discovery service and build in docker
registry support
Apache Stratos 4.1 – Containerization and
Composition Release
**
What is CoreOS?
**
CoreOS Cluster
**
What is Flannel?
**
What is Kubernetes?
๏ Kubernetes is a platform for hosting Docker containers
in a clustered environment with multiple Docker hosts
๏ Provides container grouping, load balancing, auto-
healing, manual scaling features ...etc
๏ Project was started by Google
๏ Contributors == Google, CodeOS, Redhat, Mesosphere,
Microsoft, HP, IBM, VMWare, Pivotal, SaltStack, etc
**
Kubernetes with CoreOS
**
Apache Stratos L1 Architecture for Docker
based Cartridges
**
Stratos Architecture with Docker Support
*
Kubernetes Resources Used by Stratos
● A Kubernetes Service is created
for each transport/port mapping
defined in the cartridge.
● Kubernetes Service is a load
balancing service for Pods.
● A Kubernetes Pod is created for
each member in a cluster.
● A Kubernetes Pod is a group of
Docker containers.
● Kubernetes creates a separate
Docker container for networking.
**
Why Composite Application Support?
๏ Real world application are complex and required
multiple heterogeneous service runtimes (Cartridges)
to host the application
๏ These Cartridges may have dependencies to each other
- startup order
- dependency ratio
- dependent scaling
- termination behaviors
- data sharing
๏ Capable of creating Cartridge group and it provide
more flexibility to handle group behaviours such as
group scaling, load balancing..etc
๏ Capable of creating blueprint of an application runtime
by using simple structured json payload
**
Cartridge Group
*
Sample Group Definition
**
What is it?
๏ Scaling algorithm can use multiple factors. such as
- Load average of the instance
- Memory consumption of the instance
- In-flight request count in LB
Multi-factored Auto Scaling
**
๏ Capable of predicting future load
- Real time analysis of current load status using CEP
integration
- Predict immediate future load based on CEP
resulting streams
- Predicting equation s=ut + ½ at2
- s=predicted load, u=first derivative of current
average load, t=time interval , a=second derivative
of current load
Why should one care?
๏ Maximise resource utilization
๏ Easy to do capacity planning
๏ Dynamic load based resource provisioning
๏ Optimizing across multiple clouds
Multi-factored Auto Scaling...
**
How Scalable it is?
๏ In theory infinite
- horizontal scaling
- limited by resource (instance capacity) availability
How Dynamic it is?
๏ Load Balancers are spawned dynamically
- LB too is a cartridge
๏ In case of multi-cloud, multi-region, LB can scale per
cloud/region
๏ Per service cluster LB
Scalable and Dynamic Load Balancing
**
What is unique about Stratos
๏ Cartridge based LB model
๏ Can bring any third-party LB
- HAProxy, nginx, AWS ELB
- As easy as plugging into LB extension API
Scalable and Dynamic Load Balancing..
*
Stratos Load Balancer Extension Architecture
**
What are the smart policies?
๏ Auto scaling
๏ Deployment
Auto scaling policy
๏ Define thresholds values pertaining scale up/down
decision
๏ Auto Scaler refer this policy
๏ Defined by DevOps
Deployment policy
๏ Defined how and where to spawn cartridge instances
๏ Defined min and max instances in a selected service
cluster
๏ Defined by DevOps based on deployment patterns
Smart Policies
**
Why should one care?
๏ Can provide cloud SLA
What are the advantages?
๏ Make DevOps life easy
- help keep to SLA
๏ Make SaaS app delivery life easy
- do not have to worry about availability in application
layer
Smart Policies
*
Composite Application Model and Policy Model
**
What is it?
๏ Expanding/provisioning application into another cloud
to handle peak load.
Why Should one care?
๏ Resource peak time can be off-loaded to third party
clouds/resources
What is unique about it?
๏ Can off-load to any cloud
- Private, Public and Hybrid
๏ Whole application can replicated into bursting cloud
with all configuration
๏ Can migrate application into another cloud without
downtime
Cloud Bursting
**
What details are?
๏ Instance up/down time
๏ Each and every instances health status
- application health, load average, memory
consumption
๏ Application logs
Why should one care?
๏ Centralize view for all logging, metering and monitoring
What are the advantages?
๏ DevOps life easy
- centralized log viewer
- centralized dashboard
๏ Easy to throttling
Logging, Metering and Monitoring
**
Demo - Docker, Kubernetes with autoscaling
**
More Information !
๏ http://stratos.apache.org
๏ http://lakmalsview.blogspot.com/2013/12/sneak-peek-
into-apache-stratos.html
๏ https://cwiki.apache.org/confluence/display/STRATOS/
๏ https://github.com/coreos/flannel
๏ https://www.youtube.com/watch?v=tsk0pWf4ipw
Contact us !

More Related Content

What's hot (20)

PDF
Kubernetes Networking - Giragadurai Vallirajan
Neependra Khare
 
PDF
Container Performance Analysis
Brendan Gregg
 
PDF
Docker Orchestration at Production Scale
Docker, Inc.
 
PPTX
Docker Networking - Current Status and goals of Experimental Networking
Sreenivas Makam
 
PDF
Deep Dive into Kubernetes - Part 2
Imesh Gunaratne
 
PPTX
Kubernetes 101
Stanislav Pogrebnyak
 
PDF
OpenShift v3 Internal networking details
Etsuji Nakai
 
PDF
Learning how AWS implement AWS VPC CNI
HungWei Chiu
 
PDF
Tech Talk by Gal Sagie: Kuryr - Connecting containers networking to OpenStack...
nvirters
 
PDF
Docker Meetup: Docker Networking 1.11, by Madhu Venugopal
Michelle Antebi
 
PDF
Docker Networking with Container Orchestration Engines [Docker Meetup Santa C...
Debra Robertson
 
PPT
Docker Multi Host Networking, Rachit Arora, IBM
Neependra Khare
 
PDF
Kubernetes
Meng-Ze Lee
 
PDF
Docker 1.11 Meetup: Containerd and runc, by Arnaud Porterie and Michael Crosby
Michelle Antebi
 
PDF
Secure Containers with EPT Isolation
LinuxCon ContainerCon CloudOpen China
 
PPTX
Automated container-deployment-on-kubernetes
Che-Chia Chang
 
PDF
Octo talk : docker multi-host networking
Hervé Leclerc
 
PDF
An Introduction to Kubernetes
Imesh Gunaratne
 
PDF
Project kuryr returns: Docker delivered, Kubernetes Next
Antoni Segura Puimedon
 
PDF
Kubernetes Basic Operation
Simon Su
 
Kubernetes Networking - Giragadurai Vallirajan
Neependra Khare
 
Container Performance Analysis
Brendan Gregg
 
Docker Orchestration at Production Scale
Docker, Inc.
 
Docker Networking - Current Status and goals of Experimental Networking
Sreenivas Makam
 
Deep Dive into Kubernetes - Part 2
Imesh Gunaratne
 
Kubernetes 101
Stanislav Pogrebnyak
 
OpenShift v3 Internal networking details
Etsuji Nakai
 
Learning how AWS implement AWS VPC CNI
HungWei Chiu
 
Tech Talk by Gal Sagie: Kuryr - Connecting containers networking to OpenStack...
nvirters
 
Docker Meetup: Docker Networking 1.11, by Madhu Venugopal
Michelle Antebi
 
Docker Networking with Container Orchestration Engines [Docker Meetup Santa C...
Debra Robertson
 
Docker Multi Host Networking, Rachit Arora, IBM
Neependra Khare
 
Kubernetes
Meng-Ze Lee
 
Docker 1.11 Meetup: Containerd and runc, by Arnaud Porterie and Michael Crosby
Michelle Antebi
 
Secure Containers with EPT Isolation
LinuxCon ContainerCon CloudOpen China
 
Automated container-deployment-on-kubernetes
Che-Chia Chang
 
Octo talk : docker multi-host networking
Hervé Leclerc
 
An Introduction to Kubernetes
Imesh Gunaratne
 
Project kuryr returns: Docker delivered, Kubernetes Next
Antoni Segura Puimedon
 
Kubernetes Basic Operation
Simon Su
 

Viewers also liked (20)

PDF
Multi container apps swarm + consul + compose
Eueung Mulyana
 
PPTX
Microservices & Containers - Docker Bangalore Meetup #12
Aravind Ajad
 
PDF
CoreOS Overview
Nikolay Yurin
 
PDF
Docker and Kubernetes
Shiju Varghese
 
PDF
CoreOS intro
Timo Derstappen
 
PDF
CoreOS @Codetalks Hamburg
Timo Derstappen
 
PPTX
Docker
tjuniversity
 
PDF
Adventureswith micro services
Thoughtworks
 
PDF
Docker enables agile_devops
Boyd Hemphill
 
PDF
DevOps Con 2015: Radical Agility with Autonomous Teams and Microservices in t...
Henning Jacobs
 
PDF
Project Sputnik - Driving Innovation at a large company
Barton George
 
PDF
Powering Radical Agility with Docker
Zalando Technology
 
PDF
PuppetConf 2016: Continuous Delivery and DevOps with Jenkins and Puppet Enter...
Puppet
 
PDF
Deploying and Testing Microservices
Thoughtworks
 
PPTX
V mware thin app 4.5 customer presentation
solarisyourep
 
PPTX
Docker and kubernetes
Dongwon Kim
 
PPTX
传统零售业的移动互联网升级
Thoughtworks
 
PDF
Radical Agility with Autonomous Teams and Microservices in the Cloud
Zalando Technology
 
ODP
Testing strategies for micro services - Ketan Soni, Jesal Mistry, ThoughtWorks
Thoughtworks
 
PDF
Push The Button with Continuous Delivery: Sam Newman Continuous Delivery Prac...
Thoughtworks
 
Multi container apps swarm + consul + compose
Eueung Mulyana
 
Microservices & Containers - Docker Bangalore Meetup #12
Aravind Ajad
 
CoreOS Overview
Nikolay Yurin
 
Docker and Kubernetes
Shiju Varghese
 
CoreOS intro
Timo Derstappen
 
CoreOS @Codetalks Hamburg
Timo Derstappen
 
Docker
tjuniversity
 
Adventureswith micro services
Thoughtworks
 
Docker enables agile_devops
Boyd Hemphill
 
DevOps Con 2015: Radical Agility with Autonomous Teams and Microservices in t...
Henning Jacobs
 
Project Sputnik - Driving Innovation at a large company
Barton George
 
Powering Radical Agility with Docker
Zalando Technology
 
PuppetConf 2016: Continuous Delivery and DevOps with Jenkins and Puppet Enter...
Puppet
 
Deploying and Testing Microservices
Thoughtworks
 
V mware thin app 4.5 customer presentation
solarisyourep
 
Docker and kubernetes
Dongwon Kim
 
传统零售业的移动互联网升级
Thoughtworks
 
Radical Agility with Autonomous Teams and Microservices in the Cloud
Zalando Technology
 
Testing strategies for micro services - Ketan Soni, Jesal Mistry, ThoughtWorks
Thoughtworks
 
Push The Button with Continuous Delivery: Sam Newman Continuous Delivery Prac...
Thoughtworks
 
Ad

Similar to Containers in production with Docker, CoreOS, Kubernetes and Apache Stratos (20)

PPTX
Deploy in scale with docker, coreos, kubernetes and apache stratos
WSO2
 
PDF
Deploying at scale with PaaS
WSO2
 
PDF
PaaS: An Introduction
Lakmal Warusawithana
 
PDF
Wso2 con 2014-us-talk-deep dive into apache stratos & private paas
Lakmal Warusawithana
 
PPTX
Java PaaS Apache Stratos
Chris Haddad
 
PDF
Building a dev ops paas with puppet, docker, openstack and apache stratos
Lakmal Warusawithana
 
PDF
Apache Stratos tutorial WSO2Con Europe-2014
Lakmal Warusawithana
 
PPTX
PaaS Design & Architecture: A Deep Dive into Apache Stratos
WSO2
 
PDF
Essential Elements of an Enterprise PaaS
WSO2
 
PDF
ApacheCon Essential Elements of an Enterprise PaaS
Lakmal Warusawithana
 
PPTX
Apache Stratos - Building a PaaS using OSGi and Equinox
Paul Fremantle
 
PDF
Private PaaS for the Enterprise - Apache Stratos & WSO2 Private PaaS
Imesh Gunaratne
 
PDF
Apache Stratos 4.1.0 Architecture
Imesh Gunaratne
 
PDF
Wso2 con 2014-us-tutorial-apache stratos-wso2 private paas with docker integr...
Lakmal Warusawithana
 
PDF
WSO2Con Asia 2014 - Essential Elements of an Enterprise PaaS
WSO2
 
PDF
Essential Elements of an Enterprise PaaS
Lakmal Warusawithana
 
PDF
QCon New York 2014 - Apache Stratos
Samisa Abeysinghe
 
PDF
Building a Cloud Native Platform with WSO2 Private PaaS
WSO2
 
PPTX
Bring N-Tier Apps to containers 2015 ContainerCon
Chris Haddad
 
PDF
Building a cloud native platform with Apache PaaS
Samisa Abeysinghe
 
Deploy in scale with docker, coreos, kubernetes and apache stratos
WSO2
 
Deploying at scale with PaaS
WSO2
 
PaaS: An Introduction
Lakmal Warusawithana
 
Wso2 con 2014-us-talk-deep dive into apache stratos & private paas
Lakmal Warusawithana
 
Java PaaS Apache Stratos
Chris Haddad
 
Building a dev ops paas with puppet, docker, openstack and apache stratos
Lakmal Warusawithana
 
Apache Stratos tutorial WSO2Con Europe-2014
Lakmal Warusawithana
 
PaaS Design & Architecture: A Deep Dive into Apache Stratos
WSO2
 
Essential Elements of an Enterprise PaaS
WSO2
 
ApacheCon Essential Elements of an Enterprise PaaS
Lakmal Warusawithana
 
Apache Stratos - Building a PaaS using OSGi and Equinox
Paul Fremantle
 
Private PaaS for the Enterprise - Apache Stratos & WSO2 Private PaaS
Imesh Gunaratne
 
Apache Stratos 4.1.0 Architecture
Imesh Gunaratne
 
Wso2 con 2014-us-tutorial-apache stratos-wso2 private paas with docker integr...
Lakmal Warusawithana
 
WSO2Con Asia 2014 - Essential Elements of an Enterprise PaaS
WSO2
 
Essential Elements of an Enterprise PaaS
Lakmal Warusawithana
 
QCon New York 2014 - Apache Stratos
Samisa Abeysinghe
 
Building a Cloud Native Platform with WSO2 Private PaaS
WSO2
 
Bring N-Tier Apps to containers 2015 ContainerCon
Chris Haddad
 
Building a cloud native platform with Apache PaaS
Samisa Abeysinghe
 
Ad

More from Lakmal Warusawithana (20)

PDF
[Lakmal] Automate Microservice to API
Lakmal Warusawithana
 
PDF
Api Management with Service Mesh
Lakmal Warusawithana
 
PDF
Microservices, Containers, and Beyond
Lakmal Warusawithana
 
PDF
Container Native Architecture
Lakmal Warusawithana
 
PDF
Future of Cloud Computing with Containers
Lakmal Warusawithana
 
PDF
WSO2ConEU 2016 Tutorial - Deploying WSO2 Middleware on Containers
Lakmal Warusawithana
 
PDF
DevOps & cloud : Lessons & Stories
Lakmal Warusawithana
 
PDF
Unleashing k8 s to reduce complexities of an entire middleware platform
Lakmal Warusawithana
 
PDF
WSO2 Virtual Hackathon Big Data in the Cloud Case Study
Lakmal Warusawithana
 
PDF
Deploy in scale with Docker, CoreOS, Kubernetes and Apache Stratos
Lakmal Warusawithana
 
PDF
Deep dive into Apache Stratos & Private PaaS WSO2Con EU 2015
Lakmal Warusawithana
 
PDF
Introduction to docker
Lakmal Warusawithana
 
PDF
How to deploy your own private cloud with openstack
Lakmal Warusawithana
 
PDF
Building a Paa s with CloudStack and Apache Stratos
Lakmal Warusawithana
 
PDF
Apache stratos roadmap and strategy
Lakmal Warusawithana
 
PDF
Containerizing the cloud with docker
Lakmal Warusawithana
 
PDF
An introduction to wso2 private paas wso2coneu-2014
Lakmal Warusawithana
 
PDF
Apache stratos roadmap and strategy wso2 coneu-2014
Lakmal Warusawithana
 
PDF
Demystifying the cloud
Lakmal Warusawithana
 
PDF
Overview of apache stratos (incubation) 4.0 architecture
Lakmal Warusawithana
 
[Lakmal] Automate Microservice to API
Lakmal Warusawithana
 
Api Management with Service Mesh
Lakmal Warusawithana
 
Microservices, Containers, and Beyond
Lakmal Warusawithana
 
Container Native Architecture
Lakmal Warusawithana
 
Future of Cloud Computing with Containers
Lakmal Warusawithana
 
WSO2ConEU 2016 Tutorial - Deploying WSO2 Middleware on Containers
Lakmal Warusawithana
 
DevOps & cloud : Lessons & Stories
Lakmal Warusawithana
 
Unleashing k8 s to reduce complexities of an entire middleware platform
Lakmal Warusawithana
 
WSO2 Virtual Hackathon Big Data in the Cloud Case Study
Lakmal Warusawithana
 
Deploy in scale with Docker, CoreOS, Kubernetes and Apache Stratos
Lakmal Warusawithana
 
Deep dive into Apache Stratos & Private PaaS WSO2Con EU 2015
Lakmal Warusawithana
 
Introduction to docker
Lakmal Warusawithana
 
How to deploy your own private cloud with openstack
Lakmal Warusawithana
 
Building a Paa s with CloudStack and Apache Stratos
Lakmal Warusawithana
 
Apache stratos roadmap and strategy
Lakmal Warusawithana
 
Containerizing the cloud with docker
Lakmal Warusawithana
 
An introduction to wso2 private paas wso2coneu-2014
Lakmal Warusawithana
 
Apache stratos roadmap and strategy wso2 coneu-2014
Lakmal Warusawithana
 
Demystifying the cloud
Lakmal Warusawithana
 
Overview of apache stratos (incubation) 4.0 architecture
Lakmal Warusawithana
 

Recently uploaded (20)

PPTX
Migrating Millions of Users with Debezium, Apache Kafka, and an Acyclic Synch...
MD Sayem Ahmed
 
PDF
Capcut Pro Crack For PC Latest Version {Fully Unlocked} 2025
hashhshs786
 
PPTX
Agentic Automation Journey Session 1/5: Context Grounding and Autopilot for E...
klpathrudu
 
PDF
Digger Solo: Semantic search and maps for your local files
seanpedersen96
 
PPTX
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pptx
Varsha Nayak
 
PPTX
Revolutionizing Code Modernization with AI
KrzysztofKkol1
 
PDF
Streamline Contractor Lifecycle- TECH EHS Solution
TECH EHS Solution
 
PDF
Powering GIS with FME and VertiGIS - Peak of Data & AI 2025
Safe Software
 
PPTX
Equipment Management Software BIS Safety UK.pptx
BIS Safety Software
 
PDF
Understanding the Need for Systemic Change in Open Source Through Intersectio...
Imma Valls Bernaus
 
PDF
Efficient, Automated Claims Processing Software for Insurers
Insurance Tech Services
 
PDF
iTop VPN With Crack Lifetime Activation Key-CODE
utfefguu
 
PDF
Executive Business Intelligence Dashboards
vandeslie24
 
PDF
Beyond Binaries: Understanding Diversity and Allyship in a Global Workplace -...
Imma Valls Bernaus
 
PPTX
MailsDaddy Outlook OST to PST converter.pptx
abhishekdutt366
 
PDF
Unlock Efficiency with Insurance Policy Administration Systems
Insurance Tech Services
 
PPTX
The Role of a PHP Development Company in Modern Web Development
SEO Company for School in Delhi NCR
 
PDF
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pdf
Varsha Nayak
 
PPTX
MiniTool Power Data Recovery Full Crack Latest 2025
muhammadgurbazkhan
 
PDF
Salesforce CRM Services.VALiNTRY360
VALiNTRY360
 
Migrating Millions of Users with Debezium, Apache Kafka, and an Acyclic Synch...
MD Sayem Ahmed
 
Capcut Pro Crack For PC Latest Version {Fully Unlocked} 2025
hashhshs786
 
Agentic Automation Journey Session 1/5: Context Grounding and Autopilot for E...
klpathrudu
 
Digger Solo: Semantic search and maps for your local files
seanpedersen96
 
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pptx
Varsha Nayak
 
Revolutionizing Code Modernization with AI
KrzysztofKkol1
 
Streamline Contractor Lifecycle- TECH EHS Solution
TECH EHS Solution
 
Powering GIS with FME and VertiGIS - Peak of Data & AI 2025
Safe Software
 
Equipment Management Software BIS Safety UK.pptx
BIS Safety Software
 
Understanding the Need for Systemic Change in Open Source Through Intersectio...
Imma Valls Bernaus
 
Efficient, Automated Claims Processing Software for Insurers
Insurance Tech Services
 
iTop VPN With Crack Lifetime Activation Key-CODE
utfefguu
 
Executive Business Intelligence Dashboards
vandeslie24
 
Beyond Binaries: Understanding Diversity and Allyship in a Global Workplace -...
Imma Valls Bernaus
 
MailsDaddy Outlook OST to PST converter.pptx
abhishekdutt366
 
Unlock Efficiency with Insurance Policy Administration Systems
Insurance Tech Services
 
The Role of a PHP Development Company in Modern Web Development
SEO Company for School in Delhi NCR
 
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pdf
Varsha Nayak
 
MiniTool Power Data Recovery Full Crack Latest 2025
muhammadgurbazkhan
 
Salesforce CRM Services.VALiNTRY360
VALiNTRY360
 

Containers in production with Docker, CoreOS, Kubernetes and Apache Stratos

  • 1. Last Updated: June. 2015 Containers in Production with Docker, CoreOS, Kubernetes and Apache Stratos
  • 2. ** About Me Lakmal Warusawithana Vise President, Apache Stratos Director - Cloud Architecture, WSO2 Inc [email protected] / [email protected] Twitter : lakwarus
  • 3. ** Agenda ๏ Introduction to Apache Stratos ๏ Apache Stratos Architecture ๏ Does Docker Production ready? ๏ Introduction to CoreOS, Flannel, Kubernetes ๏ Apache Stratos 4.1 – Containerization and Composition Release ๏ Apache Stratos with Docker - Kubernetes Resources Used by Stratos ๏ Why Composite Application Support? ๏ Discuss few Apache Stratos features ๏ Demo - Docker, Kubernetes with autoscaling
  • 4. ** Apache Stratos ๏ Apache Stratos is a highly-extensible Platform-as-a- Service (PaaS) framework that helps run Apache Tomcat, PHP, and MySQL applications and can be extended to support many more environments on all major cloud infrastructures ๏ Stratos initially developed by WSO2 and last year donated to Apache Software Foundation ๏ After successfully complete the incubating process Stratos now graduated as Top Level Project
  • 7. ** ๏ Docker network? - Deploying in Docker host cluster ๏ Can run enterprise apps in a single docker container? ๏ Problems of running enterprize appl in multiple docker containers? - File System sharing? - Network sharing? - Process space - How to identified an unit? Does Docker Production Ready?
  • 8. ** ๏ Application Composition ๏ Containerization ๏ Docker based cartridge support ๏ integration with CoreOS ๏ integration with Kubernetes ๏ integration with flannel ๏ integration with discovery service and build in docker registry support Apache Stratos 4.1 – Containerization and Composition Release
  • 12. ** What is Kubernetes? ๏ Kubernetes is a platform for hosting Docker containers in a clustered environment with multiple Docker hosts ๏ Provides container grouping, load balancing, auto- healing, manual scaling features ...etc ๏ Project was started by Google ๏ Contributors == Google, CodeOS, Redhat, Mesosphere, Microsoft, HP, IBM, VMWare, Pivotal, SaltStack, etc
  • 14. ** Apache Stratos L1 Architecture for Docker based Cartridges
  • 16. * Kubernetes Resources Used by Stratos ● A Kubernetes Service is created for each transport/port mapping defined in the cartridge. ● Kubernetes Service is a load balancing service for Pods. ● A Kubernetes Pod is created for each member in a cluster. ● A Kubernetes Pod is a group of Docker containers. ● Kubernetes creates a separate Docker container for networking.
  • 17. ** Why Composite Application Support? ๏ Real world application are complex and required multiple heterogeneous service runtimes (Cartridges) to host the application ๏ These Cartridges may have dependencies to each other - startup order - dependency ratio - dependent scaling - termination behaviors - data sharing ๏ Capable of creating Cartridge group and it provide more flexibility to handle group behaviours such as group scaling, load balancing..etc ๏ Capable of creating blueprint of an application runtime by using simple structured json payload
  • 20. ** What is it? ๏ Scaling algorithm can use multiple factors. such as - Load average of the instance - Memory consumption of the instance - In-flight request count in LB Multi-factored Auto Scaling
  • 21. ** ๏ Capable of predicting future load - Real time analysis of current load status using CEP integration - Predict immediate future load based on CEP resulting streams - Predicting equation s=ut + ½ at2 - s=predicted load, u=first derivative of current average load, t=time interval , a=second derivative of current load Why should one care? ๏ Maximise resource utilization ๏ Easy to do capacity planning ๏ Dynamic load based resource provisioning ๏ Optimizing across multiple clouds Multi-factored Auto Scaling...
  • 22. ** How Scalable it is? ๏ In theory infinite - horizontal scaling - limited by resource (instance capacity) availability How Dynamic it is? ๏ Load Balancers are spawned dynamically - LB too is a cartridge ๏ In case of multi-cloud, multi-region, LB can scale per cloud/region ๏ Per service cluster LB Scalable and Dynamic Load Balancing
  • 23. ** What is unique about Stratos ๏ Cartridge based LB model ๏ Can bring any third-party LB - HAProxy, nginx, AWS ELB - As easy as plugging into LB extension API Scalable and Dynamic Load Balancing..
  • 24. * Stratos Load Balancer Extension Architecture
  • 25. ** What are the smart policies? ๏ Auto scaling ๏ Deployment Auto scaling policy ๏ Define thresholds values pertaining scale up/down decision ๏ Auto Scaler refer this policy ๏ Defined by DevOps Deployment policy ๏ Defined how and where to spawn cartridge instances ๏ Defined min and max instances in a selected service cluster ๏ Defined by DevOps based on deployment patterns Smart Policies
  • 26. ** Why should one care? ๏ Can provide cloud SLA What are the advantages? ๏ Make DevOps life easy - help keep to SLA ๏ Make SaaS app delivery life easy - do not have to worry about availability in application layer Smart Policies
  • 27. * Composite Application Model and Policy Model
  • 28. ** What is it? ๏ Expanding/provisioning application into another cloud to handle peak load. Why Should one care? ๏ Resource peak time can be off-loaded to third party clouds/resources What is unique about it? ๏ Can off-load to any cloud - Private, Public and Hybrid ๏ Whole application can replicated into bursting cloud with all configuration ๏ Can migrate application into another cloud without downtime Cloud Bursting
  • 29. ** What details are? ๏ Instance up/down time ๏ Each and every instances health status - application health, load average, memory consumption ๏ Application logs Why should one care? ๏ Centralize view for all logging, metering and monitoring What are the advantages? ๏ DevOps life easy - centralized log viewer - centralized dashboard ๏ Easy to throttling Logging, Metering and Monitoring
  • 30. ** Demo - Docker, Kubernetes with autoscaling
  • 31. ** More Information ! ๏ http://stratos.apache.org ๏ http://lakmalsview.blogspot.com/2013/12/sneak-peek- into-apache-stratos.html ๏ https://cwiki.apache.org/confluence/display/STRATOS/ ๏ https://github.com/coreos/flannel ๏ https://www.youtube.com/watch?v=tsk0pWf4ipw