Skip to content

feat(multiwrite): backport IOPS optimizations to v0.5.0-hotfix - #6648

Merged
baojun-zhang merged 1 commit into
volcengine:release/v0.5.0-hotfixfrom
baojun-zhang:cp-6646-release-v0.5.0-hotfix
Oct 27, 2026
Merged

baojun-zhang merged 1 commit into
volcengine:release/v0.5.0-hotfixfrom
baojun-zhang:cp-6646-release-v0.5.0-hotfix

Conversation

@baojun-zhang

Copy link
Copy Markdown
Collaborator

Summary

  • Backport feat(multiwrite): 多写 IOPS 优化 #6646 to release/v0.5.0-hotfix.
  • Reduce repeated multi-write flush metadata reads with an in-process account initialization cache.
  • Delay and jitter checkpoint discovery, and add checkpoint/GC progress logs.

Test plan

  • git diff --check upstream/release/v0.5.0-hotfix...HEAD
  • cargo test -p ragfs delete_account_event_removes_backup_scope --lib

Source PR: #6646

1. 去除启动 checkpoint ticker,避免重复启动导致的 IOPS 峰值
2. 增加随机值设置初次 checkpoint 时机,防止多实例同时启动导致并发 IOPS 峰值
3. flush worker 使用内存缓存记录account 分区信息,而不是每个 batch 查询 account 分区信息
4. 增加部分进度日志
@baojun-zhang
baojun-zhang merged commit 3d46710 into volcengine:release/v0.5.0-hotfix Oct 27, 2026
@github-project-automation github-project-automation Bot moved this from Backlog to Done in OpenViking project Oct 27, 2026
baojun-zhang added a commit that referenced this pull request Nov 4, 2026
…fix (#6976)

* fix(ragfs): backport multiwrite hotfixes to v0.5.0 (#6607)

* fix(ragfs): 在外部租约下跳过冗余加密锁

(cherry picked from commit 002b27f)

* fix(multiwrite): 取消删除 v1 元数据时 glob 操作,在 import account 阶段进行删除 && 增加迁移阶段执行进度日志

(cherry picked from commit 42d99d8)
(cherry picked from commit d8dd90d)

* feat(ragfs): gate existing data reconciliation (#6618)

Add a multi-write backup option to control whether startup scans pre-existing primary files into V2 metadata.

Document the default disabled behavior and the conditions where historical backfill can be skipped.

(cherry picked from commit 56e8bea)
(cherry picked from commit ae29842)

* fix(storage): backport PathLock sidecar protocol to v0.5.0 (#6632)

* fix(storage): 修复递归删除导致 PathLock 提前失效

将目录锁迁移到父目录 sidecar,并兼容旧锁与 handoff;删除获锁后重新确认目标状态,避免并发请求沿用过期判断。

(cherry picked from commit 014bd7c)

* test(storage): 补充 PathLock 路径关系矩阵

使用共享文件系统上的独立 Manager 验证祖先、后代与兄弟路径的冲突和非冲突语义,防止 sidecar 迁移引入锁范围回归。

(cherry picked from commit c60e67a)

* fix(storage): 收敛 PathLock sidecar 迁移协议

拆分 Tree 路径解析并修正根路径寻址,撤回无关的 Snapshot 行为变化,同时明确新旧锁协议的切换约束,降低迁移影响范围。

(cherry picked from commit 10ec440)

---------

Co-authored-by: zhanghe.1216 <@bytedance.com>
(cherry picked from commit 36258b3)

* refactor(session): remove legacy path compatibility

Stop probing obsolete session storage paths during normal operations and
reject the legacy session URI alias. Update bundled callers to use current
session URIs.

(cherry picked from commit 68b1ea6)
(cherry picked from commit 14d622d)

* feat(multiwrite): 多写 IOPS 优化 (#6648)

1. 去除启动 checkpoint ticker,避免重复启动导致的 IOPS 峰值
2. 增加随机值设置初次 checkpoint 时机,防止多实例同时启动导致并发 IOPS 峰值
3. flush worker 使用内存缓存记录account 分区信息,而不是每个 batch 查询 account 分区信息
4. 增加部分进度日志

(cherry picked from commit 3d46710)

* feat(multiwrite): 降低多写元数据 IO (#6688)

- 缓存账号路由快照,减少重复读取分区 manifest
- 记录 dirty scope,让 catch-up 只同步已变更分区
- 使用内存快照维护多写 lag 指标,避免 metrics scrape 扫描元数据
- 降低 catch-up lease 刷新频率,并缩小 append 锁范围以减少 sidecar 写入

(cherry picked from commit b8bc624)

* fix(reindex): converge user orphan vectors

Backport the reindex orphan reconciliation and inventory batching from 6afd9ba to the v0.5.0 task and wait architecture.

Co-authored-by: TRAE CLI <traecli@bytedance.com>
(cherry picked from commit 8ae4f14)

* perf(admin): 用户列表直接读取内存 (#6629)

(cherry picked from commit 5e45a87)

* test(session): seed canonical session path after legacy path removal

14d622d removed legacy session path compatibility; align
test_session_storage_uses_canonical_uri with main (#6642), which seeds
the canonical user/{id}/sessions path.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: baojun-zhang <zhangbaojun.1@bytedance.com>
Co-authored-by: qin-ctx <qinhaojie.exe@bytedance.com>
Co-authored-by: zhoujiahui.01 <zhoujiahui.01@bytedance.com>
Co-authored-by: TRAE CLI <traecli@bytedance.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant