Top Banner
LOGO XPeer Peer-to-Peer Management of Peer-to-Peer Management of Large-Scale Memory Sources Large-Scale Memory Sources Vincent Andrieu – Dr. Mark Roantree
10

Peer-to-Peer Management of Large-Scale Memory Sources (midterm)

Dec 05, 2014

Download

Technology

odcsss

 
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Peer-to-Peer Management of Large-Scale Memory Sources (midterm)

LOGO

XPeerXPeer

Peer-to-Peer Management of Large-Peer-to-Peer Management of Large-Scale Memory SourcesScale Memory Sources

Vincent Andrieu – Dr. Mark Roantree

Page 2: Peer-to-Peer Management of Large-Scale Memory Sources (midterm)

Why is XPeer needed ?Why is XPeer needed ?

CDVP experiments so as to study the links between movie content and viewer reactions :

29 movies, 33 experiments, 44 persons and8 sensors per experiment

Sensors data stored in XML files that CDVP needs to query

250 XML files ; more than 670 MB Centralized XML database is not suitable Spreading the XML files over several databases and

querying them through a Peer-to-Peer (P2P) network.

Page 3: Peer-to-Peer Management of Large-Scale Memory Sources (midterm)

Application design diagramApplication design diagram

P2P Network

QueryPeers

DataPeers(running on eXistservers (native XML databases))

Page 4: Peer-to-Peer Management of Large-Scale Memory Sources (midterm)

ImplementationImplementation

XML Documents (DataPeers) gathered into clusters with keywords

ClusterPeer

Metadata stored in an Oracle database, containing info about all the peers

RepositoryPeer

4 peer types :• DataPeer• QueryPeer• ClusterPeer• RepositoryPeer

Page 5: Peer-to-Peer Management of Large-Scale Memory Sources (midterm)

Implementation DiagramImplementation Diagram

Page 6: Peer-to-Peer Management of Large-Scale Memory Sources (midterm)

LaunchingLaunching

Peers have a lot of attributes : ID Name Description Keywords Oracle/eXist URLs and username/password to connect Clusters they belong to ...

All this metadata is stored in the Oracle metabase.

When a peer is launched, the first thing it does is finding a repository peer (because it is connected to the metabase) so as to get his context, so as to know everything about itself.

• If a repository peer can’t find any other repository peer, then it connects to the metabase

• But if a non-repository peer can’t find a repository, it dies

Page 7: Peer-to-Peer Management of Large-Scale Memory Sources (midterm)

JXTA platformJXTA platform

The JXTA platform is an open source peer-to-peer protocol specification.

Logical layer over the network layer

The physical network configuration of the peer is transparent. All of them are in the same logical P2P network, even if they actually are in different physical networks.

Connection and disconnections are managed.

Page 8: Peer-to-Peer Management of Large-Scale Memory Sources (midterm)

JXTA platformJXTA platform As a JVM is very heavy and several peers may run on the same

machine, so the application was designed so as to allow several peers (even different types of peer) to run in the same process, over 1 JXTA Peer.

ClusterPeerDataPeerDataPeer

JXTA Platform

RepositoryPeerQueryPeer

JXTA Platform

DataPeerQueryPeerClusterPeer

JXTA Platform

P2P NetworkP2P Network

Page 9: Peer-to-Peer Management of Large-Scale Memory Sources (midterm)

Peer designPeer design

Page 10: Peer-to-Peer Management of Large-Scale Memory Sources (midterm)

What’s next ?What’s next ?

Caching systems (e.g. between ClusterPeer and DataPeer, between QueryPeer and

ClusterPeer)

Logical expressions or regexps for keywords (e.g. «cdvplex AND Shrek»)

Dynamically set the keywords for clusters