March 2020
Intermediate to advanced
626 pages
14h 45m
English
When we installed Istio using a demo profile, the sampling rate was set to 100%.
# kubectl -n istio-system get deploy istio-pilot -o yaml | grep "name: PILOT_TRACE_SAMPLING" -A1 - name: PILOT_TRACE_SAMPLING value: "100"
When we access the productpage,
we will see a corresponding trace in the dashboard. The 100% sample is OK for a test or low traffic environment. For performance reasons, we can lower the sampling rate in a high traffic mesh by editing the istio-pilot deployment to change the value of PILOT_TRACING_SAMPLING to a lower number, say, 1%.
$ kubectl -n istio-system patch deployment istio-pilot --type json -p '[{"op": "replace","path": "/spec/template/spec/containers/0/env/4/value","value": ...Read now
Unlock full access