Skip to content

Set dataLocality settings to `best-efforts` for all longhorn storage classes including default one

What does this MR do and why?

This MR sets the dataLocality settings to best-efforts for all longhorn storage class.

By default, longhorn storage class uses dataLocality value as "disabled" which can impact the storage performance.

IMO, we should use dataLocality as best-efforts for longhorn storage class as well to instructs Longhorn to try to keep a replica on the same node as the attached volume.

Reference: https://longhorn.io/docs/1.6.1/high-availability/data-locality/#:~:text=The%20data%20locality%20setting%20is,replica%20as%20having%20data%20locality%20.

cc @satyawanj @asollaud @jparkash2 @NikhilSethi

Related reference(s)

Test coverage

Edited by Mohan Sharma

Merge request reports