Search code examples
azureazure-service-fabricazure-resource-manager

Persisting state to attached disks in Azure Service Fabric


I can create a virtual machine scale set with attached disks, thereby adding virtually unlimited cheap storage potential to my cluster. However, by default Azure Service Fabric stores all its data on the OS drive. How can I override that?

CORRECTION: Azure Service Fabric stores its data on the temporary disk (the D: drive), not the OS disk. I still desire the ability to select a different (larger) disk.

My service is not a good candidate for "packing" yet -- at this time I do not have a mix of compute-heavy and storage-heavy services that could share a larger VM size, and cost is the primary concern.


Solution

  • It seems like this is only possible via custom ARM templates. In those, one can define additional data disks and move the Service Fabric data directory to one of those. Standard or Premium SSDs seem to work fine like that.