Skip to content

Commit 1191d0a

Browse files
committed
use read/write cache on azure masters
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
1 parent e287078 commit 1191d0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

data/data/azure/cluster/master/master.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ resource "azurerm_linux_virtual_machine" "master" {
114114

115115
os_disk {
116116
name = "${var.cluster_id}-master-${count.index}_OSDisk" # os disk name needs to match cluster-api convention
117-
caching = "ReadOnly"
117+
caching = "ReadWrite"
118118
storage_account_type = var.os_volume_type
119119
disk_size_gb = var.os_volume_size
120120
disk_encryption_set_id = var.disk_encryption_set_id

0 commit comments

Comments
 (0)