SlideShare a Scribd company logo
1 of 14
WSO2 Middleware on DC/OS
Udara Liyanage / Anuruddha Liyanarachchi
DC/OS Introduction
A data center operation system that provides resource isolation and sharing
resources among distributed applications
Developed at Berkeley university
Twitter , AirBnB, Apple … etc
Clients who deploys WSO2 products on Mesos : IMSHealth, Verifone and
Synchronoss
DC/OS Features
High resource utilization
Container orchestration
Zero downtime upgrades
Scaling
High availability
Service discovery and load balancing
Restful APIs for management
Why DC/OS
Setup with few machines few machines, easy to manage
install software and dependencies by hand
ssh and nohup/screen would do
resource utilization is poor
adding new software requires some work
scaling is not so easy
Why DC/OS
Setup with few machines manual software installation would
not help!
Setup with larger no of machines
Datacenter as a single big computer illusion
A developer sees a giant machine
rather than a set of small machines
Mesos workflow
You tell Mesos
which binary to use
number of application instances required
required cpu, memory and disk
which ports to be opened
You don’t worry
where to deploy application
what if hardware fails
Marathon Mesos framework
Marathon is a container orchestration platform
for DC/OS
Let you deploy Docker based long running
applications
Highavailability
Healthcheck
Stateful application with persistent volumes
Restful API
Web based UI for easy application deployment
Apply constraints
MarathonLB
MarathonLB load balance service via service port
VHost for custom domains
{
"name":"servlet-https",
"containerPort":9443,
"servicePort":10095,
"protocol":"tcp"
}
{
"id": "http-service",
"labels": {
"HAPROXY_GROUP":"external",
"HAPROXY_0_VHOST":"esbmgt.wso2.com"
}
}
Mesos DNS
Every Marathon application gets a DNS name
[app_name].marathon.mesos
Ex:
esbmgt.marathon.mesos
asmgt.marathon.mesos
Mesos WSO2 artifacts
Dockerfiles - Build docker images for Mesos
https://github.com/wso2/dockerfiles
Puppet modules - Configuration management for WSO2 Docker images for Mesos,
Kubernetes and baremetal
https://github.com/wso2/puppet-modules
Mesos artifacts - Json file representing WSO2 Marathon applications
https://github.com/wso2/mesos-artifacts
Challenges in Mesos - Clustering
wso2::clustering:
enabled: true
membership_scheme: mesos
member_discovery_scheme: Marathon
marathon_applications: gateway-manager, gateway-worker
marathon_endpoint: http://mesos.wso2.com:8080
At startup carbon server queries Marathon
REST API to find existing members
Initialize Hazelcast clustering with existing
members ip and ip of itself
Mesos can dynamically respin members due to
scaling
healthcheck fails
exceed resources
Mesos node fails
but servers can identify its members
Demo
Thank You
http://www.tomsitpro.com/articles/mesos-mesosphere-data-center-open-source-
apache,1-2001.html
https://abhishek-tiwari.com/post/building-distributed-systems-with-mesos
https://github.com/mesosphere/mesos-dns

More Related Content

Similar to WSO2 Middleware on DC_OS-1

WSO2 Middleware on DC/OS or Mesos
WSO2 Middleware on DC/OS or MesosWSO2 Middleware on DC/OS or Mesos
WSO2 Middleware on DC/OS or MesosWSO2
 
Microservices approach for Websphere commerce
Microservices approach for Websphere commerceMicroservices approach for Websphere commerce
Microservices approach for Websphere commerceHARIHARAN ANANTHARAMAN
 
PHP Buildpacks in the Cloud on Bluemix
PHP Buildpacks in the Cloud on BluemixPHP Buildpacks in the Cloud on Bluemix
PHP Buildpacks in the Cloud on BluemixIBM
 
Cloud Foundry for PHP developers
Cloud Foundry for PHP developersCloud Foundry for PHP developers
Cloud Foundry for PHP developersDaniel Krook
 
Cloud Foundry a Developer's Perspective
Cloud Foundry a Developer's PerspectiveCloud Foundry a Developer's Perspective
Cloud Foundry a Developer's PerspectiveDave McCrory
 
GigaSpaces CCF 4 Xap
GigaSpaces CCF 4 XapGigaSpaces CCF 4 Xap
GigaSpaces CCF 4 XapShay Hassidim
 
Harbour IT & VMware - vForum 2010 Wrap
Harbour IT & VMware - vForum 2010 WrapHarbour IT & VMware - vForum 2010 Wrap
Harbour IT & VMware - vForum 2010 WrapHarbourIT
 
Microsoft Azure Overview Infographic
Microsoft Azure Overview InfographicMicrosoft Azure Overview Infographic
Microsoft Azure Overview InfographicMicrosoft Azure
 
The cloud transforms
The cloud transformsThe cloud transforms
The cloud transformsEric Rubin
 
abiCloud in 10 slides
abiCloud in 10 slidesabiCloud in 10 slides
abiCloud in 10 slidesabiquo
 
Windows Azure & How to Deploy Wordress
Windows Azure & How to Deploy WordressWindows Azure & How to Deploy Wordress
Windows Azure & How to Deploy WordressGeorge Kanellopoulos
 
Wisconsin .NET UG - Windows Azure
Wisconsin .NET UG - Windows AzureWisconsin .NET UG - Windows Azure
Wisconsin .NET UG - Windows AzureWade Wegner
 
Introduction to mesos bay
Introduction to mesos bayIntroduction to mesos bay
Introduction to mesos bayhongbin034
 
Hyperscale Computing, Enterprise Agility with Mesosphere
Hyperscale Computing, Enterprise Agility with MesosphereHyperscale Computing, Enterprise Agility with Mesosphere
Hyperscale Computing, Enterprise Agility with MesosphereMarkus Eisele
 
Mainframe Architecture & Product Overview
Mainframe Architecture & Product OverviewMainframe Architecture & Product Overview
Mainframe Architecture & Product Overviewabhi1112
 
WSO2 API Manager Reference Architecture for DC/OS
WSO2 API Manager Reference Architecture for DC/OSWSO2 API Manager Reference Architecture for DC/OS
WSO2 API Manager Reference Architecture for DC/OSImesh Gunaratne
 
Mesosphere quick overview
Mesosphere quick overviewMesosphere quick overview
Mesosphere quick overviewKrishna-Kumar
 

Similar to WSO2 Middleware on DC_OS-1 (20)

WSO2 Middleware on DC/OS or Mesos
WSO2 Middleware on DC/OS or MesosWSO2 Middleware on DC/OS or Mesos
WSO2 Middleware on DC/OS or Mesos
 
Microservices approach for Websphere commerce
Microservices approach for Websphere commerceMicroservices approach for Websphere commerce
Microservices approach for Websphere commerce
 
PHP Buildpacks in the Cloud on Bluemix
PHP Buildpacks in the Cloud on BluemixPHP Buildpacks in the Cloud on Bluemix
PHP Buildpacks in the Cloud on Bluemix
 
Cloud Foundry for PHP developers
Cloud Foundry for PHP developersCloud Foundry for PHP developers
Cloud Foundry for PHP developers
 
Cloud Foundry a Developer's Perspective
Cloud Foundry a Developer's PerspectiveCloud Foundry a Developer's Perspective
Cloud Foundry a Developer's Perspective
 
sMash_for_zOS-users
sMash_for_zOS-userssMash_for_zOS-users
sMash_for_zOS-users
 
GigaSpaces CCF 4 Xap
GigaSpaces CCF 4 XapGigaSpaces CCF 4 Xap
GigaSpaces CCF 4 Xap
 
Harbour IT & VMware - vForum 2010 Wrap
Harbour IT & VMware - vForum 2010 WrapHarbour IT & VMware - vForum 2010 Wrap
Harbour IT & VMware - vForum 2010 Wrap
 
PaaS Solutions Comparison
PaaS Solutions ComparisonPaaS Solutions Comparison
PaaS Solutions Comparison
 
Beginning with Windows Azure
Beginning with Windows AzureBeginning with Windows Azure
Beginning with Windows Azure
 
Microsoft Azure Overview Infographic
Microsoft Azure Overview InfographicMicrosoft Azure Overview Infographic
Microsoft Azure Overview Infographic
 
The cloud transforms
The cloud transformsThe cloud transforms
The cloud transforms
 
abiCloud in 10 slides
abiCloud in 10 slidesabiCloud in 10 slides
abiCloud in 10 slides
 
Windows Azure & How to Deploy Wordress
Windows Azure & How to Deploy WordressWindows Azure & How to Deploy Wordress
Windows Azure & How to Deploy Wordress
 
Wisconsin .NET UG - Windows Azure
Wisconsin .NET UG - Windows AzureWisconsin .NET UG - Windows Azure
Wisconsin .NET UG - Windows Azure
 
Introduction to mesos bay
Introduction to mesos bayIntroduction to mesos bay
Introduction to mesos bay
 
Hyperscale Computing, Enterprise Agility with Mesosphere
Hyperscale Computing, Enterprise Agility with MesosphereHyperscale Computing, Enterprise Agility with Mesosphere
Hyperscale Computing, Enterprise Agility with Mesosphere
 
Mainframe Architecture & Product Overview
Mainframe Architecture & Product OverviewMainframe Architecture & Product Overview
Mainframe Architecture & Product Overview
 
WSO2 API Manager Reference Architecture for DC/OS
WSO2 API Manager Reference Architecture for DC/OSWSO2 API Manager Reference Architecture for DC/OS
WSO2 API Manager Reference Architecture for DC/OS
 
Mesosphere quick overview
Mesosphere quick overviewMesosphere quick overview
Mesosphere quick overview
 

WSO2 Middleware on DC_OS-1

  • 1. WSO2 Middleware on DC/OS Udara Liyanage / Anuruddha Liyanarachchi
  • 2. DC/OS Introduction A data center operation system that provides resource isolation and sharing resources among distributed applications Developed at Berkeley university Twitter , AirBnB, Apple … etc Clients who deploys WSO2 products on Mesos : IMSHealth, Verifone and Synchronoss
  • 3. DC/OS Features High resource utilization Container orchestration Zero downtime upgrades Scaling High availability Service discovery and load balancing Restful APIs for management
  • 4. Why DC/OS Setup with few machines few machines, easy to manage install software and dependencies by hand ssh and nohup/screen would do resource utilization is poor adding new software requires some work scaling is not so easy
  • 5. Why DC/OS Setup with few machines manual software installation would not help! Setup with larger no of machines
  • 6. Datacenter as a single big computer illusion A developer sees a giant machine rather than a set of small machines
  • 7. Mesos workflow You tell Mesos which binary to use number of application instances required required cpu, memory and disk which ports to be opened You don’t worry where to deploy application what if hardware fails
  • 8. Marathon Mesos framework Marathon is a container orchestration platform for DC/OS Let you deploy Docker based long running applications Highavailability Healthcheck Stateful application with persistent volumes Restful API Web based UI for easy application deployment Apply constraints
  • 9. MarathonLB MarathonLB load balance service via service port VHost for custom domains { "name":"servlet-https", "containerPort":9443, "servicePort":10095, "protocol":"tcp" } { "id": "http-service", "labels": { "HAPROXY_GROUP":"external", "HAPROXY_0_VHOST":"esbmgt.wso2.com" } }
  • 10. Mesos DNS Every Marathon application gets a DNS name [app_name].marathon.mesos Ex: esbmgt.marathon.mesos asmgt.marathon.mesos
  • 11. Mesos WSO2 artifacts Dockerfiles - Build docker images for Mesos https://github.com/wso2/dockerfiles Puppet modules - Configuration management for WSO2 Docker images for Mesos, Kubernetes and baremetal https://github.com/wso2/puppet-modules Mesos artifacts - Json file representing WSO2 Marathon applications https://github.com/wso2/mesos-artifacts
  • 12. Challenges in Mesos - Clustering wso2::clustering: enabled: true membership_scheme: mesos member_discovery_scheme: Marathon marathon_applications: gateway-manager, gateway-worker marathon_endpoint: http://mesos.wso2.com:8080 At startup carbon server queries Marathon REST API to find existing members Initialize Hazelcast clustering with existing members ip and ip of itself Mesos can dynamically respin members due to scaling healthcheck fails exceed resources Mesos node fails but servers can identify its members
  • 13. Demo