-
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
separate nosqlbench execution in spaces to have more connections #282
Conversation
c9177d6
to
fc923fc
Compare
@@ -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`) |
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.
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?
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.
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?
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.
Let's not worry about this now.
@@ -91,6 +95,7 @@ blocks: | |||
ops: | |||
# aka insertOne | |||
write-document: | |||
space: "{space}" |
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.
Do we have to add this to every instruction because of a shortcoming in NoSQLBench?
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.
Yes, see: nosqlbench/nosqlbench#1182
@jeffreyscarpenter merging this, thanks for all the contributions |
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 connectionsthreads=30 connections=3
- group of 10 request would use same connection (sequence1, 4, 7, etc
)threads=30 connections=1
- all requests executed over a single connection (multiplex and limited by the max http2 concurrent streams)