Install and start HPS#
Prerequisites#
Set GitHub token#
To download HPS core services from the GitHub Container Registry, you need a GitHub Personal Access Token (PAT) with the appropriate scopes.
Create a Personal Access Token (PAT) in GitHub. Note it down immediately after creating it as you will not be able to see it again.
Click on the token name, select the
repoand write:packages scopes, and update the token.Click on Configure SSO and authorize both ansys.
Set your GitHub PAT as an environment variable
GITHUB_TOKEN.
$env:GITHUB_TOKEN = “<token>”
export GITHUB_TOKEN=”<token>”
Warning
If you are using VS Code, you need to close all instances for the environment variable to take effect.
Install Docker#
Docker is required to run HPS.
Either install Docker Desktop (may require a Docker subscription depending on your organization) or run Docker CE (Community Edition, which is open-source) in WSL (Windows Subsystem for Linux).
If using Docker CE:
If you don’t have WSL installed, follow the official Microsoft How to install Linux on Windows with WSL documentation.
Follow the official Docker installation guide to install Docker Engine and Docker Compose on WSL.
Install
Docker CE- instructions here for Linux.Add your user to the docker group:
sudo gpasswd -a $USER docker newgrp docker
Set the MACHINE_IP environment variable#
The MACHINE_IP environment variable must be set to the IP address of your machine.
If you are using WSL to run Docker, the MACHINE_IP is the WSL IP address of your machine.
Find the WSL IP address:
Open a WSL terminal and run the following command:
ip addr show eth0
Find the
inetline under theeth0section.Note the IP address, which is the number before the
/.
Add the
MACHINE_IPenvironment variable:Click the Environment Variables button.
Under System Variables, click New.
Enter
MACHINE_IPas the variable name.Set the WSL IP address you noted in the previous step as the value.
Click OK to save the variable.
If you are using Docker Desktop to run Docker, use your machine’s Wireless or Ethernet IP address, as follows:
If connected via Wi-Fi, use the IP address from the
Wireless LAN adapter Wi-Fisection.If connected via Ethernet, use the IP address from the
Ethernet adapter Ethernetsection.
Find the machine IP address:
Open a terminal and run the following command:
ipconfig /allLocate the
Ethernet adapter EthernetorWireless LAN adapter Wi-Fisection.Note the IP address under
IPv4 Address.
Add the
MACHINE_IPenvironment variable:Click the Environment Variables button.
Under System Variables, click New.
Enter
MACHINE_IPas the variable name.Set the WSL IP address you noted above as the value.
Click OK to save the variable.
Warning
If you are using VS Code, you need to close all instances for the environment variable to take effect.
Deploy the core services#
Follow these steps to start and verify the HPS core services.
Start HPS core services#
Follow these steps to deploy the Ansys HPS core services using Docker Compose on your machine.
See also
For more detailed instructions, see Deploying Core Services with Docker Compose in the Ansys HPC Platform Services Deployment Guide.
Ensure that Docker is installed and that the
MACHINE_IPenvironment variable is set (see above).Navigate to the supported HPS version listed in the supported software table to know which version to download.
- Download HPS core services.
Go to the Ansys Customer Portal.
Navigate to Downloads > Current release >Platform Components > HPC Platform Services.
Download HPS-Core (docker compose) (
docker-compose-internal.tar.gz).
Important
SAF is only tested against the supported HPS version listed in the supported software table. You can try other versions but they may not work correctly.
Extract the downloaded file. Extract the
docker-compose-customer.tar.gzfile:tar -xvf docker-compose-customer.tar.gz
A folder named
docker-compose-customeris extracted.Navigate to the extracted folder:
cd docker-compose-customer
Log in to the Docker Registry. Authenticate with your GitHub username and personal access token (PAT):
docker login ghcr.io/ansys
Note
If you have lost or forgotten your PAT, follow the steps in GitHub Docs: Creating a personal access token to generate a new one. Make sure it has the
read:packagesscope.Update the environment variables file.
In a text editor, open the environment variables file. This is the
.envfile located in thedocker-compose-customerfolder.Locate the following line:
EXTERNAL_NAME=localhost
In this line, replace
localhostwith your machine’s IP (MACHINE_IP), so it reads:EXTERNAL_NAME=${MACHINE_IP}
Save the file.
Start the HPS core service containers.
docker-compose up -d
Note
The first time you run this command, it takes time to build the image and download the required third-party containers. You can expect subsequent runs to be faster.
Verify HPS core services#
Follow these steps to verify that the HPS core services started correctly.
- Open this URL in a web browser:
https://<MACHINE_IP>:8443/hps
- Access the HPS web app.
Click the JMS Web UI button to access the HPS web app.
Log in using the default administrative credentials:
Username:
repadminPassword:
repadmin
If you completed these steps successfully, the HPS core services have been started correctly.
Deploy a static evaluator or an autoscaling service#
You can deploy either a static evaluator or an autoscaling service to run jobs on your machine. Refer to the official documentation for more details on each option.
Deploy a static evaluator#
See also
For more detailed instructions, see Deploying Static Evaluators in the Ansys HPC Platform Services Deployment Guide.
Follow these steps to start and verify the HPS evaluator.
Start the HPS evaluator#
Follow these steps to deploy the HPS evaluator on your machine.
See also
For more detailed instructions, see Deploying Core Services with Docker Compose in the Ansys HPC Platform Services Deployment Guide.
- Download the HPS evaluator.
Go to the Ansys Customer Portal.
Navigate to Downloads > Current release > Platform Components > HPC Platform Services.
Download the evaluator file that corresponds to your operating system:
Click hps-evaluator (Windows) to download
rep-evaluator-windows-signed.tgz.Click hps-evaluator (ubuntu20_04) to download
rep-evaluator-default.tgz.Click hps-evaluator (Centos7) to download
rep-evaluator-centos7.tgz.
- Extract the archive.
For example, on Windows:
tar -xvf rep-evaluator-windows-signed.tgz
- Navigate to the extracted folder.
cd rep-evaluator-windows-signed
The folder contains the
rep-evaluator.exefile.
- Log in to the controller.
The evaluator must be able to communicate with the services on the controller. This is done by logging in to the controller from the evaluator.
At the command prompt, run the
rep-evaluatorexecutable’s login command with the following arguments:./rep-evaluator.exe login --url https://$($env:MACHINE_IP):8443/rep --username repadmin --password repadmin
./rep-evaluator login --url https://$MACHINE_IP:8443/rep --username repadmin --password repadmin
- Start the evaluator.
Once you are logged in, run this command to start the evaluator:
./rep-evaluator.exe
./rep-evaluator
The evaluator should now be available on the Resources page of the Ansys HPC Manager.
Verify the HPS evaluator#
Follow these steps to ensure that the HPS evaluator is running correctly.
Go to the Ansys HPC Manager Resources page.
Confirm that the evaluator is listed as a resource.
Deploy an autoscaling service#
Refer to the HPS official documentation to deploy and configure an autoscaling service.