26
Last Updated: December 2014 Manage Composite Application with Apache Stratos Reka Thirunavukkarasu Senior Software Engineer, WSO2 Committer & PMC member, Apache Stratos Composite Applications in Apache Stratos 4.1.0 Udara Liyanage Software Engineer, WSO2 Committer & PMC member, Apache Stratos Chamila de Alwis Software Engineer, WSO2 Committer & PMC member, Apache Stratos http://stratos. apache.org/

Stratos Grouping

  • Upload
    wso2

  • View
    47

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Stratos Grouping

Last Updated: December 2014

Manage Composite Application with Apache Stratos

Reka Thirunavukkarasu

Senior Software Engineer, WSO2Committer & PMC member, Apache Stratos

Composite Applications in Apache Stratos 4.1.0

Udara LiyanageSoftware Engineer, WSO2Committer & PMC member, Apache Stratos

Chamila de AlwisSoftware Engineer, WSO2Committer & PMC member, Apache Stratos

http://stratos.apache.org/

Page 2: Stratos Grouping

*

๏ What is Stratos๏ What is a Composite Application Model๏ Sample composite applications๏ Metadata API ๏ Demo with tomcat - WSO2 Identity Server SAML SSO

Roadmap

Page 3: Stratos Grouping

*

oApache Stratos is a highly-extensible Platform-as-a-Service (PaaS) framework

oMultifactored AutoscalingoLoad Balancer as a cartridgeoHigh availabilityoCloud burstingoMultitenancy

Stratos

Page 4: Stratos Grouping

Stratos Manager

AutoScaler

Cloud Controller

MySQL PHP WSO2 ISWSO2 ESB

Str a

tos

Iaa S

Admin / Service Creator

Service User

Page 5: Stratos Grouping

Architecture

Page 6: Stratos Grouping

ESB

Tomcat

PHP

MySQL

PostGreSQL

Mediation Application Database

Page 7: Stratos Grouping

ESB TomcatPHP

MySQLPostGreSQL

STRATOS 4.0.0

Page 8: Stratos Grouping

Problems?

o Managing multiple services that are grouped together in the real worldo Startup dependencies among services o Termination behavior among dependent serviceso Scaling rules among services and service groupso Sharing data among services and service groups

Page 9: Stratos Grouping
Page 10: Stratos Grouping

o Allows to deploy an application that required to have different service runtimes (cartridge) with their relationship, dependencies and deployment pattern.

o Defines a service group by aggregating different service runtimes with their unique behaviours such as startup order, termination behaviour and scaling behaviour.

o Eg: DataBase group consists of mysql and postgres

o Group supports nested group and their behaviour as well

Composite Application Model

Page 11: Stratos Grouping
Page 12: Stratos Grouping

Instance Life cycle

Page 13: Stratos Grouping

mysql-php-group

mysql php

LAMP

startup order

Application

Group

Cartridges

Page 14: Stratos Grouping

mysql-php-group

mysql php

LAMP

startup order

Application

Group

Page 15: Stratos Grouping
Page 16: Stratos Grouping

Demo

Page 17: Stratos Grouping

Group

Tomcat WSO2 Identity Server

TOMCAT SAML SSO

Application

Cartridges

Page 18: Stratos Grouping

Cartridge Agent

Service - Tomcat

MB Event

CA PluginOn MB Event

Start/ Restart Service

Cartridge Instance

Page 19: Stratos Grouping
Page 20: Stratos Grouping

*

Dependent Scaling๏ When one cluster scales up, scale up the dependent

group/cluster as well

Predicted No of instances for c3 is 4

Page 21: Stratos Grouping

o PaaS manages heterogeneous service runtimes(cartridges)

o Cartridges have dependencies to other cartridgeso Subset of cartridges can be grouped together by defining

the group behaviourso Easy to maintain application and their dependencies by

providing monitoring, handling app behaviours and elastic scaling.

Why Composite Application in Cloud ?

Page 22: Stratos Grouping

*

More Information !

๏ http://lakmalsview.blogspot.com๏ Composite applications

https://cwiki.apache.org/confluence/display/STRATOS/4.1.0+Composite+Applications

Thank you!Questions..?

Page 23: Stratos Grouping

*

Thank you…!

Questions..?

Page 24: Stratos Grouping
Page 25: Stratos Grouping

Architecture

Page 26: Stratos Grouping

Packaging of Composite Application

o Application consists of groups and cartridges/serviceso Group can also consist of another group as nested

manner and cartridges/services.