SlideShare a Scribd company logo
Understanding the Impact of Databases on the
Energy Efficiency of Cloud Applications
Defense for obtaining the master’s degree in applied
sciences
B´echir Bani
´Ecole Polytechnique de Montr´eal
Ptidej Team / SWAT Lab
POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion
Table of contents
1 Introduction
2 Literature Review
3 Methodology
4 Results
5 Conclusion
The Impact of Databases on the Energy Efficiency – B´echir Bani 2/53 – www.polymtl.ca
POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion
Motivations
The Impact of Databases on the Energy Efficiency – B´echir Bani 3/53 – www.polymtl.ca
POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion
Motivations
The Impact of Databases on the Energy Efficiency – B´echir Bani 4/53 – www.polymtl.ca
POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion
Motivations
• Little is still known about the energy footprint of these
applications and, in particular, of their databases
• Databases are the backbone of cloud-based applications
The Impact of Databases on the Energy Efficiency – B´echir Bani 5/53 – www.polymtl.ca
POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion
Motivations
Cloud Application = Databases + Cloud Patterns
The Impact of Databases on the Energy Efficiency – B´echir Bani 6/53 – www.polymtl.ca
POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion
Motivations
• None of previous works investigated the combined impact of
databases and cloud patterns on the energy consumption of
cloud-based applications
• The benefits and trade-offs of different databases and
combinations of cloud patterns are mostly intuitive and not
validated
The Impact of Databases on the Energy Efficiency – B´echir Bani 7/53 – www.polymtl.ca
POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion
Objectives
1 Propose an approach to collect energy measures of
cloud-based applications implemented with cloud patterns in
conjunction with databases in a cloud environment
2 Evaluate the impact on energy consumption of three cloud
patterns: Local Database Proxy, Local Sharding-Based
Router, and Priority Message Queue, individually, and also
their combination, with three databases: MySQL,
PostgreSQL, and MongoDB
3 Highlight the contrast response time with energy efficiency of
databases so that developers are aware of the trade-offs
between these two quality indicators when selecting a
database for their application
The Impact of Databases on the Energy Efficiency – B´echir Bani 8/53 – www.polymtl.ca
POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion
Relevant Literature Review
1 Energy Consumption and Applications Design
2 Performance of Relational and NoSQL Databases
3 Impact of Cloud Patterns on Applications Performance
The Impact of Databases on the Energy Efficiency – B´echir Bani 9/53 – www.polymtl.ca
POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion
Relevant Literature Review
1 Energy Consumption and Applications Design
2 Performance of Relational and NoSQL Databases
3 Impact of Cloud Patterns on Applications Performance
The Impact of Databases on the Energy Efficiency – B´echir Bani 9/53 – www.polymtl.ca
POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion
Energy Consumption and Applications Design
1 How Green Are Cloud Patterns? (Abtahizadeh et al.)
• Compared the energy efficiency of three cloud patterns
• Showed that cloud patterns can effectively reduce the energy
consumption of a cloud application
• Only considered MySQL database and a RESTful application
2 Investigating the impacts of web servers on web
application energy usage (Manotas et al.)
• Investigated the impact of four Web servers on the energy
consumption of a Web application
• Showed that the energy consumption of a Web application
depends on the Web server used to handle requests
The Impact of Databases on the Energy Efficiency – B´echir Bani 10/53 – www.polymtl.ca
POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion
Energy Consumption and Applications Design
1 Initial explorations on design pattern energy usage
(Sahin et al.)
• Investigated the energy efficiency of design patterns
• Showed that design patterns have a significant impact on
energy consumption
2 How do code refactorings affect energy usage? (Sahin et
al.)
• Showed that code refactorings affect the energy consumption
of applications
The Impact of Databases on the Energy Efficiency – B´echir Bani 11/53 – www.polymtl.ca
POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion
Relevant Literature Review
1 Energy Consumption and Applications Design
2 Performance of Relational and NoSQL Databases
3 Impact of Cloud Patterns on Applications Performance
The Impact of Databases on the Energy Efficiency – B´echir Bani 12/53 – www.polymtl.ca
POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion
Performance of Relational and NoSQL Databases
1 Comparison of NoSQL and SQL Databases in the Cloud
(Hammes et al.)
• Highlighted the performance of both PostgreSQL database and
MongoDB database
• Observed that PostgreSQL databases perform better than
MongoDB databases in cloud environments
2 A comprehensive comparison of SQL and MongoDB
Databases (Aghi et al.)
• Highlighted the performance of MySQL and MongoDB
Databases
• Showed that MongoDB database performs better than MySQL
for complex queries
• Showed that MySQL databases perform better than MongoDB
databases for small datasets
The Impact of Databases on the Energy Efficiency – B´echir Bani 13/53 – www.polymtl.ca
POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion
Relevant Literature Review
1 Energy Consumption and Applications Design
2 Performance of Relational and NoSQL Databases
3 Impact of Cloud Patterns on Applications Performance
The Impact of Databases on the Energy Efficiency – B´echir Bani 14/53 – www.polymtl.ca
POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion
Impact of Cloud Patterns on Applications Performance
1 An empirical Study of the impact of cloud patterns on
Quality of Service (QoS) (Hecht et al.)
• Studied the impact of three cloud patterns on QoS
• Reported that the implementation of the Local Database
Proxy pattern can significantly impact the QoS
2 Scalability patterns for platform-as-a-service (Ardagna et
al.)
• Evaluated the impact of five scalability patterns on the
performance of a Platform as a Service (PaaS)
• Showed that each pattern can affect the way virtual machine
resources are added and removed
The Impact of Databases on the Energy Efficiency – B´echir Bani 15/53 – www.polymtl.ca
POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion
Methodology
1 Research Questions and Hypothesis
2 Objects and Design
3 Research variables
• Independent Variables
• Dependent Variables
4 Data Extraction Process
5 Analysis Method
The Impact of Databases on the Energy Efficiency – B´echir Bani 16/53 – www.polymtl.ca
POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion
Methodology
1 Research Questions and Hypothesis
2 Objects and Design
3 Research variables
• Independent Variables
• Dependent Variables
4 Data Extraction Process
5 Analysis Method
The Impact of Databases on the Energy Efficiency – B´echir Bani 16/53 – www.polymtl.ca
POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion
Research Questions and Hypothesis
RQ1: Does the choice of MySQL, PostgreSQL, and
MongoDB databases affect the energy consumption of cloud
applications (when no cloud patterns are implemented)?
• H1
0yz: There is no difference between the average amount of
energy consumed by applications implementing databases Dy
and Dz (without any cloud pattern)
• H2
0yz: There is no difference between the average response
time of databases Dy and Dz (without any cloud pattern)
The Impact of Databases on the Energy Efficiency – B´echir Bani 17/53 – www.polymtl.ca
POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion
Research Questions and Hypothesis
RQ2: Does the implementation of Local Database Proxy,
Local Sharding Based Router, and Priority Message Queue
patterns affect the energy consumption of cloud applications
using MySQL, PostgreSQL, and MongoDB Databases?
• H1
xyz: There is no difference between the average amount of
energy consumed by applications implementing databases Dy
and Dz in conjunction with patterns Px
• H2
xyz: There is no difference between the average response
time of databases Dy and Dz by applying the design Px
The Impact of Databases on the Energy Efficiency – B´echir Bani 18/53 – www.polymtl.ca
POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion
Research Questions and Hypothesis
RQ3: Do the interactions between Local Database Proxy,
Local Sharding Based Router, and Priority Message Queue
patterns affect the energy consumption of cloud applications
using MySQL, PostgreSQL, and MongoDB databases?
• H1
xyz7: There is no difference between the average amount of
energy consumed by applications implementing databases Dy
and Dz in conjunction with the combination of patterns Px
and P7
• H2
xyz7: There is no difference between the average response
time of databases Dy and Dz by applying the combination of
designs Px and P7
The Impact of Databases on the Energy Efficiency – B´echir Bani 19/53 – www.polymtl.ca
POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion
Methodology
1 Research Questions and Hypothesis
2 Objects and Design
3 Research variables
• Independent Variables
• Dependent Variables
4 Data Extraction Process
5 Analysis Method
The Impact of Databases on the Energy Efficiency – B´echir Bani 20/53 – www.polymtl.ca
POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion
Objects and Design
RESTful multi-threaded application
• Communicates through REST calls
• Use Sakila sample database (provided by MySQL)
• Adapt the schema of Sakila sample database to PostgreSQL
and MongoDB databases
• Implemented with different patterns and strategies
• Clients are simulated using a multi-threaded architecture (100;
250; 500; 1,000; 1,500)
The Impact of Databases on the Energy Efficiency – B´echir Bani 21/53 – www.polymtl.ca
POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion
Objects and Design
DVD Store application
• Standard cloud-based application
• Open source simulation of an e-commerce web site
• We refactor the code of DVD Store to allow it to connect to a
MongoDB database
• Clients are simulated using a multi-threaded architecture (100,
250; 500; 1,000; 1,500)
The Impact of Databases on the Energy Efficiency – B´echir Bani 22/53 – www.polymtl.ca
POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion
Objects and Design
JPetStore application
• Standard cloud-based application
• Open source simulation of an e-commerce web application
• We refactor the code of JPetStore to allow it to connect to a
PostgreSQL and MongoDB databases
• Clients are simulated using a multi-threaded architecture (100;
250; 500; 1,000; 1,500)
The Impact of Databases on the Energy Efficiency – B´echir Bani 23/53 – www.polymtl.ca
POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion
Objects and Design
Power-API
• Provides power information (in watts converted to joules to
measure the energy) per PID for each system component
(CPU, memory, etc.)
• Uses sensors and analytical models for its energy estimation
• Allows to estimate the amount of power required by the CPU
to execute a process (at the corresponding PID)
• Does not introduce noise in its measurements
The Impact of Databases on the Energy Efficiency – B´echir Bani 24/53 – www.polymtl.ca
POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion
Methodology
1 Research Questions and Hypothesis
2 Objects and Design
3 Research variables
• Independent Variables
• Dependent Variables
4 Data Extraction Process
5 Analysis Method
The Impact of Databases on the Energy Efficiency – B´echir Bani 25/53 – www.polymtl.ca
POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion
Research Variables
1 Independent Variables
• Databases: MySQL, PostgreSQL, MongoDB
• Cloud Patterns: Local Database Proxy, Local Sharding-Based
Router, Priority Message Queue
2 Dependent Variables
• Response Time: Corresponding to Select and Insert requests
(milliseconds)
• Energy Consumption: Using Power-API profiler (Joules)
The Impact of Databases on the Energy Efficiency – B´echir Bani 26/53 – www.polymtl.ca
POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion
Methodology
1 Research Questions and Hypothesis
2 Objects
3 Design
4 Research variables
• Independent Variables
• Dependent Variables
5 Data Extraction Process
6 Analysis Method
The Impact of Databases on the Energy Efficiency – B´echir Bani 27/53 – www.polymtl.ca
POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion
Data Extraction Process
Energy Consumption Data Extraction Process
The Impact of Databases on the Energy Efficiency – B´echir Bani 28/53 – www.polymtl.ca
POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion
Data Extraction Process
Energy Data Collection Procedure
1: CollectData(VMs, CloudApp, Profiler)
2: Begin
3: StartCloudApp()
4: ExecuteCloudApp(x) // Seconds
5: for all VM ∈ VMs do
6: StartProfiler()
7: ExecuteProfiler(x) // Seconds
8: FinishExecProfiler()
9: end for
10: FinishExecCloudApp()
11: End
The Impact of Databases on the Energy Efficiency – B´echir Bani 29/53 – www.polymtl.ca
POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion
Methodology
1 Research Questions and Hypothesis
2 Objects
3 Design
4 Research variables
• Independent Variables
• Dependent Variables
5 Data Extraction Process
6 Analysis Method
The Impact of Databases on the Energy Efficiency – B´echir Bani 30/53 – www.polymtl.ca
POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion
Analysis Method
• Mann-Whitney U test
• A non-parametric statistical test whose relevance is reflected in
the assessment of two independent distributions
• The null hypothesis is rejected (there is a significant difference
between the the two distributions) when its p-value < 0.05
• Cliff’s δ effect size
• Represents the degree of interlock between two sample
distributions
• Its value ranges from -1 to +1: negligeable (δ < 0.147),
small (0.147< δ <0.33), medium (0.33< δ <0.474) and
large (δ > 0.474)
The Impact of Databases on the Energy Efficiency – B´echir Bani 31/53 – www.polymtl.ca
POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion
RQ1:
Does the choice of MySQL, PostgreSQL, and
MongoDB databases affect the energy consumption
of cloud applications (when no cloud patterns are
implemented)?
The Impact of Databases on the Energy Efficiency – B´echir Bani 32/53 – www.polymtl.ca
POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion
Without Cloud Patterns
100 250 500 1000 1500
0
500
1,000
1,500
2,000
Number of Clients
CPU+MemoryEnergyConsumption(J)
MySQL
PostgreSQL
MongoDB
(a) RESTful (Energy)
100 250 500 1000 1500
0
500
1,000
1,500
2,000
Number of Clients
CPU+MemoryEnergyConsumption(J)
MySQL
PostgreSQL
MongoDB
(b) DVDStore (Energy)
100 250 500 1000 1500
0
500
1,000
1,500
2,000
Number of Clients
CPU+MemoryEnergyConsumption(J)
MySQL
PostgreSQL
MongoDB
(c) JPetStore (Energy)
100 250 500 1000 1500
0
2
4
6
8
·104
Number of Clients
AverageResponseTime(ms)
MySQL
PostgreSQL
MongoDB
(d) RESTful (Time)
100 250 500 1000 1500
0
2
4
6
8
·104
Number of Clients
AverageResponseTime(ms)
MySQL
PostgreSQL
MongoDB
(e) DVDStore (Time)
100 250 500 1000 1500
0
2
4
6
8
·104
Number of ClientsAverageResponseTime(ms)
MySQL
PostgreSQL
MongoDB
(f) JPetStore (Time)
The Impact of Databases on the Energy Efficiency – B´echir Bani 33/53 – www.polymtl.ca
POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion
Without Cloud Patterns
Energy Consumption p-value and Cliff’s δ
Pattern MySQL PostgreSQL p-value Cliff’s δ MySQL MongoDB p-value Cliff’s δ PostgreSQL MongoDB p-value Cliff’s δ
P0 262.5 568.2 0.01 medium 262.5 354.7 0.24 small 568.2 354.7 0.09 small
Response Time p-value and Cliff’s δ
Pattern MySQL PostgreSQL p-value Cliff’s δ MySQL MongoDB p-value Cliff’s δ PostgreSQL MongoDB p-value Cliff’s δ
P0 36018.6 28615.7 0.09 small 36018.6 4253.8 < 10e−6 large 28615.7 4253.8 < 10e−6 large
The Impact of Databases on the Energy Efficiency – B´echir Bani 34/53 – www.polymtl.ca
POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion
RQ2:
Does the implementation of Local Database Proxy,
Local Sharding Based Router, and Priority Message
Queue patterns affect the energy consumption of
cloud applications using MySQL, PostgreSQL, and
MongoDB Databases?
The Impact of Databases on the Energy Efficiency – B´echir Bani 35/53 – www.polymtl.ca
POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion
Local Database Proxy Pattern
Energy Consumption p-value and Cliff’s δ
Pattern MySQL PostgreSQL p-value Cliff’s δ MySQL MongoDB p-value Cliff’s δ PostgreSQL MongoDB p-value Cliff’s δ
P1 490.2 1391.1 < 10e−6 large 490.2 890.0 < 10e−6 large 1391.1 890.0 0.09 small
P2 495.2 1529.9 < 10e−6 large 495.2 915.9 < 10e−6 large 1529.9 915.9 0.04 medium
P3 495.0 1476.5 < 10e−6 large 495.0 904.5 < 10e−6 large 1476.5 904.5 0.04 medium
Response Time p-value and Cliff’s δ
Pattern MySQL PostgreSQL p-value Cliff’s δ MySQL MongoDB p-value Cliff’s δ PostgreSQL MongoDB p-value Cliff’s δ
P1 30430.0 27867.8 0.23 small 30430.0 3639.8 < 10e−6 large 27867.8 3639.8 < 10e−6 large
P2 29504.1 27036.5 0.23 small 29504.1 3214.2 < 10e−6 large 27036.5 3214.2 < 10e−6 large
P3 29825.2 26129.6 0.23 small 29825.2 3275.0 < 10e−6 large 26129.6 3275.0 < 10e−6 large
The Impact of Databases on the Energy Efficiency – B´echir Bani 36/53 – www.polymtl.ca
POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion
Local Sharding-Based Router
Energy Consumption p-value and Cliff’s δ
Pattern MySQL PostgreSQL p-value Cliff’s δ MySQL MongoDB p-value Cliff’s δ PostgreSQL MongoDB p-value Cliff’s δ
P4 1331.9 6330.2 < 10e−6 large 1331.9 5826.4 < 10e−6 large 6330.2 5826.4 0.23 small
P5 611.6 4245.1 < 10e−6 large 611.6 3821.8 < 10e−6 large 4245.1 3821.8 0.23 small
P6 824.1 4929.4 < 10e−6 large 824.1 4194.4 < 10e−6 large 4929.4 4194.4 0.23 small
Response Time p-value and Cliff’s δ
Pattern MySQL PostgreSQL p-value Cliff’s δ MySQL MongoDB p-value Cliff’s δ PostgreSQL MongoDB p-value Cliff’s δ
P4 170693.1 138026.6 0.09 small 170693.1 26259.5 < 10e−6 large 138026.6 26259.5 < 10e−6 large
P5 165250.7 145382.6 0.09 small 165250.7 27897.8 < 10e−6 large 145382.6 27897.8 < 10e−6 large
P6 168786.5 130585.0 0.09 small 168786.5 24680.3 < 10e−6 large 130585.0 24680.3 < 10e−6 large
The Impact of Databases on the Energy Efficiency – B´echir Bani 37/53 – www.polymtl.ca
POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion
RQ3:
Do the interactions between Local Database Proxy,
Local Sharding Based Router, and Priority Message
Queue patterns affect the energy consumption of
cloud applications using MySQL, PostgreSQL, and
MongoDB databases?
The Impact of Databases on the Energy Efficiency – B´echir Bani 38/53 – www.polymtl.ca
POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion
Combination Proxy Pattern and Message Queue Pattern
Energy Consumption p-value and Cliff’s δ
Pattern MySQL PostgreSQL p-value Cliff’s δ MySQL MongoDB p-value Cliff’s δ PostgreSQL MongoDB p-value Cliff’s δ
P1+P7 442.7 1379.8 < 10e−6 large 442.7 814.3 < 10e−6 large 1379.8 814.3 0.03 medium
P2+P7 468.8 1482.5 < 10e−6 large 468.8 891.9 < 10e−6 large 1482.5 891.9 0.03 medium
P3+P7 490.2 1391.1 < 10e−6 large 490.2 890.0 < 10e−6 large 1391.1 890.0 0.09 small
Response Time p-value and Cliff’s δ
Pattern MySQL PostgreSQL p-value Cliff’s δ MySQL MongoDB p-value Cliff’s δ PostgreSQL MongoDB p-value Cliff’s δ
P1+P7 27826.2 22299.8 0.48 negligible 27826.2 3747.1 < 10e−6 large 22299.8 3747.1 < 10e−6 large
P2+P7 26703.4 25706.8 0.48 negligible 26703.4 3127.5 < 10e−6 large 25706.8 3127.5 < 10e−6 large
P3+P7 29339.7 23153.6 0.23 small 29339.7 4210.2 < 10e−6 large 23153.6 4210.2 < 10e−6 large
The Impact of Databases on the Energy Efficiency – B´echir Bani 39/53 – www.polymtl.ca
POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion
Combination Sharding and Message Queue Patterns
Energy Consumption p-value and Cliff’s δ
Pattern MySQL PostgreSQL p-value Cliff’s δ MySQL MongoDB p-value Cliff’s δ PostgreSQL MongoDB p-value Cliff’s δ
P4+P7 1255.5 5777.4 < 10e−6 large 1255.5 5622.9 < 10e−6 large 5777.4 5622.9 0.82 negligible
P5+P7 492.2 3884.5 < 10e−6 large 492.2 3386.6 < 10e−6 large 3884.5 3386.6 0.23 small
P6+P7 775.9 4526.8 < 10e−6 large 775.9 4127.4 < 10e−6 large 4526.8 4127.4 0.23 small
Response Time p-value and Cliff’s δ
Pattern MySQL PostgreSQL p-value Cliff’s δ MySQL MongoDB p-value Cliff’s δ PostgreSQL MongoDB p-value Cliff’s δ
P4+P7 37584.7 29287.7 0.23 small 37584.7 2716.3 < 10e−6 large 29287.7 2716.3 < 10e−6 large
P5+P7 38153.7 26445.6 0.09 small 38153.7 2869.7 < 10e−6 large 26445.6 2869.7 < 10e−6 large
P6+P7 34183.0 27507.3 0.23 small 34183.0 20609.3 0.03 medium 27507.3 20609.3 0.09 small
The Impact of Databases on the Energy Efficiency – B´echir Bani 40/53 – www.polymtl.ca
POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion
Important Results
• MySQL database is the least energy consuming but is the
slowest among the three databases
• PostgreSQL database is the most energy consuming among
the three databases, but is faster than MySQL but slower
than MongoDB
• MongoDB database consumes more energy than MySQL
but less than PostgreSQL and is the fastest among the three
databases
The Impact of Databases on the Energy Efficiency – B´echir Bani 41/53 – www.polymtl.ca
POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion
Discussions
• PostgreSQL database generates multiple parallel processes to
run the requests sent by the RESTful cloud-based application
• MySQL and MongoDB generate only one process at a time to
handle requests sent by the cloud-based application
The Impact of Databases on the Energy Efficiency – B´echir Bani 42/53 – www.polymtl.ca
POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion
Discussions
• MySQL and PostgreSQL follow the ACID model
• MongoDB database follow the BASE model
⇒ MongoDB is faster than the other two relational
databases
⇒ requests processed by relational databases must be
executed one by one and cannot be executed in a
Simultaneous way
The Impact of Databases on the Energy Efficiency – B´echir Bani 43/53 – www.polymtl.ca
POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion
Summary
• We carried on a series of experiments on different versions of
three cloud applications
• We contrasted the performance of various combinations of
databases and cloud patterns in terms of energy consumption
and response time of the cloud-based applications
• Databases can reduce the energy consumption of cloud-based
applications
• Cloud patterns do not impact the behavior of the databases
The Impact of Databases on the Energy Efficiency – B´echir Bani 44/53 – www.polymtl.ca
POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion
Limitations of the proposed approach
• Energy measurements are subject to perturbations depending
of hardware and network
• More studies should be conducted with possibly more accurate
tools to verify our findings
• Our findings may still be specific to our studied applications,
which were designed specifically for the experiments: future
works should replicate this study on other cloud-based
applications
The Impact of Databases on the Energy Efficiency – B´echir Bani 45/53 – www.polymtl.ca
POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion
Future work
• Expand our study to different NoSQL databases like HBase,
Cassandra and HANA
• Investigate the energy impact of data modeling strategies like
denormalization and data duplication
• Examine how a match/mismatch between the selected
database and the workload characteristic affects energy
efficiency
The Impact of Databases on the Energy Efficiency – B´echir Bani 46/53 – www.polymtl.ca
POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion
Publication
Earlier study in the thesis is published as follows:
• A Study of the Energy Consumption of Databases and Cloud
Patterns
B´echir Bani, Foutse Khomh and Yann-Ga¨el Gu´eh´eneuc, in
Proceedings of the 14th International Conference On Service
Oriented Computing (ICSOC), Banff, Alberta, Canada, 10-13
October, 2016.
My contribution: Methodology, analysis and paper writing.
The Impact of Databases on the Energy Efficiency – B´echir Bani 47/53 – www.polymtl.ca
POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion
• We carried on a series of experiments on different versions of
three cloud applications
• We contrasted the performance of various combinations of
databases and cloud patterns in terms of energy consumption
and response time of the cloud-based applications
• Databases can reduce the energy consumption of cloud-based
applications
• Cloud patterns do not impact the behavior of the databases
The Impact of Databases on the Energy Efficiency – B´echir Bani 48/53 – www.polymtl.ca
POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion
The Impact of Databases on the Energy Efficiency – B´echir Bani 49/53 – www.polymtl.ca
POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion
Local Database Proxy Pattern
100 250 500 1000 1500
0
1,000
2,000
3,000
Number of Clients
CPU+MemoryEnergyConsumption(J)
MySQL
PostgreSQL
MongoDB
(a) Random (Energy)
100 250 500 1000 1500
0
1,000
2,000
3,000
Number of ClientsCPU+MemoryEnergyConsumption(J)
MySQL
PostgreSQL
MongoDB
(b) R-R (Energy)
100 250 500 1000 1500
0
1,000
2,000
3,000
Number of Clients
CPU+MemoryEnergyConsumption(J)
MySQL
PostgreSQL
MongoDB
(c) Custom (Energy)
100 250 500 1000 1500
0
2
4
6
8
·104
Number of Clients
AverageResponseTime(ms)
MySQL
PostgreSQL
MongoDB
(d) Random (Time)
100 250 500 1000 1500
0
2
4
6
8
·104
Number of Clients
AverageResponseTime(ms)
MySQL
PostgreSQL
MongoDB
(e) R-R (Time)
100 250 500 1000 1500
0
2
4
6
8
·104
Number of Clients
AverageResponseTime(ms)
MySQL
PostgreSQL
MongoDB
(f) Custom (Time)
The Impact of Databases on the Energy Efficiency – B´echir Bani 50/53 – www.polymtl.ca
POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion
Local Sharding-Based Router Pattern
100 250 500 1000 1500
0
0.5
1
1.5
·104
Number of Clients
CPU+MemoryEnergyConsumption(J)
MySQL
PostgreSQL
MongoDB
(a) Modulo (Energy)
100 250 500 1000 1500
0
0.5
1
1.5
·104
Number of ClientsCPU+MemoryEnergyConsumption(J)
MySQL
PostgreSQL
MongoDB
(b) LookUp (Energy)
100 250 500 1000 1500
0
0.5
1
1.5
·104
Number of Clients
CPU+MemoryEnergyConsumption(J)
MySQL
PostgreSQL
MongoDB
(c) Consistent (Energy)
100 250 500 1000 1500
0
1
2
3
·105
Number of Clients
AverageResponseTime(ms)
MySQL
PostgreSQL
MongoDB
(d) Modulo (Time)
100 250 500 1000 1500
0
1
2
3
·105
Number of Clients
AverageResponseTime(ms)
MySQL
PostgreSQL
MongoDB
(e) LookUp (Time)
100 250 500 1000 1500
0
1
2
3
·105
Number of Clients
AverageResponseTime(ms)
MySQL
PostgreSQL
MongoDB
(f) Consistent (Time)
The Impact of Databases on the Energy Efficiency – B´echir Bani 51/53 – www.polymtl.ca
POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion
Combination Proxy Pattern and Message Queue Pattern
100 250 500 1000 1500
0
1,000
2,000
3,000
Number of Clients
CPU+MemoryEnergyConsumption(J)
MySQL
PostgreSQL
MongoDB
(a) Random* (Energy)
100 250 500 1000 1500
0
1,000
2,000
3,000
Number of ClientsCPU+MemoryEnergyConsumption(J)
MySQL
PostgreSQL
MongoDB
(b) R-R* (Energy)
100 250 500 1000 1500
0
1,000
2,000
3,000
Number of Clients
CPU+MemoryEnergyConsumption(J)
MySQL
PostgreSQL
MongoDB
(c) Custom* (Energy)
100 250 500 1000 1500
0
2
4
6
8
·104
Number of Clients
AverageResponseTime(ms)
MySQL
PostgreSQL
MongoDB
(d) Random* (Time)
100 250 500 1000 1500
0
2
4
6
8
·104
Number of Clients
AverageResponseTime(ms)
MySQL
PostgreSQL
MongoDB
(e) R-R* (Time)
100 250 500 1000 1500
0
2
4
6
8
·104
Number of Clients
AverageResponseTime(ms)
MySQL
PostgreSQL
MongoDB
(f) Custom* (Time)
The Impact of Databases on the Energy Efficiency – B´echir Bani 52/53 – www.polymtl.ca
POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion
Combination Sharding and Message Queue Patterns
100 250 500 1000 1500
0
0.5
1
1.5
·104
Number of Clients
CPU+MemoryEnergyConsumption(J)
MySQL
PostgreSQL
MongoDB
(a) Modulo* (Energy)
100 250 500 1000 1500
0
0.5
1
1.5
·104
Number of ClientsCPU+MemoryEnergyConsumption(J)
MySQL
PostgreSQL
MongoDB
(b) LookUp* (Energy)
100 250 500 1000 1500
0
0.5
1
1.5
·104
Number of Clients
CPU+MemoryEnergyConsumption(J)
MySQL
PostgreSQL
MongoDB
(c) Consistent*(Energy)
100 250 500 1000 1500
0
0.2
0.4
0.6
0.8
1
·105
Number of Clients
AverageResponseTime(ms)
MySQL
PostgreSQL
MongoDB
(d) Modulo* (Time)
100 250 500 1000 1500
0
0.2
0.4
0.6
0.8
1
·105
Number of Clients
AverageResponseTime(ms)
MySQL
PostgreSQL
MongoDB
(e) LookUp* (Time)
100 250 500 1000 1500
0
0.2
0.4
0.6
0.8
1
·105
Number of Clients
AverageResponseTime(ms)
MySQL
PostgreSQL
MongoDB
(f) Consistent*(Time)
The Impact of Databases on the Energy Efficiency – B´echir Bani 53/53 – www.polymtl.ca

More Related Content

What's hot

An Approach to Reduce Energy Consumption in Cloud data centers using Harmony ...
An Approach to Reduce Energy Consumption in Cloud data centers using Harmony ...An Approach to Reduce Energy Consumption in Cloud data centers using Harmony ...
An Approach to Reduce Energy Consumption in Cloud data centers using Harmony ...
ijccsa
 
Energy efficient reverse skyline query processing over wireless sensor networks
Energy efficient reverse skyline query processing over wireless sensor networksEnergy efficient reverse skyline query processing over wireless sensor networks
Energy efficient reverse skyline query processing over wireless sensor networks
Finalyear Projects
 
Reinforcement Learning for Building Energy Optimization Through Controlling o...
Reinforcement Learning for Building Energy Optimization Through Controlling o...Reinforcement Learning for Building Energy Optimization Through Controlling o...
Reinforcement Learning for Building Energy Optimization Through Controlling o...
Power System Operation
 
A Baye's Theorem Based Node Selection for Load Balancing in Cloud Environment
A Baye's Theorem Based Node Selection for Load Balancing in Cloud EnvironmentA Baye's Theorem Based Node Selection for Load Balancing in Cloud Environment
A Baye's Theorem Based Node Selection for Load Balancing in Cloud Environment
neirew J
 
A BAYE'S THEOREM BASED NODE SELECTION FOR LOAD BALANCING IN CLOUD ENVIRONMENT
A BAYE'S THEOREM BASED NODE SELECTION FOR LOAD BALANCING IN CLOUD ENVIRONMENTA BAYE'S THEOREM BASED NODE SELECTION FOR LOAD BALANCING IN CLOUD ENVIRONMENT
A BAYE'S THEOREM BASED NODE SELECTION FOR LOAD BALANCING IN CLOUD ENVIRONMENT
hiij
 
Scheduling Algorithm Based Simulator for Resource Allocation Task in Cloud Co...
Scheduling Algorithm Based Simulator for Resource Allocation Task in Cloud Co...Scheduling Algorithm Based Simulator for Resource Allocation Task in Cloud Co...
Scheduling Algorithm Based Simulator for Resource Allocation Task in Cloud Co...
IRJET Journal
 
Download-manuals-surface water-manual-45howtoreviewmonitoringnetworks
 Download-manuals-surface water-manual-45howtoreviewmonitoringnetworks Download-manuals-surface water-manual-45howtoreviewmonitoringnetworks
Download-manuals-surface water-manual-45howtoreviewmonitoringnetworks
hydrologyproject001
 
Energy Efficient Techniques for Data aggregation and collection in WSN
Energy Efficient Techniques for Data aggregation and collection in WSNEnergy Efficient Techniques for Data aggregation and collection in WSN
Energy Efficient Techniques for Data aggregation and collection in WSN
IJCSEA Journal
 
roy_emmerich-eurec_dissertation-final
roy_emmerich-eurec_dissertation-finalroy_emmerich-eurec_dissertation-final
roy_emmerich-eurec_dissertation-final
Roy Emmerich
 
Time Efficient VM Allocation using KD-Tree Approach in Cloud Server Environment
Time Efficient VM Allocation using KD-Tree Approach in Cloud Server EnvironmentTime Efficient VM Allocation using KD-Tree Approach in Cloud Server Environment
Time Efficient VM Allocation using KD-Tree Approach in Cloud Server Environment
rahulmonikasharma
 
Webinar: Post-combusion carbon capture - Thermodynamic modelling
Webinar: Post-combusion carbon capture - Thermodynamic modellingWebinar: Post-combusion carbon capture - Thermodynamic modelling
Webinar: Post-combusion carbon capture - Thermodynamic modelling
Global CCS Institute
 
Dr Dev Kambhampati | DOE NETL Report- Cost & Performance Baseline for Fossil ...
Dr Dev Kambhampati | DOE NETL Report- Cost & Performance Baseline for Fossil ...Dr Dev Kambhampati | DOE NETL Report- Cost & Performance Baseline for Fossil ...
Dr Dev Kambhampati | DOE NETL Report- Cost & Performance Baseline for Fossil ...
Dr Dev Kambhampati
 
Challenges in Dynamic Resource Allocation and Task Scheduling in Heterogeneou...
Challenges in Dynamic Resource Allocation and Task Scheduling in Heterogeneou...Challenges in Dynamic Resource Allocation and Task Scheduling in Heterogeneou...
Challenges in Dynamic Resource Allocation and Task Scheduling in Heterogeneou...
rahulmonikasharma
 
An efficient approach on spatial big data related to wireless networks and it...
An efficient approach on spatial big data related to wireless networks and it...An efficient approach on spatial big data related to wireless networks and it...
An efficient approach on spatial big data related to wireless networks and it...
eSAT Journals
 
1 s2.0-s0142061515005086-main
1 s2.0-s0142061515005086-main1 s2.0-s0142061515005086-main
1 s2.0-s0142061515005086-main
Taufiq Alfa Edition Taufiq
 
Project work
Project workProject work
Project work
Sankalp Nimbhorkar
 
Available technologies: algorithm for flexible bandwidth reservations for dat...
Available technologies: algorithm for flexible bandwidth reservations for dat...Available technologies: algorithm for flexible bandwidth reservations for dat...
Available technologies: algorithm for flexible bandwidth reservations for dat...
balmanme
 

What's hot (17)

An Approach to Reduce Energy Consumption in Cloud data centers using Harmony ...
An Approach to Reduce Energy Consumption in Cloud data centers using Harmony ...An Approach to Reduce Energy Consumption in Cloud data centers using Harmony ...
An Approach to Reduce Energy Consumption in Cloud data centers using Harmony ...
 
Energy efficient reverse skyline query processing over wireless sensor networks
Energy efficient reverse skyline query processing over wireless sensor networksEnergy efficient reverse skyline query processing over wireless sensor networks
Energy efficient reverse skyline query processing over wireless sensor networks
 
Reinforcement Learning for Building Energy Optimization Through Controlling o...
Reinforcement Learning for Building Energy Optimization Through Controlling o...Reinforcement Learning for Building Energy Optimization Through Controlling o...
Reinforcement Learning for Building Energy Optimization Through Controlling o...
 
A Baye's Theorem Based Node Selection for Load Balancing in Cloud Environment
A Baye's Theorem Based Node Selection for Load Balancing in Cloud EnvironmentA Baye's Theorem Based Node Selection for Load Balancing in Cloud Environment
A Baye's Theorem Based Node Selection for Load Balancing in Cloud Environment
 
A BAYE'S THEOREM BASED NODE SELECTION FOR LOAD BALANCING IN CLOUD ENVIRONMENT
A BAYE'S THEOREM BASED NODE SELECTION FOR LOAD BALANCING IN CLOUD ENVIRONMENTA BAYE'S THEOREM BASED NODE SELECTION FOR LOAD BALANCING IN CLOUD ENVIRONMENT
A BAYE'S THEOREM BASED NODE SELECTION FOR LOAD BALANCING IN CLOUD ENVIRONMENT
 
Scheduling Algorithm Based Simulator for Resource Allocation Task in Cloud Co...
Scheduling Algorithm Based Simulator for Resource Allocation Task in Cloud Co...Scheduling Algorithm Based Simulator for Resource Allocation Task in Cloud Co...
Scheduling Algorithm Based Simulator for Resource Allocation Task in Cloud Co...
 
Download-manuals-surface water-manual-45howtoreviewmonitoringnetworks
 Download-manuals-surface water-manual-45howtoreviewmonitoringnetworks Download-manuals-surface water-manual-45howtoreviewmonitoringnetworks
Download-manuals-surface water-manual-45howtoreviewmonitoringnetworks
 
Energy Efficient Techniques for Data aggregation and collection in WSN
Energy Efficient Techniques for Data aggregation and collection in WSNEnergy Efficient Techniques for Data aggregation and collection in WSN
Energy Efficient Techniques for Data aggregation and collection in WSN
 
roy_emmerich-eurec_dissertation-final
roy_emmerich-eurec_dissertation-finalroy_emmerich-eurec_dissertation-final
roy_emmerich-eurec_dissertation-final
 
Time Efficient VM Allocation using KD-Tree Approach in Cloud Server Environment
Time Efficient VM Allocation using KD-Tree Approach in Cloud Server EnvironmentTime Efficient VM Allocation using KD-Tree Approach in Cloud Server Environment
Time Efficient VM Allocation using KD-Tree Approach in Cloud Server Environment
 
Webinar: Post-combusion carbon capture - Thermodynamic modelling
Webinar: Post-combusion carbon capture - Thermodynamic modellingWebinar: Post-combusion carbon capture - Thermodynamic modelling
Webinar: Post-combusion carbon capture - Thermodynamic modelling
 
Dr Dev Kambhampati | DOE NETL Report- Cost & Performance Baseline for Fossil ...
Dr Dev Kambhampati | DOE NETL Report- Cost & Performance Baseline for Fossil ...Dr Dev Kambhampati | DOE NETL Report- Cost & Performance Baseline for Fossil ...
Dr Dev Kambhampati | DOE NETL Report- Cost & Performance Baseline for Fossil ...
 
Challenges in Dynamic Resource Allocation and Task Scheduling in Heterogeneou...
Challenges in Dynamic Resource Allocation and Task Scheduling in Heterogeneou...Challenges in Dynamic Resource Allocation and Task Scheduling in Heterogeneou...
Challenges in Dynamic Resource Allocation and Task Scheduling in Heterogeneou...
 
An efficient approach on spatial big data related to wireless networks and it...
An efficient approach on spatial big data related to wireless networks and it...An efficient approach on spatial big data related to wireless networks and it...
An efficient approach on spatial big data related to wireless networks and it...
 
1 s2.0-s0142061515005086-main
1 s2.0-s0142061515005086-main1 s2.0-s0142061515005086-main
1 s2.0-s0142061515005086-main
 
Project work
Project workProject work
Project work
 
Available technologies: algorithm for flexible bandwidth reservations for dat...
Available technologies: algorithm for flexible bandwidth reservations for dat...Available technologies: algorithm for flexible bandwidth reservations for dat...
Available technologies: algorithm for flexible bandwidth reservations for dat...
 

Similar to Thesis+of+bechir+bani.ppt

Icsoc16b.ppt
Icsoc16b.pptIcsoc16b.ppt
Icsoc16b.ppt
Icsoc16b.pptIcsoc16b.ppt
Icsoc16b.ppt
Ptidej Team
 
Energy Efficient Technologies for Virtualized Cloud Data Center: A Systematic...
Energy Efficient Technologies for Virtualized Cloud Data Center: A Systematic...Energy Efficient Technologies for Virtualized Cloud Data Center: A Systematic...
Energy Efficient Technologies for Virtualized Cloud Data Center: A Systematic...
IRJET Journal
 
A Research Framework for the Clean-Slate Design of Next-Generation Optical Ac...
A Research Framework for the Clean-Slate Design of Next-Generation Optical Ac...A Research Framework for the Clean-Slate Design of Next-Generation Optical Ac...
A Research Framework for the Clean-Slate Design of Next-Generation Optical Ac...
Xi'an Jiaotong-Liverpool University
 
Fahroo - Computational Mathematics - Spring Review 2013
Fahroo - Computational Mathematics - Spring Review 2013Fahroo - Computational Mathematics - Spring Review 2013
Fahroo - Computational Mathematics - Spring Review 2013
The Air Force Office of Scientific Research
 
e-Research & the art of linking Astrophysics to Deforestation
e-Research & the art of linking Astrophysics to Deforestatione-Research & the art of linking Astrophysics to Deforestation
e-Research & the art of linking Astrophysics to Deforestation
David Wallom
 
Residual Energy Based Cluster head Selection in WSNs for IoT Application
Residual Energy Based Cluster head Selection in WSNs for IoT ApplicationResidual Energy Based Cluster head Selection in WSNs for IoT Application
Residual Energy Based Cluster head Selection in WSNs for IoT Application
IRJET Journal
 
Show and Tell - Data and Digitalisation, Digital Twins.pdf
Show and Tell - Data and Digitalisation, Digital Twins.pdfShow and Tell - Data and Digitalisation, Digital Twins.pdf
Show and Tell - Data and Digitalisation, Digital Twins.pdf
SIFOfgem
 
IRJET- A Statistical Approach Towards Energy Saving in Cloud Computing
IRJET-  	  A Statistical Approach Towards Energy Saving in Cloud ComputingIRJET-  	  A Statistical Approach Towards Energy Saving in Cloud Computing
IRJET- A Statistical Approach Towards Energy Saving in Cloud Computing
IRJET Journal
 
An Approach to Reduce Energy Consumption in Cloud data centers using Harmony ...
An Approach to Reduce Energy Consumption in Cloud data centers using Harmony ...An Approach to Reduce Energy Consumption in Cloud data centers using Harmony ...
An Approach to Reduce Energy Consumption in Cloud data centers using Harmony ...
neirew J
 
Preparing for Zero Net Energy Buildings
Preparing for Zero Net Energy BuildingsPreparing for Zero Net Energy Buildings
Preparing for Zero Net Energy Buildings
Enercare Inc.
 
Exascale Computing Project Update
Exascale Computing Project UpdateExascale Computing Project Update
Exascale Computing Project Update
inside-BigData.com
 
Kimberly King Resume [June 2017]
Kimberly King Resume [June 2017]Kimberly King Resume [June 2017]
Kimberly King Resume [June 2017]
Kimberly L. King
 
Pid967241
Pid967241Pid967241
Pid967241
Shahab Shahid
 
Fast and energy-efficient eNVM based memory organisation at L3-L1 layers for ...
Fast and energy-efficient eNVM based memory organisation at L3-L1 layers for ...Fast and energy-efficient eNVM based memory organisation at L3-L1 layers for ...
Fast and energy-efficient eNVM based memory organisation at L3-L1 layers for ...
Facultad de Informática UCM
 
Foothill College Energy Program
Foothill College Energy ProgramFoothill College Energy Program
Foothill College Energy Program
Robert Cormia
 
Call for Papers- Special Issue: Recent Trends, Innovations and Sustainable So...
Call for Papers- Special Issue: Recent Trends, Innovations and Sustainable So...Call for Papers- Special Issue: Recent Trends, Innovations and Sustainable So...
Call for Papers- Special Issue: Recent Trends, Innovations and Sustainable So...
Christo Ananth
 
Call for Papers- Special Issue: Recent Trends, Innovations and Sustainable So...
Call for Papers- Special Issue: Recent Trends, Innovations and Sustainable So...Call for Papers- Special Issue: Recent Trends, Innovations and Sustainable So...
Call for Papers- Special Issue: Recent Trends, Innovations and Sustainable So...
Christo Ananth
 
Dr Callum Rae - A New Approach to Energy Centre Design
Dr Callum Rae -  A New Approach to Energy Centre DesignDr Callum Rae -  A New Approach to Energy Centre Design
Dr Callum Rae - A New Approach to Energy Centre Design
Hurley Palmer Flatt
 
Update on the Exascale Computing Project (ECP)
Update on the Exascale Computing Project (ECP)Update on the Exascale Computing Project (ECP)
Update on the Exascale Computing Project (ECP)
inside-BigData.com
 

Similar to Thesis+of+bechir+bani.ppt (20)

Icsoc16b.ppt
Icsoc16b.pptIcsoc16b.ppt
Icsoc16b.ppt
 
Icsoc16b.ppt
Icsoc16b.pptIcsoc16b.ppt
Icsoc16b.ppt
 
Energy Efficient Technologies for Virtualized Cloud Data Center: A Systematic...
Energy Efficient Technologies for Virtualized Cloud Data Center: A Systematic...Energy Efficient Technologies for Virtualized Cloud Data Center: A Systematic...
Energy Efficient Technologies for Virtualized Cloud Data Center: A Systematic...
 
A Research Framework for the Clean-Slate Design of Next-Generation Optical Ac...
A Research Framework for the Clean-Slate Design of Next-Generation Optical Ac...A Research Framework for the Clean-Slate Design of Next-Generation Optical Ac...
A Research Framework for the Clean-Slate Design of Next-Generation Optical Ac...
 
Fahroo - Computational Mathematics - Spring Review 2013
Fahroo - Computational Mathematics - Spring Review 2013Fahroo - Computational Mathematics - Spring Review 2013
Fahroo - Computational Mathematics - Spring Review 2013
 
e-Research & the art of linking Astrophysics to Deforestation
e-Research & the art of linking Astrophysics to Deforestatione-Research & the art of linking Astrophysics to Deforestation
e-Research & the art of linking Astrophysics to Deforestation
 
Residual Energy Based Cluster head Selection in WSNs for IoT Application
Residual Energy Based Cluster head Selection in WSNs for IoT ApplicationResidual Energy Based Cluster head Selection in WSNs for IoT Application
Residual Energy Based Cluster head Selection in WSNs for IoT Application
 
Show and Tell - Data and Digitalisation, Digital Twins.pdf
Show and Tell - Data and Digitalisation, Digital Twins.pdfShow and Tell - Data and Digitalisation, Digital Twins.pdf
Show and Tell - Data and Digitalisation, Digital Twins.pdf
 
IRJET- A Statistical Approach Towards Energy Saving in Cloud Computing
IRJET-  	  A Statistical Approach Towards Energy Saving in Cloud ComputingIRJET-  	  A Statistical Approach Towards Energy Saving in Cloud Computing
IRJET- A Statistical Approach Towards Energy Saving in Cloud Computing
 
An Approach to Reduce Energy Consumption in Cloud data centers using Harmony ...
An Approach to Reduce Energy Consumption in Cloud data centers using Harmony ...An Approach to Reduce Energy Consumption in Cloud data centers using Harmony ...
An Approach to Reduce Energy Consumption in Cloud data centers using Harmony ...
 
Preparing for Zero Net Energy Buildings
Preparing for Zero Net Energy BuildingsPreparing for Zero Net Energy Buildings
Preparing for Zero Net Energy Buildings
 
Exascale Computing Project Update
Exascale Computing Project UpdateExascale Computing Project Update
Exascale Computing Project Update
 
Kimberly King Resume [June 2017]
Kimberly King Resume [June 2017]Kimberly King Resume [June 2017]
Kimberly King Resume [June 2017]
 
Pid967241
Pid967241Pid967241
Pid967241
 
Fast and energy-efficient eNVM based memory organisation at L3-L1 layers for ...
Fast and energy-efficient eNVM based memory organisation at L3-L1 layers for ...Fast and energy-efficient eNVM based memory organisation at L3-L1 layers for ...
Fast and energy-efficient eNVM based memory organisation at L3-L1 layers for ...
 
Foothill College Energy Program
Foothill College Energy ProgramFoothill College Energy Program
Foothill College Energy Program
 
Call for Papers- Special Issue: Recent Trends, Innovations and Sustainable So...
Call for Papers- Special Issue: Recent Trends, Innovations and Sustainable So...Call for Papers- Special Issue: Recent Trends, Innovations and Sustainable So...
Call for Papers- Special Issue: Recent Trends, Innovations and Sustainable So...
 
Call for Papers- Special Issue: Recent Trends, Innovations and Sustainable So...
Call for Papers- Special Issue: Recent Trends, Innovations and Sustainable So...Call for Papers- Special Issue: Recent Trends, Innovations and Sustainable So...
Call for Papers- Special Issue: Recent Trends, Innovations and Sustainable So...
 
Dr Callum Rae - A New Approach to Energy Centre Design
Dr Callum Rae -  A New Approach to Energy Centre DesignDr Callum Rae -  A New Approach to Energy Centre Design
Dr Callum Rae - A New Approach to Energy Centre Design
 
Update on the Exascale Computing Project (ECP)
Update on the Exascale Computing Project (ECP)Update on the Exascale Computing Project (ECP)
Update on the Exascale Computing Project (ECP)
 

More from Ptidej Team

From IoT to Software Miniaturisation
From IoT to Software MiniaturisationFrom IoT to Software Miniaturisation
From IoT to Software Miniaturisation
Ptidej Team
 
Presentation
PresentationPresentation
Presentation
Ptidej Team
 
Presentation
PresentationPresentation
Presentation
Ptidej Team
 
Presentation
PresentationPresentation
Presentation
Ptidej Team
 
Presentation by Lionel Briand
Presentation by Lionel BriandPresentation by Lionel Briand
Presentation by Lionel Briand
Ptidej Team
 
Manel Abdellatif
Manel AbdellatifManel Abdellatif
Manel Abdellatif
Ptidej Team
 
Azadeh Kermansaravi
Azadeh KermansaraviAzadeh Kermansaravi
Azadeh Kermansaravi
Ptidej Team
 
Mouna Abidi
Mouna AbidiMouna Abidi
Mouna Abidi
Ptidej Team
 
CSED - Manel Grichi
CSED - Manel GrichiCSED - Manel Grichi
CSED - Manel Grichi
Ptidej Team
 
Cristiano Politowski
Cristiano PolitowskiCristiano Politowski
Cristiano Politowski
Ptidej Team
 
Will io t trigger the next software crisis
Will io t trigger the next software crisisWill io t trigger the next software crisis
Will io t trigger the next software crisis
Ptidej Team
 
MIPA
MIPAMIPA
Thesis+of+laleh+eshkevari.ppt
Thesis+of+laleh+eshkevari.pptThesis+of+laleh+eshkevari.ppt
Thesis+of+laleh+eshkevari.ppt
Ptidej Team
 
Thesis+of+nesrine+abdelkafi.ppt
Thesis+of+nesrine+abdelkafi.pptThesis+of+nesrine+abdelkafi.ppt
Thesis+of+nesrine+abdelkafi.ppt
Ptidej Team
 
Medicine15.ppt
Medicine15.pptMedicine15.ppt
Medicine15.ppt
Ptidej Team
 
Qrs17b.ppt
Qrs17b.pptQrs17b.ppt
Qrs17b.ppt
Ptidej Team
 
Icpc11c.ppt
Icpc11c.pptIcpc11c.ppt
Icpc11c.ppt
Ptidej Team
 
Icsme16.ppt
Icsme16.pptIcsme16.ppt
Icsme16.ppt
Ptidej Team
 
Msr17a.ppt
Msr17a.pptMsr17a.ppt
Msr17a.ppt
Ptidej Team
 
Icsoc15.ppt
Icsoc15.pptIcsoc15.ppt
Icsoc15.ppt
Ptidej Team
 

More from Ptidej Team (20)

From IoT to Software Miniaturisation
From IoT to Software MiniaturisationFrom IoT to Software Miniaturisation
From IoT to Software Miniaturisation
 
Presentation
PresentationPresentation
Presentation
 
Presentation
PresentationPresentation
Presentation
 
Presentation
PresentationPresentation
Presentation
 
Presentation by Lionel Briand
Presentation by Lionel BriandPresentation by Lionel Briand
Presentation by Lionel Briand
 
Manel Abdellatif
Manel AbdellatifManel Abdellatif
Manel Abdellatif
 
Azadeh Kermansaravi
Azadeh KermansaraviAzadeh Kermansaravi
Azadeh Kermansaravi
 
Mouna Abidi
Mouna AbidiMouna Abidi
Mouna Abidi
 
CSED - Manel Grichi
CSED - Manel GrichiCSED - Manel Grichi
CSED - Manel Grichi
 
Cristiano Politowski
Cristiano PolitowskiCristiano Politowski
Cristiano Politowski
 
Will io t trigger the next software crisis
Will io t trigger the next software crisisWill io t trigger the next software crisis
Will io t trigger the next software crisis
 
MIPA
MIPAMIPA
MIPA
 
Thesis+of+laleh+eshkevari.ppt
Thesis+of+laleh+eshkevari.pptThesis+of+laleh+eshkevari.ppt
Thesis+of+laleh+eshkevari.ppt
 
Thesis+of+nesrine+abdelkafi.ppt
Thesis+of+nesrine+abdelkafi.pptThesis+of+nesrine+abdelkafi.ppt
Thesis+of+nesrine+abdelkafi.ppt
 
Medicine15.ppt
Medicine15.pptMedicine15.ppt
Medicine15.ppt
 
Qrs17b.ppt
Qrs17b.pptQrs17b.ppt
Qrs17b.ppt
 
Icpc11c.ppt
Icpc11c.pptIcpc11c.ppt
Icpc11c.ppt
 
Icsme16.ppt
Icsme16.pptIcsme16.ppt
Icsme16.ppt
 
Msr17a.ppt
Msr17a.pptMsr17a.ppt
Msr17a.ppt
 
Icsoc15.ppt
Icsoc15.pptIcsoc15.ppt
Icsoc15.ppt
 

Recently uploaded

Microservice Teams - How the cloud changes the way we work
Microservice Teams - How the cloud changes the way we workMicroservice Teams - How the cloud changes the way we work
Microservice Teams - How the cloud changes the way we work
Sven Peters
 
Odoo ERP Vs. Traditional ERP Systems – A Comparative Analysis
Odoo ERP Vs. Traditional ERP Systems – A Comparative AnalysisOdoo ERP Vs. Traditional ERP Systems – A Comparative Analysis
Odoo ERP Vs. Traditional ERP Systems – A Comparative Analysis
Envertis Software Solutions
 
How to write a program in any programming language
How to write a program in any programming languageHow to write a program in any programming language
How to write a program in any programming language
Rakesh Kumar R
 
Lecture 2 - software testing SE 412.pptx
Lecture 2 - software testing SE 412.pptxLecture 2 - software testing SE 412.pptx
Lecture 2 - software testing SE 412.pptx
TaghreedAltamimi
 
How Can Hiring A Mobile App Development Company Help Your Business Grow?
How Can Hiring A Mobile App Development Company Help Your Business Grow?How Can Hiring A Mobile App Development Company Help Your Business Grow?
How Can Hiring A Mobile App Development Company Help Your Business Grow?
ToXSL Technologies
 
Using Query Store in Azure PostgreSQL to Understand Query Performance
Using Query Store in Azure PostgreSQL to Understand Query PerformanceUsing Query Store in Azure PostgreSQL to Understand Query Performance
Using Query Store in Azure PostgreSQL to Understand Query Performance
Grant Fritchey
 
Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Need for Speed: Removing speed bumps from your Symfony projects ⚡️Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Łukasz Chruściel
 
Energy consumption of Database Management - Florina Jonuzi
Energy consumption of Database Management - Florina JonuziEnergy consumption of Database Management - Florina Jonuzi
Energy consumption of Database Management - Florina Jonuzi
Green Software Development
 
原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样
原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样
原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样
mz5nrf0n
 
Measures in SQL (SIGMOD 2024, Santiago, Chile)
Measures in SQL (SIGMOD 2024, Santiago, Chile)Measures in SQL (SIGMOD 2024, Santiago, Chile)
Measures in SQL (SIGMOD 2024, Santiago, Chile)
Julian Hyde
 
UI5con 2024 - Bring Your Own Design System
UI5con 2024 - Bring Your Own Design SystemUI5con 2024 - Bring Your Own Design System
UI5con 2024 - Bring Your Own Design System
Peter Muessig
 
Fundamentals of Programming and Language Processors
Fundamentals of Programming and Language ProcessorsFundamentals of Programming and Language Processors
Fundamentals of Programming and Language Processors
Rakesh Kumar R
 
GreenCode-A-VSCode-Plugin--Dario-Jurisic
GreenCode-A-VSCode-Plugin--Dario-JurisicGreenCode-A-VSCode-Plugin--Dario-Jurisic
GreenCode-A-VSCode-Plugin--Dario-Jurisic
Green Software Development
 
Atelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissancesAtelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissances
Neo4j
 
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
Łukasz Chruściel
 
Top Benefits of Using Salesforce Healthcare CRM for Patient Management.pdf
Top Benefits of Using Salesforce Healthcare CRM for Patient Management.pdfTop Benefits of Using Salesforce Healthcare CRM for Patient Management.pdf
Top Benefits of Using Salesforce Healthcare CRM for Patient Management.pdf
VALiNTRY360
 
Transform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR SolutionsTransform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR Solutions
TheSMSPoint
 
socradar-q1-2024-aviation-industry-report.pdf
socradar-q1-2024-aviation-industry-report.pdfsocradar-q1-2024-aviation-industry-report.pdf
socradar-q1-2024-aviation-industry-report.pdf
SOCRadar
 
E-commerce Development Services- Hornet Dynamics
E-commerce Development Services- Hornet DynamicsE-commerce Development Services- Hornet Dynamics
E-commerce Development Services- Hornet Dynamics
Hornet Dynamics
 
Webinar On-Demand: Using Flutter for Embedded
Webinar On-Demand: Using Flutter for EmbeddedWebinar On-Demand: Using Flutter for Embedded
Webinar On-Demand: Using Flutter for Embedded
ICS
 

Recently uploaded (20)

Microservice Teams - How the cloud changes the way we work
Microservice Teams - How the cloud changes the way we workMicroservice Teams - How the cloud changes the way we work
Microservice Teams - How the cloud changes the way we work
 
Odoo ERP Vs. Traditional ERP Systems – A Comparative Analysis
Odoo ERP Vs. Traditional ERP Systems – A Comparative AnalysisOdoo ERP Vs. Traditional ERP Systems – A Comparative Analysis
Odoo ERP Vs. Traditional ERP Systems – A Comparative Analysis
 
How to write a program in any programming language
How to write a program in any programming languageHow to write a program in any programming language
How to write a program in any programming language
 
Lecture 2 - software testing SE 412.pptx
Lecture 2 - software testing SE 412.pptxLecture 2 - software testing SE 412.pptx
Lecture 2 - software testing SE 412.pptx
 
How Can Hiring A Mobile App Development Company Help Your Business Grow?
How Can Hiring A Mobile App Development Company Help Your Business Grow?How Can Hiring A Mobile App Development Company Help Your Business Grow?
How Can Hiring A Mobile App Development Company Help Your Business Grow?
 
Using Query Store in Azure PostgreSQL to Understand Query Performance
Using Query Store in Azure PostgreSQL to Understand Query PerformanceUsing Query Store in Azure PostgreSQL to Understand Query Performance
Using Query Store in Azure PostgreSQL to Understand Query Performance
 
Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Need for Speed: Removing speed bumps from your Symfony projects ⚡️Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Need for Speed: Removing speed bumps from your Symfony projects ⚡️
 
Energy consumption of Database Management - Florina Jonuzi
Energy consumption of Database Management - Florina JonuziEnergy consumption of Database Management - Florina Jonuzi
Energy consumption of Database Management - Florina Jonuzi
 
原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样
原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样
原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样
 
Measures in SQL (SIGMOD 2024, Santiago, Chile)
Measures in SQL (SIGMOD 2024, Santiago, Chile)Measures in SQL (SIGMOD 2024, Santiago, Chile)
Measures in SQL (SIGMOD 2024, Santiago, Chile)
 
UI5con 2024 - Bring Your Own Design System
UI5con 2024 - Bring Your Own Design SystemUI5con 2024 - Bring Your Own Design System
UI5con 2024 - Bring Your Own Design System
 
Fundamentals of Programming and Language Processors
Fundamentals of Programming and Language ProcessorsFundamentals of Programming and Language Processors
Fundamentals of Programming and Language Processors
 
GreenCode-A-VSCode-Plugin--Dario-Jurisic
GreenCode-A-VSCode-Plugin--Dario-JurisicGreenCode-A-VSCode-Plugin--Dario-Jurisic
GreenCode-A-VSCode-Plugin--Dario-Jurisic
 
Atelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissancesAtelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissances
 
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
 
Top Benefits of Using Salesforce Healthcare CRM for Patient Management.pdf
Top Benefits of Using Salesforce Healthcare CRM for Patient Management.pdfTop Benefits of Using Salesforce Healthcare CRM for Patient Management.pdf
Top Benefits of Using Salesforce Healthcare CRM for Patient Management.pdf
 
Transform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR SolutionsTransform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR Solutions
 
socradar-q1-2024-aviation-industry-report.pdf
socradar-q1-2024-aviation-industry-report.pdfsocradar-q1-2024-aviation-industry-report.pdf
socradar-q1-2024-aviation-industry-report.pdf
 
E-commerce Development Services- Hornet Dynamics
E-commerce Development Services- Hornet DynamicsE-commerce Development Services- Hornet Dynamics
E-commerce Development Services- Hornet Dynamics
 
Webinar On-Demand: Using Flutter for Embedded
Webinar On-Demand: Using Flutter for EmbeddedWebinar On-Demand: Using Flutter for Embedded
Webinar On-Demand: Using Flutter for Embedded
 

Thesis+of+bechir+bani.ppt

  • 1. Understanding the Impact of Databases on the Energy Efficiency of Cloud Applications Defense for obtaining the master’s degree in applied sciences B´echir Bani ´Ecole Polytechnique de Montr´eal Ptidej Team / SWAT Lab
  • 2. POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion Table of contents 1 Introduction 2 Literature Review 3 Methodology 4 Results 5 Conclusion The Impact of Databases on the Energy Efficiency – B´echir Bani 2/53 – www.polymtl.ca
  • 3. POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion Motivations The Impact of Databases on the Energy Efficiency – B´echir Bani 3/53 – www.polymtl.ca
  • 4. POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion Motivations The Impact of Databases on the Energy Efficiency – B´echir Bani 4/53 – www.polymtl.ca
  • 5. POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion Motivations • Little is still known about the energy footprint of these applications and, in particular, of their databases • Databases are the backbone of cloud-based applications The Impact of Databases on the Energy Efficiency – B´echir Bani 5/53 – www.polymtl.ca
  • 6. POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion Motivations Cloud Application = Databases + Cloud Patterns The Impact of Databases on the Energy Efficiency – B´echir Bani 6/53 – www.polymtl.ca
  • 7. POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion Motivations • None of previous works investigated the combined impact of databases and cloud patterns on the energy consumption of cloud-based applications • The benefits and trade-offs of different databases and combinations of cloud patterns are mostly intuitive and not validated The Impact of Databases on the Energy Efficiency – B´echir Bani 7/53 – www.polymtl.ca
  • 8. POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion Objectives 1 Propose an approach to collect energy measures of cloud-based applications implemented with cloud patterns in conjunction with databases in a cloud environment 2 Evaluate the impact on energy consumption of three cloud patterns: Local Database Proxy, Local Sharding-Based Router, and Priority Message Queue, individually, and also their combination, with three databases: MySQL, PostgreSQL, and MongoDB 3 Highlight the contrast response time with energy efficiency of databases so that developers are aware of the trade-offs between these two quality indicators when selecting a database for their application The Impact of Databases on the Energy Efficiency – B´echir Bani 8/53 – www.polymtl.ca
  • 9. POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion Relevant Literature Review 1 Energy Consumption and Applications Design 2 Performance of Relational and NoSQL Databases 3 Impact of Cloud Patterns on Applications Performance The Impact of Databases on the Energy Efficiency – B´echir Bani 9/53 – www.polymtl.ca
  • 10. POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion Relevant Literature Review 1 Energy Consumption and Applications Design 2 Performance of Relational and NoSQL Databases 3 Impact of Cloud Patterns on Applications Performance The Impact of Databases on the Energy Efficiency – B´echir Bani 9/53 – www.polymtl.ca
  • 11. POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion Energy Consumption and Applications Design 1 How Green Are Cloud Patterns? (Abtahizadeh et al.) • Compared the energy efficiency of three cloud patterns • Showed that cloud patterns can effectively reduce the energy consumption of a cloud application • Only considered MySQL database and a RESTful application 2 Investigating the impacts of web servers on web application energy usage (Manotas et al.) • Investigated the impact of four Web servers on the energy consumption of a Web application • Showed that the energy consumption of a Web application depends on the Web server used to handle requests The Impact of Databases on the Energy Efficiency – B´echir Bani 10/53 – www.polymtl.ca
  • 12. POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion Energy Consumption and Applications Design 1 Initial explorations on design pattern energy usage (Sahin et al.) • Investigated the energy efficiency of design patterns • Showed that design patterns have a significant impact on energy consumption 2 How do code refactorings affect energy usage? (Sahin et al.) • Showed that code refactorings affect the energy consumption of applications The Impact of Databases on the Energy Efficiency – B´echir Bani 11/53 – www.polymtl.ca
  • 13. POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion Relevant Literature Review 1 Energy Consumption and Applications Design 2 Performance of Relational and NoSQL Databases 3 Impact of Cloud Patterns on Applications Performance The Impact of Databases on the Energy Efficiency – B´echir Bani 12/53 – www.polymtl.ca
  • 14. POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion Performance of Relational and NoSQL Databases 1 Comparison of NoSQL and SQL Databases in the Cloud (Hammes et al.) • Highlighted the performance of both PostgreSQL database and MongoDB database • Observed that PostgreSQL databases perform better than MongoDB databases in cloud environments 2 A comprehensive comparison of SQL and MongoDB Databases (Aghi et al.) • Highlighted the performance of MySQL and MongoDB Databases • Showed that MongoDB database performs better than MySQL for complex queries • Showed that MySQL databases perform better than MongoDB databases for small datasets The Impact of Databases on the Energy Efficiency – B´echir Bani 13/53 – www.polymtl.ca
  • 15. POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion Relevant Literature Review 1 Energy Consumption and Applications Design 2 Performance of Relational and NoSQL Databases 3 Impact of Cloud Patterns on Applications Performance The Impact of Databases on the Energy Efficiency – B´echir Bani 14/53 – www.polymtl.ca
  • 16. POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion Impact of Cloud Patterns on Applications Performance 1 An empirical Study of the impact of cloud patterns on Quality of Service (QoS) (Hecht et al.) • Studied the impact of three cloud patterns on QoS • Reported that the implementation of the Local Database Proxy pattern can significantly impact the QoS 2 Scalability patterns for platform-as-a-service (Ardagna et al.) • Evaluated the impact of five scalability patterns on the performance of a Platform as a Service (PaaS) • Showed that each pattern can affect the way virtual machine resources are added and removed The Impact of Databases on the Energy Efficiency – B´echir Bani 15/53 – www.polymtl.ca
  • 17. POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion Methodology 1 Research Questions and Hypothesis 2 Objects and Design 3 Research variables • Independent Variables • Dependent Variables 4 Data Extraction Process 5 Analysis Method The Impact of Databases on the Energy Efficiency – B´echir Bani 16/53 – www.polymtl.ca
  • 18. POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion Methodology 1 Research Questions and Hypothesis 2 Objects and Design 3 Research variables • Independent Variables • Dependent Variables 4 Data Extraction Process 5 Analysis Method The Impact of Databases on the Energy Efficiency – B´echir Bani 16/53 – www.polymtl.ca
  • 19. POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion Research Questions and Hypothesis RQ1: Does the choice of MySQL, PostgreSQL, and MongoDB databases affect the energy consumption of cloud applications (when no cloud patterns are implemented)? • H1 0yz: There is no difference between the average amount of energy consumed by applications implementing databases Dy and Dz (without any cloud pattern) • H2 0yz: There is no difference between the average response time of databases Dy and Dz (without any cloud pattern) The Impact of Databases on the Energy Efficiency – B´echir Bani 17/53 – www.polymtl.ca
  • 20. POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion Research Questions and Hypothesis RQ2: Does the implementation of Local Database Proxy, Local Sharding Based Router, and Priority Message Queue patterns affect the energy consumption of cloud applications using MySQL, PostgreSQL, and MongoDB Databases? • H1 xyz: There is no difference between the average amount of energy consumed by applications implementing databases Dy and Dz in conjunction with patterns Px • H2 xyz: There is no difference between the average response time of databases Dy and Dz by applying the design Px The Impact of Databases on the Energy Efficiency – B´echir Bani 18/53 – www.polymtl.ca
  • 21. POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion Research Questions and Hypothesis RQ3: Do the interactions between Local Database Proxy, Local Sharding Based Router, and Priority Message Queue patterns affect the energy consumption of cloud applications using MySQL, PostgreSQL, and MongoDB databases? • H1 xyz7: There is no difference between the average amount of energy consumed by applications implementing databases Dy and Dz in conjunction with the combination of patterns Px and P7 • H2 xyz7: There is no difference between the average response time of databases Dy and Dz by applying the combination of designs Px and P7 The Impact of Databases on the Energy Efficiency – B´echir Bani 19/53 – www.polymtl.ca
  • 22. POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion Methodology 1 Research Questions and Hypothesis 2 Objects and Design 3 Research variables • Independent Variables • Dependent Variables 4 Data Extraction Process 5 Analysis Method The Impact of Databases on the Energy Efficiency – B´echir Bani 20/53 – www.polymtl.ca
  • 23. POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion Objects and Design RESTful multi-threaded application • Communicates through REST calls • Use Sakila sample database (provided by MySQL) • Adapt the schema of Sakila sample database to PostgreSQL and MongoDB databases • Implemented with different patterns and strategies • Clients are simulated using a multi-threaded architecture (100; 250; 500; 1,000; 1,500) The Impact of Databases on the Energy Efficiency – B´echir Bani 21/53 – www.polymtl.ca
  • 24. POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion Objects and Design DVD Store application • Standard cloud-based application • Open source simulation of an e-commerce web site • We refactor the code of DVD Store to allow it to connect to a MongoDB database • Clients are simulated using a multi-threaded architecture (100, 250; 500; 1,000; 1,500) The Impact of Databases on the Energy Efficiency – B´echir Bani 22/53 – www.polymtl.ca
  • 25. POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion Objects and Design JPetStore application • Standard cloud-based application • Open source simulation of an e-commerce web application • We refactor the code of JPetStore to allow it to connect to a PostgreSQL and MongoDB databases • Clients are simulated using a multi-threaded architecture (100; 250; 500; 1,000; 1,500) The Impact of Databases on the Energy Efficiency – B´echir Bani 23/53 – www.polymtl.ca
  • 26. POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion Objects and Design Power-API • Provides power information (in watts converted to joules to measure the energy) per PID for each system component (CPU, memory, etc.) • Uses sensors and analytical models for its energy estimation • Allows to estimate the amount of power required by the CPU to execute a process (at the corresponding PID) • Does not introduce noise in its measurements The Impact of Databases on the Energy Efficiency – B´echir Bani 24/53 – www.polymtl.ca
  • 27. POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion Methodology 1 Research Questions and Hypothesis 2 Objects and Design 3 Research variables • Independent Variables • Dependent Variables 4 Data Extraction Process 5 Analysis Method The Impact of Databases on the Energy Efficiency – B´echir Bani 25/53 – www.polymtl.ca
  • 28. POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion Research Variables 1 Independent Variables • Databases: MySQL, PostgreSQL, MongoDB • Cloud Patterns: Local Database Proxy, Local Sharding-Based Router, Priority Message Queue 2 Dependent Variables • Response Time: Corresponding to Select and Insert requests (milliseconds) • Energy Consumption: Using Power-API profiler (Joules) The Impact of Databases on the Energy Efficiency – B´echir Bani 26/53 – www.polymtl.ca
  • 29. POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion Methodology 1 Research Questions and Hypothesis 2 Objects 3 Design 4 Research variables • Independent Variables • Dependent Variables 5 Data Extraction Process 6 Analysis Method The Impact of Databases on the Energy Efficiency – B´echir Bani 27/53 – www.polymtl.ca
  • 30. POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion Data Extraction Process Energy Consumption Data Extraction Process The Impact of Databases on the Energy Efficiency – B´echir Bani 28/53 – www.polymtl.ca
  • 31. POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion Data Extraction Process Energy Data Collection Procedure 1: CollectData(VMs, CloudApp, Profiler) 2: Begin 3: StartCloudApp() 4: ExecuteCloudApp(x) // Seconds 5: for all VM ∈ VMs do 6: StartProfiler() 7: ExecuteProfiler(x) // Seconds 8: FinishExecProfiler() 9: end for 10: FinishExecCloudApp() 11: End The Impact of Databases on the Energy Efficiency – B´echir Bani 29/53 – www.polymtl.ca
  • 32. POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion Methodology 1 Research Questions and Hypothesis 2 Objects 3 Design 4 Research variables • Independent Variables • Dependent Variables 5 Data Extraction Process 6 Analysis Method The Impact of Databases on the Energy Efficiency – B´echir Bani 30/53 – www.polymtl.ca
  • 33. POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion Analysis Method • Mann-Whitney U test • A non-parametric statistical test whose relevance is reflected in the assessment of two independent distributions • The null hypothesis is rejected (there is a significant difference between the the two distributions) when its p-value < 0.05 • Cliff’s δ effect size • Represents the degree of interlock between two sample distributions • Its value ranges from -1 to +1: negligeable (δ < 0.147), small (0.147< δ <0.33), medium (0.33< δ <0.474) and large (δ > 0.474) The Impact of Databases on the Energy Efficiency – B´echir Bani 31/53 – www.polymtl.ca
  • 34. POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion RQ1: Does the choice of MySQL, PostgreSQL, and MongoDB databases affect the energy consumption of cloud applications (when no cloud patterns are implemented)? The Impact of Databases on the Energy Efficiency – B´echir Bani 32/53 – www.polymtl.ca
  • 35. POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion Without Cloud Patterns 100 250 500 1000 1500 0 500 1,000 1,500 2,000 Number of Clients CPU+MemoryEnergyConsumption(J) MySQL PostgreSQL MongoDB (a) RESTful (Energy) 100 250 500 1000 1500 0 500 1,000 1,500 2,000 Number of Clients CPU+MemoryEnergyConsumption(J) MySQL PostgreSQL MongoDB (b) DVDStore (Energy) 100 250 500 1000 1500 0 500 1,000 1,500 2,000 Number of Clients CPU+MemoryEnergyConsumption(J) MySQL PostgreSQL MongoDB (c) JPetStore (Energy) 100 250 500 1000 1500 0 2 4 6 8 ·104 Number of Clients AverageResponseTime(ms) MySQL PostgreSQL MongoDB (d) RESTful (Time) 100 250 500 1000 1500 0 2 4 6 8 ·104 Number of Clients AverageResponseTime(ms) MySQL PostgreSQL MongoDB (e) DVDStore (Time) 100 250 500 1000 1500 0 2 4 6 8 ·104 Number of ClientsAverageResponseTime(ms) MySQL PostgreSQL MongoDB (f) JPetStore (Time) The Impact of Databases on the Energy Efficiency – B´echir Bani 33/53 – www.polymtl.ca
  • 36. POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion Without Cloud Patterns Energy Consumption p-value and Cliff’s δ Pattern MySQL PostgreSQL p-value Cliff’s δ MySQL MongoDB p-value Cliff’s δ PostgreSQL MongoDB p-value Cliff’s δ P0 262.5 568.2 0.01 medium 262.5 354.7 0.24 small 568.2 354.7 0.09 small Response Time p-value and Cliff’s δ Pattern MySQL PostgreSQL p-value Cliff’s δ MySQL MongoDB p-value Cliff’s δ PostgreSQL MongoDB p-value Cliff’s δ P0 36018.6 28615.7 0.09 small 36018.6 4253.8 < 10e−6 large 28615.7 4253.8 < 10e−6 large The Impact of Databases on the Energy Efficiency – B´echir Bani 34/53 – www.polymtl.ca
  • 37. POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion RQ2: Does the implementation of Local Database Proxy, Local Sharding Based Router, and Priority Message Queue patterns affect the energy consumption of cloud applications using MySQL, PostgreSQL, and MongoDB Databases? The Impact of Databases on the Energy Efficiency – B´echir Bani 35/53 – www.polymtl.ca
  • 38. POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion Local Database Proxy Pattern Energy Consumption p-value and Cliff’s δ Pattern MySQL PostgreSQL p-value Cliff’s δ MySQL MongoDB p-value Cliff’s δ PostgreSQL MongoDB p-value Cliff’s δ P1 490.2 1391.1 < 10e−6 large 490.2 890.0 < 10e−6 large 1391.1 890.0 0.09 small P2 495.2 1529.9 < 10e−6 large 495.2 915.9 < 10e−6 large 1529.9 915.9 0.04 medium P3 495.0 1476.5 < 10e−6 large 495.0 904.5 < 10e−6 large 1476.5 904.5 0.04 medium Response Time p-value and Cliff’s δ Pattern MySQL PostgreSQL p-value Cliff’s δ MySQL MongoDB p-value Cliff’s δ PostgreSQL MongoDB p-value Cliff’s δ P1 30430.0 27867.8 0.23 small 30430.0 3639.8 < 10e−6 large 27867.8 3639.8 < 10e−6 large P2 29504.1 27036.5 0.23 small 29504.1 3214.2 < 10e−6 large 27036.5 3214.2 < 10e−6 large P3 29825.2 26129.6 0.23 small 29825.2 3275.0 < 10e−6 large 26129.6 3275.0 < 10e−6 large The Impact of Databases on the Energy Efficiency – B´echir Bani 36/53 – www.polymtl.ca
  • 39. POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion Local Sharding-Based Router Energy Consumption p-value and Cliff’s δ Pattern MySQL PostgreSQL p-value Cliff’s δ MySQL MongoDB p-value Cliff’s δ PostgreSQL MongoDB p-value Cliff’s δ P4 1331.9 6330.2 < 10e−6 large 1331.9 5826.4 < 10e−6 large 6330.2 5826.4 0.23 small P5 611.6 4245.1 < 10e−6 large 611.6 3821.8 < 10e−6 large 4245.1 3821.8 0.23 small P6 824.1 4929.4 < 10e−6 large 824.1 4194.4 < 10e−6 large 4929.4 4194.4 0.23 small Response Time p-value and Cliff’s δ Pattern MySQL PostgreSQL p-value Cliff’s δ MySQL MongoDB p-value Cliff’s δ PostgreSQL MongoDB p-value Cliff’s δ P4 170693.1 138026.6 0.09 small 170693.1 26259.5 < 10e−6 large 138026.6 26259.5 < 10e−6 large P5 165250.7 145382.6 0.09 small 165250.7 27897.8 < 10e−6 large 145382.6 27897.8 < 10e−6 large P6 168786.5 130585.0 0.09 small 168786.5 24680.3 < 10e−6 large 130585.0 24680.3 < 10e−6 large The Impact of Databases on the Energy Efficiency – B´echir Bani 37/53 – www.polymtl.ca
  • 40. POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion RQ3: Do the interactions between Local Database Proxy, Local Sharding Based Router, and Priority Message Queue patterns affect the energy consumption of cloud applications using MySQL, PostgreSQL, and MongoDB databases? The Impact of Databases on the Energy Efficiency – B´echir Bani 38/53 – www.polymtl.ca
  • 41. POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion Combination Proxy Pattern and Message Queue Pattern Energy Consumption p-value and Cliff’s δ Pattern MySQL PostgreSQL p-value Cliff’s δ MySQL MongoDB p-value Cliff’s δ PostgreSQL MongoDB p-value Cliff’s δ P1+P7 442.7 1379.8 < 10e−6 large 442.7 814.3 < 10e−6 large 1379.8 814.3 0.03 medium P2+P7 468.8 1482.5 < 10e−6 large 468.8 891.9 < 10e−6 large 1482.5 891.9 0.03 medium P3+P7 490.2 1391.1 < 10e−6 large 490.2 890.0 < 10e−6 large 1391.1 890.0 0.09 small Response Time p-value and Cliff’s δ Pattern MySQL PostgreSQL p-value Cliff’s δ MySQL MongoDB p-value Cliff’s δ PostgreSQL MongoDB p-value Cliff’s δ P1+P7 27826.2 22299.8 0.48 negligible 27826.2 3747.1 < 10e−6 large 22299.8 3747.1 < 10e−6 large P2+P7 26703.4 25706.8 0.48 negligible 26703.4 3127.5 < 10e−6 large 25706.8 3127.5 < 10e−6 large P3+P7 29339.7 23153.6 0.23 small 29339.7 4210.2 < 10e−6 large 23153.6 4210.2 < 10e−6 large The Impact of Databases on the Energy Efficiency – B´echir Bani 39/53 – www.polymtl.ca
  • 42. POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion Combination Sharding and Message Queue Patterns Energy Consumption p-value and Cliff’s δ Pattern MySQL PostgreSQL p-value Cliff’s δ MySQL MongoDB p-value Cliff’s δ PostgreSQL MongoDB p-value Cliff’s δ P4+P7 1255.5 5777.4 < 10e−6 large 1255.5 5622.9 < 10e−6 large 5777.4 5622.9 0.82 negligible P5+P7 492.2 3884.5 < 10e−6 large 492.2 3386.6 < 10e−6 large 3884.5 3386.6 0.23 small P6+P7 775.9 4526.8 < 10e−6 large 775.9 4127.4 < 10e−6 large 4526.8 4127.4 0.23 small Response Time p-value and Cliff’s δ Pattern MySQL PostgreSQL p-value Cliff’s δ MySQL MongoDB p-value Cliff’s δ PostgreSQL MongoDB p-value Cliff’s δ P4+P7 37584.7 29287.7 0.23 small 37584.7 2716.3 < 10e−6 large 29287.7 2716.3 < 10e−6 large P5+P7 38153.7 26445.6 0.09 small 38153.7 2869.7 < 10e−6 large 26445.6 2869.7 < 10e−6 large P6+P7 34183.0 27507.3 0.23 small 34183.0 20609.3 0.03 medium 27507.3 20609.3 0.09 small The Impact of Databases on the Energy Efficiency – B´echir Bani 40/53 – www.polymtl.ca
  • 43. POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion Important Results • MySQL database is the least energy consuming but is the slowest among the three databases • PostgreSQL database is the most energy consuming among the three databases, but is faster than MySQL but slower than MongoDB • MongoDB database consumes more energy than MySQL but less than PostgreSQL and is the fastest among the three databases The Impact of Databases on the Energy Efficiency – B´echir Bani 41/53 – www.polymtl.ca
  • 44. POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion Discussions • PostgreSQL database generates multiple parallel processes to run the requests sent by the RESTful cloud-based application • MySQL and MongoDB generate only one process at a time to handle requests sent by the cloud-based application The Impact of Databases on the Energy Efficiency – B´echir Bani 42/53 – www.polymtl.ca
  • 45. POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion Discussions • MySQL and PostgreSQL follow the ACID model • MongoDB database follow the BASE model ⇒ MongoDB is faster than the other two relational databases ⇒ requests processed by relational databases must be executed one by one and cannot be executed in a Simultaneous way The Impact of Databases on the Energy Efficiency – B´echir Bani 43/53 – www.polymtl.ca
  • 46. POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion Summary • We carried on a series of experiments on different versions of three cloud applications • We contrasted the performance of various combinations of databases and cloud patterns in terms of energy consumption and response time of the cloud-based applications • Databases can reduce the energy consumption of cloud-based applications • Cloud patterns do not impact the behavior of the databases The Impact of Databases on the Energy Efficiency – B´echir Bani 44/53 – www.polymtl.ca
  • 47. POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion Limitations of the proposed approach • Energy measurements are subject to perturbations depending of hardware and network • More studies should be conducted with possibly more accurate tools to verify our findings • Our findings may still be specific to our studied applications, which were designed specifically for the experiments: future works should replicate this study on other cloud-based applications The Impact of Databases on the Energy Efficiency – B´echir Bani 45/53 – www.polymtl.ca
  • 48. POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion Future work • Expand our study to different NoSQL databases like HBase, Cassandra and HANA • Investigate the energy impact of data modeling strategies like denormalization and data duplication • Examine how a match/mismatch between the selected database and the workload characteristic affects energy efficiency The Impact of Databases on the Energy Efficiency – B´echir Bani 46/53 – www.polymtl.ca
  • 49. POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion Publication Earlier study in the thesis is published as follows: • A Study of the Energy Consumption of Databases and Cloud Patterns B´echir Bani, Foutse Khomh and Yann-Ga¨el Gu´eh´eneuc, in Proceedings of the 14th International Conference On Service Oriented Computing (ICSOC), Banff, Alberta, Canada, 10-13 October, 2016. My contribution: Methodology, analysis and paper writing. The Impact of Databases on the Energy Efficiency – B´echir Bani 47/53 – www.polymtl.ca
  • 50. POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion • We carried on a series of experiments on different versions of three cloud applications • We contrasted the performance of various combinations of databases and cloud patterns in terms of energy consumption and response time of the cloud-based applications • Databases can reduce the energy consumption of cloud-based applications • Cloud patterns do not impact the behavior of the databases The Impact of Databases on the Energy Efficiency – B´echir Bani 48/53 – www.polymtl.ca
  • 51. POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion The Impact of Databases on the Energy Efficiency – B´echir Bani 49/53 – www.polymtl.ca
  • 52. POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion Local Database Proxy Pattern 100 250 500 1000 1500 0 1,000 2,000 3,000 Number of Clients CPU+MemoryEnergyConsumption(J) MySQL PostgreSQL MongoDB (a) Random (Energy) 100 250 500 1000 1500 0 1,000 2,000 3,000 Number of ClientsCPU+MemoryEnergyConsumption(J) MySQL PostgreSQL MongoDB (b) R-R (Energy) 100 250 500 1000 1500 0 1,000 2,000 3,000 Number of Clients CPU+MemoryEnergyConsumption(J) MySQL PostgreSQL MongoDB (c) Custom (Energy) 100 250 500 1000 1500 0 2 4 6 8 ·104 Number of Clients AverageResponseTime(ms) MySQL PostgreSQL MongoDB (d) Random (Time) 100 250 500 1000 1500 0 2 4 6 8 ·104 Number of Clients AverageResponseTime(ms) MySQL PostgreSQL MongoDB (e) R-R (Time) 100 250 500 1000 1500 0 2 4 6 8 ·104 Number of Clients AverageResponseTime(ms) MySQL PostgreSQL MongoDB (f) Custom (Time) The Impact of Databases on the Energy Efficiency – B´echir Bani 50/53 – www.polymtl.ca
  • 53. POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion Local Sharding-Based Router Pattern 100 250 500 1000 1500 0 0.5 1 1.5 ·104 Number of Clients CPU+MemoryEnergyConsumption(J) MySQL PostgreSQL MongoDB (a) Modulo (Energy) 100 250 500 1000 1500 0 0.5 1 1.5 ·104 Number of ClientsCPU+MemoryEnergyConsumption(J) MySQL PostgreSQL MongoDB (b) LookUp (Energy) 100 250 500 1000 1500 0 0.5 1 1.5 ·104 Number of Clients CPU+MemoryEnergyConsumption(J) MySQL PostgreSQL MongoDB (c) Consistent (Energy) 100 250 500 1000 1500 0 1 2 3 ·105 Number of Clients AverageResponseTime(ms) MySQL PostgreSQL MongoDB (d) Modulo (Time) 100 250 500 1000 1500 0 1 2 3 ·105 Number of Clients AverageResponseTime(ms) MySQL PostgreSQL MongoDB (e) LookUp (Time) 100 250 500 1000 1500 0 1 2 3 ·105 Number of Clients AverageResponseTime(ms) MySQL PostgreSQL MongoDB (f) Consistent (Time) The Impact of Databases on the Energy Efficiency – B´echir Bani 51/53 – www.polymtl.ca
  • 54. POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion Combination Proxy Pattern and Message Queue Pattern 100 250 500 1000 1500 0 1,000 2,000 3,000 Number of Clients CPU+MemoryEnergyConsumption(J) MySQL PostgreSQL MongoDB (a) Random* (Energy) 100 250 500 1000 1500 0 1,000 2,000 3,000 Number of ClientsCPU+MemoryEnergyConsumption(J) MySQL PostgreSQL MongoDB (b) R-R* (Energy) 100 250 500 1000 1500 0 1,000 2,000 3,000 Number of Clients CPU+MemoryEnergyConsumption(J) MySQL PostgreSQL MongoDB (c) Custom* (Energy) 100 250 500 1000 1500 0 2 4 6 8 ·104 Number of Clients AverageResponseTime(ms) MySQL PostgreSQL MongoDB (d) Random* (Time) 100 250 500 1000 1500 0 2 4 6 8 ·104 Number of Clients AverageResponseTime(ms) MySQL PostgreSQL MongoDB (e) R-R* (Time) 100 250 500 1000 1500 0 2 4 6 8 ·104 Number of Clients AverageResponseTime(ms) MySQL PostgreSQL MongoDB (f) Custom* (Time) The Impact of Databases on the Energy Efficiency – B´echir Bani 52/53 – www.polymtl.ca
  • 55. POLYTECHNIQUE MONTR´EAL Introduction Literature Review Methodology Results Conclusion Combination Sharding and Message Queue Patterns 100 250 500 1000 1500 0 0.5 1 1.5 ·104 Number of Clients CPU+MemoryEnergyConsumption(J) MySQL PostgreSQL MongoDB (a) Modulo* (Energy) 100 250 500 1000 1500 0 0.5 1 1.5 ·104 Number of ClientsCPU+MemoryEnergyConsumption(J) MySQL PostgreSQL MongoDB (b) LookUp* (Energy) 100 250 500 1000 1500 0 0.5 1 1.5 ·104 Number of Clients CPU+MemoryEnergyConsumption(J) MySQL PostgreSQL MongoDB (c) Consistent*(Energy) 100 250 500 1000 1500 0 0.2 0.4 0.6 0.8 1 ·105 Number of Clients AverageResponseTime(ms) MySQL PostgreSQL MongoDB (d) Modulo* (Time) 100 250 500 1000 1500 0 0.2 0.4 0.6 0.8 1 ·105 Number of Clients AverageResponseTime(ms) MySQL PostgreSQL MongoDB (e) LookUp* (Time) 100 250 500 1000 1500 0 0.2 0.4 0.6 0.8 1 ·105 Number of Clients AverageResponseTime(ms) MySQL PostgreSQL MongoDB (f) Consistent*(Time) The Impact of Databases on the Energy Efficiency – B´echir Bani 53/53 – www.polymtl.ca