Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deprecating and removing tablet throttler CLI flags and tests (#13246)
* Table throttler: --throttler-config-via-topo now defaults to 'true' Signed-off-by: Shlomi Noach <[email protected]> * add deprecation message Signed-off-by: Shlomi Noach <[email protected]> * endtoend tests: remove '--enable-lag-throttler' and use 'UpdateThrottlerConfig' everywhere Signed-off-by: Shlomi Noach <[email protected]> * always use vtctldclient Signed-off-by: Shlomi Noach <[email protected]> * use cluster.VtctldClientProcess Signed-off-by: Shlomi Noach <[email protected]> * disable --throttler-config-via-topo in old throttler tests Signed-off-by: Shlomi Noach <[email protected]> * Remove --throttler-config-via-topo where used, since it now defaults 'true' Signed-off-by: Shlomi Noach <[email protected]> * fix vreplication cluster setup, waiting for throttler config to apply Signed-off-by: Shlomi Noach <[email protected]> * changelog Signed-off-by: Shlomi Noach <[email protected]> * extend throttler threshold Signed-off-by: Shlomi Noach <[email protected]> * a bit more verbose Signed-off-by: Shlomi Noach <[email protected]> * fixed CLI test Signed-off-by: Shlomi Noach <[email protected]> * remove old '--enable-lag-throttler' flag, introduce '--heartbeat_on_demand_duration' Signed-off-by: Shlomi Noach <[email protected]> * more log info in throttler.Open() Signed-off-by: Shlomi Noach <[email protected]> * more logging Signed-off-by: Shlomi Noach <[email protected]> * Revert to --heartbeat_enable Signed-off-by: Shlomi Noach <[email protected]> * Protect throttler config change application with initMutex And in e2e test update the throttler config on the keyspace when it's created. Only wait for the new tablets in a shard to have the throttler enabled when adding a Shard. Signed-off-by: Matt Lord <[email protected]> * More CI testing Signed-off-by: Matt Lord <[email protected]> * CI testing cont Signed-off-by: Matt Lord <[email protected]> * Yes... Signed-off-by: Matt Lord <[email protected]> * Somebody doesn't like force pushes so msg here Signed-off-by: Matt Lord <[email protected]> * Increase on-demand heartbeat duration from 10s to 1m Signed-off-by: Matt Lord <[email protected]> * Use only on-demand heartbeats everywhere Signed-off-by: Matt Lord <[email protected]> * Use same throttler config everywhere Signed-off-by: Matt Lord <[email protected]> * Update all keyspaces and don't fail test on missing JSON keys Signed-off-by: Matt Lord <[email protected]> * Use constant heartbeats in vrepl e2e tests Until #13175 is fixed. Signed-off-by: Matt Lord <[email protected]> * Increase workflow command timeout Signed-off-by: Matt Lord <[email protected]> * Don't wait for throttler on non-serving primaries Signed-off-by: Matt Lord <[email protected]> * #13175 is fixed, therefore re-instating on-deman heartbeats Signed-off-by: Shlomi Noach <[email protected]> * Added ToC Signed-off-by: Shlomi Noach <[email protected]> * Tweak comment and kick CI Signed-off-by: Matt Lord <[email protected]> * Treat isOpen as the ready/running signal. Also align all initMutex usage. Signed-off-by: Matt Lord <[email protected]> * Re-adjust comment Signed-off-by: Matt Lord <[email protected]> * Adjust CheckIsReady() to match OnlineDDL's expectation/usage This was only using IsReady() before, now it's using IsOpen() and IsReady(). Signed-off-by: Matt Lord <[email protected]> * Get rid of log messages from SrvKeyspaceWatcher when no node/key Signed-off-by: Matt Lord <[email protected]> * More corrections/tweaks Signed-off-by: Matt Lord <[email protected]> * Use more convenient/clear new IsRunning function Signed-off-by: Matt Lord <[email protected]> * Revert "Use more convenient/clear new IsRunning function" This reverts commit 9aef276 as this change was not correct. Signed-off-by: Matt Lord <[email protected]> * Further fix correct use of IsOpen(), IsRunning(), IsEnabled() Signed-off-by: Shlomi Noach <[email protected]> * throttler.throttledApps cannot be nil Signed-off-by: Shlomi Noach <[email protected]> * Remove --enable_lag_throttler flag Signed-off-by: Shlomi Noach <[email protected]> * Deprecate --throttler_config_via_topo Signed-off-by: Shlomi Noach <[email protected]> * remove throttler mitigation code, as the problem was solved in #13195 Signed-off-by: Shlomi Noach <[email protected]> * deperecate throttler config flags Signed-off-by: Shlomi Noach <[email protected]> * Removed tabletmanager_throttler and tabletmanager_throttler_custom_config tests Signed-off-by: Shlomi Noach <[email protected]> * changelog Signed-off-by: Shlomi Noach <[email protected]> * remove EnableThrottler() call Signed-off-by: Shlomi Noach <[email protected]> * restore default value Signed-off-by: Shlomi Noach <[email protected]> * update threshold Signed-off-by: Shlomi Noach <[email protected]> * update flags desc Signed-off-by: Shlomi Noach <[email protected]> * using atomic.Bool Signed-off-by: Shlomi Noach <[email protected]> * Update changelog/18.0/18.0.0/summary.md Co-authored-by: Matt Lord <[email protected]> Signed-off-by: Shlomi Noach <[email protected]> * use MarkDeprecated Signed-off-by: Shlomi Noach <[email protected]> * do not expect flags in vttablet --help Signed-off-by: Shlomi Noach <[email protected]> * remove --throttler-config-via-topo from examples scripts Signed-off-by: Shlomi Noach <[email protected]> --------- Signed-off-by: Shlomi Noach <[email protected]> Signed-off-by: Matt Lord <[email protected]> Co-authored-by: Matt Lord <[email protected]>
- Loading branch information