Web services as Building Blocks for Science Gateways in Astrophysics
Technological Developments
Web services as Building Blocks for Science Gateways in Astrophysics
As part of our efforts to provide astronomers with advanced tools that facilitate the efficient exploitation of Distributed Computing Infrastructures (DCIs), we have performed a work published in Sánchez-Expósito et al. (2017). In this work, we have adopted an approach used in the Life Sciences domain and we have applied it to the Astrophysics domain, using as an example a set of analysis tasks of interest for some use cases of the SKA aiming to perform kinematical studies of galaxies.
In this approach, computing and scientific applications are available as-a-Service as well as empowered by the programming model developed by the Barcelona Supercomputing Center (BSC) called COMPSs, which allows to achieve an efficient exploitation of the computing resources. COMPSs orchestrates in a workflow the tasks involved in the service, submitting them as concurrently as possible to DCIs. The COMPSs workflows are exposed as web services that can be combined by scientists through graphical workflow manager systems like the Taverna Workbench. The resulting method is presented as a two-level workflow system: at the user level, workflows are built upon web services, while those services turn out to be workflows as well at the infrastructure level.
Two-Level Workflow System Architecture
From the end-user point of view the infrastructure-level workflows are single web services that can be combined to build scientific workflows. End-users would import them into workflow manager supporting web services, and connect them to other services or tools by defining the data dependency between them through the mechanism provided by the workflow manager.
Internally these web services invoke COMPSs that orchestrates the execution of the analysis tasks and submits them to a computing platform defined by the Federation Layer. This layer reads the service input parameters, including the platform where the dataset/s to be analysed is/are located. Then, it decides the platform where the tasks will be submitted, based on a set of business rules that take into account factors like the cost of moving datasets to other platforms or the platform availability, among others. Once the computing platform is selected, this layer configures the COMPSs framework (providing it with details including the user credential), so that it submit the task to the selected platform.
Science Use Case
The experiment implemented in this paper is based on The Groningen Image Processing System (GIPSY). In particular, it involves three GIPSY tasks: ROTCUR, ELLINT and GALMOD. ROTCUR derives the kinematical parameters of a galaxy, including the rotation curve; ELLINT generates the radial profile of the galaxy emission taking as input the results provided by ROTCUR; GALMOD builds a model cube from the kinematical and geometrical parameters, as well as the emission profile issued by ROTCUR and ELLINT respectively.
Users provide a set of input data, some of them compiled from external catalogues or derived by visual inspection of the data. It is a common practice to test different values of them by sweeping a small range, so as to generate several models. Then the astronomer assesses which model fits the original data better.
Examples of the implemented services and workflows for supporting the kinematical modelling of galaxies
For implementing these services, GIPSY was previously ported to different DCIs:
- IBERGRID platform, the umbrella under which both the national Spanish and Portuguese Grid initiative operates.
- The supercomputing cluster provided by Fundación Centro de Supercomputación de Castilla y León (FCSCL).
Taverna workflow rotcur_ellint_wf.
This workflow calls the rotcur_ws service, which internally executes the task ROTCUR. Then, it gets the kinematical parameters of the galaxy by means of a python script (get_data_rot) that processes the rocur_ws results. These kinematical parameters are received by the ellint_ws service, which executes the task ELLINT. Finally, two nested workflows (rotcur_plot and ellint _plot) will plot the rotcur_ws and ellint_ws results.
Taverna workflow rotellint_wf.
This workflow calls the rotellint_ws service, which executes internally the task ROTCUR, then processes its output data, calculating the average of the kinematical parameters of the central rings of the galaxy, and finally passes the resulting values to the task ELLINT, as input data. Finally, two nested workflows (rotcur_plot and ellint_plot) will plot the rotellint_ws results.