Execution time increasing with more connections #4593
Replies: 4 comments 1 reply
-
Hi @gauravsingh-nagarro-scm-serv Thanks for raising this discussion. We are also facing the same issue. @wey-gu sorry for tagging you. Thanks, |
Beta Was this translation helpful? Give feedback.
-
@Aiee could you please help advice on this? |
Beta Was this translation helpful? Give feedback.
-
Hello @gauravsingh-nagarro-scm-serv One possible cause could be the cost of frequent construction/destruction of sessions in the meta service. In the sample code you post you are actually running 1000 goroutines to generate new sessions, execute queries, and release the sessions. Those session-related operations require some lock mechanism in the meta service because they are stored in a container. BTW, the max connection number is unint64_max and can be configured by setting |
Beta Was this translation helpful? Give feedback.
-
hi @Aiee , @wey-gu , We were checking the Nebula stats by running curl -G "http://ip:19669/stats" in graphd and found few attributes but not able to understand if these values are in milliseconds?
If they are in milliseconds then looks like it took seconds latency for running 100 concurrent queries. As while running k6 , we saw with increased virtual users, execution time is also increasing. So it would be of great help what areas we should look for to reduce the query execution time(3 graphd node,1 metad node,3 storage node) |
Beta Was this translation helpful? Give feedback.
-
We are using Nebula v3.1 and Golang SDK v3
we are trying to check max connections supported by Nebula and tried to create multiple goroutines call which are concurrent calls to create session and execute query from Nebula.
Findings ->One goroutine which is trying to make 250 sessions to execute the query is taking 8s and if we add 4 goroutines where each goroutine trying to do same to loop over and make 250 sessions to execute query took 47s.
As we are running goroutines which are going concurrently, so wondering why total time taken to execute 250 queries got increased where it should be maximum of any of those 4 goroutine execution time as per my understanding.
Please find the code which reproduce the issue and let us know if there is any issue with our implementation->
Beta Was this translation helpful? Give feedback.
All reactions