Deploying the USGS National Seismic Hazard Models
Description:
We describe how the U.S. Geological Survey (USGS) develops and deploys the National Seismic Hazard Models (NSHMs) and related products to end users. The USGS NSHMS are developed using Java and use JSON, GeoJSON, and CSV files to describe model elements. The base codes and model files are used to perform time-consuming large scale (grid of multiple points) hazard calculations as well as on-demand calculations for end users via web service and web application wrappers. In the past, we deployed multiple models to a single on-premises server but quickly faced computing limitations as the number of models grew. To address this, we now deploy each NSHM to independent Amazon Web Services (AWS) servers that are matched to the compute requirements of each model. Each server provides identical web service access to the model it hosts, and the services for the NSHMs are brought together in a unified interface for end-users via the USGS Earthquake Hazard Toolbox (https://earthquake.usgs.gov/nshmp/). Behind the scenes, we use GitLab continuous integration and continuous delivery pipelines for automated deployments and use the AWS Cloud Development Kit (CDK) to write infrastructure as code using TypeScript to generate CloudFormation templates. The NSHM web service deployments use the Amazon Elastic Compute Cloud, and the USGS Earthquake Hazard Toolbox is deployed via the Amazon Elastic Container Service. This infrastructure allows us to automate deployments to development, staging, and production environments that include pulling version-controlled resources from multiple repositories and running quality assurance tests. This presentation describes NSHM infrastructure, the resources available to end users, and the process of moving a new NSHM from development through to publication and deployment. We also highlight the efficiencies gained through moving to the cloud and describe the benefits of using the CDK for NSHM deployments.
Session: The 2023 USGS National Seismic Hazard Model and Beyond [Poster Session]
Type: Poster
Date: 5/1/2024
Presentation Time: 08:00 AM (local time)
Presenting Author: Brandon
Student Presenter: No
Invited Presentation:
Authors
Brandon Clayton Presenting Author Corresponding Author bclayton@usgs.gov U.S. Geological Survey |
Peter Powers pmpowers@usgs.gov U.S. Geological Survey |
|
|
|
|
|
|
|
Deploying the USGS National Seismic Hazard Models
Category
The 2023 USGS National Seismic Hazard Model and Beyond