Mongodb 5.0: ratelimit and sampleRate are represented at the same time, both work?


Will they comflict or they both work?

1 Like

Hello @long,

sampleRate value 1 is the default value meaning sampleRate is effectively disabled. See documentation of sampleRate option

Percona Server for MongoDB has parameters validation code which checks rateLimit and sampleRate values. If both have non-default values then following error message is reported:

Can't specify non-default values for both --rateLimit and --slowOpSampleRate options
1 Like