Skip to content

改进内核任务调度机制提升稳定性 #7113

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

Closed
88250 opened this issue Jan 18, 2023 · 1 comment
Closed

改进内核任务调度机制提升稳定性 #7113

88250 opened this issue Jan 18, 2023 · 1 comment
Assignees
Milestone

Comments

@88250
Copy link
Member

88250 commented Jan 18, 2023

在用户在相继执行一些耗时操作后容易导致竞态,虽然之前通过一些锁尽量避免竞态,但是随着业务操作种类的增加,难免会遗漏处理一些场景,从而导致系统不稳定报错,这部分实现代码的维护也较为困难。

需要一个统一的任务调度机制来确保可能导致竞态操作的序列化执行,比较好的实现方式就是使用队列,将较为耗时且可能并发的操作按顺序阻塞执行,目前包括:

  • 从快照中检出
  • 重建索引
  • 数据库索引队列
  • 数据库索引引用
  • 数据库索引订正
  • 图片 OCR 提取文本
  • 生成文件历史
  • 嵌入块索引 嵌入块支持搜索 #7112
@88250 88250 added the Refactor label Jan 18, 2023
@88250 88250 self-assigned this Jan 18, 2023
@88250 88250 changed the title 重构内核任务调度 重构内核任务调度机制提升稳定性 Jan 18, 2023
@88250 88250 changed the title 重构内核任务调度机制提升稳定性 改进内核任务调度机制提升稳定性 Jan 18, 2023
@88250 88250 added this to the 2.7.1 milestone Jan 18, 2023
@88250 88250 closed this as completed Jan 18, 2023
@88250 88250 reopened this Jan 22, 2023
@Soltus
Copy link
Contributor

Soltus commented Jan 22, 2023

点赞

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants