-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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 mechanism to have a limit on number of pending queries #7603
Conversation
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.
Reviewable status: 0 of 5 files reviewed, 1 unresolved discussion (waiting on @vvbalaji-dgraph)
dgraph/cmd/increment/increment.go, line 223 at r1 (raw file):
serverLat := cnt.qLatency + cnt.mLatency clientLat := time.Since(txnStart).Round(time.Millisecond) fmt.Printf("[%d] %-17s Counter VAL: %d [ Ts: %d ] Latency: Q %s M %s S %s C %s D %s\n",
overflow
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.
Reviewed 5 of 5 files at r1.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @vvbalaji-dgraph)
…es (#7603) This is useful to avoid blowing up the number of goroutines handling queries, if the user bombards Dgraph with lots of concurrent / asynchronous requests.
…pending queries (#7990) * cherry-pick: feat(query): Add mechanism to have a limit on number of pending queries (#7603) This is useful to avoid blowing up the number of goroutines handling queries, if the user bombards Dgraph with lots of concurrent / asynchronous requests. (cherry picked from commit 1450f81) * Set max_pending_queries flag. Fixing up the cherry-pick. Co-authored-by: Manish R Jain <[email protected]> Co-authored-by: Daniel Mai <[email protected]>
For PR hypermodeinc/dgraph#7603 Closes: DGRAPHCORE-278
This change is