Skip to content

Conversation

@dranikpg
Copy link
Contributor

  1. Stopping by max iterations was a very simple heuristic that I put a long time ago - it obviously doesn't work. It decimates p99 for to put it mildly

  2. I dream of making heartbeat use it's background possibilities. The issue with those yields is that our offloading speed is now much much slower... 🤔

@dranikpg dranikpg marked this pull request as ready for review October 28, 2025 17:11
Copy link
Collaborator

@romange romange left a comment

Choose a reason for hiding this comment

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

lgtm

auto disk_stats = op_manager_->GetStats().disk_stats;
if (disk_stats.allocated_bytes + kMaxIterations / 2 * tiering::kPageSize >
disk_stats.max_file_size)
if (disk_stats.allocated_bytes + 50 * tiering::kPageSize > disk_stats.max_file_size)
Copy link
Collaborator

Choose a reason for hiding this comment

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

what's a 50? add a constant with a meaningful name

@dranikpg dranikpg merged commit f0bc353 into dragonflydb:main Oct 29, 2025
10 checks passed
@dranikpg dranikpg deleted the tiering-offload-yield branch October 29, 2025 19:40
abhijat pushed a commit that referenced this pull request Nov 3, 2025
Signed-off-by: Abhijat Malviya <abhijat@dragonflydb.io>
abhijat pushed a commit that referenced this pull request Nov 3, 2025
Signed-off-by: Abhijat Malviya <abhijat@dragonflydb.io>
abhijat pushed a commit that referenced this pull request Nov 3, 2025
Signed-off-by: Abhijat Malviya <abhijat@dragonflydb.io>
abhijat pushed a commit that referenced this pull request Nov 3, 2025
Signed-off-by: Abhijat Malviya <abhijat@dragonflydb.io>
abhijat pushed a commit that referenced this pull request Nov 3, 2025
Signed-off-by: Abhijat Malviya <abhijat@dragonflydb.io>
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.

2 participants