Commit 0d5068e
Merge #154416
154416: asim: improve comments for tests under mma r=tbg a=wenyihu6
Epic: CRDB-49117
Resolves: #154361
Release note: none
---
**asim: rename constraint_satisfaction1 to constraint_satisfaction**
This commit renames constraint_satisfaction1_full_disk.txt to
constraint_satisfaction_full_disk.txt.
---
**asim: improve comments for constraint_satisfaction_full_disk**
This commit improves comments and reduces the test duration for
constraint_satisfaction_full_disk.txt.
---
**asim: delete redundant/not-really-useful tests**
This commit deletes a few redundant or not-really-useful tests.
1. For constraint_satisfaction1, the test sets up a 9-node cluster across 4
regions (a, b, c, d) with 3, 2, 1, and 3 nodes respectively. It creates 100
ranges with 5 replicas each, initially placed on stores s1(a), s2(a), s4(b),
s5(b), and s6(c). The span config requires 2 replicas in region a, 2 in
region b, and 1 in region c, with lease preferences for region a, so all
constraints were already satisfied. The generated load was not very
interesting either. We will likely need a similar test in the future, but
this version is removed in favor of writing a better one later.
2. For constraint_satisfaction2, it appears to be leftover setup that used rebalance mode 0
with other queues disabled, predating the introduction of configurations.
3. For constraint_satisfaction_old_alloc, it also seems to be leftover and is roughly the same as
constraint_satisfaction1.txt.
4. high_cpu_skewed_placement.txt appears redundant with high_cpu.txt, which also
uses skewed range placement on s1–3 with load targeting that keyspace. The
only difference is an additional CPU workload evenly distributed across
nodes, but it doesn’t test anything meaningfully different. In addition, the test
set-up was wrong, and the load was hammering only one range.
5. load_distribution_movement_disabled_enable_later.txt was intended to test the
switch between SMA and MMA mode, but the setup does not create an interesting
scenario. We will likely need a similar test in the future, but this version
is removed in favor of writing a better one later.
---
**asim: improve comments for tests under mma**
This test improves the comments on the setup. I’ve made a first pass to clarify
the meaning of various parts, though it may require further review to fully
understand the scenario. This is a starting point.
---
**asim: shorten duration for certain asim tests**
This commit shortens the duration of certain asim tests. Durations were chosen
by looking output plots to identify when there is no more rebalancing activities
or when thrashing patterns remains.
---
**asim: use mib for bytes of gen_ranges**
This commit updates the gen_ranges bytes command to accept values in mib.
Co-authored-by: wenyihu6 <wenyi@cockroachlabs.com>File tree
21 files changed
+371
-520
lines changed- pkg/kv/kvserver/asim/tests
- testdata/non_rand
- mma
- sma
21 files changed
+371
-520
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
288 | | - | |
| 288 | + | |
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
| |||
294 | 294 | | |
295 | 295 | | |
296 | 296 | | |
297 | | - | |
| 297 | + | |
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
| |||
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
313 | | - | |
| 313 | + | |
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
| |||
Lines changed: 0 additions & 53 deletions
This file was deleted.
Lines changed: 0 additions & 50 deletions
This file was deleted.
Lines changed: 0 additions & 42 deletions
This file was deleted.
Lines changed: 62 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
Lines changed: 0 additions & 62 deletions
This file was deleted.
0 commit comments