Skip to content

Commit 1fada16

Browse files
authored
Merge pull request #148677 from tbg/blathers/backport-release-25.1-148658
2 parents 0df739d + 494715b commit 1fada16

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

pkg/cmd/roachtest/tests/rebalance_load.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,12 @@ func registerRebalanceLoad(r registry.Registry) {
9797
settings.ClusterSettings["kv.allocator.load_based_rebalancing"] = rebalanceMode
9898
settings.ClusterSettings["kv.range_split.by_load_enabled"] = "false"
9999

100+
// Take a 10s profile every minute.
101+
settings.ClusterSettings["server.cpu_profile.duration"] = "10s"
102+
settings.ClusterSettings["server.cpu_profile.interval"] = "1m"
103+
settings.ClusterSettings["server.cpu_profile.cpu_usage_combined_threshold"] = "1" // basically always true
104+
settings.ClusterSettings["server.cpu_profile.total_dump_size_limit"] = "256 MiB"
105+
100106
if mixedVersion {
101107
mvt := mixedversion.NewTest(ctx, t, t.L(), c, roachNodes, mixedversion.NeverUseFixtures,
102108
mixedversion.ClusterSettingOption(
@@ -117,8 +123,6 @@ func registerRebalanceLoad(r registry.Registry) {
117123
})
118124
mvt.Run()
119125
} else {
120-
// Note that CPU profiling is already enabled by default, should there be
121-
// a failure it will be available in the artifacts.
122126
c.Start(ctx, t.L(), startOpts, settings, roachNodes)
123127
require.NoError(t, rebalanceByLoad(
124128
ctx, t, t.L(), c, rebalanceMode, maxDuration,

0 commit comments

Comments
 (0)