Edit

Share via


Managed Disks

CycleCloud automatically attaches volumes (Azure Managed Disks) to your nodes for extra storage space. Managed disks come in four types and have capacities up to 64 TiB.

To create a 100 GB volume, add the following code to your [[node]] element in your cluster template:

[[[volume example-vol]]]
Size = 100

Persistent volumes

By default, the volume is created when the instance starts and deleted when the instance terminates. To preserve the data on the volume even after the instance terminates, make it a persistent volume:

[[[volume example-vol]]]
Size = 100
Persistent = true

This volume is created the first time the instance starts but isn't deleted when the instance terminates. Instead, the volume is kept and reattached to the instance the next time the node starts. Persistent volumes are deleted only when the cluster is deleted.

Warning

When you delete your cluster, you also delete all persistent volumes. To keep your storage available after your cluster is deleted, attach a preexisting volume by ID.

Disk types

There are four Azure disk types. CycleCloud uses standard hard disk drives (HDD) by default. To use a more performant SSD drive for the disk, set SSD to true:

[[[volume example-vol]]]
Size = 100
Persistent = true
SSD = true

When you use a VM series that works with premium storage, the default is a premium SSH disk.

Azure offers four basic storage options: Ultra, Premium SSD, Standard SSD, and Standard HDD.

To specify the storage type for your virtual machine, use: StorageAccountType = [UltraSSD_LRS|Premium_LRS|StandardSSD_LRS|Standard_LRS] on your volume.

For example:

[[[volume example-vol]]]
Size = 100
Persistent = true
StorageAccountType = StandardSSD_LRS

For backward compatibility, SSD=true selects Premium_LRS or StandardSSD_LRS depending on the capabilities of the VM size you select.

Note

For pricing, Azure SSD rounds up to the next size. For example, if you create a disk size of 100 GB, you pay at the 128 GB rate.

When you specify a volume, you attach the devices to your instance but don't mount or format the device.

Further reading