SlideShare a Scribd company logo
Last Updated: May. 2014
Committer and PMC member of Apache Stratos
Senior Software Engineer, WSO2
Lahiru Sandaruwan
Cloud Concepts
*
Agenda
• Some core concepts
• Vertical/horizontal scaling techniques
• Capacity planning
• SLA Awareness
• Autoscaling
• Fault tolerance
• Q&A, Discussion
*
Scalability
"The ability of the of a system to
continue to operate correctly even
when it is scaled to a larger size”
*
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
*
Vertical Scaling
• Get the maximum out of each allocated JVM or
resource
• Increase CPU size
• Increase memory
*
Horizontal Scaling
*
Load Balancing
• Load balancing algorithms
• Round robin
• Weighted
• Response based
• Health check
• Failover-only
*
Clustering for scalability
*
Clustering for availability
Group Communication Channel/State replication
*
Capacity Planning
Source: http://srinathsview.blogspot.com/2012/05/how-to-measure-performance-of-
server.html
*
Capacity Planning
Throughput = number of completed requests / time to complete the requests
No. of servers = (projected max load * 1.3) / max throughput of one server
max throughput of one server = max throughput of that server for the slowest
scenario in the set of use cases
*
Static membership
• Predefined members
• Other (non-predefined) nodes cannot join
M2
M1
M3
M4
Static group
N
*
Dynamic membership
• No predefined members
• Nodes can join & leave
M2
M1
M3
M4
Dynamic group
N
Join
*
Hybrid membership
• Some predefined (well-known) members, and some
dynamic members
• Nodes can join & leave
• Membership revolves around the static members
Hybrid group
N
M2
M1
M3 M4
Static members
M6M5
M7
Dynamic members
Join (IP,
Port)
*
Multicast based membership
management
N
M2
M1
M3
M4
Join (IP,
Port)
*
Well-known Address (WKA) based
membership management
Hybrid group
N
WK
2
WK
1
WK
3 WK
4
Static members
M6
M5
M
7
Dynamic members
Join (IP,
Port)
Notify
*
Multicast vs. WKA
Multicast WKA
All nodes should be in the same subnet Nodes can be in different networks
All nodes should be in the same multicast domain
No multicasting requirement
Multicasting should not be blocked
No fixed IP addresses or hosts required At least one well-known IP address or host
required
Failure of any member does not affect
membership discovery
New members can join with some WKA nodes
down, but not if all WKA nodes are down
Does not work on IaaSs such as Amazon EC2 IaaS-friendly
Requires keepalived, elastic IPs or some other
mechanism for remapping IP addresses of WK
members in cases of failure
*
● Solves performance, availability, and
economic costs issues
● Currently the customer needs a considerable
capacity planning
● Reduce cost of cloud: reduce economic cost
and energy footprint
SLA Awareness
*
● Monitoring the cloud parameters
● Trigger an event if a SLA violation happened
● Acting upon the events
SLA Awareness: Solution
*
Auto-scaling
• Scale-out when load increases
• Scale-in when load decreases
• Always use the optimum amount of resources
• Try out
• AWS ELB
• Apache Stratos Load Balancer
• WSO2 ELB
*
Auto-scaling – steady load
*
Auto-scaling – load increasing
*
Auto-scaling – load increasing
*
Auto-scaling – steady load
*
Auto-scaling – decreased load
*
Auto-scaling – decreased load
*
Auto-scaling – steady load
*
Autoscaling - Analysis & Results
*
Autoscaling - Analysis & Results
*
Single nodeAvailability
Cost
LOWEST
HIGHEST
*
Primary-secondary
Primary Secondary
Availability
Cost
LOWEST
HIGHEST
*
Primary-secondary, multiple LB
Primary Secondary
keepalived
Availability
Cost
LOWEST
HIGHEST
*
Active cluster, multiple LB
Active Active
keepalived
Active
Availability
Cost
LOWEST
HIGHEST
*
Multi-zone or multi-datacenter
Deployment
Region X
Zone 1
Zone 2
Cloud
Controller
Availability
Cost
LOWEST
HIGHEST
*
Multi-region deployment
Region X
Zone 1
Zone 2
Region Y
Zone 1
Zone 2
Availability
Cost
LOWEST
HIGHEST
*
Multiple IaaS (hybrid) DeploymentAvailability
Cost
LOWEST
HIGHEST
Private cloud (data center)
Zone 1
Zone 2
Amazon EC2
Zone 1
Zone 2
Rackspace Cloud
Zone 1
Zone 2
*
Single
Node
Primary-Secondary,single
LB
Multi-nodeactivecluster
-Singlezone
Multi-region
Primary-
Secondary,
withmultipleLBs
Multi-zone
Multi-IaaS
Cost of Availability
*
Stratos Architecture
*
References
๏ http://www.cari-info.org/cari-2012/session%201/1B3.pdf
๏ http://domino.research.ibm.com/library/cyberdig.
nsf/papers/16D9BBF221540A0785257784004FC33D
๏ http://ieeexplore.ieee.org/xpl/login.jsp?
tp=&arnumber=5452504&url=http%3A%2F%2Fieeexplore.ieee.
org%2Fxpls%2Fabs_all.jsp%3Farnumber%3D5452504
๏ http://ieeexplore.ieee.org/xpl/login.jsp?
tp=&arnumber=5990687&url=http%3A%2F%2Fieeexplore.ieee.
org%2Fxpls%2Fabs_all.jsp%3Farnumber%3D5990687
๏ http://www.slideshare.net/afkham_azeez/java-colombo-developing-
highly-scalable-apps
- Azeez’s talk at Java Colombo
*
DISCUSSION
*
Thanks!

More Related Content

PDF
Apache pulsar - storage architecture
PPTX
Spring Boot+Kafka: the New Enterprise Platform
PPTX
Building an Event-oriented Data Platform with Kafka, Eric Sammer
PPTX
Fundamentals and Architecture of Apache Kafka
PPTX
Netflix Data Pipeline With Kafka
PPTX
Real time Messages at Scale with Apache Kafka and Couchbase
PDF
How Apache Kafka® Works
PDF
Devoxx Morocco 2016 - Microservices with Kafka
Apache pulsar - storage architecture
Spring Boot+Kafka: the New Enterprise Platform
Building an Event-oriented Data Platform with Kafka, Eric Sammer
Fundamentals and Architecture of Apache Kafka
Netflix Data Pipeline With Kafka
Real time Messages at Scale with Apache Kafka and Couchbase
How Apache Kafka® Works
Devoxx Morocco 2016 - Microservices with Kafka

What's hot (20)

PDF
Jelastic (PaaS + IaaS) Virtual Cluster on Google Cloud Engine
PDF
Apache Kafka - Martin Podval
PDF
Hands-on Workshop: Apache Pulsar
PPTX
Kubernetes as Orchestrator for A10 Lightning Controller
PDF
Pulsar - Distributed pub/sub platform
PDF
Learnings from the Field. Lessons from Working with Dozens of Small & Large D...
PDF
Unifying Messaging, Queueing & Light Weight Compute Using Apache Pulsar
PPTX
Apache Pulsar First Overview
PPTX
Protecting your data at rest with Apache Kafka by Confluent and Vormetric
PPTX
Flume vs. kafka
PDF
Apache Pulsar at Yahoo! Japan
PDF
Unify Storage Backend for Batch and Streaming Computation with Apache Pulsar_...
PPTX
Cloud - High Availability @ Low Cost - Workshop - Gurpreet ahuja
PDF
Principal Propagation with SAP Cloud Platform
PPTX
Solving Complex Scaling Problems by Prashant Kumar and Abhishek Jain of Myntr...
PDF
Asynchronous Transaction Processing With Kafka as a Single Source of Truth - ...
PPTX
Taking the open cloud to 11
PDF
Txlf2012
PDF
Linked In Stream Processing Meetup - Apache Pulsar
PDF
Distributed Enterprise Monitoring and Management of Apache Kafka (William McL...
Jelastic (PaaS + IaaS) Virtual Cluster on Google Cloud Engine
Apache Kafka - Martin Podval
Hands-on Workshop: Apache Pulsar
Kubernetes as Orchestrator for A10 Lightning Controller
Pulsar - Distributed pub/sub platform
Learnings from the Field. Lessons from Working with Dozens of Small & Large D...
Unifying Messaging, Queueing & Light Weight Compute Using Apache Pulsar
Apache Pulsar First Overview
Protecting your data at rest with Apache Kafka by Confluent and Vormetric
Flume vs. kafka
Apache Pulsar at Yahoo! Japan
Unify Storage Backend for Batch and Streaming Computation with Apache Pulsar_...
Cloud - High Availability @ Low Cost - Workshop - Gurpreet ahuja
Principal Propagation with SAP Cloud Platform
Solving Complex Scaling Problems by Prashant Kumar and Abhishek Jain of Myntr...
Asynchronous Transaction Processing With Kafka as a Single Source of Truth - ...
Taking the open cloud to 11
Txlf2012
Linked In Stream Processing Meetup - Apache Pulsar
Distributed Enterprise Monitoring and Management of Apache Kafka (William McL...
Ad

Similar to Cloud concepts (20)

PPTX
Java Colombo: Developing Highly Scalable Apps
PPTX
Adjusting carbon topology to match high availability scenario requirements
PDF
Scalability Availabilty and Management of WSO2 Carbon
PPTX
Utah Codecamp Cloud Computing
PDF
Adjust Carbon Topology to Match High Availability Scenario Requirements
PPTX
Scaling horizontally on AWS
PPTX
Cloud computing
PPTX
Cloud Computing - Geektalk
PDF
Scalability strategies for cloud based system architecture
ODP
Autoscaling Ws On Ec2 Apache Con Presentation
PDF
Improving Cloud Performance through Performance Based Load Balancing Approach
PDF
SVCC-2014
PPTX
Licentiate Defense Slide
PDF
rerngvit_phd_seminar
PDF
Microservices Architecture with AWS @ AnyMind Group
PDF
AnyMind Group Tech Talk - Microservices architecture with AWS
PPTX
AWS Cost Optimization
PDF
Distributed Systems: scalability and high availability
PDF
Scalable Soa
PPT
Cloud Computing - Challenges & Opportunities
Java Colombo: Developing Highly Scalable Apps
Adjusting carbon topology to match high availability scenario requirements
Scalability Availabilty and Management of WSO2 Carbon
Utah Codecamp Cloud Computing
Adjust Carbon Topology to Match High Availability Scenario Requirements
Scaling horizontally on AWS
Cloud computing
Cloud Computing - Geektalk
Scalability strategies for cloud based system architecture
Autoscaling Ws On Ec2 Apache Con Presentation
Improving Cloud Performance through Performance Based Load Balancing Approach
SVCC-2014
Licentiate Defense Slide
rerngvit_phd_seminar
Microservices Architecture with AWS @ AnyMind Group
AnyMind Group Tech Talk - Microservices architecture with AWS
AWS Cost Optimization
Distributed Systems: scalability and high availability
Scalable Soa
Cloud Computing - Challenges & Opportunities
Ad

Recently uploaded (20)

PDF
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
PPTX
Patient Appointment Booking in Odoo with online payment
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PPTX
WiFi Honeypot Detecscfddssdffsedfseztor.pptx
PPTX
Computer Software and OS of computer science of grade 11.pptx
PDF
CapCut Video Editor 6.8.1 Crack for PC Latest Download (Fully Activated) 2025
PDF
Tally Prime Crack Download New Version 5.1 [2025] (License Key Free
PDF
How to Make Money in the Metaverse_ Top Strategies for Beginners.pdf
PPTX
Operating system designcfffgfgggggggvggggggggg
PPTX
Advanced SystemCare Ultimate Crack + Portable (2025)
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PPTX
Log360_SIEM_Solutions Overview PPT_Feb 2020.pptx
PDF
Cost to Outsource Software Development in 2025
DOCX
Greta — No-Code AI for Building Full-Stack Web & Mobile Apps
PPTX
CHAPTER 2 - PM Management and IT Context
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PDF
Autodesk AutoCAD Crack Free Download 2025
PDF
wealthsignaloriginal-com-DS-text-... (1).pdf
PPTX
Embracing Complexity in Serverless! GOTO Serverless Bengaluru
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
Patient Appointment Booking in Odoo with online payment
Adobe Illustrator 28.6 Crack My Vision of Vector Design
WiFi Honeypot Detecscfddssdffsedfseztor.pptx
Computer Software and OS of computer science of grade 11.pptx
CapCut Video Editor 6.8.1 Crack for PC Latest Download (Fully Activated) 2025
Tally Prime Crack Download New Version 5.1 [2025] (License Key Free
How to Make Money in the Metaverse_ Top Strategies for Beginners.pdf
Operating system designcfffgfgggggggvggggggggg
Advanced SystemCare Ultimate Crack + Portable (2025)
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
Wondershare Filmora 15 Crack With Activation Key [2025
Log360_SIEM_Solutions Overview PPT_Feb 2020.pptx
Cost to Outsource Software Development in 2025
Greta — No-Code AI for Building Full-Stack Web & Mobile Apps
CHAPTER 2 - PM Management and IT Context
Odoo Companies in India – Driving Business Transformation.pdf
Autodesk AutoCAD Crack Free Download 2025
wealthsignaloriginal-com-DS-text-... (1).pdf
Embracing Complexity in Serverless! GOTO Serverless Bengaluru

Cloud concepts