-
Notifications
You must be signed in to change notification settings - Fork 16
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
add fallout smoke test #423
Conversation
@@ -0,0 +1,133 @@ | |||
# region setup |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we separate tests info folders? fallout/smoke-test/..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will not do, following same as in the /nosqlbench/
directory..
- connections=30 | ||
- docscount={{docs_count}} | ||
|
||
- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should I add support for sequential execution?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Skipped.
fallout/smoke-test-fallout.yaml
Outdated
ops: | ||
- op: find-one-id | ||
- op: find-one-by-city | ||
- op: find-multi-by-married-name-exists | ||
- op: find-multi-by-married-name-exists-with-projection | ||
- op: find-multi-find-by-gender-sort-by-name | ||
- op: find-by-name-newest-and-update-city | ||
- op: delete-one-id | ||
- op: find-one-id-and-replace-upsert | ||
- op: count-all | ||
- op: count-by-gender |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vkarpov15 We agreed to ask you about a more realistic scenario structure.. Currently we run these in parallel, and each weights the same, so each op contributes with 10%.. Also it would be great if you have any additions to this, some operation we should include, etc?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ivansenic it might be helpful to add insert operations, and maybe some more update operations. In particular, an updateMany. However, Mongoose apps currently tend to be read heavy, so this isn't too far off.
I think we should take a look at the results of this scenario, because this scenario covers a good range of features. If there are performance issues, it's worth investigating.
In the future, we can add scenarios that are more in line with basic apps, like simulating what happens with our sample apps under load.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vkarpov15 Thanks for the suggestions, good points..
What about the count, is this something that is use din mongoose space a lot? I was thinking we should decrease to one count op only?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Depends on the app, but many apps that use some sort of pagination also use countDocuments()
to calculate the number of documents in the result set. It's not a bad idea to decrease to one count op, but I think it is worth looking into why count causes performance issues, and if there's something we can do to improve it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think @maheshrajamani found one thing that may help improve performance (count(1) instead of count(column)), we'll see how much that helps (fix has been merged).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Added update many instead of the count all
- Adapted count and sort ops so that we can control how many docs should be targeted in those ops
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great. We can always make improvements later if needed.
What this PR does:
Adds smoke test for Fallout, including the target nosqlbench file
Checklist