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

separate nosqlbench execution in spaces to have more connections #282

Merged
merged 8 commits into from
Mar 23, 2023

Conversation

ivansenic
Copy link
Contributor

What this PR does:
Enable nosqlbench test to send requests over multiple HTTP2 connections, thus allowing high number of threads and custom configurability. We can now specify how many threads to run and how many connections to use, for example:

  • threads=30 connections=30 - each request has it's own connections
  • threads=30 connections=3 - group of 10 request would use same connection (sequence 1, 4, 7, etc)
  • threads=30 connections=1 - all requests executed over a single connection (multiplex and limited by the max http2 concurrent streams)

@ivansenic ivansenic requested a review from a team as a code owner March 22, 2023 11:08
@@ -58,6 +58,7 @@ Note that error handling is set to `errors=timer,warn`, which means that in case
## Workload Parameters

- `docscount` - the number of documents to process in each step of a scenario (default: `10_000_000`)
- `connections` - number of HTTP2 connections to be shared between the threads (default: `20`)
Copy link
Contributor

Choose a reason for hiding this comment

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

how does this relate to the threads? If I set threads=10 and connections=20 what happens? Should we provide guidance on whether these need to be tuned together?

Would it make sense to reframe this as a number of connections per thread, or perhaps I misunderstand how this works?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

  • threads=10 and connections=20 - each thread own connection..
  • connections per thread would be great, but I don't know how to do that? do you know?

Copy link
Contributor

Choose a reason for hiding this comment

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

Let's not worry about this now.

@@ -91,6 +95,7 @@ blocks:
ops:
# aka insertOne
write-document:
space: "{space}"
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we have to add this to every instruction because of a shortcoming in NoSQLBench?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ivansenic
Copy link
Contributor Author

@jeffreyscarpenter merging this, thanks for all the contributions

@ivansenic ivansenic merged commit 6421ba0 into main Mar 23, 2023
@ivansenic ivansenic deleted the ise-nosql-spaces branch March 23, 2023 14:48
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.

2 participants