mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 10:33:35 +00:00
e2e: added test to verify read affinity functionality
e2e test case is added to test if read affinity is enabled by verifying read_from_replica=localize option is passed Signed-off-by: Praveen M <m.praveen@ibm.com>
This commit is contained in:
@ -87,8 +87,8 @@ spec:
|
||||
{{- if .Values.nodeplugin.profiling.enabled }}
|
||||
- "--enableprofiling={{ .Values.nodeplugin.profiling.enabled }}"
|
||||
{{- end }}
|
||||
- "--enable-read-affinity={{ .Values.readAffinity.enabled }}"
|
||||
{{- if .Values.readAffinity.enabled }}
|
||||
- "--enable-read-affinity={{ and .Values.readAffinity .Values.readAffinity.enabled }}"
|
||||
{{- if and .Values.readAffinity .Values.readAffinity.enabled }}
|
||||
- "--crush-location-labels={{ .Values.readAffinity.crushLocationLabels | join "," }}"
|
||||
{{- end }}
|
||||
env:
|
||||
|
@ -279,16 +279,16 @@ topology:
|
||||
- failure-domain/region
|
||||
- failure-domain/zone
|
||||
|
||||
readAffinity:
|
||||
# Enable read affinity for RBD volumes. Recommended to
|
||||
# set to true if running kernel 5.8 or newer.
|
||||
enabled: false
|
||||
# Define which node labels to use as CRUSH location.
|
||||
# This should correspond to the values set in the CRUSH map.
|
||||
# NOTE: the value here serves as an example
|
||||
crushLocationLabels:
|
||||
- topology.kubernetes.io/region
|
||||
- topology.kubernetes.io/zone
|
||||
# readAffinity:
|
||||
# Enable read affinity for RBD volumes. Recommended to
|
||||
# set to true if running kernel 5.8 or newer.
|
||||
# enabled: false
|
||||
# Define which node labels to use as CRUSH location.
|
||||
# This should correspond to the values set in the CRUSH map.
|
||||
# NOTE: the value here serves as an example
|
||||
# crushLocationLabels:
|
||||
# - topology.kubernetes.io/region
|
||||
# - topology.kubernetes.io/zone
|
||||
|
||||
storageClass:
|
||||
# Specifies whether the storageclass should be created
|
||||
|
Reference in New Issue
Block a user