Programming Elasticity in the Cloud

Hong-Linh Truong
Hong-Linh TruongResearcher, Educator, and Consultant um Aalto University
Tutorial: 
Programming Elasticity in the Cloud 
Hong-Linh Truong 
Distributed Systems Group 
Vienna University of Technology 
truong@dsg.tuwien.ac.at 
http://dsg.tuwien.ac.at/research/viecom/ 
Cloudcom 2014, 15 Dec, 2014, 
Singapore 
1 
The 6th International Conference on Cloud Computing Technology and Science
Distributed Systems Group@TU Wien 
 ~ 30 people, 1 full prof., 1 Priv-Doz, 4 post-docs, 
16 phd students, ~14 nationalities 
 Working on cloud computing, elastic computing, 
SOC/SOA, IoT, internet engineering, service 
analytics, social computing, and process 
management. 
Cloudcom 2014, 15 Dec, 2014, 
Singapore 
2
Joint work with: 
Schahram Dustdar, Muhammad Candra, Georgiana Copil, Duc- 
Hung Le, Daniel Moldovan, Stefan Nastic, Tien-Dung Nguyen, 
Anindita Sarkar, Ognjen Scekic, Philipp Zeppezauer 
Cloudcom 2014, 15 Dec, 2014, 
Singapore 
3 
NOTE: The content includes some ongoing work 
Acknowledgements
Outline 
 Part 1 – Elastic Computing Principles and 
Models 
 Motivation scenario, Elastic principles and the 
Vienna Elasticity Computing Model 
 Part 2 – Techniques for programming and 
eingeering elasticity for native cloud services 
 Configuration, deployment, monitoring, and control 
with COMOT and its Salsa, SYBL, MELA 
 Part 3 
 Hand-on exercise 
 Summary 
Cloudcom 2014, 15 Dec, 2014, 
Singapore 
4
PART 1: ELASTIC COMPUTING 
- PRINCIPLES AND MODELS 
Cloudcom 2014, 15 Dec, 
2014, Singapore 
5
Some 50 billion devices and sensors exist for M2M applications 
IoT and Cloud Computing enable smart services ecosystem and 
collaboration opportunities 
Managed services 
• Portfolio 
management 
• Event management 
• Analytics 
Provisioning 
• Services 
• SIM profile 
configuration 
• Network 
configuration 
Controls 
• Activation 
• Deactivation 
• Privacy 
• Security 
Transaction Mgmt. 
• Visibility 
• Billing 
• Reporting 
Integration 
framework 
Algorithm 
Chart engine 
builder 
Predictiv 
e 
modeling 
Incidents 
manager 
Expert rule 
engine 
FDD Service 
Mgmt 
Storage 
policies 
Databas 
e 
Operations manger 
manager 
Portfolio 
Mgmt Analyic 
s 
engine 
Blackbo 
x 
module 
Location 
awarenes 
s 
GUI 
builde 
r 
Event 
mgmt 
Data 
mining 
Resource 
mgmt. 
Regressio 
n engine 
Open 
integratio 
n platform 
Resource 
manager 
Point 
metering 
framewor 
k Numerous Forms Of Smart Services… 
Access 
control 
Environment 
Compliance 
Street Light 
Management 
Food Transfer 
Process 
Public 
Safety 
Industrial 
process 
parameter 
s 
Parking 
Control 
Waste 
Management 
Facilities 
Control 
HealthCare 
Power 
Quality Control 
Lighting 
Control 
KIOSK 
Monitoring 
CCTV 
Monitoring 
Hospitality Sector Healthcare Sector 
Transport Sector Education Sector 
Datacenters 
Government Sector 
Industrial Sector 
Finance Sector 
Utilities and Smart Grid 
Airports, ports and 
Critical Infrastructure 
Ubiquitous Managed Services Solution Across Business Verticals 
Cloudcom 2014, 15 Dec, 
2014, Singapore 
6
Motivation 
 City-scale proactive and predictive maintenance 
 What do we need 
 Sensors and actuators 
 IoT cloud platforms: gateways/VMs, complex event 
processing, message-oriented middleware, etc. 
 (Big/smart) data analytics services and storages 
 Human experts 
 Many stakeholders 
 Cloud provider, maintenance operators, IoT platform 
developers/providers, data analytics developer/provider, 
domain experts, etc. 
Cloudcom 2014, 15 Dec, 2014, 
Singapore 
7
Scenario 
Cloudcom 2014, 15 Dec, 2014, 
Singapore 
8 
Offers services for 
handling IoT Data 
Offers services for big, 
data analytics 
Offers services for 
complex problem solving 
using human experts 
IoT Cloud Platform 
Data Analytics 
Platform 
Expert Provisioning 
Platform 
Sensors 
<<send data>> 
<<analyze data>> <<notify possible 
problem>> 
<<control/configure 
sensors>> 
Predictive maintenance company 
<<monitor>> 
Chillers 
<<predict and solve 
problems>> 
<<control 
services>> 
<<control 
algorithms>>
Observations 
 Data resources 
 Activate/change sensor deployment/configurations for 
required data; changing types of data sources for analytics 
 Cloud platform services 
 Deploy/reconfigure cloud services handling changing data 
 Data analytics 
 Switch and combine different types of data analytics 
processes and engines due to the severity of problems and 
quality of results 
 Teams of human experts 
 Forming and changing different configurations of teams 
during the specific problems and problem severity. 
Cloudcom 2014, 15 Dec, 2014, 9 
Singapore
Elasticity in computing – broad view 
1. Demand elasticity 
Elastic demands from consumers 
2. Output elasticity 
Multiple outputs with different price and quality 
3. Input elasticity 
Elastic data inputs, e.g., deal with opportunistic data 
4. Elastic pricing and quality models associated 
resources 
Cloudcom 2014, 15 Dec, 2014, 
Singapore 
10
Diverse types of elasticity requirements 
 Application user: “If the cost is greater than 800 Euro, there should be 
a scale-in action for keeping costs in acceptable limits” 
 Software provider: “Response time should be less than amount X 
varying with the number of users.” 
 Developer: “The result from the data analytics algorithm must reach a 
certain data accuracy under a cost constraint. I don’t care about how 
many resources should be used for executing this code.” 
 Cloud provider: “When availability is higher than 99% for a period of 
time, and the cost is the same as for availability 80%, the cost should 
increase with 10%.” 
Cloudcom 2014, 15 Dec, 2014, 
Singapore 
11
Complex dependencies in elasticity 
 More data is needed only 
when necessary 
 More data  more 
computational resources 
(e.g. more VMs) 
 More types of data  
different types of analytics 
processes  different 
computational models 
 Change quality of results 
 quality of data 
 response time 
 cost 
 types of result (form of 
the data output, e.g. 
tree, visual, story, etc.) 
12 
Data 
Computational 
Model 
Analytics 
Process 
Analytics Result 
Data 
Data 
Datax 
Datay 
Dataz 
Computational 
Modelx 
Computational 
Model y 
Computationyal 
Modelz 
Computational 
Analytics 
Process 
AnalytPicrsocess 
Process 
Analytics 
AnalyPtricoscess 
Process 
Analytics 
Quality of 
Result 
Cloudcom 2014, 15 Dec, 2014, 
Singapore
Elasticity with multiple 
types of resources 
Machine-based 
Computing 
Human-based 
Computing 
Things-based 
computing 
Grid 
Processing 
Unit 
Comm. Architecture 
SMP 
S. Dustdar, H. Truong, “Virtualizing Software and Humans 
for Elastic Processes in Multiple Clouds – a Service 
Management Perspective”, in International Journal of Next 
Generation Computing, 2012 
Ad hoc networks Web of things 
Cloudcom 2014, 15 Dec, 2014, 
Singapore 
13
SO HOWDO WESUPPORTTHESEISSUESIN A SYSTEMATICALWAY? 
Cloudcom 2014, 15 Dec, 2014, 
Singapore 
14
Resource elasticity 
Software / human-based 
computing elements, 
multiple clouds 
Quality elasticity 
Non-functional parameters e.g., 
performance, quality of data, 
service availability, human 
trust 
Costs & Benefit 
elasticity 
rewards, incentives 
Elasticity 
Multi-dimensional Elasticity 
Cloudcom 2014, 15 Dec, 2014, 
Singapore 
15
The Vienna Elastic Computing 
Model 
 Multi-dimensional 
Elasticity 
 Service computing 
models 
 Cloud provisioning 
models 
Schahram Dustdar, Hong Linh Truong: Virtualizing Software and Humans for Elastic Processes in Multiple Clouds- a Service 
Management Perspective. IJNGC 3(2) (2012) 
Cloudcom 2014, 15 Dec, 2014, 
Singapore 
16
Vienna Elastic Computing Model 
 Multi-dimensional elasticity 
 Resource, quality, cost and benefits 
 Elasticity in hybrid systems of human-based, 
things-based and software-based computing 
resources 
 Software, things and human capabilities as computing 
resources in multi clouds 
 End-to-end approach 
 For science and business complex applications 
dsg.tuwien.ac.at/research/viecom 
Cloudcom 2014, 15 Dec, 2014, 
Singapore 
17
Unified elastic service unit model 
for Things, Software and People 
Cloudcom 2014, 15 Dec, 2014, 
Singapore 
18 
Modeling type of 
units (e.g., 
computation, data, 
monitor,) and their 
dependencies 
Consumption, 
ownership, provisioning, 
price, etc. 
Elastic 
Service 
Unit 
Service 
model 
Unit 
Dependency 
Elastic 
Capability 
Function 
The functional 
capability of the unit 
and interface to 
access the function 
Capabilities to be elastic 
under different 
requirements 
Software People 
VolunteersProfessionals 
Thing 
Resources
Things: software-Defined IoT Units 
 Virtualizing IoTs resources under “service 
units” with software-defined API for 
accessing, configuring and controlling units 
 Composing and creating gateways and 
virtual topologies (of multiple gateways) 
 Provisioning (atomic and composite) units 
dynamically and on-demand in cloud and 
edge computing environments 
 Controlling elasticity based on resource, 
quality and cost via software-defined APIs 
Software-defined 
IoT Unit 
Functional API 
Utility 
cost-function 
IoT resource and functionality binding 
Late-bound 
policies 
Infrastructure capabilities 
Governance API 
Dependency 
units 
Provisioning API 
Runtime 
mechanisms 
Runtime 
controllers 
(e.g, elasticity) 
Non-functional aspects 
Runtime composition 
Functional aspects 
Atomic software-defined IoT units 
Custom 
proc. logic 
IoT data 
storage 
Communication 
In-memory 
image 
VPN 
Messaging 
Sand 
box 
Network 
overlay Protocol Volatile History 
Key/Value 
store 
Security 
Data 
quality 
Outliers 
filter 
IoT compute 
GW 
runtime 
Data point 
controller 
CEP 
Component 
-model 
Elasticity 
Auto scaling 
group controller 
Functional 
capabilities 
Non-functional 
capabilities 
... 
... 
Monitor. 
Config. 
Cloudcom 2014, 15 Dec, 2014, 
Singapore 
19 
Stefan Nastic, Sanjin Sehic, Le-Duc Hung, Hong-Linh Truong, and Schahram 
Dustdar (2014). Provisioning Software-defined IoT Cloud Systems. The 2nd 
International Conference on Future Internet of Things and Cloud (FiCloud-2014), 
August27-29, 2014, Barcelona, Spain.
People: incorporating humans into a 
programming paradigm 
Volunteers 
Individual Team Professionals 
Service-based Middleware 
Monitoring Communication 
Capability/Profile 
Management 
Provisioning/Negotiation/Execution API 
Abstraction of Human-based Compute Units 
ICU ICU SCU SCU 
Program languages and programming models 
Program 
elements 
Software 
, Things 
Compute 
Units 
program human actions 
and dependencies 
program incentive condition 
and rewarding action 
program result evaluation 
method 
Human-to-middleware 
interfaces: 
•visualization of collective tasks 
•embedding of common forms 
•mobile app 
20 
Cloudcom 2014, 15 Dec, 2014, 
Singapore 
SCU 
Hong Linh Truong, Schahram Dustdar, Kamal 
Bhattacharya: Programming Hybrid Services in the 
Cloud. ICSOC 2012: 96-110 (Best Paper Award)
PART 2: TECHNIQUES FOR 
PROGRAMMING AND 
ENGINEERING ELASTICITY 
FOR NATIVE CLOUD 
SERVICES 
Cloudcom 2014, 15 Dec, 
2014, Singapore 
21
Service 
Developer 
Infrastructure 
Provider 
Service 
Owner 
Service 
Developer 
Designing and 
programming software-defined 
elastic services 
Automatic deployment 
and configuration 
Elasticity monitoring and 
analysis 
Elasticity Control 
Service 
Owner 
Infrastructure 
Provider 
Service 
Owner 
Easy to 
program 
elasticity 
requirements 
Reduced time to market, 
easy to reconfigure 
+ 
Easy to understand 
service’s elasticity 
boundaries 
+ 
Maintains service’s 
performance while 
reducing cost 
Reduces 
resources 
overprovisioning 
+ 
Elastic cloud service engineering 
Cloudcom 2014, 15 Dec, 2014, 
Singapore 
22 
Native elastic cloud service engineering 
Several owners, 
developers and 
providers from 
different 
organizations
Elasticity 
Metrics 
Elasticity 
Requirements 
Elasticity capabilities 
(e.g. scale IN/OUT) 
So what need to be done? A simple 
view 
Cloudcom 2014, 15 Dec, 2014, 
Singapore 
23 
Programming and deploying services
Fundamental building blocks for 
the elasticity 
 Conceptualizing and modeling elastic objects and 
execution environments 
 So we can manage diverse types of artifacts and their runtime 
in a similar manner 
 Defining and capturing elasticity primitive operations 
associated with elastic objects and environments 
 Recommending and Programming elastic objects 
 a software-defined elastic system (SES) is built from elastic 
objects 
 Runtime deploying, control, monitoring and testing 
techniques for elastic objects 
Cloudcom 2014, 15 Dec, 2014, 
Singapore 
24
Need to model/capture elasticity 
primitive operations 
Cloudcom 2014, 15 Dec, 2014, 
Singapore 
25
Deploying, Control, Monitoring and 
Testing 
 Runtime configuration 
 Complex services at multiple software stacks (VM, 
OS container, ApplicationContainer, Web services, 
etc) 
 Interfaces with different low-level deployment techniques 
 Different interactions between deploying and control 
and monitoring components 
 Control elasticity 
 Using a high-level specification for specifying 
elasticity requirements, constraints and strategies 
 Based on SYBL/rSYBL ([CCGrid 2013, ICSOC 2013, 
ICSOC 2014]) 
Cloudcom 2014, 15 Dec, 2014, 
Singapore 
26
Deploying, Control, Monitoring and 
Testing 
 Elasticity monitoring and analysis 
 Utilize low-level metrics to build „Elasticity Space“ 
and analyze the elasticity based on such spaces 
(based on MELA – [CloudCom 2013, CloudCom 
2014, IJDBI]) 
 Monitoring/analysis at multiple levels level (single 
unit, topology/group, and the whole service 
 Testing elasticity 
 Using clouds to test cloud applications as well as to 
test elasticity properties of cloud applications 
[ASE2013, IC2014] 
Cloudcom 2014, 15 Dec, 2014, 
Singapore 
27
Software-defined 
Elastic System 
Programming 
Tooling – Elasticity 
Programming in 
Cloud Systems 
Elastic Service 
Ecosystem and 
Recommendation 
Deployment 
Deployment 
Service 
Test Generating 
and Execution 
Elastic Test 
Service 
deploy SDS/ 
service units 
deploy elasticity 
controller and monitor 
Elasticity 
Analysis 
deploy 
test cases 
Elasticizing 
Elasticity 
Monitoring 
and Analysis 
Elasticity 
Control 
test 
control 
monitor 
CoMoT 
Core Services 
Multi-Cloud 
Environments 
Service 
Ecosystems 
Service Artifact 
Repository 
Service units 
CoMoT (1) 
Cloudcom 2014, 15 Dec, 2014, 
Singapore 
28 
Hong-Linh Truong et al., "CoMoT – A Platform-as-a-Service for Elasticity in the Cloud", IEEE International 
Workshop on the Future of PaaS. Colocated with IC2E 2014
CoMoT (2) 
 CoMoT is built atop: 
 QUELLE, rSYBL, MELA, SALSA 
 Work on multi-cloud environments 
 Parts of complex applications are deployed in 
different clouds 
 http://tuwiendsg.github.io/ 
Cloudcom 2014, 15 Dec, 2014, 
Singapore 
29
QUELLE – QUantifying ELasticity 
utiLity Engine 
Cloudcom 2014, 15 Dec, 2014, 
Singapore 
30 
Daniel Moldovan, Georgiana Copil, Hong-Linh Truong, Schahram Dustdar, QUELLE – a Framework for 
Accelerating the Development of Elastic Systems, ESOCC 2014. September 2014
SALSA – runtime configuration 
framework 
https://github.com/tuwiendsg/SALSA 
Cloudcom 2014, 15 Dec, 2014, 
Singapore 
31 
Support cloud 
services at data 
centers and IoT 
environments
rSYBL – Elasticity Control Engine 
Cloudcom 2014, 15 Dec, 2014, 
Singapore 
32
MELA -- Elasticity Monitoring as a 
Service 
Cloudcom 2014, 15 Dec, 2014, 
Singapore 
33 
Daniel Moldovan, Georgiana Copil, Hong-Linh Truong, Schahram Dustdar, MELA: Elasticity Analytics for Cloud Services, 
International Journal of Big Data Intelligence, 2014
Toolsets and actions for elasticity 
control, analytics and management 
Cloudcom 2014, 15 Dec, 2014, 
Singapore 
34
Multi-cloud, multi-stack, complex 
topologies configuration 
Cloudcom 2014, 15 Dec, 2014, 
Singapore 
35 
 Well-defined APIs for manipulating and provisioning objects 
 Support different types of objects, e.g., VMs, OS containers, 
services, service containers, IoT sensors, gateways, 
Data center services Sensors 
Come to see our paper at Section 2A , 15:30-17:30, Tue 16 Dec
High level elasticity control 
#SYBL.CloudServiceLevel 
Cons1: CONSTRAINT responseTime < 5 ms 
Cons2: CONSTRAINT responseTime < 10 ms 
WHEN nbOfUsers > 10000 
Str1: STRATEGY CASE fulfilled(Cons1) OR 
fulfilled(Cons2): minimize(cost) 
#SYBL.ServiceUnitLevel 
Str2: STRATEGY CASE ioCost < 3 Euro : 
maximize( dataFreshness ) 
#SYBL.CodeRegionLevel 
Cons4: CONSTRAINT dataAccuracy>90% 
AND cost<4 Euro 
Georgiana Copil, Daniel Moldovan, Hong-Linh Truong, Schahram Dustdar, "SYBL: an Extensible Language for Controlling 
Elasticity in Cloud Applications", 13th IEEE/ACM International Symposium on Cluster, Cloud and Grid Computing (CCGrid), 
May 14-16, 2013, Delft, Netherlands 
Cloudcom 2014, 15 Dec, 2014, 
Singapore 
36
Configurations for multiclouds 
Cloudcom 2014, 15 Dec, 2014, 
Singapore 
37 
.. 
<ServiceElasticityPrimitives id="FCO" 
ServiceProvider="Flexiant FCO"> 
<ElasticityPrimitive id="ScaleIn" name="Remove 
VM" parameters=""/> 
<ElasticityPrimitive id="ScaleOut" name="Create 
new VM" parameters=""/> 
<ElasticityPrimitive id="AllocateIP" name="Allocate 
public IP" parameters="UUID"/> 
<ElasticityPrimitive id="AttachDisk" name="Attach 
NewDisk" parameters="UUID"> 
… 
<PrimitiveDependency 
dependencyType="AFTER_ENFORCEMENT" 
primitiveID="Reboot"/> 
… 
MultipleEnforcementPlugins = 
flexiant:at.ac.tuwien.dsg.rSybl.cloudInteractionUnit.enfor 
cementPlugins.flexiant.EnforcementFlexiantAPI, 
openstack:at.ac.tuwien.dsg.rSybl.cloudInteractionUnit.en 
forcementPlugins.openstack.EnforcementOpenstackAPI 
Configuraring low-level 
Plug-ins to work with 
multiple clouds 
Configuraring 
and capturing 
elasticity 
primitive 
operations 
associated with 
service units
Mapping Services Structures to 
Elasticity Metrics 
Cloudcom 2014, 15 Dec, 2014, 
Singapore 
38 
Elasticity directives 
can be changed at 
runtime
Multi-cloud example 
M2MDaaS: 
STRATEGY CASE avgBufferSize<5 : 
minimize(cost) 
CONSTRAINT avgBufferSize<50 CONSTRAINT responseTime<50 ms 
STRATEGY CASE 
responseTime<40ms AND 
throughput<20ops/s : scalein 
Load relationship 
bufferSize requests 
Cloudcom 2014, 15 Dec, 2014, 
Singapore 
39 
Georgiana Copil, Daniel Moldovan, Hong-Linh Truong, Schahram Dustdar, "On Controlling Cloud Services 
Elasticity in Heterogeneous Clouds", 6th Cloud Control Workshop, 7th IEEE/ACM International Conference on 
Utility and Cloud, 2014
Elasticity Analytics for Cloud 
Services 
Moldovan D., G. Copil,Truong H.-L., Dustdar S. (2013). MELA: 
Monitoring and Analyzing Elasticity of Cloud Service. CloudCom 
2013 
Elasticity space functions: to determine if a 
service unit/service is in the “elasticity behavior” 
Elasticity Pathway functions: to characterize the 
elasticity behavior from a general/particular view 
Elasticity Space 
Cloudcom 2014, 15 Dec, 2014, 
Singapore 
40
Multi-level monitoring and analysis 
Cloudcom 2014, 15 Dec, 2014, 
Singapore 
41
Multi-level monitoring and analysis 
4 
2 
Elasticity Function for Demo 
Apply different 
elasticity 
path/space 
functions 
Cloudcom 2014, 15 Dec, 2014, 
Singapore 
Cloud Service 
Service 
Topology 
Service Unit 
Code Region 
Scopes in service structure 
Common 
functions/user-defined 
functions 
Serveral possible Elasticity Space 
and Pathway functions 
 for different types of service and 
elasticity behaviors 
Elastic test 
frameworks 
Benchmarks 
Machine 
learning
Examples of functions for Elasticity 
Space and Pathway 
Change point detection 
algs 
Alessio Gambi, Daniel Moldovan, Georgiana Copil, Hong Linh Truong, 
Schahram Dustdar: On estimating actuation delays in elastic computing 
systems. SEAMS 2013: 33-42 
Elasticity Space Func 
Elasticity Pathway Func 
cost 
Pathway 2 quality 
cost 
Pathway 1 quality 
Cloudcom 2014, 15 Dec, 
2014, Singapore 
43
Elasticity Space Monitoring as a 
Service 
 Elasticity Signature Function Customization 
 Uses simple composition rules (+,-,*,/, AVG, MIN/MAX, KEEP 
LAST and CONCAT) 
 Defines different composite metrics for different entities at each 
level of the app structure 
 Each composite metric is propagated to the higher-level parent. 
 Elasticity Signature Boundary 
 Different restrictions attached to different levels and entities 
Cloudcom 2014, 15 Dec, 2014, 
Singapore 
44 
Elasticity Function for Demo
Elasticity space and pathway analytics 
Cloudcom 2014, 15 Dec, 2014, 
Singapore 
45 
Daniel Moldovan, Georgiana Copil, Hong-Linh Truong, Schahram Dustdar, MELA: Elasticity Analytics for Cloud Services, 
International Journal of Big Data Intelligence, 2014
Elasticity dependency analysis 
 The elasticity of a service unit affects the elasticity of another unit. 
How to characterize such cause-effect: elasticity dependency 
 Modeling collective metrics evolution in relation to requirements 
Cloudcom 2014, 15 Dec, 2014, 
Singapore 
46 
Daniel Moldovan, Georgiana Copil, Hong-Linh Truong, Schahram Dustdar, On Analyzing Elasticity Relationships of Cloud 
Services, 6th International Conference on Cloud Computing Technology and Science, 15-18 December 2014, Singapore 
Come to see our paper at Section 4C , 10:30-12:00, Thu 18 Dec
Enable elasticity reconfiguration at 
runtime 
Cloudcom 2014, 15 Dec, 2014, 
Singapore 
47 
Analysis detects problems 
but predefined strategies do 
not always work! 
Changing elasticity 
specifications at runtime 
without stoping services
Elasticity behavior learning 
Complex 
Cloud 
Service 
Elastic 
Cloud 
Service 
(running) 
Deployed Elasticity 
control 
process 
Elasticity Control 
Processes 
What would be 
the elasticity 
behavior? 
Elasticity 
requirements 
Elasticity controller 
Georgiana Copil, Demetris Trihinas, Hong-Linh Truong, Daniel Moldovan, George Pallis, Schahram Dustdar, Marios Dikaiakos. 
"ADVISE - a Framework for Evaluating Cloud Service Elasticity Behavior" the 12th International Conference on Service 
Oriented Computing. Paris, France, 3-6 November, 2014. (Best Paper Award) 
Which elasticity controls are 
the best for a given 
situation? 
Learning process 
Control 
Cloudcom 2014, 15 Dec, 2014, 
Singapore 
48
Part 3: Hand-on exercise 
http://tuwiendsg.github.io/COMOT/elasticityDemo.html 
https://t.co/eNY4rAAxXe 
Cloudcom 2014, 15 Dec, 2014, 
Singapore 
49
Summary (1) 
 Support principles of multi-dimensional elasticity 
to achieve flexibility and dynamics in multi-cloud 
environments for complex problems 
 Coordinating elasticity across platforms need 
concepts of elastic objects and fundamental 
building blocks for engineering an end-to-end 
elasticity for cloud services 
 Need runtime elasticity techniques for dealing 
with diverse types of services 
Cloudcom 2014, 15 Dec, 2014, 
Singapore 
50
Summary (2) 
 COMOT introduces concepts of elastic objects 
and fundamental building blocks for engineering 
an end-to-end elasticity for cloud services 
 COMOT supports design, deployment, control, 
monitoring and testing of elasticity in interwoven 
engineering phases 
 COMOT, SALSA, SYBL, and MELA provides ready-to-use 
prototypes for domain-specific languages, 
configuration, analytics and control services for 
elasticity 
 Tested in real-world scenarios and industrial settings 
Cloudcom 2014, 15 Dec, 2014, 
Singapore 
51
Thanks for your attention! 
Hong-Linh Truong 
Distributed Systems Group 
Vienna University of Technology 
truong@dsg.tuwien.ac.at 
dsg.tuwien.ac.at/research/viecom 
https://twitter.com/dsg_tuwien 
https://t.co/eNY4rAAxXe 
Cloudcom 2014, 15 Dec, 2014, 
Singapore 
52
1 von 52

Recomendados

Cloud Security von
Cloud SecurityCloud Security
Cloud SecurityAWS User Group Bengaluru
12.4K views133 Folien
Legal issues in cloud computing von
Legal issues in cloud computingLegal issues in cloud computing
Legal issues in cloud computingmovinghats
18.8K views20 Folien
Cloud Computing Security von
Cloud Computing SecurityCloud Computing Security
Cloud Computing SecurityNinh Nguyen
41.6K views37 Folien
Issues in cloud computing von
Issues in cloud computingIssues in cloud computing
Issues in cloud computingronak patel
38.4K views68 Folien
Virtualization in cloud computing ppt von
Virtualization in cloud computing pptVirtualization in cloud computing ppt
Virtualization in cloud computing pptMehul Patel
83.1K views21 Folien
Cloud Computing Security Challenges von
Cloud Computing Security ChallengesCloud Computing Security Challenges
Cloud Computing Security ChallengesYateesh Yadav
11.8K views12 Folien

Más contenido relacionado

Was ist angesagt?

Security Issues of Cloud Computing von
Security Issues of Cloud ComputingSecurity Issues of Cloud Computing
Security Issues of Cloud ComputingFalgun Rathod
9K views25 Folien
Cloud Security Top Threats von
Cloud Security Top ThreatsCloud Security Top Threats
Cloud Security Top ThreatsTiago de Almeida
772 views10 Folien
CS8791 Unit 2 Cloud Enabling Technologies von
CS8791 Unit 2 Cloud Enabling TechnologiesCS8791 Unit 2 Cloud Enabling Technologies
CS8791 Unit 2 Cloud Enabling Technologieskarthikajegadeesan
724 views34 Folien
Cloud computing von
Cloud computingCloud computing
Cloud computingAnkita Khadatkar
8.6K views14 Folien
Cloud Computing Architecture von
Cloud Computing ArchitectureCloud Computing Architecture
Cloud Computing ArchitectureAnimesh Chaturvedi
28.4K views69 Folien
Cloud security Presentation von
Cloud security PresentationCloud security Presentation
Cloud security PresentationAjay p
4.9K views46 Folien

Was ist angesagt?(20)

Security Issues of Cloud Computing von Falgun Rathod
Security Issues of Cloud ComputingSecurity Issues of Cloud Computing
Security Issues of Cloud Computing
Falgun Rathod9K views
Cloud security Presentation von Ajay p
Cloud security PresentationCloud security Presentation
Cloud security Presentation
Ajay p4.9K views
Cloud deployment models von Ashok Kumar
Cloud deployment modelsCloud deployment models
Cloud deployment models
Ashok Kumar12.4K views
Eucalyptus, Nimbus & OpenNebula von Amar Myana
Eucalyptus, Nimbus & OpenNebulaEucalyptus, Nimbus & OpenNebula
Eucalyptus, Nimbus & OpenNebula
Amar Myana15.1K views
Cloud Computing and Services | PPT von Seminar Links
Cloud Computing and Services | PPTCloud Computing and Services | PPT
Cloud Computing and Services | PPT
Seminar Links36.3K views
Week 3 lecture material cc von Ankit Gupta
Week 3 lecture material ccWeek 3 lecture material cc
Week 3 lecture material cc
Ankit Gupta1.6K views
Cloud computing and Cloud security fundamentals von Viresh Suri
Cloud computing and Cloud security fundamentalsCloud computing and Cloud security fundamentals
Cloud computing and Cloud security fundamentals
Viresh Suri9.5K views
INTRODUCTION TO CLOUD COMPUTING von Tanmoy Barman
INTRODUCTION TO CLOUD COMPUTINGINTRODUCTION TO CLOUD COMPUTING
INTRODUCTION TO CLOUD COMPUTING
Tanmoy Barman6.4K views
Cloud computing and utility computing von asmita tarar
Cloud computing and utility computingCloud computing and utility computing
Cloud computing and utility computing
asmita tarar4.4K views

Similar a Programming Elasticity in the Cloud

Ibm cloud forum managing heterogenousclouds_final von
Ibm cloud forum managing heterogenousclouds_finalIbm cloud forum managing heterogenousclouds_final
Ibm cloud forum managing heterogenousclouds_finalMauricio Godoy
808 views33 Folien
TUW-ASE-Summer 2014: Emerging Dynamic Distributed Systems and Challenges for ... von
TUW-ASE-Summer 2014: Emerging Dynamic Distributed Systems and Challenges for ...TUW-ASE-Summer 2014: Emerging Dynamic Distributed Systems and Challenges for ...
TUW-ASE-Summer 2014: Emerging Dynamic Distributed Systems and Challenges for ...Hong-Linh Truong
1.2K views44 Folien
Emergence of cloud computing and internet of things an overview von
Emergence of cloud computing and internet of things   an overviewEmergence of cloud computing and internet of things   an overview
Emergence of cloud computing and internet of things an overviewSelvaraj Kesavan
575 views24 Folien
Cloud Ecosystems A Perspective von
Cloud Ecosystems A PerspectiveCloud Ecosystems A Perspective
Cloud Ecosystems A Perspectivejmcdaniel650
1K views24 Folien
ATMOSPHERE at Digital Infrastructure for Research (DI4R) 2018 von
ATMOSPHERE at Digital Infrastructure for Research (DI4R) 2018ATMOSPHERE at Digital Infrastructure for Research (DI4R) 2018
ATMOSPHERE at Digital Infrastructure for Research (DI4R) 2018ATMOSPHERE .
170 views13 Folien
TUW-ASE Summer 2015: IoT Cloud Systems von
TUW-ASE Summer 2015:  IoT Cloud SystemsTUW-ASE Summer 2015:  IoT Cloud Systems
TUW-ASE Summer 2015: IoT Cloud SystemsHong-Linh Truong
1.3K views42 Folien

Similar a Programming Elasticity in the Cloud(20)

Ibm cloud forum managing heterogenousclouds_final von Mauricio Godoy
Ibm cloud forum managing heterogenousclouds_finalIbm cloud forum managing heterogenousclouds_final
Ibm cloud forum managing heterogenousclouds_final
Mauricio Godoy808 views
TUW-ASE-Summer 2014: Emerging Dynamic Distributed Systems and Challenges for ... von Hong-Linh Truong
TUW-ASE-Summer 2014: Emerging Dynamic Distributed Systems and Challenges for ...TUW-ASE-Summer 2014: Emerging Dynamic Distributed Systems and Challenges for ...
TUW-ASE-Summer 2014: Emerging Dynamic Distributed Systems and Challenges for ...
Hong-Linh Truong1.2K views
Emergence of cloud computing and internet of things an overview von Selvaraj Kesavan
Emergence of cloud computing and internet of things   an overviewEmergence of cloud computing and internet of things   an overview
Emergence of cloud computing and internet of things an overview
Selvaraj Kesavan575 views
Cloud Ecosystems A Perspective von jmcdaniel650
Cloud Ecosystems A PerspectiveCloud Ecosystems A Perspective
Cloud Ecosystems A Perspective
jmcdaniel6501K views
ATMOSPHERE at Digital Infrastructure for Research (DI4R) 2018 von ATMOSPHERE .
ATMOSPHERE at Digital Infrastructure for Research (DI4R) 2018ATMOSPHERE at Digital Infrastructure for Research (DI4R) 2018
ATMOSPHERE at Digital Infrastructure for Research (DI4R) 2018
ATMOSPHERE .170 views
TUW-ASE Summer 2015: IoT Cloud Systems von Hong-Linh Truong
TUW-ASE Summer 2015:  IoT Cloud SystemsTUW-ASE Summer 2015:  IoT Cloud Systems
TUW-ASE Summer 2015: IoT Cloud Systems
Hong-Linh Truong1.3K views
TUW-ASE-Summer 2014: Advanced Services Engineering- Introduction von Hong-Linh Truong
TUW-ASE-Summer 2014: Advanced Services Engineering- IntroductionTUW-ASE-Summer 2014: Advanced Services Engineering- Introduction
TUW-ASE-Summer 2014: Advanced Services Engineering- Introduction
Hong-Linh Truong537 views
IRJET - Multitenancy using Cloud Computing Features von IRJET Journal
IRJET - Multitenancy using Cloud Computing FeaturesIRJET - Multitenancy using Cloud Computing Features
IRJET - Multitenancy using Cloud Computing Features
IRJET Journal18 views
Cloud infrastructure and Cloud Services von Intel Corporation
Cloud infrastructure and Cloud ServicesCloud infrastructure and Cloud Services
Cloud infrastructure and Cloud Services
Intel Corporation3.3K views
Knowledge labs cc1 von Padma Priya
Knowledge labs cc1Knowledge labs cc1
Knowledge labs cc1
Padma Priya512 views
Implementing Saas as Cloud controllers using Mobile Agent based technology wi... von Sunil Rajput
Implementing Saas as Cloud controllers using Mobile Agent based technology wi...Implementing Saas as Cloud controllers using Mobile Agent based technology wi...
Implementing Saas as Cloud controllers using Mobile Agent based technology wi...
Sunil Rajput2K views
Azure Overview Csco von rajramab
Azure Overview CscoAzure Overview Csco
Azure Overview Csco
rajramab670 views
1. introduction to_cloud_services_architecture von Cloud Genius
1. introduction to_cloud_services_architecture1. introduction to_cloud_services_architecture
1. introduction to_cloud_services_architecture
Cloud Genius244 views
Privacy preserving public auditing for secured cloud storage von dbpublications
Privacy preserving public auditing for secured cloud storagePrivacy preserving public auditing for secured cloud storage
Privacy preserving public auditing for secured cloud storage
dbpublications32 views

Más de Hong-Linh Truong

QoA4ML – A Framework for Supporting Contracts in Machine Learning Services von
QoA4ML – A Framework for Supporting Contracts in Machine Learning ServicesQoA4ML – A Framework for Supporting Contracts in Machine Learning Services
QoA4ML – A Framework for Supporting Contracts in Machine Learning ServicesHong-Linh Truong
140 views17 Folien
Sharing Blockchain Performance Knowledge for Edge Service Development von
Sharing Blockchain Performance Knowledge for Edge Service DevelopmentSharing Blockchain Performance Knowledge for Edge Service Development
Sharing Blockchain Performance Knowledge for Edge Service DevelopmentHong-Linh Truong
158 views25 Folien
Measuring, Quantifying, & Predicting the Cost-Accuracy Tradeoff von
Measuring, Quantifying, & Predicting the Cost-Accuracy TradeoffMeasuring, Quantifying, & Predicting the Cost-Accuracy Tradeoff
Measuring, Quantifying, & Predicting the Cost-Accuracy TradeoffHong-Linh Truong
102 views12 Folien
DevOps for Dynamic Interoperability of IoT, Edge and Cloud Systems von
DevOps for Dynamic Interoperability of IoT, Edge and Cloud SystemsDevOps for Dynamic Interoperability of IoT, Edge and Cloud Systems
DevOps for Dynamic Interoperability of IoT, Edge and Cloud SystemsHong-Linh Truong
293 views10 Folien
Dynamic IoT data, protocol, and middleware interoperability with resource sli... von
Dynamic IoT data, protocol, and middleware interoperability with resource sli...Dynamic IoT data, protocol, and middleware interoperability with resource sli...
Dynamic IoT data, protocol, and middleware interoperability with resource sli...Hong-Linh Truong
473 views95 Folien
Integrated Analytics for IIoT Predictive Maintenance using IoT Big Data Cloud... von
Integrated Analytics for IIoT Predictive Maintenance using IoT Big Data Cloud...Integrated Analytics for IIoT Predictive Maintenance using IoT Big Data Cloud...
Integrated Analytics for IIoT Predictive Maintenance using IoT Big Data Cloud...Hong-Linh Truong
532 views23 Folien

Más de Hong-Linh Truong(20)

QoA4ML – A Framework for Supporting Contracts in Machine Learning Services von Hong-Linh Truong
QoA4ML – A Framework for Supporting Contracts in Machine Learning ServicesQoA4ML – A Framework for Supporting Contracts in Machine Learning Services
QoA4ML – A Framework for Supporting Contracts in Machine Learning Services
Hong-Linh Truong140 views
Sharing Blockchain Performance Knowledge for Edge Service Development von Hong-Linh Truong
Sharing Blockchain Performance Knowledge for Edge Service DevelopmentSharing Blockchain Performance Knowledge for Edge Service Development
Sharing Blockchain Performance Knowledge for Edge Service Development
Hong-Linh Truong158 views
Measuring, Quantifying, & Predicting the Cost-Accuracy Tradeoff von Hong-Linh Truong
Measuring, Quantifying, & Predicting the Cost-Accuracy TradeoffMeasuring, Quantifying, & Predicting the Cost-Accuracy Tradeoff
Measuring, Quantifying, & Predicting the Cost-Accuracy Tradeoff
Hong-Linh Truong102 views
DevOps for Dynamic Interoperability of IoT, Edge and Cloud Systems von Hong-Linh Truong
DevOps for Dynamic Interoperability of IoT, Edge and Cloud SystemsDevOps for Dynamic Interoperability of IoT, Edge and Cloud Systems
DevOps for Dynamic Interoperability of IoT, Edge and Cloud Systems
Hong-Linh Truong293 views
Dynamic IoT data, protocol, and middleware interoperability with resource sli... von Hong-Linh Truong
Dynamic IoT data, protocol, and middleware interoperability with resource sli...Dynamic IoT data, protocol, and middleware interoperability with resource sli...
Dynamic IoT data, protocol, and middleware interoperability with resource sli...
Hong-Linh Truong473 views
Integrated Analytics for IIoT Predictive Maintenance using IoT Big Data Cloud... von Hong-Linh Truong
Integrated Analytics for IIoT Predictive Maintenance using IoT Big Data Cloud...Integrated Analytics for IIoT Predictive Maintenance using IoT Big Data Cloud...
Integrated Analytics for IIoT Predictive Maintenance using IoT Big Data Cloud...
Hong-Linh Truong532 views
Modeling and Provisioning IoT Cloud Systems for Testing Uncertainties von Hong-Linh Truong
Modeling and Provisioning IoT Cloud Systems for Testing UncertaintiesModeling and Provisioning IoT Cloud Systems for Testing Uncertainties
Modeling and Provisioning IoT Cloud Systems for Testing Uncertainties
Hong-Linh Truong237 views
Characterizing Incidents in Cloud-based IoT Data Analytics von Hong-Linh Truong
Characterizing Incidents in Cloud-based IoT Data AnalyticsCharacterizing Incidents in Cloud-based IoT Data Analytics
Characterizing Incidents in Cloud-based IoT Data Analytics
Hong-Linh Truong243 views
Enabling Edge Analytics of IoT Data: The Case of LoRaWAN von Hong-Linh Truong
Enabling Edge Analytics of IoT Data: The Case of LoRaWANEnabling Edge Analytics of IoT Data: The Case of LoRaWAN
Enabling Edge Analytics of IoT Data: The Case of LoRaWAN
Hong-Linh Truong313 views
Analytics of Performance and Data Quality for Mobile Edge Cloud Applications von Hong-Linh Truong
Analytics of Performance and Data Quality for Mobile Edge Cloud ApplicationsAnalytics of Performance and Data Quality for Mobile Edge Cloud Applications
Analytics of Performance and Data Quality for Mobile Edge Cloud Applications
Hong-Linh Truong175 views
Testing Uncertainty of Cyber-Physical Systems in IoT Cloud Infrastructures: C... von Hong-Linh Truong
Testing Uncertainty of Cyber-Physical Systems in IoT Cloud Infrastructures: C...Testing Uncertainty of Cyber-Physical Systems in IoT Cloud Infrastructures: C...
Testing Uncertainty of Cyber-Physical Systems in IoT Cloud Infrastructures: C...
Hong-Linh Truong161 views
Deep Context-Awareness: Context Coupling and New Types of Context Information... von Hong-Linh Truong
Deep Context-Awareness: Context Coupling and New Types of Context Information...Deep Context-Awareness: Context Coupling and New Types of Context Information...
Deep Context-Awareness: Context Coupling and New Types of Context Information...
Hong-Linh Truong94 views
Managing and Testing Ensembles of IoT, Network functions, and Clouds von Hong-Linh Truong
Managing and Testing Ensembles of IoT, Network functions, and CloudsManaging and Testing Ensembles of IoT, Network functions, and Clouds
Managing and Testing Ensembles of IoT, Network functions, and Clouds
Hong-Linh Truong205 views
Towards a Resource Slice Interoperability Hub for IoT von Hong-Linh Truong
Towards a Resource Slice Interoperability Hub for IoTTowards a Resource Slice Interoperability Hub for IoT
Towards a Resource Slice Interoperability Hub for IoT
Hong-Linh Truong76 views
On Supporting Contract-aware IoT Dataspace Services von Hong-Linh Truong
On Supporting Contract-aware IoT Dataspace ServicesOn Supporting Contract-aware IoT Dataspace Services
On Supporting Contract-aware IoT Dataspace Services
Hong-Linh Truong278 views
Towards the Realization of Multi-dimensional Elasticity for Distributed Cloud... von Hong-Linh Truong
Towards the Realization of Multi-dimensional Elasticity for Distributed Cloud...Towards the Realization of Multi-dimensional Elasticity for Distributed Cloud...
Towards the Realization of Multi-dimensional Elasticity for Distributed Cloud...
Hong-Linh Truong270 views
On Engineering Analytics of Elastic IoT Cloud Systems von Hong-Linh Truong
On Engineering Analytics of Elastic IoT Cloud SystemsOn Engineering Analytics of Elastic IoT Cloud Systems
On Engineering Analytics of Elastic IoT Cloud Systems
Hong-Linh Truong962 views
HINC – Harmonizing Diverse Resource Information Across IoT, Network Functions... von Hong-Linh Truong
HINC – Harmonizing Diverse Resource Information Across IoT, Network Functions...HINC – Harmonizing Diverse Resource Information Across IoT, Network Functions...
HINC – Harmonizing Diverse Resource Information Across IoT, Network Functions...
Hong-Linh Truong353 views
SINC – An Information-Centric Approach for End-to-End IoT Cloud Resource Prov... von Hong-Linh Truong
SINC – An Information-Centric Approach for End-to-End IoT Cloud Resource Prov...SINC – An Information-Centric Approach for End-to-End IoT Cloud Resource Prov...
SINC – An Information-Centric Approach for End-to-End IoT Cloud Resource Prov...
Hong-Linh Truong1.1K views
Governing Elastic IoT Cloud Systems under Uncertainties von Hong-Linh Truong
Governing Elastic IoT Cloud Systems under UncertaintiesGoverning Elastic IoT Cloud Systems under Uncertainties
Governing Elastic IoT Cloud Systems under Uncertainties
Hong-Linh Truong694 views

Último

Narration ppt.pptx von
Narration  ppt.pptxNarration  ppt.pptx
Narration ppt.pptxTARIQ KHAN
135 views24 Folien
Class 10 English lesson plans von
Class 10 English  lesson plansClass 10 English  lesson plans
Class 10 English lesson plansTARIQ KHAN
288 views53 Folien
Ch. 7 Political Participation and Elections.pptx von
Ch. 7 Political Participation and Elections.pptxCh. 7 Political Participation and Elections.pptx
Ch. 7 Political Participation and Elections.pptxRommel Regala
97 views11 Folien
ANATOMY AND PHYSIOLOGY UNIT 1 { PART-1} von
ANATOMY AND PHYSIOLOGY UNIT 1 { PART-1}ANATOMY AND PHYSIOLOGY UNIT 1 { PART-1}
ANATOMY AND PHYSIOLOGY UNIT 1 { PART-1}DR .PALLAVI PATHANIA
249 views195 Folien
MercerJesse2.1Doc.pdf von
MercerJesse2.1Doc.pdfMercerJesse2.1Doc.pdf
MercerJesse2.1Doc.pdfjessemercerail
169 views5 Folien
PLASMA PROTEIN (2).pptx von
PLASMA PROTEIN (2).pptxPLASMA PROTEIN (2).pptx
PLASMA PROTEIN (2).pptxMEGHANA C
68 views34 Folien

Último(20)

Narration ppt.pptx von TARIQ KHAN
Narration  ppt.pptxNarration  ppt.pptx
Narration ppt.pptx
TARIQ KHAN135 views
Class 10 English lesson plans von TARIQ KHAN
Class 10 English  lesson plansClass 10 English  lesson plans
Class 10 English lesson plans
TARIQ KHAN288 views
Ch. 7 Political Participation and Elections.pptx von Rommel Regala
Ch. 7 Political Participation and Elections.pptxCh. 7 Political Participation and Elections.pptx
Ch. 7 Political Participation and Elections.pptx
Rommel Regala97 views
PLASMA PROTEIN (2).pptx von MEGHANA C
PLASMA PROTEIN (2).pptxPLASMA PROTEIN (2).pptx
PLASMA PROTEIN (2).pptx
MEGHANA C68 views
Psychology KS4 von WestHatch
Psychology KS4Psychology KS4
Psychology KS4
WestHatch84 views
Classification of crude drugs.pptx von GayatriPatra14
Classification of crude drugs.pptxClassification of crude drugs.pptx
Classification of crude drugs.pptx
GayatriPatra1486 views
Psychology KS5 von WestHatch
Psychology KS5Psychology KS5
Psychology KS5
WestHatch93 views
11.28.23 Social Capital and Social Exclusion.pptx von mary850239
11.28.23 Social Capital and Social Exclusion.pptx11.28.23 Social Capital and Social Exclusion.pptx
11.28.23 Social Capital and Social Exclusion.pptx
mary850239298 views
Are we onboard yet University of Sussex.pptx von Jisc
Are we onboard yet University of Sussex.pptxAre we onboard yet University of Sussex.pptx
Are we onboard yet University of Sussex.pptx
Jisc96 views
The Open Access Community Framework (OACF) 2023 (1).pptx von Jisc
The Open Access Community Framework (OACF) 2023 (1).pptxThe Open Access Community Framework (OACF) 2023 (1).pptx
The Open Access Community Framework (OACF) 2023 (1).pptx
Jisc110 views
Drama KS5 Breakdown von WestHatch
Drama KS5 BreakdownDrama KS5 Breakdown
Drama KS5 Breakdown
WestHatch79 views

Programming Elasticity in the Cloud

  • 1. Tutorial: Programming Elasticity in the Cloud Hong-Linh Truong Distributed Systems Group Vienna University of Technology truong@dsg.tuwien.ac.at http://dsg.tuwien.ac.at/research/viecom/ Cloudcom 2014, 15 Dec, 2014, Singapore 1 The 6th International Conference on Cloud Computing Technology and Science
  • 2. Distributed Systems Group@TU Wien  ~ 30 people, 1 full prof., 1 Priv-Doz, 4 post-docs, 16 phd students, ~14 nationalities  Working on cloud computing, elastic computing, SOC/SOA, IoT, internet engineering, service analytics, social computing, and process management. Cloudcom 2014, 15 Dec, 2014, Singapore 2
  • 3. Joint work with: Schahram Dustdar, Muhammad Candra, Georgiana Copil, Duc- Hung Le, Daniel Moldovan, Stefan Nastic, Tien-Dung Nguyen, Anindita Sarkar, Ognjen Scekic, Philipp Zeppezauer Cloudcom 2014, 15 Dec, 2014, Singapore 3 NOTE: The content includes some ongoing work Acknowledgements
  • 4. Outline  Part 1 – Elastic Computing Principles and Models  Motivation scenario, Elastic principles and the Vienna Elasticity Computing Model  Part 2 – Techniques for programming and eingeering elasticity for native cloud services  Configuration, deployment, monitoring, and control with COMOT and its Salsa, SYBL, MELA  Part 3  Hand-on exercise  Summary Cloudcom 2014, 15 Dec, 2014, Singapore 4
  • 5. PART 1: ELASTIC COMPUTING - PRINCIPLES AND MODELS Cloudcom 2014, 15 Dec, 2014, Singapore 5
  • 6. Some 50 billion devices and sensors exist for M2M applications IoT and Cloud Computing enable smart services ecosystem and collaboration opportunities Managed services • Portfolio management • Event management • Analytics Provisioning • Services • SIM profile configuration • Network configuration Controls • Activation • Deactivation • Privacy • Security Transaction Mgmt. • Visibility • Billing • Reporting Integration framework Algorithm Chart engine builder Predictiv e modeling Incidents manager Expert rule engine FDD Service Mgmt Storage policies Databas e Operations manger manager Portfolio Mgmt Analyic s engine Blackbo x module Location awarenes s GUI builde r Event mgmt Data mining Resource mgmt. Regressio n engine Open integratio n platform Resource manager Point metering framewor k Numerous Forms Of Smart Services… Access control Environment Compliance Street Light Management Food Transfer Process Public Safety Industrial process parameter s Parking Control Waste Management Facilities Control HealthCare Power Quality Control Lighting Control KIOSK Monitoring CCTV Monitoring Hospitality Sector Healthcare Sector Transport Sector Education Sector Datacenters Government Sector Industrial Sector Finance Sector Utilities and Smart Grid Airports, ports and Critical Infrastructure Ubiquitous Managed Services Solution Across Business Verticals Cloudcom 2014, 15 Dec, 2014, Singapore 6
  • 7. Motivation  City-scale proactive and predictive maintenance  What do we need  Sensors and actuators  IoT cloud platforms: gateways/VMs, complex event processing, message-oriented middleware, etc.  (Big/smart) data analytics services and storages  Human experts  Many stakeholders  Cloud provider, maintenance operators, IoT platform developers/providers, data analytics developer/provider, domain experts, etc. Cloudcom 2014, 15 Dec, 2014, Singapore 7
  • 8. Scenario Cloudcom 2014, 15 Dec, 2014, Singapore 8 Offers services for handling IoT Data Offers services for big, data analytics Offers services for complex problem solving using human experts IoT Cloud Platform Data Analytics Platform Expert Provisioning Platform Sensors <<send data>> <<analyze data>> <<notify possible problem>> <<control/configure sensors>> Predictive maintenance company <<monitor>> Chillers <<predict and solve problems>> <<control services>> <<control algorithms>>
  • 9. Observations  Data resources  Activate/change sensor deployment/configurations for required data; changing types of data sources for analytics  Cloud platform services  Deploy/reconfigure cloud services handling changing data  Data analytics  Switch and combine different types of data analytics processes and engines due to the severity of problems and quality of results  Teams of human experts  Forming and changing different configurations of teams during the specific problems and problem severity. Cloudcom 2014, 15 Dec, 2014, 9 Singapore
  • 10. Elasticity in computing – broad view 1. Demand elasticity Elastic demands from consumers 2. Output elasticity Multiple outputs with different price and quality 3. Input elasticity Elastic data inputs, e.g., deal with opportunistic data 4. Elastic pricing and quality models associated resources Cloudcom 2014, 15 Dec, 2014, Singapore 10
  • 11. Diverse types of elasticity requirements  Application user: “If the cost is greater than 800 Euro, there should be a scale-in action for keeping costs in acceptable limits”  Software provider: “Response time should be less than amount X varying with the number of users.”  Developer: “The result from the data analytics algorithm must reach a certain data accuracy under a cost constraint. I don’t care about how many resources should be used for executing this code.”  Cloud provider: “When availability is higher than 99% for a period of time, and the cost is the same as for availability 80%, the cost should increase with 10%.” Cloudcom 2014, 15 Dec, 2014, Singapore 11
  • 12. Complex dependencies in elasticity  More data is needed only when necessary  More data  more computational resources (e.g. more VMs)  More types of data  different types of analytics processes  different computational models  Change quality of results  quality of data  response time  cost  types of result (form of the data output, e.g. tree, visual, story, etc.) 12 Data Computational Model Analytics Process Analytics Result Data Data Datax Datay Dataz Computational Modelx Computational Model y Computationyal Modelz Computational Analytics Process AnalytPicrsocess Process Analytics AnalyPtricoscess Process Analytics Quality of Result Cloudcom 2014, 15 Dec, 2014, Singapore
  • 13. Elasticity with multiple types of resources Machine-based Computing Human-based Computing Things-based computing Grid Processing Unit Comm. Architecture SMP S. Dustdar, H. Truong, “Virtualizing Software and Humans for Elastic Processes in Multiple Clouds – a Service Management Perspective”, in International Journal of Next Generation Computing, 2012 Ad hoc networks Web of things Cloudcom 2014, 15 Dec, 2014, Singapore 13
  • 14. SO HOWDO WESUPPORTTHESEISSUESIN A SYSTEMATICALWAY? Cloudcom 2014, 15 Dec, 2014, Singapore 14
  • 15. Resource elasticity Software / human-based computing elements, multiple clouds Quality elasticity Non-functional parameters e.g., performance, quality of data, service availability, human trust Costs & Benefit elasticity rewards, incentives Elasticity Multi-dimensional Elasticity Cloudcom 2014, 15 Dec, 2014, Singapore 15
  • 16. The Vienna Elastic Computing Model  Multi-dimensional Elasticity  Service computing models  Cloud provisioning models Schahram Dustdar, Hong Linh Truong: Virtualizing Software and Humans for Elastic Processes in Multiple Clouds- a Service Management Perspective. IJNGC 3(2) (2012) Cloudcom 2014, 15 Dec, 2014, Singapore 16
  • 17. Vienna Elastic Computing Model  Multi-dimensional elasticity  Resource, quality, cost and benefits  Elasticity in hybrid systems of human-based, things-based and software-based computing resources  Software, things and human capabilities as computing resources in multi clouds  End-to-end approach  For science and business complex applications dsg.tuwien.ac.at/research/viecom Cloudcom 2014, 15 Dec, 2014, Singapore 17
  • 18. Unified elastic service unit model for Things, Software and People Cloudcom 2014, 15 Dec, 2014, Singapore 18 Modeling type of units (e.g., computation, data, monitor,) and their dependencies Consumption, ownership, provisioning, price, etc. Elastic Service Unit Service model Unit Dependency Elastic Capability Function The functional capability of the unit and interface to access the function Capabilities to be elastic under different requirements Software People VolunteersProfessionals Thing Resources
  • 19. Things: software-Defined IoT Units  Virtualizing IoTs resources under “service units” with software-defined API for accessing, configuring and controlling units  Composing and creating gateways and virtual topologies (of multiple gateways)  Provisioning (atomic and composite) units dynamically and on-demand in cloud and edge computing environments  Controlling elasticity based on resource, quality and cost via software-defined APIs Software-defined IoT Unit Functional API Utility cost-function IoT resource and functionality binding Late-bound policies Infrastructure capabilities Governance API Dependency units Provisioning API Runtime mechanisms Runtime controllers (e.g, elasticity) Non-functional aspects Runtime composition Functional aspects Atomic software-defined IoT units Custom proc. logic IoT data storage Communication In-memory image VPN Messaging Sand box Network overlay Protocol Volatile History Key/Value store Security Data quality Outliers filter IoT compute GW runtime Data point controller CEP Component -model Elasticity Auto scaling group controller Functional capabilities Non-functional capabilities ... ... Monitor. Config. Cloudcom 2014, 15 Dec, 2014, Singapore 19 Stefan Nastic, Sanjin Sehic, Le-Duc Hung, Hong-Linh Truong, and Schahram Dustdar (2014). Provisioning Software-defined IoT Cloud Systems. The 2nd International Conference on Future Internet of Things and Cloud (FiCloud-2014), August27-29, 2014, Barcelona, Spain.
  • 20. People: incorporating humans into a programming paradigm Volunteers Individual Team Professionals Service-based Middleware Monitoring Communication Capability/Profile Management Provisioning/Negotiation/Execution API Abstraction of Human-based Compute Units ICU ICU SCU SCU Program languages and programming models Program elements Software , Things Compute Units program human actions and dependencies program incentive condition and rewarding action program result evaluation method Human-to-middleware interfaces: •visualization of collective tasks •embedding of common forms •mobile app 20 Cloudcom 2014, 15 Dec, 2014, Singapore SCU Hong Linh Truong, Schahram Dustdar, Kamal Bhattacharya: Programming Hybrid Services in the Cloud. ICSOC 2012: 96-110 (Best Paper Award)
  • 21. PART 2: TECHNIQUES FOR PROGRAMMING AND ENGINEERING ELASTICITY FOR NATIVE CLOUD SERVICES Cloudcom 2014, 15 Dec, 2014, Singapore 21
  • 22. Service Developer Infrastructure Provider Service Owner Service Developer Designing and programming software-defined elastic services Automatic deployment and configuration Elasticity monitoring and analysis Elasticity Control Service Owner Infrastructure Provider Service Owner Easy to program elasticity requirements Reduced time to market, easy to reconfigure + Easy to understand service’s elasticity boundaries + Maintains service’s performance while reducing cost Reduces resources overprovisioning + Elastic cloud service engineering Cloudcom 2014, 15 Dec, 2014, Singapore 22 Native elastic cloud service engineering Several owners, developers and providers from different organizations
  • 23. Elasticity Metrics Elasticity Requirements Elasticity capabilities (e.g. scale IN/OUT) So what need to be done? A simple view Cloudcom 2014, 15 Dec, 2014, Singapore 23 Programming and deploying services
  • 24. Fundamental building blocks for the elasticity  Conceptualizing and modeling elastic objects and execution environments  So we can manage diverse types of artifacts and their runtime in a similar manner  Defining and capturing elasticity primitive operations associated with elastic objects and environments  Recommending and Programming elastic objects  a software-defined elastic system (SES) is built from elastic objects  Runtime deploying, control, monitoring and testing techniques for elastic objects Cloudcom 2014, 15 Dec, 2014, Singapore 24
  • 25. Need to model/capture elasticity primitive operations Cloudcom 2014, 15 Dec, 2014, Singapore 25
  • 26. Deploying, Control, Monitoring and Testing  Runtime configuration  Complex services at multiple software stacks (VM, OS container, ApplicationContainer, Web services, etc)  Interfaces with different low-level deployment techniques  Different interactions between deploying and control and monitoring components  Control elasticity  Using a high-level specification for specifying elasticity requirements, constraints and strategies  Based on SYBL/rSYBL ([CCGrid 2013, ICSOC 2013, ICSOC 2014]) Cloudcom 2014, 15 Dec, 2014, Singapore 26
  • 27. Deploying, Control, Monitoring and Testing  Elasticity monitoring and analysis  Utilize low-level metrics to build „Elasticity Space“ and analyze the elasticity based on such spaces (based on MELA – [CloudCom 2013, CloudCom 2014, IJDBI])  Monitoring/analysis at multiple levels level (single unit, topology/group, and the whole service  Testing elasticity  Using clouds to test cloud applications as well as to test elasticity properties of cloud applications [ASE2013, IC2014] Cloudcom 2014, 15 Dec, 2014, Singapore 27
  • 28. Software-defined Elastic System Programming Tooling – Elasticity Programming in Cloud Systems Elastic Service Ecosystem and Recommendation Deployment Deployment Service Test Generating and Execution Elastic Test Service deploy SDS/ service units deploy elasticity controller and monitor Elasticity Analysis deploy test cases Elasticizing Elasticity Monitoring and Analysis Elasticity Control test control monitor CoMoT Core Services Multi-Cloud Environments Service Ecosystems Service Artifact Repository Service units CoMoT (1) Cloudcom 2014, 15 Dec, 2014, Singapore 28 Hong-Linh Truong et al., "CoMoT – A Platform-as-a-Service for Elasticity in the Cloud", IEEE International Workshop on the Future of PaaS. Colocated with IC2E 2014
  • 29. CoMoT (2)  CoMoT is built atop:  QUELLE, rSYBL, MELA, SALSA  Work on multi-cloud environments  Parts of complex applications are deployed in different clouds  http://tuwiendsg.github.io/ Cloudcom 2014, 15 Dec, 2014, Singapore 29
  • 30. QUELLE – QUantifying ELasticity utiLity Engine Cloudcom 2014, 15 Dec, 2014, Singapore 30 Daniel Moldovan, Georgiana Copil, Hong-Linh Truong, Schahram Dustdar, QUELLE – a Framework for Accelerating the Development of Elastic Systems, ESOCC 2014. September 2014
  • 31. SALSA – runtime configuration framework https://github.com/tuwiendsg/SALSA Cloudcom 2014, 15 Dec, 2014, Singapore 31 Support cloud services at data centers and IoT environments
  • 32. rSYBL – Elasticity Control Engine Cloudcom 2014, 15 Dec, 2014, Singapore 32
  • 33. MELA -- Elasticity Monitoring as a Service Cloudcom 2014, 15 Dec, 2014, Singapore 33 Daniel Moldovan, Georgiana Copil, Hong-Linh Truong, Schahram Dustdar, MELA: Elasticity Analytics for Cloud Services, International Journal of Big Data Intelligence, 2014
  • 34. Toolsets and actions for elasticity control, analytics and management Cloudcom 2014, 15 Dec, 2014, Singapore 34
  • 35. Multi-cloud, multi-stack, complex topologies configuration Cloudcom 2014, 15 Dec, 2014, Singapore 35  Well-defined APIs for manipulating and provisioning objects  Support different types of objects, e.g., VMs, OS containers, services, service containers, IoT sensors, gateways, Data center services Sensors Come to see our paper at Section 2A , 15:30-17:30, Tue 16 Dec
  • 36. High level elasticity control #SYBL.CloudServiceLevel Cons1: CONSTRAINT responseTime < 5 ms Cons2: CONSTRAINT responseTime < 10 ms WHEN nbOfUsers > 10000 Str1: STRATEGY CASE fulfilled(Cons1) OR fulfilled(Cons2): minimize(cost) #SYBL.ServiceUnitLevel Str2: STRATEGY CASE ioCost < 3 Euro : maximize( dataFreshness ) #SYBL.CodeRegionLevel Cons4: CONSTRAINT dataAccuracy>90% AND cost<4 Euro Georgiana Copil, Daniel Moldovan, Hong-Linh Truong, Schahram Dustdar, "SYBL: an Extensible Language for Controlling Elasticity in Cloud Applications", 13th IEEE/ACM International Symposium on Cluster, Cloud and Grid Computing (CCGrid), May 14-16, 2013, Delft, Netherlands Cloudcom 2014, 15 Dec, 2014, Singapore 36
  • 37. Configurations for multiclouds Cloudcom 2014, 15 Dec, 2014, Singapore 37 .. <ServiceElasticityPrimitives id="FCO" ServiceProvider="Flexiant FCO"> <ElasticityPrimitive id="ScaleIn" name="Remove VM" parameters=""/> <ElasticityPrimitive id="ScaleOut" name="Create new VM" parameters=""/> <ElasticityPrimitive id="AllocateIP" name="Allocate public IP" parameters="UUID"/> <ElasticityPrimitive id="AttachDisk" name="Attach NewDisk" parameters="UUID"> … <PrimitiveDependency dependencyType="AFTER_ENFORCEMENT" primitiveID="Reboot"/> … MultipleEnforcementPlugins = flexiant:at.ac.tuwien.dsg.rSybl.cloudInteractionUnit.enfor cementPlugins.flexiant.EnforcementFlexiantAPI, openstack:at.ac.tuwien.dsg.rSybl.cloudInteractionUnit.en forcementPlugins.openstack.EnforcementOpenstackAPI Configuraring low-level Plug-ins to work with multiple clouds Configuraring and capturing elasticity primitive operations associated with service units
  • 38. Mapping Services Structures to Elasticity Metrics Cloudcom 2014, 15 Dec, 2014, Singapore 38 Elasticity directives can be changed at runtime
  • 39. Multi-cloud example M2MDaaS: STRATEGY CASE avgBufferSize<5 : minimize(cost) CONSTRAINT avgBufferSize<50 CONSTRAINT responseTime<50 ms STRATEGY CASE responseTime<40ms AND throughput<20ops/s : scalein Load relationship bufferSize requests Cloudcom 2014, 15 Dec, 2014, Singapore 39 Georgiana Copil, Daniel Moldovan, Hong-Linh Truong, Schahram Dustdar, "On Controlling Cloud Services Elasticity in Heterogeneous Clouds", 6th Cloud Control Workshop, 7th IEEE/ACM International Conference on Utility and Cloud, 2014
  • 40. Elasticity Analytics for Cloud Services Moldovan D., G. Copil,Truong H.-L., Dustdar S. (2013). MELA: Monitoring and Analyzing Elasticity of Cloud Service. CloudCom 2013 Elasticity space functions: to determine if a service unit/service is in the “elasticity behavior” Elasticity Pathway functions: to characterize the elasticity behavior from a general/particular view Elasticity Space Cloudcom 2014, 15 Dec, 2014, Singapore 40
  • 41. Multi-level monitoring and analysis Cloudcom 2014, 15 Dec, 2014, Singapore 41
  • 42. Multi-level monitoring and analysis 4 2 Elasticity Function for Demo Apply different elasticity path/space functions Cloudcom 2014, 15 Dec, 2014, Singapore Cloud Service Service Topology Service Unit Code Region Scopes in service structure Common functions/user-defined functions Serveral possible Elasticity Space and Pathway functions  for different types of service and elasticity behaviors Elastic test frameworks Benchmarks Machine learning
  • 43. Examples of functions for Elasticity Space and Pathway Change point detection algs Alessio Gambi, Daniel Moldovan, Georgiana Copil, Hong Linh Truong, Schahram Dustdar: On estimating actuation delays in elastic computing systems. SEAMS 2013: 33-42 Elasticity Space Func Elasticity Pathway Func cost Pathway 2 quality cost Pathway 1 quality Cloudcom 2014, 15 Dec, 2014, Singapore 43
  • 44. Elasticity Space Monitoring as a Service  Elasticity Signature Function Customization  Uses simple composition rules (+,-,*,/, AVG, MIN/MAX, KEEP LAST and CONCAT)  Defines different composite metrics for different entities at each level of the app structure  Each composite metric is propagated to the higher-level parent.  Elasticity Signature Boundary  Different restrictions attached to different levels and entities Cloudcom 2014, 15 Dec, 2014, Singapore 44 Elasticity Function for Demo
  • 45. Elasticity space and pathway analytics Cloudcom 2014, 15 Dec, 2014, Singapore 45 Daniel Moldovan, Georgiana Copil, Hong-Linh Truong, Schahram Dustdar, MELA: Elasticity Analytics for Cloud Services, International Journal of Big Data Intelligence, 2014
  • 46. Elasticity dependency analysis  The elasticity of a service unit affects the elasticity of another unit. How to characterize such cause-effect: elasticity dependency  Modeling collective metrics evolution in relation to requirements Cloudcom 2014, 15 Dec, 2014, Singapore 46 Daniel Moldovan, Georgiana Copil, Hong-Linh Truong, Schahram Dustdar, On Analyzing Elasticity Relationships of Cloud Services, 6th International Conference on Cloud Computing Technology and Science, 15-18 December 2014, Singapore Come to see our paper at Section 4C , 10:30-12:00, Thu 18 Dec
  • 47. Enable elasticity reconfiguration at runtime Cloudcom 2014, 15 Dec, 2014, Singapore 47 Analysis detects problems but predefined strategies do not always work! Changing elasticity specifications at runtime without stoping services
  • 48. Elasticity behavior learning Complex Cloud Service Elastic Cloud Service (running) Deployed Elasticity control process Elasticity Control Processes What would be the elasticity behavior? Elasticity requirements Elasticity controller Georgiana Copil, Demetris Trihinas, Hong-Linh Truong, Daniel Moldovan, George Pallis, Schahram Dustdar, Marios Dikaiakos. "ADVISE - a Framework for Evaluating Cloud Service Elasticity Behavior" the 12th International Conference on Service Oriented Computing. Paris, France, 3-6 November, 2014. (Best Paper Award) Which elasticity controls are the best for a given situation? Learning process Control Cloudcom 2014, 15 Dec, 2014, Singapore 48
  • 49. Part 3: Hand-on exercise http://tuwiendsg.github.io/COMOT/elasticityDemo.html https://t.co/eNY4rAAxXe Cloudcom 2014, 15 Dec, 2014, Singapore 49
  • 50. Summary (1)  Support principles of multi-dimensional elasticity to achieve flexibility and dynamics in multi-cloud environments for complex problems  Coordinating elasticity across platforms need concepts of elastic objects and fundamental building blocks for engineering an end-to-end elasticity for cloud services  Need runtime elasticity techniques for dealing with diverse types of services Cloudcom 2014, 15 Dec, 2014, Singapore 50
  • 51. Summary (2)  COMOT introduces concepts of elastic objects and fundamental building blocks for engineering an end-to-end elasticity for cloud services  COMOT supports design, deployment, control, monitoring and testing of elasticity in interwoven engineering phases  COMOT, SALSA, SYBL, and MELA provides ready-to-use prototypes for domain-specific languages, configuration, analytics and control services for elasticity  Tested in real-world scenarios and industrial settings Cloudcom 2014, 15 Dec, 2014, Singapore 51
  • 52. Thanks for your attention! Hong-Linh Truong Distributed Systems Group Vienna University of Technology truong@dsg.tuwien.ac.at dsg.tuwien.ac.at/research/viecom https://twitter.com/dsg_tuwien https://t.co/eNY4rAAxXe Cloudcom 2014, 15 Dec, 2014, Singapore 52