Skip to content

Commit 00bc79b

Browse files
committed
AzureMachines: set disk caching to ReadWrite
Change Azure Masters to use ReadWrite cache. The write is then lazily written to the disk when the cache is flushed periodically. Customers can additionally force a flush by issuing an f/sync or fua command. etcd should be ok with this change since etcd does fsyncs when needed. https://learn.microsoft.com/en-us/azure/virtual-machines/disks-performance Based on Terraform changes in: #8380
1 parent 3420c22 commit 00bc79b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/asset/machines/azure/azuremachines.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ func GenerateMachines(platform *azure.Platform, pool *types.MachinePool, userDat
8383
ManagedDisk: &capz.ManagedDiskParameters{
8484
StorageAccountType: mpool.DiskType,
8585
},
86+
CachingType: "ReadWrite",
8687
}
8788
ultrassd := mpool.UltraSSDCapability == "Enabled"
8889
additionalCapabilities := &capz.AdditionalCapabilities{

0 commit comments

Comments
 (0)