Distributed Queries and Query Optimization in SchemaBased P2PSystems Brunkorst et' al' - PowerPoint PPT Presentation

1 / 19
About This Presentation
Title:

Distributed Queries and Query Optimization in SchemaBased P2PSystems Brunkorst et' al'

Description:

Peers connect to Super Peers in a star like fashion by providing content metedata ... a super-peer can be seen as the root of a spanning tree ... – PowerPoint PPT presentation

Number of Views:29
Avg rating:3.0/5.0
Slides: 20
Provided by: gokceban
Category:

less

Transcript and Presenter's Notes

Title: Distributed Queries and Query Optimization in SchemaBased P2PSystems Brunkorst et' al'


1
Distributed Queries and Query Optimization in
Schema-Based P2P-SystemsBrunkorst et. al.
  • Gokce Banu Laleci

2
Motivation
  • Databases have employed a schema based approach
    to store and retrieve structured data for decades
  • Similar approaches for P2P
  • Sending queries to peers fails for queries which
    need data from more than one peer to be executed

3
Motivation
  • Dynamic nature of P2P, we can not assume
  • Global knowledge about data distribution
  • Static topologies, static query plans
  • Distributed schema which directs query processing
    tasks from one node to one or more neighboring
    nodes

4
The paper discusses
  • a suitable topology for schema-based P2P networks
    and how distributed knowledge about data
    distribution can be stored, accessed and updated
    based on that topology
  • how this knowledge can be used to distribute
    abstract query plans through the P2P network and
    expand them on the fly such that we can place
    query operators next to data sources and utilize
    distributed computing resources more effectively

5
Schema Capabilities and Distribution
6
Outline
  • Aim
  • Schema aware routing indices
  • Super-Peer/Peer Routing Indices
  • Super-Peer/Super-Peer Routing Indices
  • Registering Peers to SPs

7
aim
  • To create true peer-to-peer data management
    infrastructures which will have all
    characteristics of P2P systems
  • local control of data,
  • dynamic addition and removal of peers,
  • only local knowledge of available data and
    schemas
  • self-organization and -optimization

8
Schema aware routing indices
  • Will be based on Edutella Super-Peer Topology
  • Super-Peers are arranged in the HyperCuP topology
  • Peers connect to Super Peers in a star like
    fashion by providing content metedata

9
Super-Peer/Peer Routing Indices
  • The super-peer/peer routing indices contain
    information about metadata usage at each peer
  • schema and attributes are used to describe the
    content stored at the peers

10
SP/P Indices
11
Super-Peer/ Super-Peer Routing Indices
  • SP/SP indices extracts and summaries from all
    super-peer local SP/P indices

12
Super-Peer/ Super-Peer Routing Indices
G(dc)C, H
13
Construction of SP/SP indices
  • a super-peer can be seen as the root of a
    spanning tree
  • The SP/SP index is built dynamically based on the
    SP/P indices of all the super-peers on this
    spanning tree
  • by backward propagation and aggregation of the
    SP/P information
  • The other super-peers update their SP/SP indices
    accordingly

14
Sp/SP dcA
Sp/SP dcB
p1 dc
Sp/P dcp1
15
Registering Peers to SPs
  • Peers connecting to a super-peer have to register
    their metadata information at this superpeer
  • providing the necessary schema information for
    constructing the SP/P and SP/SP indices
  • XML registration message
  • registration messages are valid for a certain
    period only

16
Update of the SP/P Index
  • When a peer leaves SP
  • Remove its index
  • A new peer registers or metadata information has
    changed for one of the registered peers
  • If metadata information exists in the SP/P index
  • Add a reference to the new peer
  • Metadata ? P1, P2, Pnew
  • If not
  • Add a new entry to the table
  • Metadata ? Pnew

17
Update of the SP/SP Index
  • Assume
  • each SP/P modification triggers the update
    process for SP/SP indices
  • collect the modifications for a given period and
    trigger the SP/SP update process then
  • the super-peers cluster peers according to their
    schema characteristics
  • peers connected to a super-peer usually have
    similar characteristics
  • SP/P modifications trigger SP/SP index updates
    less frequently

18
SP/SP Update Process
  • Super-Peers in a HyperCuP
  • SP/P index of SPx has changed
  • SPx sends this update information to all of its
    neighbors (tagging with the edge label)
  • The recipients change their index accordingly
  • Send the message to the neighbors tagged with
    lower edge labels
  • Whenever a SP/SP change does not occur forwarding
    stops

19
Adding new Super-Peers
  • In most cases the new super-peer will fill a
    vacant position in the hypercube
  • which has temporarily been administered by the
    responsible super-peer
  • In this process, this super-peer, who has been
    holding an additional SP/SP and SP/P index for
    the vacant position, transfers these indices to
    the new super-peer
  • The neighboring super-peers have to update their
    indices accordingly, by exchanging the
    responsible super-peer with the new super-peer on
    the appropriate dimension
  • Beyond the immediate neighbors, no further update
    is necessary

20
Adding new Super-Peers
  • If the new super-peer opens a new dimension
  • it has to take over some peers from the old
    super-peer
  • the SP/SP index has to be split into two indices
  • The neighboring super-peers have to update their
    indices accordingly, by exchanging the
    responsible super-peer with the new super-peer on
    the appropriate dimension
  • Beyond the immediate neighbors, no further update
    is necessary

21
Removing Super-Peers
  • In this process the administering super-peers
    take over the SP/SP and SP/P indices of the
    leaving superpeer,
  • the neighbors of the leaving super-peer as well
    as of the administering ones have to update their
    SP/SP indices
  • Again, no update is required beyond the immediate
    neighbors
Write a Comment
User Comments (0)
About PowerShow.com