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

add fallout smoke test #423

Merged
merged 8 commits into from
May 24, 2023
Merged

add fallout smoke test #423

merged 8 commits into from
May 24, 2023

Conversation

ivansenic
Copy link
Contributor

@ivansenic ivansenic commented May 11, 2023

What this PR does:
Adds smoke test for Fallout, including the target nosqlbench file

Checklist

  • add README
  • resolve open questions

@ivansenic ivansenic requested a review from a team as a code owner May 11, 2023 12:14
@@ -0,0 +1,133 @@
# region setup
Copy link
Contributor Author

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/..

Copy link
Contributor Author

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}}

-
Copy link
Contributor Author

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Skipped.

Comment on lines 24 to 42
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
Copy link
Contributor Author

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?

Copy link
Collaborator

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.

Copy link
Contributor Author

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?

Copy link
Collaborator

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.

Copy link
Contributor

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).

Copy link
Contributor Author

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

@ivansenic
Copy link
Contributor Author

ivansenic commented May 23, 2023

Test run 493fc5b9 2834e000 with these two files.

Copy link
Contributor

@jeffreyscarpenter jeffreyscarpenter left a 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.

@ivansenic ivansenic merged commit fa3ee8c into main May 24, 2023
@ivansenic ivansenic deleted the ise-fallout branch May 24, 2023 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants