Query execution time increases when the number of concurrent users increases #4223
Unanswered
vishalratnam-cliq-scm
asked this question in
Q&A
Replies: 2 comments 19 replies
-
Session is also expensive to create. It's highly recommened that you keep one session for each virtual user. Give it a try. |
Beta Was this translation helpful? Give feedback.
18 replies
-
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We're trying to load test (using k6 testing tool) nebula graph DB using the nebula-go client.
We have created 1 global connection pool when the application starts with 1 host address pointing to our cluster (nebula cluster contains 3 graphd services, 3 metad services and 3 storaged services).
We create a session for each incoming request on our API, that executes a query and returns the data. After the API is done, we close the session.
The response time when we were trying to do the same with 1 virtual user on k6, the query execution time is 20ms. When we hit the same API with 10 virtual users with 10 concurrent requests from each user, the query execution time increases to ~100ms.
Is there any reason for this increase in execution time? Do we need to create a new pool for each request? Can't we use the same pool of connections when the load increases?
Beta Was this translation helpful? Give feedback.
All reactions