Configure DataLocality for optimized Pod I/O
masterDataLocality allows you to instruct the driver which volume locations to prefer for Pod reads and writes, optimizing performance based on where the Pod is scheduled.
Locality Hierarchy
Settings follow a hierarchy where the more specific level overrides the more general one: Driver < StorageClass < PersistentVolume
Configuration Levels
- Driver: Set via Helm
values.yaml(dataLocality) or via DaemonSet arguments (--dataLocality=). - StorageClass: Set via
parameter.dataLocality. - PersistentVolume: Set via
spec.csi.volumeAttributes.dataLocality.
Available Options
none(default): No locality preference applied.write_preferLocalDc: Sets theDataCentermount option to the current Node's DataCenter. This makes writes local to the node's DC and allows reads to occur wherever the data is stored.