linkerd2/cli/cmd
Alex Leong 0f7d684ca9
Increase default max-rps for tap and top (#1531)
The default value for the max-rps argument to the tap and top commands is an overly conservative 1rps.  This causes the data to come in very slowly and much data to be discarded.  Furthermore, because tap requests are windowed to 10 seconds, this causes long pauses between updates.

We fix this in two ways.  Firstly we reduce the window size to 1s so that updates will come in at least once per second, even when the actual RPS of the data path is extremely high.  Secondly, we increase the default max-rps parameter from 1 to 100.  This allows tap to paint an accurate picture of the data much more quickly and sidesteps some sampling bias that happens when the max-rps is low.

In general, tap events tend to happen in bursts.  For example, one request in may trigger one or more requests out.  Likewise, a single upstream event may trigger several requests to the tapped pod in quick succession.  Sampling bias will occur when the max-rps is less than the actual rps and when the tap event limit subdivides these event bursts (biasing towards the first few events in the burst).  The greater the max-rps, the less the effects of this bias.

Fixes #1525 

Signed-off-by: Alex Leong <alex@buoyant.io>
2018-08-28 14:16:39 -07:00
..
testdata Only tap pods that are meshed (#1535) 2018-08-28 09:59:52 -07:00
check.go Add linkerd check flag to run data plane checks (#1528) 2018-08-28 10:16:24 -07:00
check_test.go Refactor healthcheck init and observe setup (#1502) 2018-08-22 12:30:45 -07:00
completion.go Rename CLI from conduit to linkerd (#1312) 2018-07-12 17:14:07 -07:00
completion_test.go Rename CLI from conduit to linkerd (#1312) 2018-07-12 17:14:07 -07:00
dashboard.go Add --wait flag for CLI check and dashboard commands (#1503) 2018-08-22 12:56:42 -07:00
get.go Add --wait flag for CLI check and dashboard commands (#1503) 2018-08-22 12:56:42 -07:00
get_test.go Rename CLI from conduit to linkerd (#1312) 2018-07-12 17:14:07 -07:00
inject.go Add ReadinessProbe and LivenessProbe to injected proxy containers (#1530) 2018-08-27 11:55:17 -07:00
inject_test.go Update inject cmd to read from folder (#1377) 2018-08-01 17:12:00 -07:00
install.go Rename mailing lists, remove all remaining conduit references (#1416) 2018-08-07 17:00:55 -07:00
install_test.go Add TLS support to `conduit inject`. (#1220) 2018-06-27 16:04:07 -10:00
root.go Add --wait flag for CLI check and dashboard commands (#1503) 2018-08-22 12:56:42 -07:00
stat.go Add --wait flag for CLI check and dashboard commands (#1503) 2018-08-22 12:56:42 -07:00
stat_test.go Add additional validation for stat command-line arguments (#1415) 2018-08-08 15:35:47 -07:00
tap.go Increase default max-rps for tap and top (#1531) 2018-08-28 14:16:39 -07:00
tap_test.go Add resource metadata to Tap CLI output (#1437) 2018-08-20 14:25:26 -07:00
test_helper.go Add Grafana to conduit install (#444) 2018-02-28 11:36:21 -08:00
top.go Increase default max-rps for tap and top (#1531) 2018-08-28 14:16:39 -07:00
version.go Better CLI error messages when control plane is unavailable (#1428) 2018-08-09 15:40:41 -07:00
version_test.go Rename CLI from conduit to linkerd (#1312) 2018-07-12 17:14:07 -07:00