Test inserting into a collection with a TTL index
Test
Batches of 1000 documents (with the current time) are inserted into a collection with a TTL index
Results are reported as ops / sec.
Setup
- an index with a TTL index is created with expireAfterSeconds is set to 0.
- ttlMonitorSleepSecs is set to 5 seconds.
Notes
- For all the tests, a varying number of threads is used.
- The runtime for each test is 3 minutes.
- BenchRun does not support bulkWrite() and in particular cannot do unordered bulk inserts. We compensate with higher thread count.
Owning-team
mongodb/product-query
- Source:
Members
(inner) thread_levels
The number of threads to run in parallel. The default is [1, 16, 32].
The actual values in use are injected by run_workloads.py, which gets it from config file, see this hello world example.
- Source: