Skip to content

Comments

SSD Cache#207

Open
Adit2607 wants to merge 107 commits intodevelopfrom
feat/ssd-cache-multi-shard-vm
Open

SSD Cache#207
Adit2607 wants to merge 107 commits intodevelopfrom
feat/ssd-cache-multi-shard-vm

Conversation

@Adit2607
Copy link
Contributor

🔁 Pull Request Template – BharatMLStack

Please fill out the following sections to help us review your changes efficiently.


📌 Summary

e.g., Adds optimizes Redis fetch latency in online-feature-store, or improves search UI responsiveness in trufflebox-ui.


📂 Modules Affected

  • horizon (Real-time systems / networking)
  • online-feature-store (Feature serving infra)
  • trufflebox-ui (Admin panel / UI)
  • infra (Docker, CI/CD, GCP/AWS setup)
  • docs (Documentation updates)
  • Other: ___________

✅ Type of Change

  • Feature addition
  • Bug fix
  • Infra / build system change
  • Performance improvement
  • Refactor
  • Documentation
  • Other: ___________

📊 Benchmark / Metrics (if applicable)

Comment on lines 70 to 76
if idx, ok := i.rm[hlo]; ok {
entry, hashNextPrev, _ := i.rb.Get(idx)
for {
if isHashMatch(hhi, hlo, hashNextPrev) {
length, deltaExptime, lastAccess, freq, memId, offset := decode(entry)
exptime := int(deltaExptime) + int(i.startAt/60)
currentTime := int(time.Now().Unix() / 60)

Choose a reason for hiding this comment

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

@a0d00kc shouldn't this be inside the for loop

entry, hashNextPrev, _ := i.rb.Get(idx)

ErrMemtableSizeNotMultipleOf4KB = fmt.Errorf("memtable size must be a multiple of 4KB")
ErrFileSizeLessThan1 = fmt.Errorf("file size must be greater than 0")
ErrFileSizeNotMultipleOf4KB = fmt.Errorf("file size must be a multiple of 4KB")
Seed = strconv.Itoa(int(time.Now().UnixNano()))

Choose a reason for hiding this comment

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

with seed, If the pod restarts, hashes change for the same key. Is this purposeful ?

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.

4 participants