SlideShare ist ein Scribd-Unternehmen logo
1 von 31
AIMS, Luxembourg, Luxembourg, June 6, 2012




      Cooperative Database Caching within
             Cloud Environments
          Andrei Vancea1, Guilherme Sperb Machado1, Laurent d’Orazio2,
                                   Burkhard Stiller1
        1
          Department of Informatics IFI, Communication Systems Group CSG,
                         University of Zürich UZH, Switzerland
                     2
                       Blaise Pascal University - LIMOS, France
                  vancea,stiller@ifi.uzh.ch, laurent.dorazio@isima.fr




© 2012 UZH,
Background
    Databases
      – Client: asks a query (SQL)
      – Server: returns the result (tuples)
    Client-side caching
      – Page Caching, Tuple Caching
      – Semantic Caching
              • Clients store the results of old queries
              • Old results used for answering new queries




© 2012 UZH,
Background - Semantic Caching
                                                       Query
    Semantic Regions
       – Query description
       – Result set
    Query rewriting           Queries             QUERY
       – Probe               descriptions        REWRITING
       – Remainder


                                             Probe         Remainder


                                            Semantic           Server
                                              cache

© 2012 UZH,
Database Caching & Cloud Computing

    Most cloud providers charge data transfer between
     cloud environment and “outside world” in a pay-as-you-
     go matter
    Database caching within cloud environment
       – Improves performance
       – Economic benefits
              • Amount of data transferred decreases
                  Payments for data transferred reduced




© 2012 UZH,
Approach




© 2012 UZH,
Cooperative Semantic Caching
     Share local semantic
     caches between clients
     Use cache entries of
     other clients
    Performance
     improvements




© 2012 UZH,
Cooperative Semantic Caching



                                  select * : select * fromresult age > 7 and age7 10
                                       Q3 from persons where where age > <=
                                                           persons



                      select * from R1
                      result




                                         Q1 : select * fromresult where age > 10
                                                            persons




              R1 : age > 10

© 2012 UZH,
Potential Use Cases
    GIS (Geographic Information System) storage
      – Large amount of data (e.g. seismic events)
      – Processing done on client side
      – Two-dimensional range selections (area)
    NetFlow-based architectures
      – Routers collect flow records and store them in databases
      – Analyzers (intrusion detection, accounting,… ) access them
      – Range selections (Start Time, IP)




© 2012 UZH,
Query Rewriting
                                        Query
 Query rewriting
  – Probe
  – Remote probes
  – Remainder   All queries           QUERY
                 descriptions       REWRITING
                                          ...
                                   Remote       Remote
                          Probe     probe        probe     Remainder



                          Local     Remote       Remote     Server
                        Semantic   Semantic     Semantic
                          cache      cache        cache

© 2012 UZH,
System Design




© 2012 UZH,
CoopSC
   Cooperative Semantic Caching
    Coop
    Query types
    – Selection (n-Dimensional range predicates)
    – select id, name, age from persons where 20 < age and
      age < 30
    Cache organization
    – Semantic regions
    – Distributed Index – built on top of a P2P overlay




© 2012 UZH,
CoopSC - Query Rewriting
    Local Rewriting                                           Query

       – Probe
                                                                                           Local Cache
       – Local Remainder                                   Local Rewriting

              • Portion of the query which is
                                                                                   Local
                not available in the local cache                                 Remainder

    Distributed Rewriting                                                                           Distributed
                                                                       Distributed Rewriting           Index
       – Remote Probes
       – Remainder
                                                                        …

                                                   Probe       Remote         Remote     Remainder
                                                                Probe          Probe




© 2012 UZH,
Distributed Index
                  Built on top of P2P overlay
                  Regions and queries represented as
                   rectangular shapes
                  MX-CIF Quad Tree
                   – Efficiently find intersection between
                     rectangular shapes
                  Each region is indexed in the smallest
                   quad which totally contains it
                  Easy to adapt to n-Dimensional
                   regions/queries

© 2012 UZH,
Update Handling
    Issues
       – Invalidation of old entries
       – Combining different snapshots can generate inconsistencies
    Quad space division (specified update level)
    Virtual timestamps stored in database
    Each modification increments the virtual timestamp of
     corresponding quad
    Regions store virtual timestamps of quads that they
     intersect


© 2012 UZH,
Cloud Computing Scenarios




© 2012 UZH,
Cloud Scenario A

                         Database server running
                          outside the cloud
                         Clients located inside in
                          the cloud
                         Non-operational use cases
                          – Example: cloud environment
                            used for running scientific
                            experiments




© 2012 UZH,
Cloud Scenario B

                         Database server running
                          inside the cloud
                         Clients located inside in
                          the cloud
                         Operational use cases
                          – Example: corporation
                            using cloud environment
                            as an alternative to
                            building a datacenter


© 2012 UZH,
Evaluation




© 2012 UZH,
Experiment Design
    Measurements
       – Response time
       – Amount of data transferred
       – Payments for data transfer
    Experiments
       – Cache size
       – Update level
    Testing sessions
       – 5 select testing sessions (50 queries each)
       – Update sessions interleaved


© 2012 UZH,
Evaluation
    Wisconsin benchmark dataset (10.000.000 tuples)
    Scenario A
       – Database Server: Zurich testbed
       – 5 Client: Rackspace
    Scenario B
       – Database server
              • Amazon EC2
       – 5 Clients: EmanicsLab
    Queries
       – About 10.000 tuples
       – Semantic locality

© 2012 UZH,
Scenario A




© 2012 UZH,
Data transferred/Payments

                                 CoopSC
                                  significantly reduces
                                  the number of
                                  tuples sent by
                                  database server
                                 Amount of money
                                  also reduced




© 2012 UZH,
Response Time

                           Rackspace
                            behaves unstable
                           No performance
                            improvements
                            noticed




© 2012 UZH,
Scenario B




© 2012 UZH,
Data transferred/Payments

                                 CoopSC
                                  significantly reduces
                                  the number of
                                  tuples sent by
                                  database server
                                 Bandwidth
                                  payments also
                                  reduced



© 2012 UZH,
Response Time

                           CoopSC improves
                            response time




© 2012 UZH,
Data transferred/Payments (Updates)
                               Good behavior for
                                low update rate
                               Economic and
                                performance
                                benefits




© 2012 UZH,
Response Times (Updates)
                                 Response
                                  increases with the
                                  grow of update
                                  rate




© 2012 UZH,
Summary & Conclusion
    Summary
       – Cooperative caching approach used for reducing the load of
         the database server
       – Update statements supported
       – CoopSC applied in the context of cloud environments
    CoopSC reduces the amount of data transferred
     between cloud and outside world which has economic
     benefits
    Performance benefits as long as cloud providers are
     stable

© 2012 UZH,
Questions?




© 2012 UZH,
Update Handling - Algorithm
 procedure Execute(query)
    quads = query.getIntersecteQuad(updateLevel);

     before = database.getTimestamps(quads);

     plan = rewrite(query, before);
     result = plan.execute();

     after = database.getTimestamps(quads);

     if (before == after)
           return result;
     else
           result database.execute(query);


© 2012 UZH,

Weitere ähnliche Inhalte

Andere mochten auch

Burkhard stiller cloiuds-fu-nems-2012
Burkhard stiller cloiuds-fu-nems-2012Burkhard stiller cloiuds-fu-nems-2012
Burkhard stiller cloiuds-fu-nems-2012
ictseserv
 
Fia aalborg-statement-iopapafi-v0.5
Fia aalborg-statement-iopapafi-v0.5Fia aalborg-statement-iopapafi-v0.5
Fia aalborg-statement-iopapafi-v0.5
ictseserv
 
Business models for dynamic optical infrastructures
Business models for dynamic optical infrastructures Business models for dynamic optical infrastructures
Business models for dynamic optical infrastructures
ictseserv
 
A SESERV methodology for tussle analysis in Future Internet technologies - In...
A SESERV methodology for tussle analysis in Future Internet technologies - In...A SESERV methodology for tussle analysis in Future Internet technologies - In...
A SESERV methodology for tussle analysis in Future Internet technologies - In...
ictseserv
 
Seserv concertation-01
Seserv concertation-01Seserv concertation-01
Seserv concertation-01
ictseserv
 
Update on Recent SESERV Results and Upcoming Events
Update on Recent SESERV Results and Upcoming EventsUpdate on Recent SESERV Results and Upcoming Events
Update on Recent SESERV Results and Upcoming Events
ictseserv
 

Andere mochten auch (14)

Aims2012
Aims2012Aims2012
Aims2012
 
Eunice2012
Eunice2012Eunice2012
Eunice2012
 
2:a generationens sociala medier
2:a generationens sociala medier2:a generationens sociala medier
2:a generationens sociala medier
 
Burkhard stiller cloiuds-fu-nems-2012
Burkhard stiller cloiuds-fu-nems-2012Burkhard stiller cloiuds-fu-nems-2012
Burkhard stiller cloiuds-fu-nems-2012
 
BPM in crisis
BPM in crisisBPM in crisis
BPM in crisis
 
Fia aalborg-statement-iopapafi-v0.5
Fia aalborg-statement-iopapafi-v0.5Fia aalborg-statement-iopapafi-v0.5
Fia aalborg-statement-iopapafi-v0.5
 
Mturi licentiate presentation
Mturi licentiate presentationMturi licentiate presentation
Mturi licentiate presentation
 
How Disruptive Technologies Influence the FI Ecosystem
How Disruptive Technologies Influence the FI EcosystemHow Disruptive Technologies Influence the FI Ecosystem
How Disruptive Technologies Influence the FI Ecosystem
 
Collective and participative experiences in real-world and online communities
Collective and participative experiences in real-world and online communitiesCollective and participative experiences in real-world and online communities
Collective and participative experiences in real-world and online communities
 
Business models for dynamic optical infrastructures
Business models for dynamic optical infrastructures Business models for dynamic optical infrastructures
Business models for dynamic optical infrastructures
 
Socioeconomic Tussles Analysis of the ETICS Approach for Providing QoS-enable...
Socioeconomic Tussles Analysis of the ETICS Approach for Providing QoS-enable...Socioeconomic Tussles Analysis of the ETICS Approach for Providing QoS-enable...
Socioeconomic Tussles Analysis of the ETICS Approach for Providing QoS-enable...
 
A SESERV methodology for tussle analysis in Future Internet technologies - In...
A SESERV methodology for tussle analysis in Future Internet technologies - In...A SESERV methodology for tussle analysis in Future Internet technologies - In...
A SESERV methodology for tussle analysis in Future Internet technologies - In...
 
Seserv concertation-01
Seserv concertation-01Seserv concertation-01
Seserv concertation-01
 
Update on Recent SESERV Results and Upcoming Events
Update on Recent SESERV Results and Upcoming EventsUpdate on Recent SESERV Results and Upcoming Events
Update on Recent SESERV Results and Upcoming Events
 

Ähnlich wie Cooperative Database Caching within Cloud Environments

Model-Driven Cloud Data Storage
Model-Driven Cloud Data StorageModel-Driven Cloud Data Storage
Model-Driven Cloud Data Storage
jccastrejon
 
Hadoop in the Clouds, Virtualization and Virtual Machines
Hadoop in the Clouds, Virtualization and Virtual MachinesHadoop in the Clouds, Virtualization and Virtual Machines
Hadoop in the Clouds, Virtualization and Virtual Machines
DataWorks Summit
 
Danile lee -open stackblocklevelstorage
Danile lee -open stackblocklevelstorageDanile lee -open stackblocklevelstorage
Danile lee -open stackblocklevelstorage
OpenCity Community
 
Standardizing the Data Distribution Service (DDS) API for Modern C++
Standardizing the Data Distribution Service (DDS) API for Modern C++Standardizing the Data Distribution Service (DDS) API for Modern C++
Standardizing the Data Distribution Service (DDS) API for Modern C++
Sumant Tambe
 

Ähnlich wie Cooperative Database Caching within Cloud Environments (20)

Model-Driven Cloud Data Storage
Model-Driven Cloud Data StorageModel-Driven Cloud Data Storage
Model-Driven Cloud Data Storage
 
Fusion-io Memory Flash for Microsoft SQL Server 2012
Fusion-io Memory Flash for Microsoft SQL Server 2012Fusion-io Memory Flash for Microsoft SQL Server 2012
Fusion-io Memory Flash for Microsoft SQL Server 2012
 
Ceph Day New York 2014: Best Practices for Ceph-Powered Implementations of St...
Ceph Day New York 2014: Best Practices for Ceph-Powered Implementations of St...Ceph Day New York 2014: Best Practices for Ceph-Powered Implementations of St...
Ceph Day New York 2014: Best Practices for Ceph-Powered Implementations of St...
 
Hadoop in the Clouds, Virtualization and Virtual Machines
Hadoop in the Clouds, Virtualization and Virtual MachinesHadoop in the Clouds, Virtualization and Virtual Machines
Hadoop in the Clouds, Virtualization and Virtual Machines
 
Ramakrishnan Keynote Ladis2009
Ramakrishnan Keynote Ladis2009Ramakrishnan Keynote Ladis2009
Ramakrishnan Keynote Ladis2009
 
State of Resource Management in Big Data
State of Resource Management in Big DataState of Resource Management in Big Data
State of Resource Management in Big Data
 
State of Resource Management in Big Data
State of Resource Management in Big DataState of Resource Management in Big Data
State of Resource Management in Big Data
 
Move your Data Center to the Cloud
Move your Data Center to the CloudMove your Data Center to the Cloud
Move your Data Center to the Cloud
 
Tiny Sensors, Big Data
Tiny Sensors, Big DataTiny Sensors, Big Data
Tiny Sensors, Big Data
 
Communication Patterns Using Data-Centric Publish/Subscribe
Communication Patterns Using Data-Centric Publish/SubscribeCommunication Patterns Using Data-Centric Publish/Subscribe
Communication Patterns Using Data-Centric Publish/Subscribe
 
Communication Patterns Using Data-Centric Publish/Subscribe
Communication Patterns Using Data-Centric Publish/SubscribeCommunication Patterns Using Data-Centric Publish/Subscribe
Communication Patterns Using Data-Centric Publish/Subscribe
 
Cloud Computing - Making IT Simple
 Cloud Computing - Making IT Simple Cloud Computing - Making IT Simple
Cloud Computing - Making IT Simple
 
Complex Er[jl]ang Processing with StreamBase
Complex Er[jl]ang Processing with StreamBaseComplex Er[jl]ang Processing with StreamBase
Complex Er[jl]ang Processing with StreamBase
 
Danile lee -open stackblocklevelstorage
Danile lee -open stackblocklevelstorageDanile lee -open stackblocklevelstorage
Danile lee -open stackblocklevelstorage
 
Distributed Block-level Storage Management for OpenStack, by Danile lee
Distributed Block-level Storage Management for OpenStack, by Danile leeDistributed Block-level Storage Management for OpenStack, by Danile lee
Distributed Block-level Storage Management for OpenStack, by Danile lee
 
Cloud Computing: Making IT Simple
Cloud Computing: Making IT SimpleCloud Computing: Making IT Simple
Cloud Computing: Making IT Simple
 
Dds the ideal_bus_for_event_processing_engines
Dds the ideal_bus_for_event_processing_enginesDds the ideal_bus_for_event_processing_engines
Dds the ideal_bus_for_event_processing_engines
 
Standardizing the Data Distribution Service (DDS) API for Modern C++
Standardizing the Data Distribution Service (DDS) API for Modern C++Standardizing the Data Distribution Service (DDS) API for Modern C++
Standardizing the Data Distribution Service (DDS) API for Modern C++
 
CloudStack Best Practice in PPTV
CloudStack Best Practice in PPTVCloudStack Best Practice in PPTV
CloudStack Best Practice in PPTV
 
Introduction to Cloud Data Center and Network Issues
Introduction to Cloud Data Center and Network IssuesIntroduction to Cloud Data Center and Network Issues
Introduction to Cloud Data Center and Network Issues
 

Mehr von ictseserv

Socio-Economic Aware Design of Future Network Technology (Y.FNsocioeconomic)
Socio-Economic Aware Design of Future Network Technology (Y.FNsocioeconomic)Socio-Economic Aware Design of Future Network Technology (Y.FNsocioeconomic)
Socio-Economic Aware Design of Future Network Technology (Y.FNsocioeconomic)
ictseserv
 
Vesa terava net neutrality in europe - seserv se workshop june 2012
Vesa terava   net neutrality in europe - seserv se workshop june 2012Vesa terava   net neutrality in europe - seserv se workshop june 2012
Vesa terava net neutrality in europe - seserv se workshop june 2012
ictseserv
 
Stephen minton tech transformation in the age of uncertainty - seserv se wo...
Stephen minton   tech transformation in the age of uncertainty - seserv se wo...Stephen minton   tech transformation in the age of uncertainty - seserv se wo...
Stephen minton tech transformation in the age of uncertainty - seserv se wo...
ictseserv
 
Sara de freitas the gamification of everyday life - seserv se workshop june...
Sara de freitas   the gamification of everyday life - seserv se workshop june...Sara de freitas   the gamification of everyday life - seserv se workshop june...
Sara de freitas the gamification of everyday life - seserv se workshop june...
ictseserv
 
Javier salcedo cloud computing - seserv se workshop june 2012
Javier salcedo   cloud computing - seserv se workshop june 2012Javier salcedo   cloud computing - seserv se workshop june 2012
Javier salcedo cloud computing - seserv se workshop june 2012
ictseserv
 
Falk von bornstaedt networks perspectives and analysis in the future intern...
Falk von bornstaedt   networks perspectives and analysis in the future intern...Falk von bornstaedt   networks perspectives and analysis in the future intern...
Falk von bornstaedt networks perspectives and analysis in the future intern...
ictseserv
 
Brian pickering introduction to seserv - seserv se workshop june 2012
Brian pickering   introduction to seserv - seserv se workshop june 2012Brian pickering   introduction to seserv - seserv se workshop june 2012
Brian pickering introduction to seserv - seserv se workshop june 2012
ictseserv
 
Andrea Glorioso: No Disconnect Strategy - SESERV Workshop, June 2012
Andrea Glorioso: No Disconnect Strategy - SESERV Workshop, June 2012Andrea Glorioso: No Disconnect Strategy - SESERV Workshop, June 2012
Andrea Glorioso: No Disconnect Strategy - SESERV Workshop, June 2012
ictseserv
 
Alessandro bogliolo workshop introduction - seserv se workshop june 2012
Alessandro bogliolo   workshop introduction - seserv se workshop june 2012Alessandro bogliolo   workshop introduction - seserv se workshop june 2012
Alessandro bogliolo workshop introduction - seserv se workshop june 2012
ictseserv
 
Aleksandra kuczerawy privacy issues in future internet - seserv se workshop...
Aleksandra kuczerawy   privacy issues in future internet - seserv se workshop...Aleksandra kuczerawy   privacy issues in future internet - seserv se workshop...
Aleksandra kuczerawy privacy issues in future internet - seserv se workshop...
ictseserv
 
Alan hartman trust measurement and management - seserv se workshop june 2012
Alan hartman   trust measurement and management - seserv se workshop june 2012Alan hartman   trust measurement and management - seserv se workshop june 2012
Alan hartman trust measurement and management - seserv se workshop june 2012
ictseserv
 
Socio-Economic Aware Design of Future Network Technology (Y.FNsocioeconomic)
Socio-Economic Aware Design of Future Network Technology (Y.FNsocioeconomic)Socio-Economic Aware Design of Future Network Technology (Y.FNsocioeconomic)
Socio-Economic Aware Design of Future Network Technology (Y.FNsocioeconomic)
ictseserv
 
Fia presentatie
Fia presentatieFia presentatie
Fia presentatie
ictseserv
 
Socio-Economic Aware Design of Future Network Technology (Y.FNsocioeconomic)
Socio-Economic Aware Design of Future Network Technology (Y.FNsocioeconomic)Socio-Economic Aware Design of Future Network Technology (Y.FNsocioeconomic)
Socio-Economic Aware Design of Future Network Technology (Y.FNsocioeconomic)
ictseserv
 
Seserv athens-workshop-brief-report
Seserv athens-workshop-brief-reportSeserv athens-workshop-brief-report
Seserv athens-workshop-brief-report
ictseserv
 

Mehr von ictseserv (20)

Socio-Economic Aware Design of Future Network Technology (Y.FNsocioeconomic)
Socio-Economic Aware Design of Future Network Technology (Y.FNsocioeconomic)Socio-Economic Aware Design of Future Network Technology (Y.FNsocioeconomic)
Socio-Economic Aware Design of Future Network Technology (Y.FNsocioeconomic)
 
Vesa terava net neutrality in europe - seserv se workshop june 2012
Vesa terava   net neutrality in europe - seserv se workshop june 2012Vesa terava   net neutrality in europe - seserv se workshop june 2012
Vesa terava net neutrality in europe - seserv se workshop june 2012
 
Stephen minton tech transformation in the age of uncertainty - seserv se wo...
Stephen minton   tech transformation in the age of uncertainty - seserv se wo...Stephen minton   tech transformation in the age of uncertainty - seserv se wo...
Stephen minton tech transformation in the age of uncertainty - seserv se wo...
 
Sara de freitas the gamification of everyday life - seserv se workshop june...
Sara de freitas   the gamification of everyday life - seserv se workshop june...Sara de freitas   the gamification of everyday life - seserv se workshop june...
Sara de freitas the gamification of everyday life - seserv se workshop june...
 
Javier salcedo cloud computing - seserv se workshop june 2012
Javier salcedo   cloud computing - seserv se workshop june 2012Javier salcedo   cloud computing - seserv se workshop june 2012
Javier salcedo cloud computing - seserv se workshop june 2012
 
Falk von bornstaedt networks perspectives and analysis in the future intern...
Falk von bornstaedt   networks perspectives and analysis in the future intern...Falk von bornstaedt   networks perspectives and analysis in the future intern...
Falk von bornstaedt networks perspectives and analysis in the future intern...
 
Brian pickering introduction to seserv - seserv se workshop june 2012
Brian pickering   introduction to seserv - seserv se workshop june 2012Brian pickering   introduction to seserv - seserv se workshop june 2012
Brian pickering introduction to seserv - seserv se workshop june 2012
 
Andrea Glorioso: No Disconnect Strategy - SESERV Workshop, June 2012
Andrea Glorioso: No Disconnect Strategy - SESERV Workshop, June 2012Andrea Glorioso: No Disconnect Strategy - SESERV Workshop, June 2012
Andrea Glorioso: No Disconnect Strategy - SESERV Workshop, June 2012
 
Alessandro bogliolo workshop introduction - seserv se workshop june 2012
Alessandro bogliolo   workshop introduction - seserv se workshop june 2012Alessandro bogliolo   workshop introduction - seserv se workshop june 2012
Alessandro bogliolo workshop introduction - seserv se workshop june 2012
 
Aleksandra kuczerawy privacy issues in future internet - seserv se workshop...
Aleksandra kuczerawy   privacy issues in future internet - seserv se workshop...Aleksandra kuczerawy   privacy issues in future internet - seserv se workshop...
Aleksandra kuczerawy privacy issues in future internet - seserv se workshop...
 
Alan hartman trust measurement and management - seserv se workshop june 2012
Alan hartman   trust measurement and management - seserv se workshop june 2012Alan hartman   trust measurement and management - seserv se workshop june 2012
Alan hartman trust measurement and management - seserv se workshop june 2012
 
Socio-Economic Aware Design of Future Network Technology (Y.FNsocioeconomic)
Socio-Economic Aware Design of Future Network Technology (Y.FNsocioeconomic)Socio-Economic Aware Design of Future Network Technology (Y.FNsocioeconomic)
Socio-Economic Aware Design of Future Network Technology (Y.FNsocioeconomic)
 
Fia presentatie
Fia presentatieFia presentatie
Fia presentatie
 
Socio-Economic Aware Design of Future Network Technology (Y.FNsocioeconomic)
Socio-Economic Aware Design of Future Network Technology (Y.FNsocioeconomic)Socio-Economic Aware Design of Future Network Technology (Y.FNsocioeconomic)
Socio-Economic Aware Design of Future Network Technology (Y.FNsocioeconomic)
 
Seserv workshop manos dramitinos - tussle analysis from etics project
Seserv workshop   manos dramitinos - tussle analysis from etics projectSeserv workshop   manos dramitinos - tussle analysis from etics project
Seserv workshop manos dramitinos - tussle analysis from etics project
 
Seserv workshop costas kalogiros - tussle analysis examples dns-tcp
Seserv workshop   costas kalogiros - tussle analysis examples dns-tcpSeserv workshop   costas kalogiros - tussle analysis examples dns-tcp
Seserv workshop costas kalogiros - tussle analysis examples dns-tcp
 
Seserv workshop costas courcoubetis - introduction to tussle analysis metho...
Seserv workshop   costas courcoubetis - introduction to tussle analysis metho...Seserv workshop   costas courcoubetis - introduction to tussle analysis metho...
Seserv workshop costas courcoubetis - introduction to tussle analysis metho...
 
Sending party network pays
Sending party network paysSending party network pays
Sending party network pays
 
Seserv workshop alissa cooper - net neutrality practices
Seserv workshop   alissa cooper - net neutrality practicesSeserv workshop   alissa cooper - net neutrality practices
Seserv workshop alissa cooper - net neutrality practices
 
Seserv athens-workshop-brief-report
Seserv athens-workshop-brief-reportSeserv athens-workshop-brief-report
Seserv athens-workshop-brief-report
 

Kürzlich hochgeladen

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 

Kürzlich hochgeladen (20)

Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 

Cooperative Database Caching within Cloud Environments

  • 1. AIMS, Luxembourg, Luxembourg, June 6, 2012 Cooperative Database Caching within Cloud Environments Andrei Vancea1, Guilherme Sperb Machado1, Laurent d’Orazio2, Burkhard Stiller1 1 Department of Informatics IFI, Communication Systems Group CSG, University of Zürich UZH, Switzerland 2 Blaise Pascal University - LIMOS, France vancea,stiller@ifi.uzh.ch, laurent.dorazio@isima.fr © 2012 UZH,
  • 2. Background  Databases – Client: asks a query (SQL) – Server: returns the result (tuples)  Client-side caching – Page Caching, Tuple Caching – Semantic Caching • Clients store the results of old queries • Old results used for answering new queries © 2012 UZH,
  • 3. Background - Semantic Caching Query  Semantic Regions – Query description – Result set  Query rewriting Queries QUERY – Probe descriptions REWRITING – Remainder Probe Remainder Semantic Server cache © 2012 UZH,
  • 4. Database Caching & Cloud Computing  Most cloud providers charge data transfer between cloud environment and “outside world” in a pay-as-you- go matter  Database caching within cloud environment – Improves performance – Economic benefits • Amount of data transferred decreases Payments for data transferred reduced © 2012 UZH,
  • 6. Cooperative Semantic Caching Share local semantic caches between clients Use cache entries of other clients  Performance improvements © 2012 UZH,
  • 7. Cooperative Semantic Caching select * : select * fromresult age > 7 and age7 10 Q3 from persons where where age > <= persons select * from R1 result Q1 : select * fromresult where age > 10 persons R1 : age > 10 © 2012 UZH,
  • 8. Potential Use Cases  GIS (Geographic Information System) storage – Large amount of data (e.g. seismic events) – Processing done on client side – Two-dimensional range selections (area)  NetFlow-based architectures – Routers collect flow records and store them in databases – Analyzers (intrusion detection, accounting,… ) access them – Range selections (Start Time, IP) © 2012 UZH,
  • 9. Query Rewriting Query Query rewriting – Probe – Remote probes – Remainder All queries QUERY descriptions REWRITING ... Remote Remote Probe probe probe Remainder Local Remote Remote Server Semantic Semantic Semantic cache cache cache © 2012 UZH,
  • 11. CoopSC  Cooperative Semantic Caching Coop Query types – Selection (n-Dimensional range predicates) – select id, name, age from persons where 20 < age and age < 30 Cache organization – Semantic regions – Distributed Index – built on top of a P2P overlay © 2012 UZH,
  • 12. CoopSC - Query Rewriting  Local Rewriting Query – Probe Local Cache – Local Remainder Local Rewriting • Portion of the query which is Local not available in the local cache Remainder  Distributed Rewriting Distributed Distributed Rewriting Index – Remote Probes – Remainder … Probe Remote Remote Remainder Probe Probe © 2012 UZH,
  • 13. Distributed Index  Built on top of P2P overlay  Regions and queries represented as rectangular shapes  MX-CIF Quad Tree – Efficiently find intersection between rectangular shapes  Each region is indexed in the smallest quad which totally contains it  Easy to adapt to n-Dimensional regions/queries © 2012 UZH,
  • 14. Update Handling  Issues – Invalidation of old entries – Combining different snapshots can generate inconsistencies  Quad space division (specified update level)  Virtual timestamps stored in database  Each modification increments the virtual timestamp of corresponding quad  Regions store virtual timestamps of quads that they intersect © 2012 UZH,
  • 16. Cloud Scenario A  Database server running outside the cloud  Clients located inside in the cloud  Non-operational use cases – Example: cloud environment used for running scientific experiments © 2012 UZH,
  • 17. Cloud Scenario B  Database server running inside the cloud  Clients located inside in the cloud  Operational use cases – Example: corporation using cloud environment as an alternative to building a datacenter © 2012 UZH,
  • 19. Experiment Design  Measurements – Response time – Amount of data transferred – Payments for data transfer  Experiments – Cache size – Update level  Testing sessions – 5 select testing sessions (50 queries each) – Update sessions interleaved © 2012 UZH,
  • 20. Evaluation  Wisconsin benchmark dataset (10.000.000 tuples)  Scenario A – Database Server: Zurich testbed – 5 Client: Rackspace  Scenario B – Database server • Amazon EC2 – 5 Clients: EmanicsLab  Queries – About 10.000 tuples – Semantic locality © 2012 UZH,
  • 22. Data transferred/Payments  CoopSC significantly reduces the number of tuples sent by database server  Amount of money also reduced © 2012 UZH,
  • 23. Response Time  Rackspace behaves unstable  No performance improvements noticed © 2012 UZH,
  • 25. Data transferred/Payments  CoopSC significantly reduces the number of tuples sent by database server  Bandwidth payments also reduced © 2012 UZH,
  • 26. Response Time  CoopSC improves response time © 2012 UZH,
  • 27. Data transferred/Payments (Updates)  Good behavior for low update rate  Economic and performance benefits © 2012 UZH,
  • 28. Response Times (Updates)  Response increases with the grow of update rate © 2012 UZH,
  • 29. Summary & Conclusion  Summary – Cooperative caching approach used for reducing the load of the database server – Update statements supported – CoopSC applied in the context of cloud environments  CoopSC reduces the amount of data transferred between cloud and outside world which has economic benefits  Performance benefits as long as cloud providers are stable © 2012 UZH,
  • 31. Update Handling - Algorithm procedure Execute(query) quads = query.getIntersecteQuad(updateLevel); before = database.getTimestamps(quads); plan = rewrite(query, before); result = plan.execute(); after = database.getTimestamps(quads); if (before == after) return result; else result database.execute(query); © 2012 UZH,