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

Editoast improve valkey connection #10678

Merged
merged 2 commits into from
Feb 5, 2025
Merged

Editoast improve valkey connection #10678

merged 2 commits into from
Feb 5, 2025

Conversation

flomonster
Copy link
Contributor

@flomonster flomonster commented Feb 4, 2025

What is done:

  1. Remove cluster client
  2. Use a pool of connection

Performances are unchanged.

traces.zip

@github-actions github-actions bot added the area:editoast Work on Editoast Service label Feb 4, 2025
@codecov-commenter
Copy link

codecov-commenter commented Feb 4, 2025

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 30.00000% with 14 lines in your changes missing coverage. Please review.

Project coverage is 81.90%. Comparing base (85e2e06) to head (a514e9a).
Report is 8 commits behind head on dev.

Files with missing lines Patch % Lines
editoast/src/valkey_utils.rs 30.00% 14 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##              dev   #10678   +/-   ##
=======================================
  Coverage   81.89%   81.90%           
=======================================
  Files        1078     1078           
  Lines      107201   107163   -38     
  Branches      724      724           
=======================================
- Hits        87795    87767   -28     
+ Misses      19366    19356   -10     
  Partials       40       40           
Flag Coverage Δ
editoast 74.20% <30.00%> (+0.01%) ⬆️
front 89.45% <ø> (-0.01%) ⬇️
gateway 2.18% <ø> (ø)
osrdyne 3.28% <ø> (ø)
railjson_generator 87.50% <ø> (ø)
tests 88.14% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@flomonster flomonster marked this pull request as ready for review February 5, 2025 11:36
@flomonster flomonster requested a review from a team as a code owner February 5, 2025 11:36
@leovalais
Copy link
Contributor

leovalais commented Feb 5, 2025

Shouldn't we add a parameter for the number of connections in the pool? The default seems to be num_physical_cpus * 4, but maybe that's too low for what we're trying to do? https://docs.rs/deadpool-redis/latest/deadpool_redis/struct.PoolConfig.html#structfield.max_size

I'm baffled that parallelizing redis calls do not save us transport time 😮 What does the trace timings look like?

Copy link
Contributor

@hamz2a hamz2a left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@flomonster flomonster enabled auto-merge February 5, 2025 15:19
@flomonster flomonster added this pull request to the merge queue Feb 5, 2025
Merged via the queue into dev with commit 99856ac Feb 5, 2025
27 checks passed
@flomonster flomonster deleted the fam/fix-valkey-conn branch February 5, 2025 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:editoast Work on Editoast Service
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants