ogsa hauptseminar: data grid thema 2: open grid service architecture vorträger: lu xin...everything...

31
OGSA Hauptseminar: Data Grid Thema 2: Open Grid Service Architecture Vorträger: Lu xin ...Everyt hing is service...

Upload: marjory-henderson

Post on 03-Jan-2016

215 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: OGSA Hauptseminar: Data Grid Thema 2: Open Grid Service Architecture Vorträger: Lu xin...Everything is service

OGSA

Hauptseminar: Data GridThema 2: Open Grid Service Architecture

Vorträger: Lu xin

...Everything is service...

Page 2: OGSA Hauptseminar: Data Grid Thema 2: Open Grid Service Architecture Vorträger: Lu xin...Everything is service

2

OGSA History Announced at GGF4 (’02/2) Work Group created (’02/9) 6 interim F2F meetings OGSA Usecase document at GGF10 (’04/3) Declared as GGF’s flagship architecture at

GGF10 (’04/3) OGSA document at GGF11 (’04/6)

First version as informational documentCompanion OGSA Glossary document

Page 3: OGSA Hauptseminar: Data Grid Thema 2: Open Grid Service Architecture Vorträger: Lu xin...Everything is service

What is OGSA?

3

Open service-oriented architecture based on Web services for addressing Grid scenarios Component-oriented architecture

Interchangeable components Meta OS functionalities

Distributed and heterogeneous environment A rendering of these functions, based on

Web service architecture and specifications

Foster:

Page 4: OGSA Hauptseminar: Data Grid Thema 2: Open Grid Service Architecture Vorträger: Lu xin...Everything is service

GOAL

4

Realization of the modern computing environment:

Discovered Allocated Accessed

MonitoredAccounted forBilled for

etc…

The components can be in general managed as a single virtual system

Manage resources across distributed heterogeneous platforms. Deliver seamless quality of service (QoS). Provide a common base for autonomic management solutions.Define open, published interfaces.Exploit industry standard integration technologies.

Page 5: OGSA Hauptseminar: Data Grid Thema 2: Open Grid Service Architecture Vorträger: Lu xin...Everything is service

Concept & Consensus

5

keyword:Grid Service

“ Open Grid Service Architecture suppose a concept called Grid Service, it puts heavy emphasis on the concept of “services”. ”

“ The emergence of OGSA represent s a consensus on the standardization of resource accessing interfaces as grid services”

keyword:Standardization

InterfacesService Data

Everything is represented as a Grid service. All components of the environment are virtualized.

Page 6: OGSA Hauptseminar: Data Grid Thema 2: Open Grid Service Architecture Vorträger: Lu xin...Everything is service

OGSA Architecture

6

Page 7: OGSA Hauptseminar: Data Grid Thema 2: Open Grid Service Architecture Vorträger: Lu xin...Everything is service

OGSA Architecture

7

Layers:

Grid applications

OGSA architected services

Web services+the OGSI extensions that define grid servicesDiscovery >> UDDI (Universal Description, Discovery & Integration)

Description >> WSDL (Web Services Description Language), XML..

Invocation >> SOAP (Simple Object Access Protocol)

Transport >> HTTP (HyperText Transfer Protocol)

Resourcesphysical resources and logical resources

ServiceRegistry

ServiceProvider

ServiceRequestor

Find Publish

Bind

WDSL UDDIWS-Inspector

SOAP

Service Oriented Architecture

Page 8: OGSA Hauptseminar: Data Grid Thema 2: Open Grid Service Architecture Vorträger: Lu xin...Everything is service

overview

8

Client X

Client X

Client X

Virtual StorageFactory

Physical storageVirtual storage

What is happened here??

Just like web service??

Page 9: OGSA Hauptseminar: Data Grid Thema 2: Open Grid Service Architecture Vorträger: Lu xin...Everything is service

Grid Service

9

Stateful and potentially transient services Useful for the Clain Operations(realy?)

Typical Web Service

Grid Service

based on Web Service

Page 10: OGSA Hauptseminar: Data Grid Thema 2: Open Grid Service Architecture Vorträger: Lu xin...Everything is service

Grid Service

10

Service Data Service Statedata(opertaion

result, runtime infos..) Service Metadata(introspection ) Service Data Element (SDE)

Name Type (XML type) Extensibility attributes

Lifetime declarations Application-specific

Extensibility elements Service data value Application-specific

Service Data Set A set of SDEs Each Grid Service must have e

xactly one service Data Set Accessible in two ways:

FindServiceData Notification

Lifecycle management Instance can be created and

destoried at any time

Page 11: OGSA Hauptseminar: Data Grid Thema 2: Open Grid Service Architecture Vorträger: Lu xin...Everything is service

Grid Service Example

11

Service Data in WSDL

<wsdl:definitions xmlns=“…” targetNamespace=“…”> <gwsdl:portType name=“StorageService”

extends=“gsdl:GridService”> <wsdl:operation name=getFile> … </wsdl:operation> <sdf:serviceData name=“capacity” type=“xsd:integer”/> <sdf:serviceData name=“lifeTime” type=“xsd:integer”/> <sdf:serviceData name=“lastResult” type=“xsd:integer”/> <sdf:serviceData name=“location” type=“xsd:string”/> <sdf:serviceData name=“speed” type=“xsd:integer”/> <sdf:serviceData name=“freeSpace” type=“xsd:integer”/> <sdf:serviceData name=“accessControlPolicy” type=“tns:PolicyType”/> … </gwsdl:portype></wsdl:defintions>

Page 12: OGSA Hauptseminar: Data Grid Thema 2: Open Grid Service Architecture Vorträger: Lu xin...Everything is service

Grid Service

12

Interface --- portType extension all Grid Services must extend from a standard portType called GridService FindServiceData

Input QueryExpressionType: query mechanism used QueryExpression: actual query

Output Result of Query

SetTerminationTime Request that termination time of this service be changed Input: client timestamp and new termination time Output: service timestamp and current termination time

Destroy Explicit destruction request

Page 13: OGSA Hauptseminar: Data Grid Thema 2: Open Grid Service Architecture Vorträger: Lu xin...Everything is service

Grid Service Example

13

<portType name="GridServicePortType"> <operation name="findServiceData"> <input message="tns:FindServiceDataInputMessage"/> <output message="tns:FindServiceDataOutputMessage"/> <fault name="QueryNotSupportedFault" message="ogsa-faults:QueryNotSupportedFault"/> <fault name="InvalidQueryFault" message="ogsa-faults:InvalidQueryFault"/> </operation> <operation name="setTerminationTime"> … </operation> <operation name="getTerminationTime"> … </operation> <operation name="destroy"> … </operation></portType>

<portType name="Database_PortType" extends “gsdl:GridService”> <operation name="databaseQueryOperation"> <input message="tns:myDatabaseQuery"/> <output message="tns:myDatabaseResponse"/> </operation></portType>

Grid Service Functionality

Database_PortTypeInherits from GridService

Page 14: OGSA Hauptseminar: Data Grid Thema 2: Open Grid Service Architecture Vorträger: Lu xin...Everything is service

Grid Service

14

Messaging SOAP(web service) Defines the message used in operation

Notifications Dynamic monitoring

very closely related to service data Service must implement a notificationSource interface. Client must implement a notificationSink interface.

Page 15: OGSA Hauptseminar: Data Grid Thema 2: Open Grid Service Architecture Vorträger: Lu xin...Everything is service

Grid Service

15

GSH & GSRglobally Unique URLidentifies the instance for all timeLocation of the Grid Service only

Resolves GSH into GSROptionally, the client can do it by itselfInterface: FindByHandl

•Input: GSH & unsatisfactory GSRs•Output: GSR

FactoryCreateService()

Input: TerminationTime ServiceParameters (specific to a service)

Output: ServiceTimestamp information & Service Locator (to get GSH)

many different forms (WSDL…)Possible to communicate with Grid Service

&

Page 16: OGSA Hauptseminar: Data Grid Thema 2: Open Grid Service Architecture Vorträger: Lu xin...Everything is service

Grid Service Example

16

UserApplication

BioDB n

Storage Service Provider

MiningFactory

CommunityRegistry

DatabaseService

BioDB 1

DatabaseService

.

.

.

Compute Service Provider...

DatabaseFactory

Page 17: OGSA Hauptseminar: Data Grid Thema 2: Open Grid Service Architecture Vorträger: Lu xin...Everything is service

Grid Service Example

17

UserApplication

BioDB n

Storage Service Provider

MiningFactory

CommunityRegistry

DatabaseService

BioDB 1

DatabaseService

.

.

.

Compute Service Provider

“I want to createa personal databasecontaining data one.coli metabolism”

.

.

.

DatabaseFactory

Service Deployment

WDSL

Definition

Page 18: OGSA Hauptseminar: Data Grid Thema 2: Open Grid Service Architecture Vorträger: Lu xin...Everything is service

Grid Service Example

18

UserApplication

BioDB n

Storage Service Provider

MiningFactory

CommunityRegistry

DatabaseService

BioDB 1

DatabaseService

.

.

.

Compute Service Provider

“I want to createa personal databasecontaining data one.coli metabolism”

.

.

.

DatabaseFactory

Find Mining Service,

Database Service

GSH

Page 19: OGSA Hauptseminar: Data Grid Thema 2: Open Grid Service Architecture Vorträger: Lu xin...Everything is service

Grid Service Example

19

UserApplication

BioDB n

Storage Service Provider

MiningFactory

CommunityRegistry

DatabaseService

BioDB 1

DatabaseService

.

.

.

Compute Service Provider...

DatabaseFactory

m_instance

d_instance

“Create a data mining service with initial lifetime 10”

“Create adatabase with initial lifetime 1000”

GSH

GSH

Page 20: OGSA Hauptseminar: Data Grid Thema 2: Open Grid Service Architecture Vorträger: Lu xin...Everything is service

Grid Service Example

20

UserApplication

BioDB n

Storage Service Provider

MiningFactory

CommunityRegistry

DatabaseService

BioDB 1

DatabaseService

.

.

.

Compute Service Provider...

DatabaseFactory

m_instance

d_instance

Query

Query

Results

Notifikation

Notifikation

GSH

Page 21: OGSA Hauptseminar: Data Grid Thema 2: Open Grid Service Architecture Vorträger: Lu xin...Everything is service

Grid Service Example

21

UserApplication

BioDB n

Storage Service Provider

MiningFactory

CommunityRegistry

DatabaseService

BioDB 1

DatabaseService

.

.

.

Compute Service Provider...

DatabaseFactory

d_instance

m_instance

Notify me, if complete

Page 22: OGSA Hauptseminar: Data Grid Thema 2: Open Grid Service Architecture Vorträger: Lu xin...Everything is service

Make WS Stateful

22

OGSA requires 'stateful services‘

WSRF WSRF extends Web Services Developed by OASIS

Grid Service

based on Web Service

Review: Useful for the Clain Operations(realy?)

Page 23: OGSA Hauptseminar: Data Grid Thema 2: Open Grid Service Architecture Vorträger: Lu xin...Everything is service

WSRF: It's all about state

23

Page 24: OGSA Hauptseminar: Data Grid Thema 2: Open Grid Service Architecture Vorträger: Lu xin...Everything is service

24

WSRF: It's all about state

Page 25: OGSA Hauptseminar: Data Grid Thema 2: Open Grid Service Architecture Vorträger: Lu xin...Everything is service

WSRF: It's all about state

25

WSRF = Web Service+Resource

Page 26: OGSA Hauptseminar: Data Grid Thema 2: Open Grid Service Architecture Vorträger: Lu xin...Everything is service

The WSRF specification

WS-ResourceProperties A resource is composed of zero or more resource properties

•Filename, Size, and Descriptors…

WS-ResourceLifetime Resources have non-trivial lifecycles

WS-ServiceGroup groups of Web Services & groups of WS-Resources

WS-BaseFaults standard way of reporting faults when something goes wrong during a WS-

Service invocation

26

Page 27: OGSA Hauptseminar: Data Grid Thema 2: Open Grid Service Architecture Vorträger: Lu xin...Everything is service

Related specifications WS-Addressing

we can use WS-Addressing to address

a Web service + resource pair (a WS-Resource).

WS-Notification notification producer

notification consumers

27

Page 28: OGSA Hauptseminar: Data Grid Thema 2: Open Grid Service Architecture Vorträger: Lu xin...Everything is service

Architecture Review

28

Page 29: OGSA Hauptseminar: Data Grid Thema 2: Open Grid Service Architecture Vorträger: Lu xin...Everything is service

Architecture Review

29

Page 30: OGSA Hauptseminar: Data Grid Thema 2: Open Grid Service Architecture Vorträger: Lu xin...Everything is service

References

30

The Open Grid Services Architecture, Version 1.0 -- http://forge.gridforum.org/proj

ects/ogsa-wg

The Physiology of the Grid -- Ian Foster, Carl Kesselman, Jeffrey M. Nick, Steven Tuecke

OGSA Rising, -- Ian Foster, Argonne National Laboratory

Grid Services Overview, -- Keith R. Jackson, Distributed Systems Department, Lawrence Berkeley National Lab

The Grid Enabling Resource Sharing within Virtual Organizations, -- Ian Forster

http://http://gdp.globus.org/gt4-tutorial/ -- Tutorial from globus

Page 31: OGSA Hauptseminar: Data Grid Thema 2: Open Grid Service Architecture Vorträger: Lu xin...Everything is service

31

Danke