VisPortal Project developer’s experience C.E.Siegerist, J. Shalf, E.W. Bethel NERSC/LBNL...

27
VisPortal Project developer’s experience C.E.Siegerist, J. Shalf, E.W. Bethel NERSC/LBNL Visualization Group T.J. Jankun-Kelley, O. Kreylos, K.L. Ma CIPIC/UC Davis

description

The Grid The Grid is an abstraction that allows transparent use of distributed computing resources. The problem that underlies the Grid concept is coordinated resource sharing and problem solving in dynamic, multi-institutional virtual organizations.

Transcript of VisPortal Project developer’s experience C.E.Siegerist, J. Shalf, E.W. Bethel NERSC/LBNL...

Page 1: VisPortal Project developer’s experience C.E.Siegerist, J. Shalf, E.W. Bethel NERSC/LBNL Visualization Group T.J. Jankun-Kelley, O. Kreylos, K.L. Ma CIPIC/UC.

VisPortal Projectdeveloper’s experience

C.E.Siegerist, J. Shalf, E.W. BethelNERSC/LBNL Visualization Group

T.J. Jankun-Kelley, O. Kreylos, K.L. MaCIPIC/UC Davis

Page 2: VisPortal Project developer’s experience C.E.Siegerist, J. Shalf, E.W. Bethel NERSC/LBNL Visualization Group T.J. Jankun-Kelley, O. Kreylos, K.L. Ma CIPIC/UC.

Overview• Grid Introduction • Portal Architecture/Software

components. • Visportal Services/Example Pages• User’s perspective• Conclusions/Future/Caveats• References

Page 3: VisPortal Project developer’s experience C.E.Siegerist, J. Shalf, E.W. Bethel NERSC/LBNL Visualization Group T.J. Jankun-Kelley, O. Kreylos, K.L. Ma CIPIC/UC.

The Grid• The Grid is an abstraction that allows

transparent use of distributed computing resources.

• The problem that underlies the Grid concept is coordinated resource sharing and problem solving in dynamic, multi-institutional virtual organizations.

Page 4: VisPortal Project developer’s experience C.E.Siegerist, J. Shalf, E.W. Bethel NERSC/LBNL Visualization Group T.J. Jankun-Kelley, O. Kreylos, K.L. Ma CIPIC/UC.

VisPortal Project• The LBNL/NERSC VisPortal effort explores

ways to deliver Grid-based advanced visualization and data analysis capabilities through a Web Portal interface.

• Using standard Globus Grid middleware and off the shelf web automation, the VisPortal hides the underlying complexity of resource selection and distributed application management.

Page 5: VisPortal Project developer’s experience C.E.Siegerist, J. Shalf, E.W. Bethel NERSC/LBNL Visualization Group T.J. Jankun-Kelley, O. Kreylos, K.L. Ma CIPIC/UC.

VisPortal ServicesMotivation: simplify remote visualization, offer point an click solutions for complex distributed applications

• File Management• Vis Applications: Visapult, AMR Renderer,

Web VisSheet.• One button Mpeg• …

Page 6: VisPortal Project developer’s experience C.E.Siegerist, J. Shalf, E.W. Bethel NERSC/LBNL Visualization Group T.J. Jankun-Kelley, O. Kreylos, K.L. Ma CIPIC/UC.

Globus• The Globus Project provides software

tools (Globus toolkit) that make it easier to build computational grids and grid-based applications.

Page 7: VisPortal Project developer’s experience C.E.Siegerist, J. Shalf, E.W. Bethel NERSC/LBNL Visualization Group T.J. Jankun-Kelley, O. Kreylos, K.L. Ma CIPIC/UC.

Globusrun Example of a file conversion RSL script

% globusrun –r escher.nersc.gov –f convert.rsl -w

& (executable=$GLOBUSRUN_GASS_URL # “/home/cristina/convertscript”)

(enviroment=(GLOBUSRUN_GASS_URL $(GLOBUS_GASS_URL))

Page 8: VisPortal Project developer’s experience C.E.Siegerist, J. Shalf, E.W. Bethel NERSC/LBNL Visualization Group T.J. Jankun-Kelley, O. Kreylos, K.L. Ma CIPIC/UC.

#!/sbin/sh GLOBUS_LOCATION=/usr/local/globusexport GLOBUS_LOCATIONPATH=$GLOBUS_LOCATION/bin:$GLOBUS_LOCATION/sbinexport PATHLD_LIBRARY_PATH=$GLOBUS_LOCATION/libexport LD_LIBRARY_PATHIMAGE_MAGICK=/usr/freeware/bin export IMAGE_MAGICKglobus-gass-server -t -u -r -w -c > $mytmpgassfile &sleep 3set remote_gass_server_url=`cat $mytmpgassfile`rm $mytmpgassfile $GLOBUS_LOCATION/bin/globus-url-copy $GLOBUSRUN_GASS_URL/home/cristina/file.jpg file:/tmp/file.jpg$IMAGE_MAGICK/convert /tmp/file.jpg /tmp/file.bmp$GLOBUS_LOCATION/bin/globus-url-copy file:/tmp/file.bmp $GLOBUSRUN_GASS_URL/home/cristina/file.bmpglobus-gass-server-shutdown $remote_gass_server_url rm /tmp/file.bmprm /tmp/file.jpg

Page 9: VisPortal Project developer’s experience C.E.Siegerist, J. Shalf, E.W. Bethel NERSC/LBNL Visualization Group T.J. Jankun-Kelley, O. Kreylos, K.L. Ma CIPIC/UC.

GPDK• The Grid Portal Development Kit (GPDK)

is a set of modular, reusable components for accessing Grid services in the form of Java Beans. It derives most of its functionality from the Globus Java Commodity Grid (Java CoG) toolkit.

• Other toolkits: GridPort, GridSphere

Page 10: VisPortal Project developer’s experience C.E.Siegerist, J. Shalf, E.W. Bethel NERSC/LBNL Visualization Group T.J. Jankun-Kelley, O. Kreylos, K.L. Ma CIPIC/UC.

Portal ArchitectureHPC

Resources

WebPortal

Parallel VisualAnalysis Server

User client 1

Archival Storage

& Data Cache

User client n

User site(s)HPC Facility

Audio& video

DataGRAMGSIMDS

GRAMGSI

GSIFTP

httpsSOAPGridFTP

CoG

Page 11: VisPortal Project developer’s experience C.E.Siegerist, J. Shalf, E.W. Bethel NERSC/LBNL Visualization Group T.J. Jankun-Kelley, O. Kreylos, K.L. Ma CIPIC/UC.

Portal Architecture (thick client)

HPCResources

WebPortal

Parallel VisualAnalysis Server

User client 1

Archival Storage

& Data Cache

User client n

User site(s)HPC Facility

Audio& video

DataGRAMGSIMDS

GRAMGSI

GSIFTP

httpsSOAPGridFTP

CoG

Thick Client

Resources | Users

Page 12: VisPortal Project developer’s experience C.E.Siegerist, J. Shalf, E.W. Bethel NERSC/LBNL Visualization Group T.J. Jankun-Kelley, O. Kreylos, K.L. Ma CIPIC/UC.

Internal ArchitectureWeb Server

Tomcat

GPDKPortal Engine

(Servlets)Application Logic Presentation

(JSP)

Grid Service BeansSecurity Job

SubmissionInformation

ServicesData Transfer

User Profiles

Grid Middleware Libraries(e.g. CoG)

globus

Page 13: VisPortal Project developer’s experience C.E.Siegerist, J. Shalf, E.W. Bethel NERSC/LBNL Visualization Group T.J. Jankun-Kelley, O. Kreylos, K.L. Ma CIPIC/UC.

Software Components

• Apache 1.3.27• Tomcat 3.3.1• gpdk cvs version• Java CoG v1.0a• mod_jk 1.3

• mod_ssl 2.8.12

• openssl 0.9.6h • globus 2.x• java 1.4.x• MyProxy 1.0• log4j_1.2.7

Page 14: VisPortal Project developer’s experience C.E.Siegerist, J. Shalf, E.W. Bethel NERSC/LBNL Visualization Group T.J. Jankun-Kelley, O. Kreylos, K.L. Ma CIPIC/UC.

GPDKDemo Portal

Page 15: VisPortal Project developer’s experience C.E.Siegerist, J. Shalf, E.W. Bethel NERSC/LBNL Visualization Group T.J. Jankun-Kelley, O. Kreylos, K.L. Ma CIPIC/UC.

Login Page

• Myproxy: username and password of delegated credential

• Local: load from credential file (grid-proxy-init)

Page 16: VisPortal Project developer’s experience C.E.Siegerist, J. Shalf, E.W. Bethel NERSC/LBNL Visualization Group T.J. Jankun-Kelley, O. Kreylos, K.L. Ma CIPIC/UC.

• Update user’sresourcesjob historyemail address

Profile

Page 17: VisPortal Project developer’s experience C.E.Siegerist, J. Shalf, E.W. Bethel NERSC/LBNL Visualization Group T.J. Jankun-Kelley, O. Kreylos, K.L. Ma CIPIC/UC.

File Mgmt.

• Foreground transfers

• Background transfers

• Globus File Yanker(Shreyas Cholia)

Page 18: VisPortal Project developer’s experience C.E.Siegerist, J. Shalf, E.W. Bethel NERSC/LBNL Visualization Group T.J. Jankun-Kelley, O. Kreylos, K.L. Ma CIPIC/UC.

Launch ApplicationsVisapult

Page 19: VisPortal Project developer’s experience C.E.Siegerist, J. Shalf, E.W. Bethel NERSC/LBNL Visualization Group T.J. Jankun-Kelley, O. Kreylos, K.L. Ma CIPIC/UC.

Launch ApplicationsAMR Renderer

Page 20: VisPortal Project developer’s experience C.E.Siegerist, J. Shalf, E.W. Bethel NERSC/LBNL Visualization Group T.J. Jankun-Kelley, O. Kreylos, K.L. Ma CIPIC/UC.

Visportal WebSheet

Page 21: VisPortal Project developer’s experience C.E.Siegerist, J. Shalf, E.W. Bethel NERSC/LBNL Visualization Group T.J. Jankun-Kelley, O. Kreylos, K.L. Ma CIPIC/UC.

MPEG Generator

• Example of a user driven service: the user connects to our Onyx to run an IDL batch job to produce a movie with data that he has in an IBM SP • The portal provides an interface to select the data file and the mpeg parameters. It transfers the file, launches the IDL job and sends an email to the user with a URL to retrieve the movie.

Page 22: VisPortal Project developer’s experience C.E.Siegerist, J. Shalf, E.W. Bethel NERSC/LBNL Visualization Group T.J. Jankun-Kelley, O. Kreylos, K.L. Ma CIPIC/UC.

The portal is running (most of the time)

https://frost.lbl.gov/visportal/servlet/visportal

Page 23: VisPortal Project developer’s experience C.E.Siegerist, J. Shalf, E.W. Bethel NERSC/LBNL Visualization Group T.J. Jankun-Kelley, O. Kreylos, K.L. Ma CIPIC/UC.

User’s perspective• Accounts in all the resources.

• Request a user certificate: http://www.doegrids.org/pages/cert-request.html

• Be in the grid-map files of the resources (automated through NIM).

• Create a proxy certificate and login.

Page 24: VisPortal Project developer’s experience C.E.Siegerist, J. Shalf, E.W. Bethel NERSC/LBNL Visualization Group T.J. Jankun-Kelley, O. Kreylos, K.L. Ma CIPIC/UC.

Challenges

• Difficult GUI Implementation• Error Recovery• Support• Middleware is a moving target• Resource management

Page 25: VisPortal Project developer’s experience C.E.Siegerist, J. Shalf, E.W. Bethel NERSC/LBNL Visualization Group T.J. Jankun-Kelley, O. Kreylos, K.L. Ma CIPIC/UC.

Future• Deploying a subset of services to

NERSC users.• Implementing specific user

workflows. • Upgrade to OGSA/GT3.0• Explore Gridlab/Gridsphere,

portlets.

Page 26: VisPortal Project developer’s experience C.E.Siegerist, J. Shalf, E.W. Bethel NERSC/LBNL Visualization Group T.J. Jankun-Kelley, O. Kreylos, K.L. Ma CIPIC/UC.

Soon:visportal.nersc.gov

Page 27: VisPortal Project developer’s experience C.E.Siegerist, J. Shalf, E.W. Bethel NERSC/LBNL Visualization Group T.J. Jankun-Kelley, O. Kreylos, K.L. Ma CIPIC/UC.

References• The anatomy of the Grid: Enabling Scalable Virtual Organizations, Intl. J.

Supercomputer Applications, 2001.• The Grid Portal Development Kit, J.Novotny, Cuncurrency: Pract. Exper.

2000; 00:1-7• How the Grid will affect the Architecure of Future Visualization Systems,

J.Shalf and W. Bethel, http://www-vis.lbl.gov/Publications• Building a Portal Using GPDK: A Developers Tutorial, J. Novotny,

http://doesciencegrid.org//public/events/GPDW/slides/gpdk-dev.pdf• Globus, A Metacomputing Infrastructure Toolkit. I. Foster, C.

Kessselman, Internation Journal of Supercomputing applications, 1997.• Deploying Web-based Visual Exploratin Tools on the Grid. T.J.Jankun-

Kelly, O. Kreylos, J. Shalf, K-L. Ma, B. Hammann, K. Joy, E.W. Bethel. IEEE Computer Graphics and Applications, march/april 2003.

• VisPortal, Deploying grid-enabled visualization tools through a web-portal interface. http://www-library.lbl.gov/library/docs/LBNL/529/40/PDF/LBNL-52940.pdf

• Globus: www.globus.org• GPDK: www.doesciencegrid.org