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

Add mechanism to have a limit on number of pending queries #7603

Merged
merged 3 commits into from
Mar 18, 2021

Conversation

manishrjain
Copy link
Contributor

@manishrjain manishrjain commented Mar 17, 2021


This change is Reviewable

Copy link
Contributor Author

@manishrjain manishrjain left a 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

Copy link
Contributor

@danielmai danielmai left a 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)

@manishrjain manishrjain merged commit fade075 into master Mar 18, 2021
@manishrjain manishrjain deleted the mrjn/throttle-traffic branch March 18, 2021 02:03
aman-bansal pushed a commit that referenced this pull request Apr 7, 2021
…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.
OmarAyo pushed a commit that referenced this pull request Aug 17, 2021
…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)
OmarAyo added a commit that referenced this pull request Aug 17, 2021
…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]>
mangalaman93 added a commit to dgraph-io/dgraph-docs that referenced this pull request Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants