mirror of
https://github.com/apple/foundationdb.git
synced 2025-06-02 19:25:52 +08:00
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:
parent
1e834f84c8
commit
67ea901d96
@ -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));
|
||||
|
@ -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'
|
||||
|
@ -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
|
@ -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'
|
||||
|
@ -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
|
Loading…
x
Reference in New Issue
Block a user