lower the sample rate of client metric in simulation

This change also disable waitForQuiescenceEnd in clientmetric test.
There are other transactions happening, so there will be lots of
conflicts in fdbClientInfo/client_latency prefix.

This change lower the sample rate of client metric to avoid
such conflicts. It also increases the keys to write correspondingly
to make sure client latency are being written.
This commit is contained in:
hao fu 2024-07-20 10:09:40 +08:00
parent 1e834f84c8
commit 67ea901d96
5 changed files with 10 additions and 20 deletions

View File

@ -212,8 +212,8 @@ struct ClientMetricWorkload : TestWorkload {
// vs2 should be strictly larger than vs1, to verify new latency metrics are added
ACTOR Future<Void> runner(Database cx, ClientMetricWorkload* self) {
try {
state int initialWrites = deterministicRandom()->randomInt(1, 5);
state int secondWrites = deterministicRandom()->randomInt(1, 5);
state int initialWrites = deterministicRandom()->randomInt(100, 200);
state int secondWrites = deterministicRandom()->randomInt(100, 200);
state uint64_t zeroVS = 0;
state uint64_t vs1 = wait(self->writeKeysAndGetLatencyVersion(cx, self, initialWrites, zeroVS));

View File

@ -4,17 +4,14 @@ tenantModes = ['disabled']
[[test]]
testTitle='ClientMetricRestartTest'
clearAfterTest=false
waitForQuiescenceEnd=false
[[test.workload]]
testName='ClientMetric'
toSet=true
samplingProbability=1.0
samplingProbability=0.01
testDuration=500.0
[[test.workload]]
testName='RandomClogging'
testDuration=30.0
[[test.workload]]
testName='SaveAndKill'
restartInfoLocation='simfdb/restartInfo.ini'

View File

@ -1,12 +1,10 @@
[[test]]
testTitle='ClientMetricRestartTest'
clearAfterTest=false
waitForQuiescenceEnd=false
runConsistencyCheck=false
[[test.workload]]
testName='ClientMetric'
toSet=false
testDuration=500.0
[[test.workload]]
testName='RandomClogging'
testDuration=500.0

View File

@ -4,17 +4,14 @@ tenantModes = ['disabled']
[[test]]
testTitle='ClientMetricRestartTest'
clearAfterTest=false
waitForQuiescenceEnd=false
[[test.workload]]
testName='ClientMetric'
toSet=true
samplingProbability=1.0
samplingProbability=0.01
testDuration=500.0
[[test.workload]]
testName='RandomClogging'
testDuration=30.0
[[test.workload]]
testName='SaveAndKill'
restartInfoLocation='simfdb/restartInfo.ini'

View File

@ -1,12 +1,10 @@
[[test]]
testTitle='ClientMetricRestartTest'
clearAfterTest=false
waitForQuiescenceEnd=false
runConsistencyCheck=false
[[test.workload]]
testName='ClientMetric'
toSet=false
testDuration=500.0
[[test.workload]]
testName='RandomClogging'
testDuration=500.0