Upload
wso2
View
399
Download
4
Tags:
Embed Size (px)
Citation preview
Committer and PMC member of Apache StratosSenior Software Engineer, WSO2
Lahiru Sandaruwan
Developing and deploying SaaS app using VMware vCloud Suite with Apache Stratos
Committer and PMC member of Apache StratosSoftware Engineer, WSO2
Melan Jayasingha
*
Agenda
• Developing and Development of SaaS application
• Values added from cloud• How to use vCloud as Stratos IaaS for
building a SaaS platform• Demonstration with Joomla cartridge • Scalability demo• High Availability demo• Q&A, Discussion
*
Development and Deployment of SaaS application
*
Values added from cloud
๏ Scalability๏ High Availability๏ Load Balancing๏ SLA Awareness
*
Scalability
"The ability of the of a system to continue to operate correctly even when it is scaled to a larger size”
*
Vertical Scaling
• Get the maximum out of each allocated JVM or resource
• Increase CPU size• Increase memory
*
Horizontal Scaling
*
Availability
*
Availability
*
High Availability
A system that is designed for continuous operation in the event of a failure of one or more components. However, the system may display some degradation of service, but will continue to perform correctly.
High Availability: The proportion of time during which the service is accessible with reasonable response times should be close to 100%.
*
How to decide required scale (capacity) & availability?
• Average throughput (TPS)• Max throughput (TPS)• Monetary value of a transaction• Average loss & max loss per second of
downtime• Decide on how much to invest based on cost vs.
benefit tradeoff
*
Load Balancing
• Load balancing algorithms• Round robin• Weighted• Response based• Health check• Failover-only
*
Configuring Stratos to use vCloud
<iaasProvider type="vcloud" name="VMware vCloud specific details"><className>org.apache.stratos.cloud.controller.iaases.VCloudIaas</className><provider>vcloud</provider><identity svns:secretAlias="cloud.controller.vcloud.identity">sampleusername</identity><credential svns:secretAlias="cloud.controller.vcloud.credential">*****</credential><property name="jclouds.endpoint" value="https://mycloud.stratogen.sg/api" /><property name="jclouds.vcloud.version.schema" value="1.5" /><property name="jclouds.api-version" value="1.5" /><property name="autoAssignIp" value="true" />
iaasProvider>
*
Demo
*
References
๏ http://www.cari-info.org/cari-2012/session%201/1B3.pdf๏ http://www.slideshare.net/afkham_azeez/java-colombo-developing-
highly-scalable-apps
- Azeez’s talk at Java Colombo
*
DISCUSSION
*
Thanks!