forked from mongodb/genny
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHotDocumentWriter.yml
43 lines (40 loc) Β· 937 Bytes
/
HotDocumentWriter.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
SchemaVersion: 2018-07-01
Owner: Storage Engines
Description: |
A workload to test/document the HotDocumentUpdater actor which updates a specified document in a
specified collection.
Clients:
Default:
QueryOptions:
maxPoolSize: 400
Actors:
- Name: Loader
Type: Loader
Threads: 1
Phases:
- Repeat: 1
Database: hot
CollectionCount: 1
Threads: 1
DocumentCount: 1
BatchSize: 1
Document:
first: first
second: {^RandomInt: {min: 0, max: 1000}}
- {Nop: true}
- Name: HotDocumentUpdater
Type: CrudActor
Threads: 40
Database: hot
Phases:
- {Nop: true}
- Duration: 1 minutes
Collection: Collection0
Operations:
- OperationName: bulkWrite
OperationCommand:
WriteOperations:
- WriteCommand: updateOne
Filter: {first: first}
Update: {$set: {second: {^RandomInt: {min: 0, max: 1000}}}}
GlobalRate: 1000 per 1 second