Skip to content

Commit 595ce94

Browse files
committed
CNV-26734: updates to VM latency checkup's documentation
1 parent c161f90 commit 595ce94

File tree

1 file changed

+18
-14
lines changed

1 file changed

+18
-14
lines changed

modules/virt-measuring-latency-vm-secondary-network.adoc

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -108,17 +108,17 @@ metadata:
108108
name: kubevirt-vm-latency-checkup-config
109109
data:
110110
spec.timeout: 5m
111-
spec.param.network_attachment_definition_namespace: <target_namespace>
112-
spec.param.network_attachment_definition_name: "blue-network" <1>
113-
spec.param.max_desired_latency_milliseconds: "10" <2>
114-
spec.param.sample_duration_seconds: "5" <3>
115-
spec.param.source_node: "worker1" <4>
116-
spec.param.target_node: "worker2" <5>
111+
spec.param.networkAttachmentDefinitionNamespace: <target_namespace>
112+
spec.param.networkAttachmentDefinitionName: "blue-network" <1>
113+
spec.param.maxDesiredLatencyMilliseconds: "10" <2>
114+
spec.param.sampleDurationSeconds: "5" <3>
115+
spec.param.sourceNode: "worker1" <4>
116+
spec.param.targetNode: "worker2" <5>
117117
----
118118
<1> The name of the `NetworkAttachmentDefinition` object.
119119
<2> Optional: The maximum desired latency, in milliseconds, between the virtual machines. If the measured latency exceeds this value, the checkup fails.
120120
<3> Optional: The duration of the latency check, in seconds.
121-
<4> Optional: When specified, latency is measured from this node to the target node. If the source node is specified, the `spec.param.target_node` field cannot be empty.
121+
<4> Optional: When specified, latency is measured from this node to the target node. If the source node is specified, the `spec.param.targetNode` field cannot be empty.
122122
<5> Optional: When specified, latency is measured from the source node to this node.
123123
124124
. Apply the config map manifest in the target namespace:
@@ -158,6 +158,10 @@ spec:
158158
value: <target_namespace>
159159
- name: CONFIGMAP_NAME
160160
value: kubevirt-vm-latency-checkup-config
161+
- name: POD_UID
162+
valueFrom:
163+
fieldRef:
164+
fieldPath: metadata.uid
161165
----
162166
163167
. Apply the `Job` manifest:
@@ -174,7 +178,7 @@ $ oc apply -n <target_namespace> -f <latency_job>.yaml
174178
$ oc wait job kubevirt-vm-latency-checkup -n <target_namespace> --for condition=complete --timeout 6m
175179
----
176180
177-
. Review the results of the latency checkup by running the following command. If the maximum measured latency is greater than the value of the `spec.param.max_desired_latency_milliseconds` attribute, the checkup fails and returns an error.
181+
. Review the results of the latency checkup by running the following command. If the maximum measured latency is greater than the value of the `spec.param.maxDesiredLatencyMilliseconds` attribute, the checkup fails and returns an error.
178182
+
179183
[source,terminal]
180184
----
@@ -191,12 +195,12 @@ metadata:
191195
namespace: <target_namespace>
192196
data:
193197
spec.timeout: 5m
194-
spec.param.network_attachment_definition_namespace: <target_namespace>
195-
spec.param.network_attachment_definition_name: "blue-network"
196-
spec.param.max_desired_latency_milliseconds: "10"
197-
spec.param.sample_duration_seconds: "5"
198-
spec.param.source_node: "worker1"
199-
spec.param.target_node: "worker2"
198+
spec.param.networkAttachmentDefinitionNamespace: <target_namespace>
199+
spec.param.networkAttachmentDefinitionName: "blue-network"
200+
spec.param.maxDesiredLatencyMilliseconds: "10"
201+
spec.param.sampleDurationSeconds: "5"
202+
spec.param.sourceNode: "worker1"
203+
spec.param.targetNode: "worker2"
200204
status.succeeded: "true"
201205
status.failureReason: ""
202206
status.completionTimestamp: "2022-01-01T09:00:00Z"

0 commit comments

Comments
 (0)