This example shows how to deploy a render network, controller, and HPC Cache with 3 filers as shown in the diagram below:
To run the example, execute the following instructions. This assumes use of Azure Cloud Shell. If you are installing into your own environment, you will need to follow the instructions to setup terraform for the Azure environment.
-
browse to https://shell.azure.com
-
Specify your subscription by running this command with your subscription ID:
az account set --subscription YOUR_SUBSCRIPTION_ID
. You will need to run this every time after restarting your shell, otherwise it may default you to the wrong subscription, and you will see an error similar toazurerm_public_ip.vm is empty tuple
. -
double check your HPC Cache prerequisites
-
get the terraform examples
mkdir tf
cd tf
git init
git remote add origin -f https://github.com/Azure/Avere.git
git config core.sparsecheckout true
echo "src/terraform/*" >> .git/info/sparse-checkout
git pull origin main
-
cd src/terraform/examples/HPC\ Cache/3-filers
-
code main.tf
to edit the local variables section at the top of the file, to customize to your preferences -
execute
terraform init
in the directory ofmain.tf
. -
execute
terraform apply -auto-approve
to build the HPC Cache cluster
Once installed you will be able to mount the HPC Cache cluster, using the according to the mount_addresses
output and following the documentation.
When you are done using the cluster, you can destroy it by running terraform destroy -auto-approve
or just delete the three resource groups created.