Before you begin
- Labs create a Google Cloud project and resources for a fixed time
- Labs have a time limit and no pause feature. If you restart it, you'll have to start from the beginning.
- On the top left of your screen, click Start lab to begin
Google Cloud Project Setup
/ 20
Launch CloudyCluster
/ 30
HPC Environment Setup
/ 20
HPC Job Execution
/ 30
This lab was developed with our partner, Omnibond. Your personal information may be shared with Omnibond, the lab sponsor, if you have opted-in to receive product updates, announcements, and offers in your Account Profile.
In this lab, you create a complete turn-key High Performance Computing (HPC) environment in Google Cloud. This environment will provide the familiar look and feel of on-prem HPC systems but with the added elasticity and scalability of Google Cloud.
In this lab you see how CloudyCluster can easily create HPC/HTC jobs that will run on-prem or in CloudyCluster on Google Cloud. You can rely on the familiar look and feel of a standard HPC environment while embracing the capabilities and elasticity of Google Cloud. The HPC jobs can be easily configured to support many instance types including GPU, preemptible, and any number of memory & CPU configurations. You will always have the latest computational technology at your fingertips.
With CloudyCluster, users can now take advantage of the GUI developed by Open OnDemand. In this lab you will be able to experience many of the Open OnDemand HPC tools. Upload and download files with a file browser-like interface. Draft job scripts with the built-in web editor. Spin-up new computing instances and have them tear down automatically after your specified work window. The current release includes JupyterLab via JupyterHub and Cloudy desktop capabilities.
As part of Google Cloud and CloudyCluster you have a vast array of storage technologies available to you. In this lab you will take advantage of High Performance Parallel Storage for job execution.
In this lab, you will learn how to perform the following tasks:
Familiarity with HPC concepts and batch processes will help understand the goals. This lab can also be used in conjunction with courses and workshops that require an introduction to HPC.
The following labs will help provide the Google Cloud foundations for this lab:
Read these instructions. Labs are timed and you cannot pause them. The timer, which starts when you click Start Lab, shows how long Google Cloud resources are made available to you.
This hands-on lab lets you do the lab activities in a real cloud environment, not in a simulation or demo environment. It does so by giving you new, temporary credentials you use to sign in and access Google Cloud for the duration of the lab.
To complete this lab, you need:
Click the Start Lab button. If you need to pay for the lab, a dialog opens for you to select your payment method. On the left is the Lab Details pane with the following:
Click Open Google Cloud console (or right-click and select Open Link in Incognito Window if you are running the Chrome browser).
The lab spins up resources, and then opens another tab that shows the Sign in page.
Tip: Arrange the tabs in separate windows, side-by-side.
If necessary, copy the Username below and paste it into the Sign in dialog.
You can also find the Username in the Lab Details pane.
Click Next.
Copy the Password below and paste it into the Welcome dialog.
You can also find the Password in the Lab Details pane.
Click Next.
Click through the subsequent pages:
After a few moments, the Google Cloud console opens in this tab.
Cloud Shell is a virtual machine that is loaded with development tools. It offers a persistent 5GB home directory and runs on the Google Cloud. Cloud Shell provides command-line access to your Google Cloud resources.
Click Activate Cloud Shell at the top of the Google Cloud console.
Click through the following windows:
When you are connected, you are already authenticated, and the project is set to your Project_ID,
gcloud
is the command-line tool for Google Cloud. It comes pre-installed on Cloud Shell and supports tab-completion.
Output:
Output:
gcloud
, in Google Cloud, refer to the gcloud CLI overview guide.
To start, you will set up the project for Native Cloud Firestore Mode. Follow these steps in the Google Cloud Console to activate it.
In the Navigation Menu (), click View All Products under Databases, click Firestore.
Click Create Database.
Click Select Native Mode.
Choose
Lastly, click Create Database. Once your database has been created, you are ready to continue to the next section.
Try the new query builder
, click Close.CloudyCluster uses project-wide SSH keys to provide debugging access to the instances. For more information on how to configure them, you can refer to the Managing SSH Keys in the Metadata page.
Open a new Cloud Shell window.
In Cloud Shell, use ssh-keygen
to generate a new key pair. Replace [USERNAME]
with your Google Cloud login. If you are unclear what your username is, use the output of the whoami
command in your Cloud Shell as your [USERNAME]
. For the lab, it's okay to use an empty passphrase.
You can ignore the warning No host aliases were added...
because the command also attempts to update Compute Engine VM instances, but no instances have been created yet.
In the Navigation Menu (), go to Compute Engine > Metadata.
Click SSH Keys. Verify the SSH key exists with your student username.
omnibond-sa@qwiklabs-gcp-xx-xxxx.iam.gserviceaccount.com
. You will use this in the next task.Click Check my progress to verify the objective.
In the Navigation Menu (), click Marketplace.
Search for CloudyCluster and click on the results:
From the CloudyCluster offering in the Google Cloud Marketplace, click on GET STARTED then accept Terms and agreements and click on AGREE then click on Deploy.
In the deployment setup page, Select a zone
Put the service account name you just created into the Script Created SA field.
Under Machine Type, change the Series to E2, and select the e2-standard-2
Machine type.
Select Allow CloudyCluster to use the Scopes of the Script Created SA.
Leave all the other values as default, accept the GCP Terms of Service and click Deploy.
Once the deployment has finished, click on the LOGIN INTO THE ADMIN PANEL link.
Click Check my progress to verify the objective.
After you have launched the Image, you will complete the following initial setup tasks. It takes about 5 minutes for the instance to come up and fully self-configure. Once it does, you will see the following:
startup_key
to authenticate that you launched the instance.
Next, provide the following Admin User information to complete the initial setup (all information you provide is used only in CloudyCluster and never leaves your Google Cloud project):
Create a CloudyCluster username and password to be encrypted and stored in the database in your Google Cloud project. Your password must contain at least 8 characters and include a capital letter and a number.
You have successfully completed the initial control instance configuration.
In this section you will follow the steps below to create an HPC Environment.
Use the pulldown menu to select options for Availability Zone and Instance SSH Key. For these use the zone you created the Control Instance in (the default zone for the lab/project) and the SSH key you created earlier.
Enter a Name for your Environment. Environment names must be alphanumeric, between 3 and 30 characters long, and may not contain spaces or special characters. For this lab, you can use envname
.
Select the radio button for one of the pre-configured setup options. For this lab you will use Slurm and Test.
Select the Quick Start link at the bottom of the screen.
e2-standard-2
e2-standard-2
e2-standard-2
Enter a network CIDR representing an IP address range that is permitted to access your environment, for this lab enter 0.0.0.0/0
.
After you have carefully reviewed your environment configuration, making sure the e2-standard-2
is selected for all instance types (this lab is restricted to the types of instances that can be used), select Create Environment.
Click Check my progress to verify the objective.
While you wait for the environment to deploy, you can watch the following video. This video goes behind the scenes and provides more details on the architecture behind CloudyCluster, including how it configures your own Private & Secure HPC/HTC environment in Google Cloud.
You can also check out the following resources, which are also linked in the Student Resources lab panel on the left.
Click on Files > Home Directory.
Then click on Change directory and navigate to /mnt/orangefs/samplejobs/mpi/GCP
. Select three dot next to mpi_prime.sh
then click on Edit button:
#!./bin/bash
:This command is a ccq directive that sets the job to use a specific instance type. The other #CC directives can be found in the CloudyCluster documentation.
Remove the extra comment (#) from the scheduler you are running.
For this lab, change the following lines to match:
In the terminal window, navigate to /mnt/orangefs/samplejobs/mpi/GCP/
.
Run the following command:
ccqsub
command:ccqstat
:You can also use the command watch ccqstat
to see it go through the stages. You can use CTRL + C
to stop that command.
Click Check my progress to verify the objective.
After job submission the job will go through the following states:
When operating in your own project, you can pause your HPC Environment if you do not have any more jobs to run. Once everything is paused, you can also stop the control node from the Google Cloud Console and restart it when you are ready to run jobs again.
Navigate to Administration > Remove Control Instance and Database and click Delete. Finally click Ok.
In this lab you launched CloudyCluster and the Control Instance from the Google Cloud Marketplace. You then configured the Control Instance, set up an HPC environment and executed a job, set up, edited and launched sample HPC jobs, and deleted the CloudyCluster, HPC environment, and Control Instance.
Be sure to check out the following for more practice with Omnibond:
...helps you make the most of Google Cloud technologies. Our classes include technical skills and best practices to help you get up to speed quickly and continue your learning journey. We offer fundamental to advanced level training, with on-demand, live, and virtual options to suit your busy schedule. Certifications help you validate and prove your skill and expertise in Google Cloud technologies.
Manual Last Updated November 20, 2024
Lab Last Tested November 20, 2024
Copyright 2025 Google LLC All rights reserved. Google and the Google logo are trademarks of Google LLC. All other company and product names may be trademarks of the respective companies with which they are associated.
현재 이 콘텐츠를 이용할 수 없습니다
이용할 수 있게 되면 이메일로 알려드리겠습니다.
감사합니다
이용할 수 있게 되면 이메일로 알려드리겠습니다.
One lab at a time
Confirm to end all existing labs and start this one