mirror of
https://github.com/apple/foundationdb.git
synced 2025-05-15 10:22:20 +08:00
Increase frequency of RelocateShardStartSplit traces for better observability of splits (#7503)
This commit is contained in:
parent
4103b16793
commit
aca44c8644
@ -498,19 +498,18 @@ ACTOR Future<Void> shardSplitter(DataDistributionTracker* self,
|
|||||||
//}
|
//}
|
||||||
int numShards = splitKeys.size() - 1;
|
int numShards = splitKeys.size() - 1;
|
||||||
|
|
||||||
if (deterministicRandom()->random01() < 0.01) {
|
TraceEvent("RelocateShardStartSplit", self->distributorId)
|
||||||
TraceEvent("RelocateShardStartSplitx100", self->distributorId)
|
.suppressFor(1.0)
|
||||||
.detail("Begin", keys.begin)
|
.detail("Begin", keys.begin)
|
||||||
.detail("End", keys.end)
|
.detail("End", keys.end)
|
||||||
.detail("MaxBytes", shardBounds.max.bytes)
|
.detail("MaxBytes", shardBounds.max.bytes)
|
||||||
.detail("MetricsBytes", metrics.bytes)
|
.detail("MetricsBytes", metrics.bytes)
|
||||||
.detail("Bandwidth",
|
.detail("Bandwidth",
|
||||||
bandwidthStatus == BandwidthStatusHigh ? "High"
|
bandwidthStatus == BandwidthStatusHigh ? "High"
|
||||||
: bandwidthStatus == BandwidthStatusNormal ? "Normal"
|
: bandwidthStatus == BandwidthStatusNormal ? "Normal"
|
||||||
: "Low")
|
: "Low")
|
||||||
.detail("BytesPerKSec", metrics.bytesPerKSecond)
|
.detail("BytesPerKSec", metrics.bytesPerKSecond)
|
||||||
.detail("NumShards", numShards);
|
.detail("NumShards", numShards);
|
||||||
}
|
|
||||||
|
|
||||||
if (numShards > 1) {
|
if (numShards > 1) {
|
||||||
int skipRange = deterministicRandom()->randomInt(0, numShards);
|
int skipRange = deterministicRandom()->randomInt(0, numShards);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user