Commit c71c26a
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 <2607934+shlomi-noach@users.noreply.github.com>
* add deprecation message
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
* endtoend tests: remove '--enable-lag-throttler' and use 'UpdateThrottlerConfig' everywhere
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
* always use vtctldclient
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
* use cluster.VtctldClientProcess
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
* disable --throttler-config-via-topo in old throttler tests
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
* Remove --throttler-config-via-topo where used, since it now defaults 'true'
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
* fix vreplication cluster setup, waiting for throttler config to apply
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
* changelog
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
* extend throttler threshold
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
* a bit more verbose
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
* fixed CLI test
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
* remove old '--enable-lag-throttler' flag, introduce '--heartbeat_on_demand_duration'
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
* more log info in throttler.Open()
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
* more logging
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
* Revert to --heartbeat_enable
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
* 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 <mattalord@gmail.com>
* More CI testing
Signed-off-by: Matt Lord <mattalord@gmail.com>
* CI testing cont
Signed-off-by: Matt Lord <mattalord@gmail.com>
* Yes...
Signed-off-by: Matt Lord <mattalord@gmail.com>
* Somebody doesn't like force pushes so msg here
Signed-off-by: Matt Lord <mattalord@gmail.com>
* Increase on-demand heartbeat duration from 10s to 1m
Signed-off-by: Matt Lord <mattalord@gmail.com>
* Use only on-demand heartbeats everywhere
Signed-off-by: Matt Lord <mattalord@gmail.com>
* Use same throttler config everywhere
Signed-off-by: Matt Lord <mattalord@gmail.com>
* Update all keyspaces and don't fail test on missing JSON keys
Signed-off-by: Matt Lord <mattalord@gmail.com>
* Use constant heartbeats in vrepl e2e tests
Until #13175 is
fixed.
Signed-off-by: Matt Lord <mattalord@gmail.com>
* Increase workflow command timeout
Signed-off-by: Matt Lord <mattalord@gmail.com>
* Don't wait for throttler on non-serving primaries
Signed-off-by: Matt Lord <mattalord@gmail.com>
* #13175 is fixed, therefore re-instating on-deman heartbeats
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
* Added ToC
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
* Tweak comment and kick CI
Signed-off-by: Matt Lord <mattalord@gmail.com>
* Treat isOpen as the ready/running signal.
Also align all initMutex usage.
Signed-off-by: Matt Lord <mattalord@gmail.com>
* Re-adjust comment
Signed-off-by: Matt Lord <mattalord@gmail.com>
* 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 <mattalord@gmail.com>
* Get rid of log messages from SrvKeyspaceWatcher when no node/key
Signed-off-by: Matt Lord <mattalord@gmail.com>
* More corrections/tweaks
Signed-off-by: Matt Lord <mattalord@gmail.com>
* Use more convenient/clear new IsRunning function
Signed-off-by: Matt Lord <mattalord@gmail.com>
* Revert "Use more convenient/clear new IsRunning function"
This reverts commit 9aef276 as this
change was not correct.
Signed-off-by: Matt Lord <mattalord@gmail.com>
* Further fix correct use of IsOpen(), IsRunning(), IsEnabled()
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
* throttler.throttledApps cannot be nil
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
* Remove --enable_lag_throttler flag
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
* Deprecate --throttler_config_via_topo
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
* remove throttler mitigation code, as the problem was solved in #13195
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
* deperecate throttler config flags
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
* Removed tabletmanager_throttler and tabletmanager_throttler_custom_config tests
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
* changelog
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
* remove EnableThrottler() call
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
* restore default value
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
* update threshold
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
* update flags desc
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
* using atomic.Bool
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
* Update changelog/18.0/18.0.0/summary.md
Co-authored-by: Matt Lord <mattalord@gmail.com>
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
* use MarkDeprecated
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
* do not expect flags in vttablet --help
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
* remove --throttler-config-via-topo from examples scripts
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
---------
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Signed-off-by: Matt Lord <mattalord@gmail.com>
Co-authored-by: Matt Lord <mattalord@gmail.com>1 parent a960b91 commit c71c26a
17 files changed
Lines changed: 67 additions & 1003 deletions
File tree
- .github/workflows
- changelog/18.0/18.0.0
- examples/common/scripts
- go
- flags/endtoend
- test/endtoend
- tabletmanager
- throttler_custom_config
- throttler
- throttler
- vt/vttablet
- endtoend
- onlineddl
- tabletserver
- repltracker
- tabletenv
- throttle
- test
Lines changed: 0 additions & 139 deletions
This file was deleted.
Lines changed: 0 additions & 139 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
42 | 54 | | |
43 | 55 | | |
44 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
58 | 61 | | |
59 | 62 | | |
60 | 63 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
103 | 102 | | |
104 | 103 | | |
105 | 104 | | |
106 | 105 | | |
107 | 106 | | |
108 | 107 | | |
109 | | - | |
110 | 108 | | |
111 | 109 | | |
112 | 110 | | |
| |||
313 | 311 | | |
314 | 312 | | |
315 | 313 | | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | 314 | | |
320 | | - | |
321 | | - | |
322 | 315 | | |
323 | 316 | | |
324 | 317 | | |
| |||
0 commit comments