diff --git a/src/workloads/execution/BulkWriteUpdate1000x.yml b/src/workloads/execution/BulkWriteUpdate1000x.yml new file mode 100644 index 0000000000..532113f1e9 --- /dev/null +++ b/src/workloads/execution/BulkWriteUpdate1000x.yml @@ -0,0 +1,87 @@ +# VKTODO fill in everything correctly. +SchemaVersion: 2018-07-01 +Owner: "@mongodb/replication" +Description: | + Run updateOnes, deleteOnes, and findAndModifys on a replica set. + +GlobalDefaults: + Nop: &Nop {Nop: true} + Database: &Database test + WriteOp: &WriteOp { update: 0, filter: {key: 1}, updateMods: {$inc: {a: 1}} } + WriteOps1x: &WriteOps1x [ + *WriteOp + ] + WriteOps10x: &WriteOps10x { + ^FlattenOnce: + [ + *WriteOps1x, *WriteOps1x, *WriteOps1x, *WriteOps1x, *WriteOps1x, + *WriteOps1x, *WriteOps1x, *WriteOps1x, *WriteOps1x, *WriteOps1x, + ], + } + WriteOps100x: &WriteOps100x { + ^FlattenOnce: + [ + *WriteOps10x, *WriteOps10x, *WriteOps10x, *WriteOps10x, *WriteOps10x, + *WriteOps10x, *WriteOps10x, *WriteOps10x, *WriteOps10x, *WriteOps10x, + ], + } + WriteOps1000x: &WriteOps1000x { + ^FlattenOnce: + [ + *WriteOps100x, *WriteOps100x, *WriteOps100x, *WriteOps100x, *WriteOps100x, + *WriteOps100x, *WriteOps100x, *WriteOps100x, *WriteOps100x, *WriteOps100x, + ], + } + +Actors: +# Insert one document for the bulkWrite update to operate on repeatedly. +- Name: InsertOneDoc + Type: RunCommand + Threads: 1 + Phases: + OnlyActiveInPhases: + Active: [0] + NopInPhasesUpTo: 2 + PhaseConfig: + Repeat: 1 + Database: *Database + Operations: + - OperationName: RunCommand + OperationMetricsName: InsertOneDocIgnore + OperationCommand: + insert: "bangalore" + documents: [{key: 1, a: 0}] + ordered: true +- Name: BulkWriteUpdater + Type: AdminCommand + Threads: 1 + Phases: + OnlyActiveInPhases: + Active: [1] + NopInPhasesUpTo: 2 + PhaseConfig: + # ten million updates: 10000 * 1000 + Repeat: 10000 + Operations: + - OperationName: AdminCommand + OperationMetricsName: BulkWriteUpdateRoundTrip + OperationCommand: + bulkWrite: 1 + ops: *WriteOps1000x + nsInfo: + - {ns: "test.bangalore"} + ordered: true + singleBatch: true + cursor: + batchSize: 0 + +# Clients: +# Default: +# URI: "mongodb://localhost:20000" + +# VKTODO +AutoRun: +- When: + mongodb_setup: + $eq: + - single-replica-all-feature-flags diff --git a/src/workloads/execution/BulkWriteUpdate100x.yml b/src/workloads/execution/BulkWriteUpdate100x.yml new file mode 100644 index 0000000000..72fbb98a17 --- /dev/null +++ b/src/workloads/execution/BulkWriteUpdate100x.yml @@ -0,0 +1,87 @@ +# VKTODO fill in everything correctly. +SchemaVersion: 2018-07-01 +Owner: "@mongodb/replication" +Description: | + Run updateOnes, deleteOnes, and findAndModifys on a replica set. + +GlobalDefaults: + Nop: &Nop {Nop: true} + Database: &Database test + WriteOp: &WriteOp { update: 0, filter: {key: 1}, updateMods: {$inc: {a: 1}} } + WriteOps1x: &WriteOps1x [ + *WriteOp + ] + WriteOps10x: &WriteOps10x { + ^FlattenOnce: + [ + *WriteOps1x, *WriteOps1x, *WriteOps1x, *WriteOps1x, *WriteOps1x, + *WriteOps1x, *WriteOps1x, *WriteOps1x, *WriteOps1x, *WriteOps1x, + ], + } + WriteOps100x: &WriteOps100x { + ^FlattenOnce: + [ + *WriteOps10x, *WriteOps10x, *WriteOps10x, *WriteOps10x, *WriteOps10x, + *WriteOps10x, *WriteOps10x, *WriteOps10x, *WriteOps10x, *WriteOps10x, + ], + } + WriteOps1000x: &WriteOps1000x { + ^FlattenOnce: + [ + *WriteOps100x, *WriteOps100x, *WriteOps100x, *WriteOps100x, *WriteOps100x, + *WriteOps100x, *WriteOps100x, *WriteOps100x, *WriteOps100x, *WriteOps100x, + ], + } + +Actors: +# Insert one document for the bulkWrite update to operate on repeatedly. +- Name: InsertOneDoc + Type: RunCommand + Threads: 1 + Phases: + OnlyActiveInPhases: + Active: [0] + NopInPhasesUpTo: 2 + PhaseConfig: + Repeat: 1 + Database: *Database + Operations: + - OperationName: RunCommand + OperationMetricsName: InsertOneDocIgnore + OperationCommand: + insert: "bangalore" + documents: [{key: 1, a: 0}] + ordered: true +- Name: BulkWriteUpdater + Type: AdminCommand + Threads: 1 + Phases: + OnlyActiveInPhases: + Active: [1] + NopInPhasesUpTo: 2 + PhaseConfig: + # One million updates: 10000 * 100 + Repeat: 10000 + Operations: + - OperationName: AdminCommand + OperationMetricsName: BulkWriteUpdateRoundTrip + OperationCommand: + bulkWrite: 1 + ops: *WriteOps100x + nsInfo: + - {ns: "test.bangalore"} + ordered: true + singleBatch: true + cursor: + batchSize: 0 + +# Clients: +# Default: +# URI: "mongodb://localhost:20000" + +# VKTODO +AutoRun: +- When: + mongodb_setup: + $eq: + - single-replica-all-feature-flags diff --git a/src/workloads/execution/BulkWriteUpdate10x.yml b/src/workloads/execution/BulkWriteUpdate10x.yml new file mode 100644 index 0000000000..afef8e873f --- /dev/null +++ b/src/workloads/execution/BulkWriteUpdate10x.yml @@ -0,0 +1,87 @@ +# VKTODO fill in everything correctly. +SchemaVersion: 2018-07-01 +Owner: "@mongodb/replication" +Description: | + Run updateOnes, deleteOnes, and findAndModifys on a replica set. + +GlobalDefaults: + Nop: &Nop {Nop: true} + Database: &Database test + WriteOp: &WriteOp { update: 0, filter: {key: 1}, updateMods: {$inc: {a: 1}} } + WriteOps1x: &WriteOps1x [ + *WriteOp + ] + WriteOps10x: &WriteOps10x { + ^FlattenOnce: + [ + *WriteOps1x, *WriteOps1x, *WriteOps1x, *WriteOps1x, *WriteOps1x, + *WriteOps1x, *WriteOps1x, *WriteOps1x, *WriteOps1x, *WriteOps1x, + ], + } + WriteOps100x: &WriteOps100x { + ^FlattenOnce: + [ + *WriteOps10x, *WriteOps10x, *WriteOps10x, *WriteOps10x, *WriteOps10x, + *WriteOps10x, *WriteOps10x, *WriteOps10x, *WriteOps10x, *WriteOps10x, + ], + } + WriteOps1000x: &WriteOps1000x { + ^FlattenOnce: + [ + *WriteOps100x, *WriteOps100x, *WriteOps100x, *WriteOps100x, *WriteOps100x, + *WriteOps100x, *WriteOps100x, *WriteOps100x, *WriteOps100x, *WriteOps100x, + ], + } + +Actors: +# Insert one document for the bulkWrite update to operate on repeatedly. +- Name: InsertOneDoc + Type: RunCommand + Threads: 1 + Phases: + OnlyActiveInPhases: + Active: [0] + NopInPhasesUpTo: 2 + PhaseConfig: + Repeat: 1 + Database: *Database + Operations: + - OperationName: RunCommand + OperationMetricsName: InsertOneDocIgnore + OperationCommand: + insert: "bangalore" + documents: [{key: 1, a: 0}] + ordered: true +- Name: BulkWriteUpdater + Type: AdminCommand + Threads: 1 + Phases: + OnlyActiveInPhases: + Active: [1] + NopInPhasesUpTo: 2 + PhaseConfig: + # One million updates: 100000 * 10 + Repeat: 100000 + Operations: + - OperationName: AdminCommand + OperationMetricsName: BulkWriteUpdateRoundTrip + OperationCommand: + bulkWrite: 1 + ops: *WriteOps10x + nsInfo: + - {ns: "test.bangalore"} + ordered: true + singleBatch: true + cursor: + batchSize: 0 + +# Clients: +# Default: +# URI: "mongodb://localhost:20000" + +# VKTODO +AutoRun: +- When: + mongodb_setup: + $eq: + - single-replica-all-feature-flags diff --git a/src/workloads/execution/BulkWriteUpdate1x.yml b/src/workloads/execution/BulkWriteUpdate1x.yml new file mode 100644 index 0000000000..8eabfc097b --- /dev/null +++ b/src/workloads/execution/BulkWriteUpdate1x.yml @@ -0,0 +1,87 @@ +# VKTODO fill in everything correctly. +SchemaVersion: 2018-07-01 +Owner: "@mongodb/replication" +Description: | + Run updateOnes, deleteOnes, and findAndModifys on a replica set. + +GlobalDefaults: + Nop: &Nop {Nop: true} + Database: &Database test + WriteOp: &WriteOp { update: 0, filter: {key: 1}, updateMods: {$inc: {a: 1}} } + WriteOps1x: &WriteOps1x [ + *WriteOp + ] + WriteOps10x: &WriteOps10x { + ^FlattenOnce: + [ + *WriteOps1x, *WriteOps1x, *WriteOps1x, *WriteOps1x, *WriteOps1x, + *WriteOps1x, *WriteOps1x, *WriteOps1x, *WriteOps1x, *WriteOps1x, + ], + } + WriteOps100x: &WriteOps100x { + ^FlattenOnce: + [ + *WriteOps10x, *WriteOps10x, *WriteOps10x, *WriteOps10x, *WriteOps10x, + *WriteOps10x, *WriteOps10x, *WriteOps10x, *WriteOps10x, *WriteOps10x, + ], + } + WriteOps1000x: &WriteOps1000x { + ^FlattenOnce: + [ + *WriteOps100x, *WriteOps100x, *WriteOps100x, *WriteOps100x, *WriteOps100x, + *WriteOps100x, *WriteOps100x, *WriteOps100x, *WriteOps100x, *WriteOps100x, + ], + } + +Actors: +# Insert one document for the bulkWrite update to operate on repeatedly. +- Name: InsertOneDoc + Type: RunCommand + Threads: 1 + Phases: + OnlyActiveInPhases: + Active: [0] + NopInPhasesUpTo: 2 + PhaseConfig: + Repeat: 1 + Database: *Database + Operations: + - OperationName: RunCommand + OperationMetricsName: InsertOneDocIgnore + OperationCommand: + insert: "bangalore" + documents: [{key: 1, a: 0}] + ordered: true +- Name: BulkWriteUpdater + Type: AdminCommand + Threads: 1 + Phases: + OnlyActiveInPhases: + Active: [1] + NopInPhasesUpTo: 2 + PhaseConfig: + # One million updates: 1000000 * 1 + Repeat: 1000000 + Operations: + - OperationName: AdminCommand + OperationMetricsName: BulkWriteUpdateRoundTrip + OperationCommand: + bulkWrite: 1 + ops: *WriteOps1x + nsInfo: + - {ns: "test.bangalore"} + ordered: true + singleBatch: true + cursor: + batchSize: 0 + +# Clients: +# Default: +# URI: "mongodb://localhost:20000" + +# VKTODO +AutoRun: +- When: + mongodb_setup: + $eq: + - single-replica-all-feature-flags