Presentation is loading. Please wait.

Presentation is loading. Please wait.

FESR www.trigrid.it Trinacria Grid Virtual Laboratory Relational Grid Monitoring Architecture (R-GMA) Valeria Ardizzone INFN Catania Tutorial per Insegnanti.

Similar presentations


Presentation on theme: "FESR www.trigrid.it Trinacria Grid Virtual Laboratory Relational Grid Monitoring Architecture (R-GMA) Valeria Ardizzone INFN Catania Tutorial per Insegnanti."— Presentation transcript:

1 FESR www.trigrid.it Trinacria Grid Virtual Laboratory Relational Grid Monitoring Architecture (R-GMA) Valeria Ardizzone INFN Catania Tutorial per Insegnanti di Istituto Tecnico Industriale Acireale, 04-14.05.2007

2 Acireale(CT), Tutorial per Insegnanti I.T.I., 04-14.05.2007 Grid Monitoring Architecture(GMA) PRODUCER CONSUMER REGISTRY Store location Lookup location Transfer Data The Producer stores its location (URL) in the Registry. The Consumer looks up producer URLs in the Registry. The Consumer contacts the Producer to get all the data or the Consumer can listen to the Producer for new data.

3 Acireale(CT), Tutorial per Insegnanti I.T.I., 04-14.05.2007 R-GMA within Testbed

4 Acireale(CT), Tutorial per Insegnanti I.T.I., 04-14.05.2007 R-GMA: Schema-Registry-Mediator VIRTUAL DATABASE TABLE 1, Colum defs TABLE 2, Colum defs TABLE 3, Colum defs TABLE 4, Colum defs SCHEMA TABLE 1,Producer P1 details TABLE 2,Producer P1 details TABLE 2,Producer P2 details TABLE 2,Producer P3 details TABLE 3,Producer P2 details TABLE 3,Producer P1 details TABLE 3,Producer P3 details REGISTRY MEDIATOR R-GMA Server MEDIATOR: a set of rules for deciding which data providers to contact for any given query. REGISTRY: It holds the details of all producers that are publishing to tables in the virtual database and it also holds the details of “continuous” consumers. SCHEMA : it holds the names and definitions of all of the tables in the virtual database, and their authorization rules.

5 Acireale(CT), Tutorial per Insegnanti I.T.I., 04-14.05.2007 R-GMA: Producer-Consumer VIRTUAL DATABASE TABLE 1, Colum defs TABLE 2, Colum defs TABLE 3, Colum defs TABLE 4, Colum defs SCHEMA TABLE 1,Producer P1 details TABLE 2,Producer P1 details TABLE 2,Producer P2 details TABLE 2,Producer P3 details TABLE 3,Producer P2 details TABLE 3,Producer P1 details TABLE 3,Producer P3 details REGISTRY MEDIATOR P1 P2 P3 C1C2 SQL “INSERT” SQL “SELECT” Producers: are the data providers for the virtual database. Writing data into the virtual database is known as publishing, and data is always published in complete rows, known as tuples. There are three types of producer: Primary, Secondary and On-demand. Consumer: represents a single SQL SELECT query on the virtual database. The query is matched against the list of available producers in the Registry. The consumer service then selects the best set of producers to contact and sends the query directly to each of them, to obtain the answer tuples. R-GMA Server

6 Acireale(CT), Tutorial per Insegnanti I.T.I., 04-14.05.2007 Producer Types Primary Producer Secondary Producer On-Demand Producer User Code Producer API Producer Service Tuple Storage C Control only Queries Tuples SELECT * Tuples P User Code Producer API Producer Service C Control only Queries Tuples Queries User Code Producer API Producer Service Tuple Storage C Control and inserted tuples Queries Tuples

7 Acireale(CT), Tutorial per Insegnanti I.T.I., 04-14.05.2007 Query and Storage Types Continuous: as soon as new data becomes available it is broadcast to all interested parties. Latest: correspond to intuitive idea of current information. History: return time sequenced data. TABLE 1,Producer P1 details TABLE 2,Producer P1 details TABLE 2,Producer P2 details TABLE 2,Producer P3 details TABLE 3,Producer P2 details TABLE 3,Producer P1 details TABLE 3,Producer P3 details REGISTRY P1 Latest-store Continuous&History-store P1 LATEST RETENTION PERIOD (LRP) and HISTORY RETENTION PERIOD (RTP) allow producers to periodically purge old tuples, and to give a precise meaning to the “current state”. Tuple-store can be in Memory or Database

8 Acireale(CT), Tutorial per Insegnanti I.T.I., 04-14.05.2007 Continuous Producer Servlet Registry Store location Lookup location Continuous Store table description Producer API SQL “CREATE TABLE” Result Set TableName Value 1Value 2 TableNameURLPredicate Schema TableNameColumn TableName Value 1Value 2 Insert TableName UKRALAlice Consumer ServletConsumer API SQL “SELECT” TableName Value 1Value 2 TableName Value 1Value 2 Query SQL “INSERT”

9 Acireale(CT), Tutorial per Insegnanti I.T.I., 04-14.05.2007 History or Latest Producer Servlet Registry Store location Lookup location Query Store table description Producer API SQL “CREATE TABLE” Result Set TableName Value 1Value 2 TableNameURLPredicate Schema TableNameColumn TableName Value 1Value 2 Insert TableName UKRALAlice Consumer ServletConsumer API SQL “SELECT” TableName Value 1Value 2 TableName Value 1Value 2 Query SQL “INSERT”

10 Acireale(CT), Tutorial per Insegnanti I.T.I., 04-14.05.2007 R-GMA APIs APIs exist in Java, C, C++. –For clients (servlets contacted behind the scenes) They include methods for… –Creating consumers –Creating primary and secondary producers –Setting type of queries, type of produces, retention periods, time outs… –Retrieving tuples, inserting data –… You can create your own Producer or Consumer.

11 Acireale(CT), Tutorial per Insegnanti I.T.I., 04-14.05.2007 The R-GMA Browser The easiest way to try out R-GMA. –It is installed on the machine running the Registry and Schema: https://rgmasrv.ct.infn.it:8443/R-GMA Using the Browser you can do the following. –Browse the tables in the schema. –Look at the table definitions. –See all the available producers for a table. –Query a table. –Query only selected producers.

12 Acireale(CT), Tutorial per Insegnanti I.T.I., 04-14.05.2007 https://rgmasrv.ct.infn.it:8443/R-GMA

13 Acireale(CT), Tutorial per Insegnanti I.T.I., 04-14.05.2007 References RGMA exercises on PI2S2 Wiki: https://grid.ct.infn.it/twiki/bin/view/PI2S2/InformationSystemsGLUE Schema gLite 3.0 User Guide –https://edms.cern.ch/file/722398/1.1/gLite-3-UserGuide.pdf R-GMA home page –http://www.r-gma.org/ R-GMA in EGEE –http://hepunx.rl.ac.uk/egee/jra1-uk/

14 Acireale(CT), Tutorial per Insegnanti I.T.I., 04-14.05.2007 14 DPM references gLite 3.0 User Guide –https://edms.cern.ch/file/722398//gLite-3-UserGuide.pdf GILDA gLite3.0 Wiki –https://grid.ct.infn.it/twiki/bin/view/GILDA/GliteElementsInstallatio nhttps://grid.ct.infn.it/twiki/bin/view/GILDA/GliteElementsInstallatio n DPM Administrator Guide –https://uimon.cern.ch/twiki/bin/view/LCG/DpmAdminGuidehttps://uimon.cern.ch/twiki/bin/view/LCG/DpmAdminGuide


Download ppt "FESR www.trigrid.it Trinacria Grid Virtual Laboratory Relational Grid Monitoring Architecture (R-GMA) Valeria Ardizzone INFN Catania Tutorial per Insegnanti."

Similar presentations


Ads by Google