Commit 1e2b120
153484: asim: use queues with LBRebalancingMultiMetricOnly r=tbg a=wenyihu6
Epic: none
Release note: none
---
**asim: use queues with LBRebalancingMultiMetricOnly**
This commit updates the mma-only mode to enable replicate and lease queues while
using LBRebalancingMultiMetricOnly. In this mode, constraint repairs in the
replicate and lease queues should still occur with mma enabled, but range
count–based rebalancing is disabled.
It’s a bit surprising that this diff didn’t cause any datadriven test changes. I
think this is likely because the mma tests currently don’t exercise constraint
repair. Tests that do cover constraint repair and lease preference likely don’t
run in mma-only mode. From a range/lease count rebalancing perspective, this
makes sense, as this mode previously disabled both replicate and lease queues.
Future commits will add test coverage to verify that this mode supports constraint
repair with mma.
---
**asim: rename mode from both to mma-and-count**
This commit renames the mode from both to mma-and-count to clarify that it
enables the replica and lease count based rebalancing.
---
**asim: schedule event with default**
Previously, the default configuration did not schedule an event. This would
cause issues in cases like cfg(mma-only,default), where mma-only would schedule
an event to change the cluster setting, but default would not reset it in the
next round, leaving the cluster setting incorrectly persisted. This commit fixes
the issue by ensuring that default also sets the cluster setting as an event.
The persistence of settings and cluster settings across simulations is a bit
troublesome. For now, this fix is sufficient since we only allow rebalance_mode
to be a delay event. We may need to revisit this in the future.
---
**asim: add mma-only mode to some existing asim tests**
This commit adds mma-only mode to some existing asim tests that exercise
constraint conformance to demonstrate that mma-only mode can pass assertions
with the replicate and lease queues enabled. Note that some assertions on
QPS/lease fail which worth investigating further. I took a quick pass - CPU
usage was balanced, but QPS was not.
Note that this commit removes the default mode for these tests so that changes
can be compared more clearly with git diff, avoiding side-by-side comparisons
between two modes. A follow-up commit will reintroduce the default mode
alongside mma-only.
---
**asim: add the default mode back for asim tests**
This commit adds the default mode for some asim tests.
---
**kvserverbase: update validation check for LoadBasedRebalancingMode**
Previously, we introduced LBRebalancingMultiMetricOnly and renamed
LBRebalancingMultiMetric to LBRebalancingMultiMetricAndCount. However, a
hardcoded enum string check in the cluster setting was overlooked and not
updated. This commit fixes that by updating the check correctly.
153503: server: always enable DRPC listener irrespective of the setting r=cthumuluru-crdb a=shubhamdhama
Previously, the DRPC server was only started when the experimental DRPC
setting was enabled. This created a problem where enabling DRPC after a
node had already started would not work, as the listener would not be
running and would reject all DRPC requests until the node was restarted.
To address this, this patch always enables the DRPC listener regardless of
the experimental setting. The cost of leaving the DRPC listener on all the
time is low, and this change simplifies the codebase by removing the need
to check cluster settings when creating clients (see #153449). This could even help us
avoid the need for a restart to enable DRPC entirely, if we can also figure
out how to swap our gRPC clients for DRPC clients in various subsystems.
Fixes #153450
Release note: None
Epic: CRDB-52378
153586: release: released CockroachDB version v25.4.0-alpha.1. Next version: v25.4.0-alpha.2 r=rail a=cockroach-teamcity
Release note: None
Epic: None
Release justification: non-production (release infra) change.
Co-authored-by: wenyihu6 <wenyi@cockroachlabs.com>
Co-authored-by: Shubham Dhama <shubham.dhama@cockroachlabs.com>
Co-authored-by: Justin Beaver <teamcity@cockroachlabs.com>
File tree
43 files changed
+197
-98
lines changed- docs/generated/settings
- pkg
- build
- kv/kvserver
- asim/tests
- testdata
- generated/example_rebalancing
- non_rand
- kvserverbase
- server
- sql
- logictest/testdata/logic_test
- pgwire/testdata/pgtest
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
43 files changed
+197
-98
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
463 | 463 | | |
464 | 464 | | |
465 | 465 | | |
466 | | - | |
| 466 | + | |
467 | 467 | | |
468 | 468 | | |
469 | 469 | | |
| |||
475 | 475 | | |
476 | 476 | | |
477 | 477 | | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | | - | |
482 | | - | |
483 | | - | |
| 478 | + | |
484 | 479 | | |
485 | 480 | | |
486 | 481 | | |
487 | 482 | | |
488 | 483 | | |
489 | 484 | | |
490 | 485 | | |
| 486 | + | |
| 487 | + | |
491 | 488 | | |
492 | | - | |
493 | | - | |
494 | 489 | | |
495 | 490 | | |
496 | 491 | | |
497 | 492 | | |
498 | | - | |
| 493 | + | |
499 | 494 | | |
500 | 495 | | |
501 | 496 | | |
502 | | - | |
503 | | - | |
504 | | - | |
| 497 | + | |
505 | 498 | | |
506 | 499 | | |
507 | 500 | | |
| |||
Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
0 commit comments