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

feat(interactive): Add Rate Limiter for Control Flow #3368

Merged
merged 12 commits into from
Nov 23, 2023

Conversation

shirly121
Copy link
Collaborator

What do these changes do?

  1. add rate limiter for control flow.
  2. write exception logs from executor to notify its unexpected behaviors.

Related issue number

Fixes

@shirly121 shirly121 marked this pull request as ready for review November 21, 2023 02:09
@codecov-commenter
Copy link

codecov-commenter commented Nov 21, 2023

Codecov Report

Merging #3368 (c4dce7d) into main (72b5cdc) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #3368   +/-   ##
=======================================
  Coverage   41.04%   41.04%           
=======================================
  Files         109      109           
  Lines       11298    11298           
=======================================
  Hits         4637     4637           
  Misses       6661     6661           

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 72b5cdc...c4dce7d. Read the comment docs.

@shirly121 shirly121 changed the title fix(interactive): Add Rate Limiter for Control Flow feat(interactive): Add Rate Limiter for Control Flow Nov 21, 2023
@@ -45,4 +45,7 @@ public class FrontendConfig {

public static final Config<Integer> QUERY_CACHE_SIZE =
Config.intConfig("query.cache.size", 100);

public static final Config<Integer> QUERY_PER_SECOND_LIMIT =
Config.intConfig("query.per.second.limit", 100);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By default there should be no limit, or set it to a value that large enough.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@@ -74,6 +75,7 @@ helm status demo
| ingestor.replicaCount | Number of Ingestor Pod | 2 |
| frontend.service.type | Kubernetes Service type of frontend | NodePort |
| dataset.modern | Load [modern graph](https://tinkerpop.apache.org/docs/current/tutorials/getting-started/) dataset at the start | false |
| query.per.second.limit | the maximum qps can be handled by frontend service | 2147483647 (without limitation) |
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个加frontend 前缀吧。frontend.query.per.second.limit , 然后把frontend前缀的几个项目都整合到一起吧。

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Collaborator

@longbinlai longbinlai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@longbinlai longbinlai merged commit 4966d32 into alibaba:main Nov 23, 2023
47 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants