Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server 76662 update summary #1062

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
87 changes: 87 additions & 0 deletions src/workloads/execution/BulkWriteUpdate1000x.yml
Original file line number Diff line number Diff line change
@@ -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
87 changes: 87 additions & 0 deletions src/workloads/execution/BulkWriteUpdate100x.yml
Original file line number Diff line number Diff line change
@@ -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
87 changes: 87 additions & 0 deletions src/workloads/execution/BulkWriteUpdate10x.yml
Original file line number Diff line number Diff line change
@@ -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
87 changes: 87 additions & 0 deletions src/workloads/execution/BulkWriteUpdate1x.yml
Original file line number Diff line number Diff line change
@@ -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