320 likes | 450 Views
Globus III - Information Services. Resource Discovery. Critical in a grid to be able to discovery what resources are available and what are the options. For compute resources, information can be hardware details and software details, and dynamically changing information such as load.
E N D
GlobusIII - Information Services Grid Computing, B. Wilkinson, 2004
Resource Discovery • Critical in a grid to be able to discovery what resources are available and what are the options. • For compute resources, information can be hardware details and software details, and dynamically changing information such as load. Grid Computing, B. Wilkinson, 2004
Typical Details • Compute resources: • CPU vendor, type, speed, cache sizes, ... • Memory type, size, speed, ... • Disk space … • Network resources • Network bandwidth • Latency • Topology • Protocols, ... Grid Computing, B. Wilkinson, 2004
Compute Resource Software Details • IP address • Software available • Operating System version number • Resource manager, ... Grid Computing, B. Wilkinson, 2004
Static and Dynamic data • Information is always subject to change and old. • Some information changes naturally, such as load information. Grid Computing, B. Wilkinson, 2004
Centralized Information System Resources Clients “push” LDAP Server Clients query for current information Periodically update LDAP server information LDAP Lightweight Directory Access Protocol Grid Computing, B. Wilkinson, 2004
Disadvantages • Does not scale well as number of resources grows • Commercial LDAP services optimized for read operations, not good with frequent writes. • System fails if LDAP server down Grid Computing, B. Wilkinson, 2004
Globus Grid Information ServiceMonitoring and Directory Service (MDS) • Based upon LDAP. • Originally called “Metacomputing Directory Service” - renamed • MDS-2 uses a distributed organization. Grid Computing, B. Wilkinson, 2004
MDS-2 Consisting of two types of service: • Grid Resource Information Service (GRIS) • Grid Index Information Service (GIIS) Grid Computing, B. Wilkinson, 2004
Grid Resource Information Service (GRIS) • Associated with each resource. • Answers queries from client/user about the particular resource. • Accesses an “information provider” deployed on that resource for requested information. Grid Computing, B. Wilkinson, 2004
Queries • “White pages” • Resource information • e.g. How much memory does machine have • “Yellow” pages • Resource options • e.g. Which queues allow large jobs. Grid Computing, B. Wilkinson, 2004
Grid Index Information Service (GIIS) • A directory service that collects (‘pulls”) information for GRIS’s. • A “caching” service. • Provides indexing and searching functions. Grid Computing, B. Wilkinson, 2004
Overall Structure Resources Clients GRIS Clients query resource GRIS directly for current information GIIS information as needed “pull” Clients makes indirect query to GIIS GRIS GIIS Grid Computing, B. Wilkinson, 2004
Scaling • Can have multiple GIIS’s in various configurations • Configuration can take into account virtual organizations Grid Computing, B. Wilkinson, 2004
Accessing Information GT3 command: grid-info-search with various flags to specify host, port, etc.: -h MDS server -p MDS port -b Search start point -T LDAP query time out Grid Computing, B. Wilkinson, 2004
Example grid-info-search -x -h hot.mcs.anl.gov -p 2135 -b “Mds-Vo-name=local, o=Grid” Produces: dn: Mdss-Host-hn=hot.mcs.gove, Mds-Vo-name=local, o=grid Mds-CPU-speedMhz: 866 Mds-Memory-Ram-Total-freeMB: 304 Mds-CPU-Free-5minX100: 134 . . From “Grid Computing” by A. Abbas, page 204. Grid Computing, B. Wilkinson, 2004
LDAP Browser/Editor • Java Commodity Grid (CoG) Kit has a LDAP Browser/Editor Grid Computing, B. Wilkinson, 2004
LDAP Browser/Editor From “Grid Computing” by A. Abbas, page 202. Grid Computing, B. Wilkinson, 2004
Security • MDS 2.1 has PKI security for GSI mutual authentication Grid Computing, B. Wilkinson, 2004
LDAP Exercise • Go to Globus subdirectory called ldap • Follow instructions in README file Grid Computing, B. Wilkinson, 2004
Discovering Grid Services • MDS, as described, is only for discovery hardware resources, not the actual grid services one might want. • In a service oriented architecture, services are “published” in a registry so that they can be found. Grid Computing, B. Wilkinson, 2004
Service-Oriented Architecture Service registry 1. Publish 2. Find 3. Bind Service requester Service provider Grid Computing, B. Wilkinson, 2004
UDDI(Universal Description, Discovery, and Integration) • Web services often use UDDI registries. • UDDI designed to support business services. • Information can be classified as: • White pages -- company contact information, ... • Yellow pages -- Web service description • Green pages -- Technical information about Web Service Grid Computing, B. Wilkinson, 2004
Web Services From http://www.globus.org Grid Computing, B. Wilkinson, 2004
Accessing Grid Services • GT 3 provides an “index service” (as a higher level service) to access service data provided with grid service. • Service data can includes both hardware and software details of service. Grid Computing, B. Wilkinson, 2004
GT3 Index Service From “Grid Computing” by J. Joseph and C. Fellenstein, page 340. Grid Computing, B. Wilkinson, 2004
Service Data • Information about service provided in service data elements (SDEs) as part of the GWSDL file. • The GWSDL file defines service interface (see assignment 2), and SDEs are added to this. Grid Computing, B. Wilkinson, 2004
Types of Service Data Elements • State Information -- results, previous results, run time information, … • Service Metadata -- system data, supported interfaces, cost of using service, ... Grid Computing, B. Wilkinson, 2004
Client Accessing Service Data • Done through grid service methods. Grid Computing, B. Wilkinson, 2004
Changes to Grid service • Done through “notification” mechanism whereby client subscribes to mechanism and is notified of changes. Grid Computing, B. Wilkinson, 2004
addListener to subscribe notifyChange when change occurs deliverNotification to notify subscribers Derived from The Globus Toolkit 3 Programmer’s Tutorial” by Borja Sotomayor, 2004, page 65. Grid Computing, B. Wilkinson, 2004
More Information • “The Globus Toolkit 3 Programmer’s Tutorial” by Borja Sotomayor, 2004, Chapter 5 and Chapter 6. http://www-unix.globus.org/toolkit/ Gives sample code. Grid Computing, B. Wilkinson, 2004