Commit af51942
153364: admission,storage: increase overload score of store with disk slowness r=tbg,wenyihu6 a=sumeerbhola
So that the allocator accounts for it in shedding leases etc. The
unhealthy duration is also exported as a metric.
Informs #153280
Epic: none
Release note (ops change): The cluster setting
storage.unhealthy_write_duration (defaults to 20s), is used to indicate
to the allocator that a store's disk is unhealthy. The cluster setting
kv.allocator.disk_unhealthy_io_overload_score controls the overload
score assigned to a store with an unhealthy disk, where a higher score
results in preventing lease or replica transfers to the store, or
shedding of leases by the store. The default value of that setting is
0, so the allocator behavior is unaffected.
153810: opt: track distinct object references in metadata r=mgartner a=mgartner
Prior to this commit, all referenced object names in a query, including
tables, UDTs, and UDFs, were appended to slices in a memo's metadata. These
names are later re-resolved to determine if a memo is stale. Because
this list could contain duplicate entries, the same name could be
re-resolved multiple times during the staleness check.
Now, the distinct set of reference object names are maintained,
eliminating duplicate object resolution. The
`tree.UnresolvedObjectNameSet` type has been added to facilitate this.
Fixes #153800
Release note: None
154322: changefeedccl: avoid heap allocation in timers r=andyyang890 a=stevendanna
Unfortunately, the closure from Start() seemed to always be heap
allocated. While minor, it was enough to spot when reading
rangefeed-related memory profiles.
```
BenchmarkTimerStart/closure-based 8992018 128.1 ns/op 24 B/op 1 allocs/op
BenchmarkTimerStart/handle-based 12124416 98.81 ns/op 0 B/op 0 allocs/op
```
Epic: none
Release note: None
Co-authored-by: sumeerbhola <[email protected]>
Co-authored-by: Marcus Gartner <[email protected]>
Co-authored-by: Steven Danna <[email protected]>
File tree
35 files changed
+708
-75
lines changed- docs/generated
- metrics
- settings
- pkg
- ccl/changefeedccl
- kvfeed
- timers
- kv/kvserver
- allocator/allocatorimpl
- roachprod/opentelemetry
- server
- sql
- opt
- sem/tree
- storage
- testdata
- util/admission
- admissionpb
35 files changed
+708
-75
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16395 | 16395 | | |
16396 | 16396 | | |
16397 | 16397 | | |
| 16398 | + | |
| 16399 | + | |
| 16400 | + | |
| 16401 | + | |
| 16402 | + | |
| 16403 | + | |
| 16404 | + | |
| 16405 | + | |
16398 | 16406 | | |
16399 | 16407 | | |
16400 | 16408 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
367 | 367 | | |
368 | 368 | | |
369 | 369 | | |
| 370 | + | |
370 | 371 | | |
371 | 372 | | |
372 | 373 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
958 | 959 | | |
959 | 960 | | |
960 | 961 | | |
| 962 | + | |
961 | 963 | | |
962 | 964 | | |
963 | 965 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
362 | | - | |
| 362 | + | |
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1843 | 1843 | | |
1844 | 1844 | | |
1845 | 1845 | | |
1846 | | - | |
| 1846 | + | |
1847 | 1847 | | |
1848 | 1848 | | |
1849 | 1849 | | |
| |||
1924 | 1924 | | |
1925 | 1925 | | |
1926 | 1926 | | |
1927 | | - | |
| 1927 | + | |
1928 | 1928 | | |
1929 | 1929 | | |
1930 | 1930 | | |
| |||
1950 | 1950 | | |
1951 | 1951 | | |
1952 | 1952 | | |
1953 | | - | |
| 1953 | + | |
1954 | 1954 | | |
1955 | 1955 | | |
1956 | 1956 | | |
1957 | | - | |
| 1957 | + | |
1958 | 1958 | | |
1959 | 1959 | | |
1960 | 1960 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
446 | 446 | | |
447 | 447 | | |
448 | 448 | | |
449 | | - | |
| 449 | + | |
450 | 450 | | |
451 | 451 | | |
452 | 452 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
442 | 442 | | |
443 | 443 | | |
444 | 444 | | |
445 | | - | |
| 445 | + | |
446 | 446 | | |
447 | 447 | | |
448 | 448 | | |
| |||
466 | 466 | | |
467 | 467 | | |
468 | 468 | | |
469 | | - | |
| 469 | + | |
470 | 470 | | |
471 | 471 | | |
472 | 472 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
732 | 732 | | |
733 | 733 | | |
734 | 734 | | |
735 | | - | |
| 735 | + | |
736 | 736 | | |
737 | 737 | | |
738 | 738 | | |
| |||
829 | 829 | | |
830 | 830 | | |
831 | 831 | | |
832 | | - | |
| 832 | + | |
833 | 833 | | |
834 | 834 | | |
835 | 835 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
| 147 | + | |
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
| 153 | + | |
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
| 166 | + | |
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
| 172 | + | |
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
892 | 892 | | |
893 | 893 | | |
894 | 894 | | |
895 | | - | |
| 895 | + | |
896 | 896 | | |
897 | 897 | | |
898 | 898 | | |
| |||
0 commit comments