%3CLINGO-SUB%20id%3D%22lingo-sub-1418050%22%20slang%3D%22en-US%22%3EHPC%20Cache%20Automation%20with%20Terraform%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1418050%22%20slang%3D%22en-US%22%3E%3CH1%20id%3D%22toc-hId-467534432%22%20id%3D%22toc-hId-467537439%22%3EHPC%20Cache%20Automation%20with%20Terraform%3C%2FH1%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EAllocating%20HPC%20infrastructure%20costs%20time%20and%20money%2C%20so%20whatever%20you%20can%20do%20to%20automate%20the%20process%20saves%20both.%20Nowhere%20are%20such%20savings%20more%20essential%20to%20corporate%20success%20than%20in%20the%20semiconductor%20industry%20where%20businesses%20face%20non-stop%20competitive%20pressure%20to%20accelerate%20production%20of%20more%20complex%20designs%20in%20ever-smaller%20geometries.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3ESilicon%20design%20teams%20using%20HPC%20infrastructure%20for%20verification%20and%20other%20EDA%20workloads%20are%20likely%20already%20using%20or%20at%20least%20familiar%20with%20%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fwww.terraform.io%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CSPAN%3EHashicorp%E2%80%99s%3C%2FSPAN%3E%20Terraform%3C%2FA%3E%3CSPAN%3E%20automation%20tool.%20We%20recently%20%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fazure-storage%2Fautomating-render-cloud-infrastructure%2Fba-p%2F1276103%22%20target%3D%22_blank%22%20rel%3D%22noopener%22%3Eshared%20information%3C%2FA%3E%20%3CSPAN%3Eabout%20using%20Terraform%20Infrastructure%20as%20Code%20(IaC)%20to%20automate%20render%20cloud%20infrastructure%20deployments.%20In%20that%20article%2C%20we%20provided%20specific%20examples%20for%20deploying%20the%20Avere%20vFXT%20for%20Azure%20high-performance%20caching%20service.%20%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EToday%20we%E2%80%99d%20like%20to%20expand%20on%20that%20to%20show%20how%20you%20can%20use%20Terraform%20to%20deploy%20and%20manage%20%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fen-us%2Fservices%2Fhpc-cache%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EAzure%20HPC%20Cache%3C%2FA%3E%3CSPAN%3E%20resources.%20With%20this%20new%20support%20for%20HPC%20Cache%2C%20Terraform%20makes%20it%20even%20easier%20to%20set%20up%20file%20caching%20for%20HPC%20workloads%20running%20in%20Azure.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EHPC%20Cache%20reduces%20latency%20between%20Azure%20and%20on-prem%20storage%20so%20you%20can%20burst%20EDA%20workloads%20to%20Azure%20without%20moving%20your%20datasets.%20Similar%20in%20functionality%20to%20Avere%20vFXT%2C%20the%20Azure%20HPC%20Cache%20service%20offers%20easier%20data%20access%20and%20simpler%20management%20via%20the%20Azure%20Portal%20and%20API%20tools.%20EDA%20workloads%20can%20benefit%20from%20the%20cache%E2%80%99s%20performant%20data%20access%2C%20while%20IT%20and%20design%2Ftest%20engineers%20will%20appreciate%20the%20time%20savings%2C%20increased%20agility%2C%20cost%20control%2C%20reduced%20manual%20errors%2C%20and%20decreased%20risk%20benefits%20of%20using%20Terraform%E2%80%99s%20single-touch%2C%20programmatic%20setup.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%26nbsp%3B%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22EDAdiagram1.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F194433i765E1743D9CC01DC%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22EDAdiagram1.png%22%20alt%3D%22EDAdiagram1.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%3CEM%3EFigure%201.%20Using%20Terraform%20to%20deploy%20HPC%20Cache%20resources%20for%20EDA%20verification%20workloads%3C%2FEM%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EEssentially%20a%20template%20to%20create%20Azure%20HPC%20Cache%20configurations%20for%20design-verification%20and%20other%20EDA%20workloads%2C%20the%20Terraform%20tool%20builds%20out%20the%20infrastructure%20with%20just%20a%20few%20commands.%20Terraform%20makes%20it%20easy%20to%20codify%20both%20setup%20and%20tear-down%20processes.%20Learn%20about%20specific%20parameters%20of%20the%20resource%20on%20the%20%3CA%20href%3D%22https%3A%2F%2Fwww.terraform.io%2Fdocs%2Fproviders%2Fazurerm%2Fr%2Fhpc_cache.html%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3ETerraform%20HPC%20Cache%20documentation%20page%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ENote%3A%3C%2FSTRONG%3E%20While%20many%20enterprises%20use%20Azure%20Resource%20Manager%20(ARM)%20templates%20for%20IaC%20services%2C%20IT%20administrators%20that%20choose%20the%20Terraform%20tool%20have%20typically%20already%20adopted%20Terraform%20for%20their%20on-premises%20infrastructure%20provisioning.%20Since%20ARM%20templates%20do%20not%20work%20cross%20platform%20(for%20both%20on-prem%20and%20cloud%20infrastructure)%2C%20the%20Terraform%20application%20is%20the%20better%20option%20for%20these%20users.%20By%20giving%20users%20a%20single%20tool%20to%20learn%20and%20use%20across%20multiple%20platforms%2C%20Terraform%20continues%20to%20rapidly%20expand%20its%20footprint%20among%20Azure%20enterprise%20customers.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1158095906%22%20id%3D%22toc-hId-1158098913%22%3ETerraform%20Examples%20to%20Deploy%20Azure%20HPC%20Cache%3C%2FH2%3E%0A%3CP%3ETo%20help%20you%20get%20started%2C%20we%E2%80%99ve%20created%20a%20set%20of%20examples%20that%20show%20you%20how%20to%20deploy%20a%20number%20of%20Azure%20HPC%20Cache%20and%20NFS%20filer%20configurations.%20All%20examples%20can%20be%20deployed%20through%20Azure%20Cloud%20Shell.%20(Terraform%20is%20installed%20by%20default.)%20The%20process%20follows%20these%20four%20basic%20steps%3A%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EStart%20Azure%20Shell%20in%20browser%20tab%20(%3CA%20href%3D%22https%3A%2F%2Fshell.azure.com%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fshell.azure.com)%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3ESet%20your%20subscription%3C%2FLI%3E%0A%3CLI%3ECreate%20your%20Terraform%20file%20from%20direct%20editing%20or%20by%20pulling%20it%20from%20a%20git%20repository%3C%2FLI%3E%0A%3CLI%3ERun%20through%20the%20process%20of%3A%3COL%20class%3D%22lia-list-style-type-lower-alpha%22%3E%0A%3CLI%3ETerraform%20Init%20that%20pulls%20in%20the%20providers%20(Azure%20Provider)%20and%20any%20modules%3C%2FLI%3E%0A%3CLI%3ETerraform%20Apply%20that%20applies%20the%20configuration%20to%20production%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3EWe%20currently%20offer%20seven%20HPC%20Cache%20examples%20(available%20at%20%3CA%20style%3D%22font-family%3A%20inherit%3B%20background-color%3A%20%23ffffff%3B%22%20href%3D%22https%3A%2F%2Fgithub.com%2FAzure%2FAvere%2Ftree%2Fmaster%2Fsrc%2Fterraform%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2FAzure%2FAvere%2Ftree%2Fmaster%2Fsrc%2Fterraform)%3C%2FA%3E%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FAzure%2FAvere%2Fblob%2Fmaster%2Fsrc%2Fterraform%2Fexamples%2FHPC%2520Cache%2Fno-filers%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Eno-filer%20example%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FAzure%2FAvere%2Fblob%2Fmaster%2Fsrc%2Fterraform%2Fexamples%2FHPC%2520Cache%2Fazureblobfiler%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EHPC%20Cache%20mounting%20Azure%20Blob%20Storage%20cloud%20core%20filer%20example%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FAzure%2FAvere%2Fblob%2Fmaster%2Fsrc%2Fterraform%2Fexamples%2FHPC%2520Cache%2F1-filer%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EHPC%20Cache%20mounting%201%20IaaS%20NAS%20filer%20example%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FAzure%2FAvere%2Fblob%2Fmaster%2Fsrc%2Fterraform%2Fexamples%2FHPC%2520Cache%2F3-filers%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EHPC%20Cache%20mounting%203%20IaaS%20NAS%20filers%20example%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FAzure%2FAvere%2Fblob%2Fmaster%2Fsrc%2Fterraform%2Fexamples%2FHPC%2520Cache%2Fnetapp%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EHPC%20Cache%20mounting%20an%20Azure%20Netapp%20Volume%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FAzure%2FAvere%2Fblob%2Fmaster%2Fsrc%2Fterraform%2Fexamples%2FHPC%2520Cache%2Fvdbench%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EHPC%20Cache%20and%20VDBench%20example%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FAzure%2FAvere%2Fblob%2Fmaster%2Fsrc%2Fterraform%2Fexamples%2FHPC%2520Cache%2Fvmss%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EHPC%20Cache%20and%20VMSS%20example%3C%2FA%3E%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--649358557%22%20id%3D%22toc-hId--649355550%22%3EVdbench%20Example%3C%2FH2%3E%0A%3CP%3ETo%20give%20you%20an%20idea%20of%20sample%20configuration%20content%2C%20let%E2%80%99s%20look%20at%20the%20vdbench%20example%20that%20would%20be%20used%20to%20measure%20HPC%20Cache%20performance.%20This%20basic%20setup%20generates%20small%20and%20medium-sized%20workloads%20to%20test%20the%20performance%20of%20%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fservices%2Fhpc-cache%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EAzure%20HPC%20Cache%3C%2FA%3E%20memory%20and%20disk%20subsystems.%20The%20suggested%20configuration%20is%2012%20x%20Standard_D2s_v3%20clients%20for%20each%202%20GB%2Fs%20of%20throughput%20capacity%20in%20an%20HPC%20Cache%20deployment.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-41202917%22%20id%3D%22toc-hId-41205924%22%3EDeployment%20Instructions%3C%2FH3%3E%0A%3CP%3ETo%20run%20the%20example%2C%20execute%20the%20following%20instructions.%20This%20assumes%20use%20of%20Azure%20Cloud%20Shell.%20If%20you%20are%20installing%20into%20your%20own%20environment%2C%20you%20will%20need%20to%20follow%20the%20%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fterraform%2Fterraform-install-configure%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Einstructions%20to%20set%20up%20Terraform%20for%20the%20Azure%20environment%3C%2FA%3E%3C%2FSPAN%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBefore%20starting%2C%20download%20the%20latest%20vdbench%20from%20%3CA%20href%3D%22https%3A%2F%2Fwww.oracle.com%2Ftechnetwork%2Fserver-storage%2Fvdbench-downloads-1901681.html%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.oracle.com%2Ftechnetwork%2Fserver-storage%2Fvdbench-downloads-1901681.html%3C%2FA%3E.%20To%20download%20you%20will%20need%20to%20create%20an%20account%20with%20Oracle%20and%20accept%20the%20license.%20Upload%20to%20a%20storage%20account%20or%20something%20similar%20where%20you%20can%20create%20a%20personal%20downloadable%20.%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EBrowse%20to%20%3CA%20href%3D%22https%3A%2F%2Fshell.azure.com%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fshell.azure.com%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3ESpecify%20your%20subscription%20by%20running%20this%20command%20with%20your%20subscription%20ID%3A%20az%20account%20set%20--subscription%20YOUR_SUBSCRIPTION_ID.%20You%20will%20need%20to%20run%20this%20every%20time%20after%20restarting%20your%20shell%2C%20otherwise%20it%20may%20default%20you%20to%20the%20wrong%20subscription%2C%20and%20you%20will%20see%20an%20error%20similar%20to%20azurerm_public_ip.vm%20is%20empty%20tuple.%3C%2FLI%3E%0A%3CLI%3EDouble%20check%20your%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fhpc-cache%2Fhpc-cache-prereqs%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EHPC%20Cache%20prerequisites%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3EGet%20the%20terraform%20examples%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CPRE%20class%3D%22lia-indent-padding-left-30px%22%3Emkdir%20tf%3CSPAN%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3CSPAN%3Ecd%3C%2FSPAN%3E%20tf%3CBR%20%2F%3Egit%20init%3CBR%20%2F%3Egit%20remote%20add%20origin%20-f%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FAzure%2FAvere.git%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2FAzure%2FAvere.git%3C%2FA%3E%3CBR%20%2F%3Egit%20config%20core.sparsecheckout%20%3CSPAN%3Etrue%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%26nbsp%3B%3CBR%20%2F%3E%3CSPAN%3Eecho%3C%2FSPAN%3E%20%3CSPAN%3E%22%3C%2FSPAN%3E%3CSPAN%3Esrc%2Fterraform%2F*%3C%2FSPAN%3E%3CSPAN%3E%22%3C%2FSPAN%3E%20%3CSPAN%3E%26gt%3B%26gt%3B%3C%2FSPAN%3E%20.git%2Finfo%2Fsparse-checkout%3CBR%20%2F%3Egit%20pull%20origin%20master%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FPRE%3E%0A%3COL%20start%3D%225%22%3E%0A%3CLI%3EDecide%20to%20use%20either%20the%20NFS%20filer%20or%20Azure%20storage%20blob%20test%20and%20cd%20to%20the%20directory%3A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3COL%3E%0A%3COL%3E%0A%3CLI%3Efor%20Azure%20Storage%20Blob%20testing%3A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3C%2FOL%3E%0A%3CPRE%20class%3D%22lia-indent-padding-left-90px%22%3Ecd%20src%2Fterraform%2Fexamples%2FHPC%5C%20Cache%2Fvdbench%2Fazureblobfiler%3C%2FPRE%3E%0A%3COL%3E%0A%3COL%3E%0A%3CLI%3Efor%20NFS%20filer%20testing%3A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3C%2FOL%3E%0A%3CPRE%20class%3D%22lia-indent-padding-left-90px%22%3Ecd%20src%2Fterraform%2Fexamples%2FHPC%5C%20Cache%2Fvdbench%2Fnfsfiler%3C%2FPRE%3E%0A%3COL%20start%3D%226%22%3E%0A%3CLI%3EType%20code%20main.tf%20to%20edit%20the%20local%20variables%20section%20at%20the%20top%20of%20the%20file%2C%20to%20customize%20to%20your%20preferences%3C%2FLI%3E%0A%3CLI%3EExecute%20terraform%20init%20in%20the%20directory%20of%20main.tf.%3C%2FLI%3E%0A%3CLI%3EExecute%20terraform%20apply%20-auto-approve%20to%20build%20the%20HPC%20Cache%20cluster%20with%20a%2012%20node%20VMSS%20configured%20to%20run%20VDBench.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CH3%20id%3D%22toc-hId--1766251546%22%20id%3D%22toc-hId--1766248539%22%3EUsing%20vdbench%3C%2FH3%3E%0A%3COL%3E%0A%3CLI%3EAfter%20deployment%20is%20complete%2C%20log%20in%20to%20the%20jumpbox%20as%20specified%20by%20the%20jumpbox_username%20and%20jumpbox_address%20terraform%20output%20variables%2C%20and%20create%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-machines%2Flinux%2Fmac-create-ssh-keys%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Essh%20key%3C%2FA%3E%20to%20be%20used%20by%20vdbench%20on%20the%20jumpbox%3A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CPRE%20class%3D%22lia-indent-padding-left-60px%22%3Etouch%20%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E~%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%2F.ssh%2Fid_rsa%3CBR%20%2F%3Echmod%20600%20~%2F.ssh%2Fid_rsa%3CBR%20%2F%3Evi%20~%2F.ssh%2Fid_rsa%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FPRE%3E%0A%3CP%20class%3D%22lia-indent-padding-left-60px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%222%22%3E%0A%3CLI%3ERun%20az%20login%20and%20execute%20the%20command%20from%20the%20vmss_addresses_command%20terraform%20output%20variable%20to%20get%20one%20ip%20address%20of%20a%20VMSS%20node%2C%20and%20run%20the%20following%20commands%20to%20copy%20the%20id_rsa%20file%2C%20and%20login%20to%20the%20node%2C%20replace%20USERNAME%20with%20the%20jumpbox%20username%20and%20IP_ADDRESS%20with%20the%20ip%20address%20of%20a%20VMSS%20node%3A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CPRE%20class%3D%22lia-indent-padding-left-60px%22%3Escp%20%3CSPAN%3E~%3C%2FSPAN%3E%2F.ssh%2Fid_rsa%20%3CA%20href%3D%22mailto%3AUSERNAME%40IP_ADDRESS%3A.ssh%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3EUSERNAME%40IP_ADDRESS%3A.ssh%2F%3C%2FA%3E.%3CBR%20%2F%3Essh%20%3CA%20href%3D%22mailto%3AUSERNAME%40IP_ADDRESS%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3EUSERNAME%40IP_ADDRESS%3C%2FA%3E%3C%2FPRE%3E%0A%3CP%20class%3D%22lia-indent-padding-left-60px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%223%22%3E%0A%3CLI%3EDuring%20installation%2C%20copy_dirsa.sh%20was%20installed%20to%20~%2F.%20on%20the%20vdbench%20client%20machine%2C%20to%20enable%20easy%20copying%20of%20your%20private%20key%20to%20all%20vdbench%20clients.%20Run%20~%2Fcopy_idrsa.sh%20to%20copy%20your%20private%20key%20to%20all%20vdbench%20clients%2C%20and%20to%20add%20all%20clients%20to%20the%20%22known%20hosts%22%20list.%20(%3CSTRONG%3ENote%3A%20If%3C%2FSTRONG%3E%20your%20ssh%20key%20requires%20a%20passphrase%2C%20some%20extra%20steps%20are%20needed%20to%20make%20this%20work.%20Consider%20creating%20a%20key%20that%20does%20not%20require%20a%20passphrase%20for%20ease%20of%20use.)%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH4%20id%3D%22toc-hId--1075690072%22%20id%3D%22toc-hId--1075687065%22%3E%3CSTRONG%3EMemory%20test%3C%2FSTRONG%3E%3C%2FH4%3E%0A%3COL%3E%0A%3CLI%3ETo%20run%20the%20memory%20test%20(approximately%2020%20minutes)%2C%20issue%20the%20following%20command%3A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CPRE%20class%3D%22lia-indent-padding-left-60px%22%3E%3CSPAN%3Ecd%3CBR%20%2F%3E%3C%2FSPAN%3E.%2Frun_vdbench.sh%20inmem.conf%20uniquestring1%3C%2FPRE%3E%0A%3COL%20start%3D%222%22%3E%0A%3CLI%3EBrowse%20to%20the%20Azure%20HPC%20Cache%20resource%20in%20the%20portal%20to%20watch%20the%20performance%20metrics.%20You%20will%20see%20a%20similar%20performance%20chart%20to%20the%20following%3A%0A%3CDIV%20id%3D%22tinyMceEditorHannah_Juarez_0%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%20id%3D%22tinyMceEditorHannah_Juarez_1%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22vdbenchResults.png%22%20style%3D%22width%3A%20809px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F193415i92230380A9DEC7B0%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22vdbenchResults.png%22%20alt%3D%22vdbenchResults.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CH4%20id%3D%22toc-hId-1411822761%22%20id%3D%22toc-hId-1411825768%22%3E%3CSTRONG%3EOn-disk%20test%3C%2FSTRONG%3E%3C%2FH4%3E%0A%3COL%3E%0A%3CLI%3ETo%20run%20the%20on-disk%20test%20(approximately%2040%20minutes)%20issue%20the%20following%20command%3A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CPRE%20class%3D%22lia-indent-padding-left-60px%22%3E%3CSPAN%3Ecd%3CBR%20%2F%3E%3C%2FSPAN%3E.%2Frun_vdbench.sh%20ondisk.conf%20uniquestring2%3C%2FPRE%3E%0A%3COL%20start%3D%222%22%3E%0A%3CLI%3EBrowse%20to%20the%20Azure%20HPC%20Cache%20resource%20in%20the%20portal%20to%20watch%20the%20performance%20metrics.%20You%20will%20see%20a%20performance%20chart%20similar%20to%20the%20following%20one%3A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Graphs.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F194448iDAF7EBF6CD07BB96%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Graphs.png%22%20alt%3D%22Graphs.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--1096696280%22%20id%3D%22toc-hId--1096693273%22%3EResources%20and%20references%3C%2FH2%3E%0A%3CP%3EThe%20links%20below%20can%20help%20you%20get%20started%20using%20Terraform%20to%20provision%20and%20manage%20Azure%20HPC%20Cache%20resources.%20If%20you%20need%20additional%20information%2C%20visit%20our%20github%20page%20at%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FAzure%2FAvere%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2FAzure%2FAvere%3C%2FA%3E%20or%20message%20our%20team%20through%20the%20tech%20community%20at%3A%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F602351%22%20target%3D%22_blank%22%20rel%3D%22noopener%22%3Ehttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F602351%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.terraform.io%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.terraform.io%2F%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fterraform%2Fterraform-overview%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fterraform%2Fterraform-overview%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fwww.terraform.io%2Fdocs%2Fproviders%2Findex.html%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.terraform.io%2Fdocs%2Fproviders%2Findex.html%3C%2FA%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FAzure%2FAvere%2Ftree%2Fmaster%2Fsrc%2Fterraform%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2FAzure%2FAvere%2Ftree%2Fmaster%2Fsrc%2Fterraform%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FAzure%2FAvere%2Ftree%2Fmaster%2Fsrc%2Fterraform%2Fexamples%2FHPC%2520Cache%2Fvdbench%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2FAzure%2FAvere%2Ftree%2Fmaster%2Fsrc%2Fterraform%2Fexamples%2FHPC%2520Cache%2Fvdbench%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1418050%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22TrackChangeTextInsertion%20TrackedChange%20SCXW222079083%20BCX7%22%3E%3CSPAN%20class%3D%22TextRun%20SCXW222079083%20BCX7%22%20data-contrast%3D%22none%22%3E%3CSPAN%20class%3D%22NormalTextRun%20SCXW222079083%20BCX7%20%20%20%20DefaultHighlightTransition%22%20data-ccp-charstyle%3D%22position%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22FEATURE%20UPDATE%20copy.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F194457i0A06792A6119C4C1%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22FEATURE%20UPDATE%20copy.png%22%20alt%3D%22FEATURE%20UPDATE%20copy.png%22%20%2F%3E%3C%2FSPAN%3ELearn%20how%20to%20use%20Terraform%20to%20ease%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22TrackChangeTextInsertion%20TrackedChange%20SCXW222079083%20BCX7%22%3E%3CSPAN%20class%3D%22TextRun%20SCXW222079083%20BCX7%22%20data-contrast%3D%22none%22%3E%3CSPAN%20class%3D%22NormalTextRun%20SCXW222079083%20BCX7%20%20%20DefaultHighlightTransition%22%20data-ccp-charstyle%3D%22position%22%3Eset-up%20of%20file%20caching%20for%20HPC%20workloads%20running%20in%20Azure.%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22EOP%20SCXW222079083%20BCX7%20%20%20DefaultHighlightTransition%22%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A0%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1418050%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20Blob%20Storage%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EHPC%20Cache%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Microsoft

HPC Cache Automation with Terraform

 

Allocating HPC infrastructure costs time and money, so whatever you can do to automate the process saves both. Nowhere are such savings more essential to corporate success than in the semiconductor industry where businesses face non-stop competitive pressure to accelerate production of more complex designs in ever-smaller geometries.

 

Silicon design teams using HPC infrastructure for verification and other EDA workloads are likely already using or at least familiar with Hashicorp’s Terraform automation tool. We recently shared information about using Terraform Infrastructure as Code (IaC) to automate render cloud infrastructure deployments. In that article, we provided specific examples for deploying the Avere vFXT for Azure high-performance caching service.

 

Today we’d like to expand on that to show how you can use Terraform to deploy and manage Azure HPC Cache resources. With this new support for HPC Cache, Terraform makes it even easier to set up file caching for HPC workloads running in Azure.

 

HPC Cache reduces latency between Azure and on-prem storage so you can burst EDA workloads to Azure without moving your datasets. Similar in functionality to Avere vFXT, the Azure HPC Cache service offers easier data access and simpler management via the Azure Portal and API tools. EDA workloads can benefit from the cache’s performant data access, while IT and design/test engineers will appreciate the time savings, increased agility, cost control, reduced manual errors, and decreased risk benefits of using Terraform’s single-touch, programmatic setup.

 

 EDAdiagram1.png

Figure 1. Using Terraform to deploy HPC Cache resources for EDA verification workloads

 

Essentially a template to create Azure HPC Cache configurations for design-verification and other EDA workloads, the Terraform tool builds out the infrastructure with just a few commands. Terraform makes it easy to codify both setup and tear-down processes. Learn about specific parameters of the resource on the Terraform HPC Cache documentation page.

 

Note: While many enterprises use Azure Resource Manager (ARM) templates for IaC services, IT administrators that choose the Terraform tool have typically already adopted Terraform for their on-premises infrastructure provisioning. Since ARM templates do not work cross platform (for both on-prem and cloud infrastructure), the Terraform application is the better option for these users. By giving users a single tool to learn and use across multiple platforms, Terraform continues to rapidly expand its footprint among Azure enterprise customers.

 

Terraform Examples to Deploy Azure HPC Cache

To help you get started, we’ve created a set of examples that show you how to deploy a number of Azure HPC Cache and NFS filer configurations. All examples can be deployed through Azure Cloud Shell. (Terraform is installed by default.) The process follows these four basic steps:

  1. Start Azure Shell in browser tab (https://shell.azure.com)
  2. Set your subscription
  3. Create your Terraform file from direct editing or by pulling it from a git repository
  4. Run through the process of:
    1. Terraform Init that pulls in the providers (Azure Provider) and any modules
    2. Terraform Apply that applies the configuration to production

We currently offer seven HPC Cache examples (available at https://github.com/Azure/Avere/tree/master/src/terraform)

  1. no-filer example
  2. HPC Cache mounting Azure Blob Storage cloud core filer example
  3. HPC Cache mounting 1 IaaS NAS filer example
  4. HPC Cache mounting 3 IaaS NAS filers example
  5. HPC Cache mounting an Azure Netapp Volume
  6. HPC Cache and VDBench example
  7. HPC Cache and VMSS example

 

Vdbench Example

To give you an idea of sample configuration content, let’s look at the vdbench example that would be used to measure HPC Cache performance. This basic setup generates small and medium-sized workloads to test the performance of Azure HPC Cache memory and disk subsystems. The suggested configuration is 12 x Standard_D2s_v3 clients for each 2 GB/s of throughput capacity in an HPC Cache deployment.

 

Deployment Instructions

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 set up Terraform for the Azure environment.

 

Before starting, download the latest vdbench from https://www.oracle.com/technetwork/server-storage/vdbench-downloads-1901681.html. To download you will need to create an account with Oracle and accept the license. Upload to a storage account or something similar where you can create a personal downloadable .

  1. Browse to https://shell.azure.com
  2. 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 to azurerm_public_ip.vm is empty tuple.
  3. Double check your HPC Cache prerequisites
  4. 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 master                                        
  1. Decide to use either the NFS filer or Azure storage blob test and cd to the directory:
    1. for Azure Storage Blob testing:
cd src/terraform/examples/HPC\ Cache/vdbench/azureblobfiler
    1. for NFS filer testing:
cd src/terraform/examples/HPC\ Cache/vdbench/nfsfiler
  1. Type code main.tf to edit the local variables section at the top of the file, to customize to your preferences
  2. Execute terraform init in the directory of main.tf.
  3. Execute terraform apply -auto-approve to build the HPC Cache cluster with a 12 node VMSS configured to run VDBench.

Using vdbench

  1. After deployment is complete, log in to the jumpbox as specified by the jumpbox_username and jumpbox_address terraform output variables, and create the ssh key to be used by vdbench on the jumpbox:
touch ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
vi ~/.ssh/id_rsa

 

  1. Run az login and execute the command from the vmss_addresses_command terraform output variable to get one ip address of a VMSS node, and run the following commands to copy the id_rsa file, and login to the node, replace USERNAME with the jumpbox username and IP_ADDRESS with the ip address of a VMSS node:
scp ~/.ssh/id_rsa USERNAME@IP_ADDRESS:.ssh/.
ssh USERNAME@IP_ADDRESS

 

  1. During installation, copy_dirsa.sh was installed to ~/. on the vdbench client machine, to enable easy copying of your private key to all vdbench clients. Run ~/copy_idrsa.sh to copy your private key to all vdbench clients, and to add all clients to the "known hosts" list. (Note: If your ssh key requires a passphrase, some extra steps are needed to make this work. Consider creating a key that does not require a passphrase for ease of use.)

 

Memory test

  1. To run the memory test (approximately 20 minutes), issue the following command:
cd
./run_vdbench.sh inmem.conf uniquestring1
  1. Browse to the Azure HPC Cache resource in the portal to watch the performance metrics. You will see a similar performance chart to the following:
     
     

    vdbenchResults.png

On-disk test

  1. To run the on-disk test (approximately 40 minutes) issue the following command:
cd
./run_vdbench.sh ondisk.conf uniquestring2
  1. Browse to the Azure HPC Cache resource in the portal to watch the performance metrics. You will see a performance chart similar to the following one:

Graphs.png

Resources and references

The links below can help you get started using Terraform to provision and manage Azure HPC Cache resources. If you need additional information, visit our github page at https://github.com/Azure/Avere or message our team through the tech community at:

https://techcommunity.microsoft.com/t5/user/viewprofilepage/user-id/602351

 

https://www.terraform.io/

https://docs.microsoft.com/en-us/azure/terraform/terraform-overview

https://www.terraform.io/docs/providers/index.html

https://github.com/Azure/Avere/tree/master/src/terraform

https://github.com/Azure/Avere/tree/master/src/terraform/examples/HPC%20Cache/vdbench