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: add a LRU-based cache module for preheat jobs #945

Open
wants to merge 27 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
0f54cb0
feat(storage): add cache configuration support for preheat tasks
SouthWest7 Jan 6, 2025
d319dc4
feat(storage): added cache initialization, according to the configura…
SouthWest7 Jan 6, 2025
af21663
feat(storage): add cache configuration support for preheat tasks
SouthWest7 Jan 6, 2025
15e3455
merge with main branch
SouthWest7 Jan 6, 2025
04a4a2a
feat: 'cache' definition and implementation
SouthWest7 Jan 7, 2025
373072d
refactor: change 'Cache' configurationand default value setting
SouthWest7 Jan 7, 2025
aa81cc8
chore: modify comments of Cache
SouthWest7 Jan 7, 2025
8b45619
chore: add workflow diagram of Cache
SouthWest7 Jan 7, 2025
5128719
Merge branch 'dragonflyoss:main' into feature/storage-cache
SouthWest7 Jan 8, 2025
2925faa
Merge branch 'dragonflyoss:main' into feature/storage-cache
SouthWest7 Jan 8, 2025
f306041
feat: cache is enabled by default, and the diagram has been modified …
SouthWest7 Jan 9, 2025
b807755
chore: modify the comment of 'default_storage_cache_capacity()'
SouthWest7 Jan 9, 2025
987cbb8
Merge remote-tracking branch 'refs/remotes/origin/feature/storage-cac…
SouthWest7 Jan 9, 2025
80cbe94
merge with branch feature/config
SouthWest7 Jan 9, 2025
826c78a
feat: add def & impl of Cache and cache access logic
SouthWest7 Jan 9, 2025
e6f0d82
chore: add diagram and comment for Cache
SouthWest7 Jan 9, 2025
1b3ade7
feat: wrting cache
SouthWest7 Jan 10, 2025
3cdde85
feat: add unit tests and code optimization
SouthWest7 Jan 16, 2025
436687e
chore: resolve conlicts
SouthWest7 Jan 16, 2025
7ef46a7
chore: resolve conlicts
SouthWest7 Jan 16, 2025
0a0c516
chore: resolve conlicts
SouthWest7 Jan 16, 2025
69d01f3
chore: resolve conlicts
SouthWest7 Jan 16, 2025
04f0702
chore: fixed fmt issues.
SouthWest7 Jan 16, 2025
17a9657
Merge branch 'main' into feature/storage-cache
SouthWest7 Jan 16, 2025
13500b0
fix: upload_piece
SouthWest7 Jan 16, 2025
be859af
Merge branch 'main' into feature/storage-cache
SouthWest7 Jan 21, 2025
fe27f7e
fix: fmt
SouthWest7 Jan 23, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ tempfile = "3.14.0"
tokio-rustls = "0.25.0-alpha.4"
serde_json = "1.0.137"
lru = "0.12.5"
bytes = "1.9"

[profile.release]
opt-level = "z"
Expand Down
3 changes: 3 additions & 0 deletions dragonfly-client-storage/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,12 @@ tokio-util.workspace = true
sha2.workspace = true
crc.workspace = true
base16ct.workspace = true
lru.workspace = true
bytes.workspace = true
num_cpus = "1.0"
bincode = "1.3.3"
rayon = "1.10.0"


[dev-dependencies]
tempdir = "0.3"
Loading
Loading