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: implement route cache #748

Merged
merged 20 commits into from
Mar 22, 2023
Merged

Conversation

MichaelLeeHZ
Copy link
Contributor

Which issue does this PR close?

Closes #738

Rationale for this change

see #738

What changes are included in this PR?

add route cache

Are there any user-facing changes?

None

How does this change test

unit test

@MichaelLeeHZ MichaelLeeHZ marked this pull request as ready for review March 16, 2023 12:45
router/src/lib.rs Outdated Show resolved Hide resolved
router/src/lib.rs Outdated Show resolved Hide resolved
server/src/config.rs Outdated Show resolved Hide resolved
router/src/cluster_based.rs Outdated Show resolved Hide resolved
router/src/cluster_based.rs Outdated Show resolved Hide resolved
router/src/cluster_based.rs Outdated Show resolved Hide resolved
router/src/cluster_based.rs Outdated Show resolved Hide resolved
@codecov-commenter
Copy link

codecov-commenter commented Mar 20, 2023

Codecov Report

Merging #748 (b1cb0a6) into main (d71e875) will decrease coverage by 0.35%.
The diff coverage is 25.49%.

❗ Current head b1cb0a6 differs from pull request most recent head 23259b7. Consider uploading reports for the commit 23259b7 to get more accurate results

@@            Coverage Diff             @@
##             main     #748      +/-   ##
==========================================
- Coverage   68.49%   68.14%   -0.35%     
==========================================
  Files         292      295       +3     
  Lines       45413    45776     +363     
==========================================
+ Hits        31104    31195      +91     
- Misses      14309    14581     +272     
Impacted Files Coverage Δ
analytic_engine/src/table/partition.rs 0.00% <0.00%> (ø)
router/src/lib.rs 33.33% <0.00%> (-16.67%) ⬇️
server/src/config.rs 37.20% <0.00%> (-0.44%) ⬇️
server/src/grpc/metrics.rs 0.00% <0.00%> (ø)
server/src/grpc/mod.rs 0.00% <0.00%> (ø)
server/src/grpc/storage_service/error.rs 0.00% <0.00%> (ø)
server/src/grpc/storage_service/header.rs 0.00% <0.00%> (ø)
server/src/grpc/storage_service/mod.rs 0.00% <0.00%> (ø)
server/src/handlers/influxdb.rs 67.02% <0.00%> (ø)
server/src/handlers/prom.rs 68.44% <0.00%> (ø)
... and 15 more

... and 8 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

router/src/lib.rs Show resolved Hide resolved
router/src/lib.rs Outdated Show resolved Hide resolved
router/src/cluster_based.rs Outdated Show resolved Hide resolved
server/src/config.rs Show resolved Hide resolved
router/src/cluster_based.rs Outdated Show resolved Hide resolved
router/src/cluster_based.rs Outdated Show resolved Hide resolved
MichaelLeeHZ and others added 3 commits March 21, 2023 20:17
Co-authored-by: WEI Xikai <ShiKaiWi@users.noreply.github.com>
Co-authored-by: WEI Xikai <ShiKaiWi@users.noreply.github.com>
Copy link
Member

@ShiKaiWi ShiKaiWi left a comment

Choose a reason for hiding this comment

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

Good Job!

@ShiKaiWi ShiKaiWi added this pull request to the merge queue Mar 22, 2023
@ShiKaiWi ShiKaiWi merged commit 8674868 into apache:main Mar 22, 2023
chunshao90 pushed a commit to chunshao90/ceresdb that referenced this pull request May 15, 2023
* impl route cache

* add unit tests

* route cache config serialize

* did not reqeust to meta when no miss

* chore

* chore

* fix unit test

* fix dependency

* sort dependency

* update unit test

* chore

* change ttl data type

* unimplemented instead todo

* impl default

* Update router/src/cluster_based.rs

Co-authored-by: WEI Xikai <ShiKaiWi@users.noreply.github.com>

* Update router/src/cluster_based.rs

Co-authored-by: WEI Xikai <ShiKaiWi@users.noreply.github.com>

* chore

---------

Co-authored-by: WEI Xikai <ShiKaiWi@users.noreply.github.com>
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.

Avoid route request penetration into CeresMeta
4 participants