SlideShare a Scribd company logo
Multi-tenancy: Winning formula for a PaaSbySrinath Perera, Ph.D. Senior Software Architect WSO2 Inc.
Next 45 Minutes …Brief Introduction to Cloud and PaaS
What and Why Multi-tenancy?
Implementing Multi-tenancy
Data Multi-tenancy
Execution Multi-tenancy
Scaling Up
ConclusionPhoto by Bruno Girin on Flickr, http://www.flickr.com/photos/brunogirin/27981693/, Licensed under CC
Cloud ComputingAbility to buy computations power, storage, or execution services as an Utility, on demand.
For more details read “A View of Cloud Computing, Communications of the ACM, 2010”Cloud Computing (contd.)Best way to explain it is by comparing it to Electricity
Idea is a big pool of servers and share.
Economics of scale through Optimize large scale operations.
Resource Pooling.
No need for capacity planning, start small and grow as needed.
Outsource and enabling specialization.  photo by LoopZilla on Flickr, http://www.flickr.com/photos/loopzilla/2328231843/sizes/m/in/photostream/, Licensed under CC
Cloud Offerings
Why PaaS?IaaS only provides limited saving to someone who needs to outsource their IT functions
SaaS is great when they can be used
They are usually very specific (e.g. email, CRM ..)
If they match, then great, but if they are not, not much choice for the user.
PaaS stays in the middle ground
Framework to host your apps
Hopefully you can move your apps as it is (well not the case with Azure or App Engine, but it is possible with WSO2 Stratos !!!).  What is Multi-tenancy ?Many Parties share the same set of resources, while giving each one his own spaceWhy Multi-tenancy? 1. Increased sharing Cloud shares resources across a large pool of users.
Now sharing happens in the application level as oppose to sharing at OS level for multiple processes and sharing at HW level with VMs.
That can bring greater savings “There is no delight in owning anything unshared.” Seneca (Roman philosopher, mid-1st century AD)photo by Ben Gray on Flickr, http://www.flickr.com/photos/ben_grey/4582294721/, Licensed under CC
Why Multi-tenancy? 2. Provide “pay for what you use” Often there will be many accounts in a PaaS or a SaaS, but only a fraction of them will be in use.
We cannot allocate runtime resource per account (disk may be ok, as it is cheap). For example, we cannot run a VM per account.
By sharing the same server with many users, Multi-tenancy provides much reduced runtime cost per server. Flexibility
Multi-tenancy vs. Virtual MachinesMulti-tenancy provides much fine grained sharing by many applications sharing the same server.
Say there are 100k accounts, but 10k active users at a time. VM based model needs 100k VMs, which means there is a cost incurred per account.
With Multi-tenancy one server can handle many accounts, and by mixing and matching heavy and light users, Multi-tenancy can operate with much less number of servers. photo by hans s on Flickr, http://www.flickr.com/photos/archeon/2359334908/
Motivating Usecases
To fulfill Cloud Promise: Implementing PaaSAs discussed it is crucial in supporting “Pay as you go” in a Platform as a Service (PaaS)PromiseFor example (within Stratos)
Web Service Hosting as a Service ,Web Application Hosting as a Service, Message Mediation Execution as a Service (ESB), Governance as a Service, Workflow as a Service SMBs (Small and Medium size Business) Most SMBs can not afforded to run their own SOA technologies. This stops them from going to the next level. Workflow, Service and Web hosting as a service can enable multiple SMBs to share the same infrastructure. This will lower the bar of SOA/ Middleware use, and enable SMBs to move to the next level. photo by Olaf on Flickr http://www.flickr.com/photos/okreitz/3073783437/, Licensed under CC
E-Science GatewaysScientific workflows has been identified as enabling technology for E-Science.
Idea is to let scientists visually compose workflows and run them.
There are many gateways that do this. Enable multiple science gateways to share the same infrastructure thus reducing the maintenance cost and resource sharing . Same would work for most e-Gov stuff and for most organizations. photo by Image Editor on Flickr, http://www.flickr.com/photos/11304375@N07/2769519295/, Licensed under CC
How Good is this Multi-Tenancy implementation?
Multi-tenancy Maturity ModelsModel is Defined by Chong et al.
(F. Chong and G. Carraro, “Architecture strategies for catching the long tail,” MSDN Library, Microsoft Corporation, 2006.)
Provide a way to understand Multi-tenant implementations.

More Related Content

PPTX
Multi Tenancy In The Cloud
rohit_ainapure
 
PPTX
Multi tenant architecture
Eastern Software Systems
 
PPTX
Multi tenancy - Wining formula for a PaaS
WSO2
 
PPT
Multi-tenancy In the Cloud
sdevillers
 
PPTX
Multi-Tenancy
Halil İbrahim Kalkan
 
PPSX
Multi-tenancy in Private Clouds
Patrick Nicolas
 
ODP
Multi-Tenant SOA Middleware for Cloud Computing
Srinath Perera
 
PPTX
Saa s multitenant database architecture
mmubashirkhan
 
Multi Tenancy In The Cloud
rohit_ainapure
 
Multi tenant architecture
Eastern Software Systems
 
Multi tenancy - Wining formula for a PaaS
WSO2
 
Multi-tenancy In the Cloud
sdevillers
 
Multi-Tenancy
Halil İbrahim Kalkan
 
Multi-tenancy in Private Clouds
Patrick Nicolas
 
Multi-Tenant SOA Middleware for Cloud Computing
Srinath Perera
 
Saa s multitenant database architecture
mmubashirkhan
 

What's hot (20)

PPTX
A Multi-tenant Architecture for Business Process Executions
Srinath Perera
 
PPTX
Multi-Tenancy and Virtualization in Cloud Computing
Alexandru Iosup
 
PPTX
Understanding IaaS Requirements & Design Cloud
John Treadway
 
PDF
Virtualization for Cloud Environment
Dr. Sunil Kr. Pandey
 
PPTX
Announcing Symantec & Microsoft’s Azure Cloud Disaster Recovery as a Service ...
Symantec
 
PPTX
Virtualization vs. Cloud Computing: What's the Difference?
Bangladesh Network Operators Group
 
PPTX
Introduction to Cloud Computing 2021
Samuel Dratwa
 
PDF
Private Cloud vs. VPS
HTS Hosting
 
PPTX
Cloud database
kishan alagiya
 
PPTX
Cloud architecture
Mahmoud Moussa
 
PPTX
Virtualization & Cloud computing
Akhil Raj
 
PDF
Building Multi-tenant SaaS Applications using WSO2 Private PaaS
Sameera Jayasoma
 
PDF
CLOUD DATABASE DATABASE AS A SERVICE
IJDMS
 
PPT
Seminar on cloud computing by Prashant Gupta
Prashant Gupta
 
PPTX
Private cloud 201 how to build a private cloud
Harold Wong
 
PDF
Virtualization and High Availability
Bangladesh Network Operators Group
 
PPTX
Data Management Gateway - Deep Dive
Jean-Pierre Riehl
 
PPTX
A cloud environment for backup and data storage
IGEEKS TECHNOLOGIES
 
PDF
Cloud Computing - Introduction
Dr. Sunil Kr. Pandey
 
PPT
Cloud architecture
Adeel Javaid
 
A Multi-tenant Architecture for Business Process Executions
Srinath Perera
 
Multi-Tenancy and Virtualization in Cloud Computing
Alexandru Iosup
 
Understanding IaaS Requirements & Design Cloud
John Treadway
 
Virtualization for Cloud Environment
Dr. Sunil Kr. Pandey
 
Announcing Symantec & Microsoft’s Azure Cloud Disaster Recovery as a Service ...
Symantec
 
Virtualization vs. Cloud Computing: What's the Difference?
Bangladesh Network Operators Group
 
Introduction to Cloud Computing 2021
Samuel Dratwa
 
Private Cloud vs. VPS
HTS Hosting
 
Cloud database
kishan alagiya
 
Cloud architecture
Mahmoud Moussa
 
Virtualization & Cloud computing
Akhil Raj
 
Building Multi-tenant SaaS Applications using WSO2 Private PaaS
Sameera Jayasoma
 
CLOUD DATABASE DATABASE AS A SERVICE
IJDMS
 
Seminar on cloud computing by Prashant Gupta
Prashant Gupta
 
Private cloud 201 how to build a private cloud
Harold Wong
 
Virtualization and High Availability
Bangladesh Network Operators Group
 
Data Management Gateway - Deep Dive
Jean-Pierre Riehl
 
A cloud environment for backup and data storage
IGEEKS TECHNOLOGIES
 
Cloud Computing - Introduction
Dr. Sunil Kr. Pandey
 
Cloud architecture
Adeel Javaid
 
Ad

Viewers also liked (20)

PDF
Transforming your business with PaaS
Omar Nawaz
 
PDF
Build Your Own PaaS, Just like Red Hat's OpenShift from LinuxCon 2013 New Orl...
OpenShift Origin
 
PPTX
WSO2Con USA 2015: Revolutionizing WSO2 PaaS with Kubernetes & App Factory
WSO2
 
PDF
Building an Enterprise Cloud with WSO2 Private PaaS
WSO2
 
PDF
QCon SF 2014 - Create and Deploy APIs using Web IDEs, Open Source Frameworks ...
Restlet
 
PDF
PaaS: An Introduction
Lakmal Warusawithana
 
PPTX
Oow2016 review--paas-microservices-
Getting value from IoT, Integration and Data Analytics
 
PDF
[2015 Oracle Cloud Summit] 4. Database Cloud Service_ DB12c의 모든 기능을 클라우드로 구현
Oracle Korea
 
PDF
Setup API Introductie
annehelmond
 
PDF
DocDokuPLM: Domain Specific PaaS and Business Oriented API
DocDoku
 
PDF
10 advantages of cloud migration
Morpheus Data
 
PPTX
2015 05-connecting everything - ap is and paa-s-webinar-dmitry
WSO2
 
PPTX
유엔진 비즈니스 Paa s 플랫폼의 활용실습
영재 김
 
PDF
[2015 Oracle Cloud Summit] 2. Innovate with Oracle Platform as a Service
Oracle Korea
 
PDF
[TD 2015] Microsoft Azure IaaS v2(최정현)
Sang Don Kim
 
PDF
Paas 발표 ksug_20131013
Byung Hyun Ahn
 
PDF
Architecting a multi-tenanted platform
DataWorks Summit/Hadoop Summit
 
PDF
Cassandra Summit 2015 - Building a multi-tenant API PaaS with DataStax Enterp...
Restlet
 
PDF
Stratos Open PaaS OSCON 2011
Paul Fremantle
 
PDF
Value creation and evolution of a value network a longitudinal case study on ...
Novi Research Center
 
Transforming your business with PaaS
Omar Nawaz
 
Build Your Own PaaS, Just like Red Hat's OpenShift from LinuxCon 2013 New Orl...
OpenShift Origin
 
WSO2Con USA 2015: Revolutionizing WSO2 PaaS with Kubernetes & App Factory
WSO2
 
Building an Enterprise Cloud with WSO2 Private PaaS
WSO2
 
QCon SF 2014 - Create and Deploy APIs using Web IDEs, Open Source Frameworks ...
Restlet
 
PaaS: An Introduction
Lakmal Warusawithana
 
Oow2016 review--paas-microservices-
Getting value from IoT, Integration and Data Analytics
 
[2015 Oracle Cloud Summit] 4. Database Cloud Service_ DB12c의 모든 기능을 클라우드로 구현
Oracle Korea
 
Setup API Introductie
annehelmond
 
DocDokuPLM: Domain Specific PaaS and Business Oriented API
DocDoku
 
10 advantages of cloud migration
Morpheus Data
 
2015 05-connecting everything - ap is and paa-s-webinar-dmitry
WSO2
 
유엔진 비즈니스 Paa s 플랫폼의 활용실습
영재 김
 
[2015 Oracle Cloud Summit] 2. Innovate with Oracle Platform as a Service
Oracle Korea
 
[TD 2015] Microsoft Azure IaaS v2(최정현)
Sang Don Kim
 
Paas 발표 ksug_20131013
Byung Hyun Ahn
 
Architecting a multi-tenanted platform
DataWorks Summit/Hadoop Summit
 
Cassandra Summit 2015 - Building a multi-tenant API PaaS with DataStax Enterp...
Restlet
 
Stratos Open PaaS OSCON 2011
Paul Fremantle
 
Value creation and evolution of a value network a longitudinal case study on ...
Novi Research Center
 
Ad

Similar to Multi-tenancy: Winning formula for a PaaS (20)

PPTX
A Multi-tenant Architecture for Business Process Execution
Srinath Perera
 
PDF
Multi-Tenant SOA Middleware for Cloud Computing
WSO2
 
PPTX
Keeping the Noisy Neighbors Happy
Eran Stiller
 
PPT
Making Apache Tomcat Multi-tenant, Elastic and Metered
Paul Fremantle
 
PDF
Defining multitenancy
Sheng-Quan Liu
 
PDF
Summer School Delivering On-Demand Shared Middleware Services
WSO2
 
PDF
Multitenancy in cloud computing architecture
Hitesh Mohapatra
 
PPTX
“Salesforce Multi-tenant architecture”,
Manik Singh
 
PPT
Cloud computing 1
Ashok Kumar
 
PPT
Cloud computing 1
Ashok Kumar
 
PDF
SaaS and Multi-Tenancy – Foundational Concepts
Jeelani Shaik
 
PDF
Force.Com Multitenancy
Chrisbryan1975
 
PDF
Paying for PaaS
WSO2
 
PDF
Explaining The Differences Between Single-Tenant and Multi-Tenant Clouds!
Caroline Johnson
 
PPT
Building Cloud Native Software
Paul Fremantle
 
PPTX
Orchestrated - multi tenant architecture at scale with serverless
martinfoster
 
PDF
Productive Expansion on Amazon Web Services with BlazeClan
Blazeclan Technologies Private Limited
 
PDF
WSO2 Stratos 2010 September Workshop
Afkham Azeez
 
PDF
Multi-Tenancy in the Cloud
Inphina Technologies
 
PDF
Modern Software Architecture - Cloud Scale Computing
Giragadurai Vallirajan
 
A Multi-tenant Architecture for Business Process Execution
Srinath Perera
 
Multi-Tenant SOA Middleware for Cloud Computing
WSO2
 
Keeping the Noisy Neighbors Happy
Eran Stiller
 
Making Apache Tomcat Multi-tenant, Elastic and Metered
Paul Fremantle
 
Defining multitenancy
Sheng-Quan Liu
 
Summer School Delivering On-Demand Shared Middleware Services
WSO2
 
Multitenancy in cloud computing architecture
Hitesh Mohapatra
 
“Salesforce Multi-tenant architecture”,
Manik Singh
 
Cloud computing 1
Ashok Kumar
 
Cloud computing 1
Ashok Kumar
 
SaaS and Multi-Tenancy – Foundational Concepts
Jeelani Shaik
 
Force.Com Multitenancy
Chrisbryan1975
 
Paying for PaaS
WSO2
 
Explaining The Differences Between Single-Tenant and Multi-Tenant Clouds!
Caroline Johnson
 
Building Cloud Native Software
Paul Fremantle
 
Orchestrated - multi tenant architecture at scale with serverless
martinfoster
 
Productive Expansion on Amazon Web Services with BlazeClan
Blazeclan Technologies Private Limited
 
WSO2 Stratos 2010 September Workshop
Afkham Azeez
 
Multi-Tenancy in the Cloud
Inphina Technologies
 
Modern Software Architecture - Cloud Scale Computing
Giragadurai Vallirajan
 

More from Srinath Perera (20)

PDF
Book: Software Architecture and Decision-Making
Srinath Perera
 
PDF
Data science Applications in the Enterprise
Srinath Perera
 
PDF
An Introduction to APIs
Srinath Perera
 
PDF
An Introduction to Blockchain for Finance Professionals
Srinath Perera
 
PDF
AI in the Real World: Challenges, and Risks and how to handle them?
Srinath Perera
 
PDF
Healthcare + AI: Use cases & Challenges
Srinath Perera
 
PDF
How would AI shape Future Integrations?
Srinath Perera
 
PDF
The Role of Blockchain in Future Integrations
Srinath Perera
 
PDF
Future of Serverless
Srinath Perera
 
PDF
Blockchain: Where are we? Where are we going?
Srinath Perera
 
PDF
Few thoughts about Future of Blockchain
Srinath Perera
 
PDF
A Visual Canvas for Judging New Technologies
Srinath Perera
 
PDF
Privacy in Bigdata Era
Srinath Perera
 
PDF
Blockchain, Impact, Challenges, and Risks
Srinath Perera
 
PPTX
Today's Technology and Emerging Technology Landscape
Srinath Perera
 
PDF
An Emerging Technologies Timeline
Srinath Perera
 
PDF
The Rise of Streaming SQL and Evolution of Streaming Applications
Srinath Perera
 
PDF
Analytics and AI: The Good, the Bad and the Ugly
Srinath Perera
 
PDF
Transforming a Business Through Analytics
Srinath Perera
 
PDF
SoC Keynote:The State of the Art in Integration Technology
Srinath Perera
 
Book: Software Architecture and Decision-Making
Srinath Perera
 
Data science Applications in the Enterprise
Srinath Perera
 
An Introduction to APIs
Srinath Perera
 
An Introduction to Blockchain for Finance Professionals
Srinath Perera
 
AI in the Real World: Challenges, and Risks and how to handle them?
Srinath Perera
 
Healthcare + AI: Use cases & Challenges
Srinath Perera
 
How would AI shape Future Integrations?
Srinath Perera
 
The Role of Blockchain in Future Integrations
Srinath Perera
 
Future of Serverless
Srinath Perera
 
Blockchain: Where are we? Where are we going?
Srinath Perera
 
Few thoughts about Future of Blockchain
Srinath Perera
 
A Visual Canvas for Judging New Technologies
Srinath Perera
 
Privacy in Bigdata Era
Srinath Perera
 
Blockchain, Impact, Challenges, and Risks
Srinath Perera
 
Today's Technology and Emerging Technology Landscape
Srinath Perera
 
An Emerging Technologies Timeline
Srinath Perera
 
The Rise of Streaming SQL and Evolution of Streaming Applications
Srinath Perera
 
Analytics and AI: The Good, the Bad and the Ugly
Srinath Perera
 
Transforming a Business Through Analytics
Srinath Perera
 
SoC Keynote:The State of the Art in Integration Technology
Srinath Perera
 

Recently uploaded (20)

PDF
A Strategic Analysis of the MVNO Wave in Emerging Markets.pdf
IPLOOK Networks
 
PDF
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
PDF
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
PDF
Cloud-Migration-Best-Practices-A-Practical-Guide-to-AWS-Azure-and-Google-Clou...
Artjoker Software Development Company
 
PDF
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
PDF
BLW VOCATIONAL TRAINING SUMMER INTERNSHIP REPORT
codernjn73
 
PDF
Automating ArcGIS Content Discovery with FME: A Real World Use Case
Safe Software
 
PDF
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
PDF
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
PDF
The Evolution of KM Roles (Presented at Knowledge Summit Dublin 2025)
Enterprise Knowledge
 
PDF
How-Cloud-Computing-Impacts-Businesses-in-2025-and-Beyond.pdf
Artjoker Software Development Company
 
PDF
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
PDF
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
PDF
AI-Cloud-Business-Management-Platforms-The-Key-to-Efficiency-Growth.pdf
Artjoker Software Development Company
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PDF
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
PDF
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
PDF
Brief History of Internet - Early Days of Internet
sutharharshit158
 
PDF
Advances in Ultra High Voltage (UHV) Transmission and Distribution Systems.pdf
Nabajyoti Banik
 
PDF
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
A Strategic Analysis of the MVNO Wave in Emerging Markets.pdf
IPLOOK Networks
 
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
Cloud-Migration-Best-Practices-A-Practical-Guide-to-AWS-Azure-and-Google-Clou...
Artjoker Software Development Company
 
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
BLW VOCATIONAL TRAINING SUMMER INTERNSHIP REPORT
codernjn73
 
Automating ArcGIS Content Discovery with FME: A Real World Use Case
Safe Software
 
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
The Evolution of KM Roles (Presented at Knowledge Summit Dublin 2025)
Enterprise Knowledge
 
How-Cloud-Computing-Impacts-Businesses-in-2025-and-Beyond.pdf
Artjoker Software Development Company
 
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
AI-Cloud-Business-Management-Platforms-The-Key-to-Efficiency-Growth.pdf
Artjoker Software Development Company
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
Brief History of Internet - Early Days of Internet
sutharharshit158
 
Advances in Ultra High Voltage (UHV) Transmission and Distribution Systems.pdf
Nabajyoti Banik
 
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 

Multi-tenancy: Winning formula for a PaaS

  • 1. Multi-tenancy: Winning formula for a PaaSbySrinath Perera, Ph.D. Senior Software Architect WSO2 Inc.
  • 2. Next 45 Minutes …Brief Introduction to Cloud and PaaS
  • 3. What and Why Multi-tenancy?
  • 8. ConclusionPhoto by Bruno Girin on Flickr, http://www.flickr.com/photos/brunogirin/27981693/, Licensed under CC
  • 9. Cloud ComputingAbility to buy computations power, storage, or execution services as an Utility, on demand.
  • 10. For more details read “A View of Cloud Computing, Communications of the ACM, 2010”Cloud Computing (contd.)Best way to explain it is by comparing it to Electricity
  • 11. Idea is a big pool of servers and share.
  • 12. Economics of scale through Optimize large scale operations.
  • 14. No need for capacity planning, start small and grow as needed.
  • 15. Outsource and enabling specialization. photo by LoopZilla on Flickr, http://www.flickr.com/photos/loopzilla/2328231843/sizes/m/in/photostream/, Licensed under CC
  • 17. Why PaaS?IaaS only provides limited saving to someone who needs to outsource their IT functions
  • 18. SaaS is great when they can be used
  • 19. They are usually very specific (e.g. email, CRM ..)
  • 20. If they match, then great, but if they are not, not much choice for the user.
  • 21. PaaS stays in the middle ground
  • 22. Framework to host your apps
  • 23. Hopefully you can move your apps as it is (well not the case with Azure or App Engine, but it is possible with WSO2 Stratos !!!). What is Multi-tenancy ?Many Parties share the same set of resources, while giving each one his own spaceWhy Multi-tenancy? 1. Increased sharing Cloud shares resources across a large pool of users.
  • 24. Now sharing happens in the application level as oppose to sharing at OS level for multiple processes and sharing at HW level with VMs.
  • 25. That can bring greater savings “There is no delight in owning anything unshared.” Seneca (Roman philosopher, mid-1st century AD)photo by Ben Gray on Flickr, http://www.flickr.com/photos/ben_grey/4582294721/, Licensed under CC
  • 26. Why Multi-tenancy? 2. Provide “pay for what you use” Often there will be many accounts in a PaaS or a SaaS, but only a fraction of them will be in use.
  • 27. We cannot allocate runtime resource per account (disk may be ok, as it is cheap). For example, we cannot run a VM per account.
  • 28. By sharing the same server with many users, Multi-tenancy provides much reduced runtime cost per server. Flexibility
  • 29. Multi-tenancy vs. Virtual MachinesMulti-tenancy provides much fine grained sharing by many applications sharing the same server.
  • 30. Say there are 100k accounts, but 10k active users at a time. VM based model needs 100k VMs, which means there is a cost incurred per account.
  • 31. With Multi-tenancy one server can handle many accounts, and by mixing and matching heavy and light users, Multi-tenancy can operate with much less number of servers. photo by hans s on Flickr, http://www.flickr.com/photos/archeon/2359334908/
  • 33. To fulfill Cloud Promise: Implementing PaaSAs discussed it is crucial in supporting “Pay as you go” in a Platform as a Service (PaaS)PromiseFor example (within Stratos)
  • 34. Web Service Hosting as a Service ,Web Application Hosting as a Service, Message Mediation Execution as a Service (ESB), Governance as a Service, Workflow as a Service SMBs (Small and Medium size Business) Most SMBs can not afforded to run their own SOA technologies. This stops them from going to the next level. Workflow, Service and Web hosting as a service can enable multiple SMBs to share the same infrastructure. This will lower the bar of SOA/ Middleware use, and enable SMBs to move to the next level. photo by Olaf on Flickr http://www.flickr.com/photos/okreitz/3073783437/, Licensed under CC
  • 35. E-Science GatewaysScientific workflows has been identified as enabling technology for E-Science.
  • 36. Idea is to let scientists visually compose workflows and run them.
  • 37. There are many gateways that do this. Enable multiple science gateways to share the same infrastructure thus reducing the maintenance cost and resource sharing . Same would work for most e-Gov stuff and for most organizations. photo by Image Editor on Flickr, http://www.flickr.com/photos/11304375@N07/2769519295/, Licensed under CC
  • 38. How Good is this Multi-Tenancy implementation?
  • 39. Multi-tenancy Maturity ModelsModel is Defined by Chong et al.
  • 40. (F. Chong and G. Carraro, “Architecture strategies for catching the long tail,” MSDN Library, Microsoft Corporation, 2006.)
  • 41. Provide a way to understand Multi-tenant implementations.
  • 43. Level 2: Configurable instance per Client
  • 44. Level 3: Single instance can serve multiple Clients
  • 45. Level 4: Scaling up Level 3 by running multiple instances and distributing the load. Implementing Multi-Tenancy
  • 46. Goals of Multi-tenancy Sharing – maximize the resource sharing across multiple tenants. Isolation – hide the fact other users are also in the same server. Execution – enforce security. Make sure one tenant can’t call other tenants executable logic. Data – make sure one tenant can’t see other’s data Performance - make sure performance is not affected by existence of other tenants. ScaleServer is distributed and it can handle larger load by adding more nodes. photo by John TrainoronFlickr http://www.flickr.com/photos/trainor/2902023575/, Licensed under CC
  • 47. It is about trading off Isolation vs. Sharing As often the case in research, implementing Multi-tenancy is a tradeoff photo by Todd Anderson on Flickr, http://www.flickr.com/photos/toddography/12034661/, Licensed under CC
  • 49. WSO2 Platform ArchitectureWe break multi-tenancy into three parts (Based on Chang et al.).
  • 50. Execution: Business Processes, Workflows and Mashups
  • 51. Security: ownership and authorization of both data, as well as executions in the framework
  • 52. Data : User data and system runtime dataMulti-tenancy Architecture
  • 53. Achieving Tenant IsolationEach Tenant is given a Security Domain
  • 54. Each domain may have its own User Store and Permissions, thus have a set of users and permissions enabling users to access resources
  • 55. Each domain is isolated and do not have access to other domainsImplementing Data Multi-tenancy Separate DB
  • 57. Shared SchemaSeparate DatabasesIf you have no control over the code, then this is the only solution
  • 58. Horizontally scalable, but relatively expensive9/13/11Tenant 4Tenant 8Tenant 1Vertical scaling is challenging but solvable
  • 59. WSO2 Relational Storage Service uses this models to provide users with DBs 25
  • 61. Some databases have ways to support this directly but many don’t
  • 64. Shared Databases, Shared SchemaMost efficient storage-wise and scales very well for large number of tenants
  • 65. Requires all accesses to qualify with tenant
  • 67. (Stratos uses this approach internally for all provide isolation within WSO2 Registry)9/13/1127
  • 68. Implementing Execution IsolationAll executions are based on Axis2
  • 69. Axis2 have stateless executions and keep all state in a Context.
  • 70. So if we create different context for each tenant, they are isolated. Implementing Execution Isolation (Contd.)
  • 71. Implementing Execution Isolation (Contd.)We use Java Security to make sure one tenant cannot access or temper with other tenant’s data structures, file system data etc.
  • 73. Tenant ID value in the context Performance Isolation Performance isolation is a challenging issue.
  • 74. We currently relay on monitoring and auditing where we can kill CPU hogging processes
  • 75. We are exploring the possibility of changing the priority of CPU hogging processes in the work queues (e.g. workflow engine, ESB etc.). photo Fortes by on Flickr, http://www.fotopedia.com/items/flickr-3193056200
  • 77. Scaling Multi-tenant Middleware So far we talked about building a single Multi-tenant Node (That is Level 3)
  • 78. To reach Level 4, we have to scale.
  • 80. We have to run this with many nodes, and we have to partition.
  • 81. We have to replicate or partition. But we are talking about 1000s of tenants, likely one tenant can not hold all of them.
  • 82. So We need to partition
  • 83. We also need load balancing, and it should know about tenants.
  • 86. Workflow Performance Setup Multi-tenant and non-multi-tenant versions Run 200 workflows from each clientOverhead is minimalMT supports only add few additional lookups and checksJava Security does not come in to play as we do not run user provided code.
  • 87. For more details (Publications on the topic)A. Azeez and S. Perera et al., WSO2 Stratos: An Industrial Stack to Support Cloud Computing, IT: Methods and Applications of Informatics and Information Technology Journal, the special Issue on Cloud Computing, 2011.
  • 88. AfkhamAzeez, Srinath Perera, DimuthuGamage, Ruwan Linton, PrabathSiriwardana, DimuthuLeelaratne, SanjivaWeerawarana, Paul Fremantle, "Multi-Tenant SOA Middleware for Cloud Computing" 3rd International Conference on Cloud Computing, Florida, 2010
  • 89. MilindaPathirage, Srinath Perera, SanjivaWeerawarana, Indika Kumara, A Multi-tenant Architecture for Business Process Execution, 9th International Conference on Web Services (ICWS), 2011ConclusionWe discussed what is Multi-tenancy and why it is crucial for implementing a PaaS.
  • 90. We discussed details about implementing it
  • 91. Isolation (Data, Execution) .. Isolation vs. sharing tradeoff
  • 92. Four level’s of multi-tenancy
  • 94. Lot of open questions yet to be solved. Your thoughts and code both are welcome.
  • 95. Data Security (Encryption, Delegation etc. ), Tenant Migration , Scaling, Lazy loading …Questions?