Upload
berniece-jackson
View
216
Download
1
Tags:
Embed Size (px)
Citation preview
Academic Technology Services
The UCLA Grid Portal -Campus Grids and the UC Grid
Joan Slottow and Prakashan KorambathJoan Slottow and Prakashan KorambathResearch Computing TechnologiesResearch Computing TechnologiesUCLA Academic Technology ServicesUCLA Academic Technology Services
http://grid.ucla.edu
Academic Technology Services
https
Uniform browser based interface
Credential mapped to local ID
Grid Appliance
Head node
Cluster II
Head node
Cluster I
Credential mapped to local ID
Grid Portal Grid Appliance
ION Visualization ServerStorage Server
UCLA Grid Architecture
MyProxy Server
Academic Technology Services
Single Campus Architecture
CampusGrid
Portaland CA
A
A
C
C
CampusMyProxyServer
CampusStorageServer
A = Grid ApplianceC = Cluster and Cluster Head Node
• Grid Portal accesses the storage servervia GridFTP.• No other access is provided.
Academic Technology Services
Single CA is shared among all campuses
UC Portal
UCLAPortal UCSB
Portal
UCIPortal
A
A
A A
A
A
C
C
C C C
C
All appliances talk to both theircampus portal and the UC portal
UCLAMyProxy
UCSBMyProxy
UCGrid CA
UC UserDatabase
UCMyProxy
UC Register Service
StorageServer
Storage Server
StorageServer
UCIMyProxy
Multi-Campus Architecture for the UC
Academic Technology Services
Pools• Resource Pool:
– Clusters contribute cycles to the resource pool– Clusters contribute applications to a resource pool:– TeraGrid cycles purchased by the campus can easily be shared.
• Pool Users:– Every cluster user is also a pool user.– Many students and faculty members do not currently have login ids on any
of the clusters. They can easily sign up to be pool-only users.– Each pool-only user is assigned a Storage Area.
• Pool use hides all the details • Pool jobs
– Target cluster selected by the UCLA Grid Portal.– Currently run applications only.
• A similar sharing of resources and applications can be applied across the entire UC.
Academic Technology Services
User Types
• 2 Types of users:– Cluster User:
• Has a login ID on at least 1 cluster
– Pool-Only User:• Does not have a login ID on any cluster
• Both types of users have certificates/usernames to login to the Grid Portal
Academic Technology Services
User Types vs. PortalsPortal
User
Type
Campus Portal UC Portal
Pool-onlyUser
ClusterUser
Can submit jobs to the campus pool
Can submit jobs to theUC pool
Can use those clusters on campus he/she can access
Can submit jobs to the campus pool
Best choice for thosewith access to clusterson different campuses-- can use all clusters,UC-wide, he/she can Access
Can submit jobs to the UC pool
Academic Technology Services
To Login to a Portal a User Needs:
• A certificate• A gridsphere account on that Portal• Additionally:
• A Cluster User must be added to the gridmap file on the appliance node of each of the clusters on which he/she has a login id• A pool-only user needs to be assigned a storage area on the Grid Portal’s Storage Server.
Academic Technology Services
Workflow -- For the UC Grid -- 1
Campus Grid Portal
All authenticationis done at the campuslevel
Sends a messageto campus grid admin
User
AuthenticationForm requesting
Proposedusername
Unique?
Requested username/password pending
Usernames are unique across the entire UC
UCGrid CA
UCMyProxy
UC Register Service
UC UserDatabase
Sends a messageto cluster admin
Pool-only user
Cluster user
Academic Technology Services
Workflow -- For the UC Grid -- 2
Campus Grid Portal
Authenticates
CampusGrid
Admin
CreatesGridSphere
account(assigns storage
area)
Clicks Approve
Sends request +Host Cert
CampusMyProxy
UC RegisterClient
UCGrid CA
UCMyProxy
UC Register Service
UC UserDatabase
Creates and signs user certificate
Creates gridsphere account at UC Portal
Pushes certificate to UC MyProxy
Pushes certificate to campus MyProxy
Requested username/password pending
Academic Technology Services
Academic Technology Services
Pool Job Submission
• Submitting a pool job
Academic Technology Services
How Pools Work
• Currently applications only• A cluster that contributes to the pool must
create:– Guest login id – Certificate for Grid Portal– Put guest in the gridmap file– Mechanism that allocates resources for pool jobs
is up to the cluster administrator
Academic Technology Services
Pool Job Submission
PortalUser
Storage Area
Find the best cluster
Select a guest user
Generate guest user proxy
Stage input files to target cluster
Database
StatusChange
?
Update
PendingActiveDoneError Job submitted via GRAM Job Service and the
guest user proxy
On Storage Server or Originating Custer
Guest UserStorage Area
A
C
Create a uniquely-named subdirectoryAdd Database entry for this job
When notified by GRAM of a status changeUpdate the database
Target Cluster
Academic Technology Services
Pool Job Output
Academic Technology Services
Pool Job Output
• Retrieving Pool Job Output
Academic Technology Services
TeraGrid
• UGP acts as a client to the TeraGrid.• Their Globus Toolkit nodes are open to all of their users.• They allowed us to get the CA Signing Policy and CA
Certificate Public Key for each of their clusters.• It only goes one way.
User Proxy Certificate
myproxy.ncsa.uiuc.edu
UCLAGrid
Portal
Request for user proxy
User proxy certificate returned becauseUCLA Grid Portal can authenticate
DataStar atSDSC
user proxy certificate
UCLA pool jobs currently can run on two TeraGrid clusters.
Academic Technology Services
Submitting Jobs to the TeraGrid
Submitting a job to the TeraGrid
Academic Technology Services
Grid Development Environment and Ajax TechnologiesAjax• Ajax -- Asynchronous JavaScript and XML• Create web applications that are more interactive• Only those parts of a page that change are updated
GDE• Create project, import files, save project• Fully integrated editor interface• GDE-generated Makefile or use pre-existing user Makefile• Can for as many windows as you want. (Can be on different clusters)• Tested in IE, Safari, Firefox• Uses Zimbra Open AJAX Toolkit (BSD license)• Compilations submitted to instantaneous queues (must run on the cluster,
not on the appliance)
Academic Technology Services
GDE
Ajax Grid Development Environment
GDE Project Directory
Academic Technology Services
Visualization
Academic Technology Services
Pools -- Now
• Single Pool– Every campus cluster user is also a pool user.– Pool-only users can only submit to the pool – Any cluster can contribute cycles to the pool
• It can choose which of its applications it will contribute to the pool
• When a pool job is submitted, the Portal decides which cluster will run it.
Academic Technology Services
Futures -- Specialty Pools
• Clusters can form Specialty Pools
– A user must be approved by the pool admin to – A specialty pool includes a list of applications – Grid Portal databases for: pools and pool users
Academic Technology Services
UCLA UC
MatlabAmberQ-ChemMathematicaMathematica
Matlab
Amber
Q-Chem
Gromacs
VaspJaguar
AmberFluent
UCLA
UCSB
TeraGrid
UCI
MathematicaCorsicaOsiris baby b2
Jaguar*
*
* = CNSI
Mathematica
Gromacs
***
Joan is in the default pools
Frank is in the default pools and the UCLA Physics PoolPrakashan is in the default and chemistry pools
Futures -- Specialty Pools
Academic Technology Services
Futures -- Redundancy and Failover
• Also called big IP• It could be Apache or it could be hardware• Farms out work to the portals
.
.
MySQL Master Slave
Disk May be a shared file system RAID5 or just like an appliance
LB
MyProxy MyProxy
RAID5
Load Balancer
Load Balancer
This is a feature of MySQL which automaticallymirrors the database on the slaves.
Portal
Portal
LB
Academic Technology Services
Workflow for Cluster User -- Now -- Single Campus
ClusterHead node
SSH authentication
Sends a messageto cluster admin
Apply Page Approves and adds to the
gridmapfile
Sends a messageTo grid admin Creates
gridsphereaccount
Sends a messageTo the user
Request for password, create and sign certificate, push it to MyProxy
User
Academic Technology Services
Workflow for Pool-only User -- Now -- Single Campus
ISISused at UCLA
link
Apply Page
User authenticated if he/she belongs to the UCLA community
Sends a messageTo grid admin
Sends a messageTo the user User can now log in
User
Purse (on MyProxy
Server)
Creates gridsphere account and assigns storage area on storage server
Academic Technology Services
Workflow -- Add a Cluster on Another Campus -- 1
OtherCampus
Grid Portal
Main PageSends a messageto other campus grid admin
User
Username Authentication
UCGrid CA
UCMyProxy
UC Register Service
UC UserDatabase
Sends a messageto cluster adminGridSphere account
not required
Academic Technology Services
Workflow -- Add a cluster on Another Campus -- 2
Other Campus
Grid Portal
Authenticates
OtherCampus
GridAdmin
CreatesGridSphere
account
Clicks Approve
Sends request +Host Cert
OtherCampusMyProxy
UC RegisterClient
UC CA
UCMyProxy
UC Register Service
UC UserDatabase
Pushes certificate to Other campus MyProxy
Academic Technology Services
Portal Decides Where the Job will Run
Amber Job Submitted
Requirements?Time,
Number of nodes
Current LoadQueueLength
Clusters with Amber
Can resources meet requirements?
Select one
Academic Technology ServicesUCSB Batch Queue Prediction Algorithm
UCSB Prediction Algorithm:Daniel Nurmi
75% of the jobs queued start in317 seconds ~ 5 minutes
95% of the jobs queued start in54,000 seconds ~1.5 hours
Hoffman cluster Parallel Queue
Academic Technology Services
Futures -- Job Status and the UC Grid Portal
A
A
A A
C1
C2
C1 C2JobsDB
JobsDB
JobsDB
Joan submits a job to: - UCLA C1 - UCLA C2 - UCLA poolFrom the UCLA Grid Portal
Joan submits a job to: - UCLA C1 - UCI C1 - UC PoolFrom the UC Grid Portal
UCLAPortal
UCIPortal
UC Portal
Academic Technology Services