wso2con asia 2016: deployment patterns and capacity planning

22
Deployment Pa-erns and Capacity Planning Chathura Kulasinghe Solu9ons Engineer

Upload: wso2-inc

Post on 22-Jan-2018

495 views

Category:

Technology


1 download

TRANSCRIPT

DeploymentPa-ernsandCapacityPlanning

ChathuraKulasingheSolu9onsEngineer

WSO2‘Carbon’—ComponentArchitecture

WSO2‘Carbon’—FeatureDistribu;on

WSO2‘Carbon’—Adaptability

WSO2DeploymentPa@erns—Standalone

Separate runtimes

Shared runtimes (Combined Instances)

Publisher + Store

TheApproach:Solu;onsArchitecture•  Gatherrequirements•  PicturethearchitectureofaSolu9on•  Iden9fylogicalcomponents(basedondomain)•  tomodelwithWSO2products

TheApproach:L0Architecture(Example)

TheApproach:L1Architecture(Example)

TheApproach:CapacityPlanning•  DetermineVolume(s)tobehandled

–  throughput–  concurrency–  latency–  averagedatapacketsize–  workpertransac9on

•  Using,–  monitoringsystems–  business/marke9ngsta9s9cs–  availabledatavolumes–  Future/projecteddata

•  Takecapacityrequirementsofthesolu;oncomponents•  Checkthecapacityofeachproduct•  Determinehowmanyinstancesrequiredinacluster•  Consideravailabilityandfailoverscenarios

CapacityPlanning:InstancesCounts

CapacityPlanning:ExampleCalcula;oncntd•  IfaninstanceofWSO2ESBhandles

–  xrequests/transac9ons–  withinasecond

•  tohandle–  yrequests/transac9ons–  withinasecond

•  AclusterofWSO2ESBrequires–  nnumberofnodes/instances

•  When–  n=(y+y(30/100))/x

•  and–  nx>y+y(30/100)

+ =

A1 A2 A3 An

LB

WSO2DeploymentPa@erns—Cluster-HALet’sconsideroneproductclusterinpar9cular(eg.WSO2ESB)

Thesolu;on:Deployment…?

TheSolu;on:Ac;ve-Ac;vedeployment(Example)

TheSolu;on:Ac;ve-Passivedeployment(Example)

Deploymentofproducts•  Choosedeployment-modeandinfrastructure

–  eg.on-premise/cloud,LINUXboxes/AmazonAWS•  ReadWSO2hardwarespecifica;on•  Preparemachines/virtual-machines•  ExtractbinarypackagesofWSO2products•  Configureclustersandconstructthesolu;on

HardwareRequirementsSpecifica;on•  IsbasedonthenumberofJVM/WSO2instances•  Typically,

–  1CPUperJVMinstance–  2GBofRAMperJVMinstance–  10GBofHarddiskspace

•  and,–  1CPUforopera;ngsystem–  2GBforopera;ngsystem

•  Followingthebasics,–  VMsareconfiguredorSelected(egAmazonEC2c1.large)

VirtualMachines

WSO2DeploymentPa@erns—Cluster-Scalability

WSO2DeploymentPa@erns—SharedRegistry

WSO2Documenta;on:WSO2API-Manager(Example)

h@ps://docs.wso2.com/display/CLUSTER420/API+Manager+Clustering+Deployment+Pa@erns

ThankYou