Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
qq_35024513
milvus
提交
c07aa9a0
milvus
项目概览
qq_35024513
/
milvus
与 Fork 源项目一致
Fork自
milvus / milvus
通知
14
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
milvus
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
c07aa9a0
编写于
11月 26, 2019
作者:
F
fishpenguin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
BuildIndex stop when do build index and search simultaneously
上级
8a4cc926
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
12 addition
and
2 deletion
+12
-2
CHANGELOG.md
CHANGELOG.md
+1
-0
core/src/scheduler/BuildMgr.h
core/src/scheduler/BuildMgr.h
+5
-0
core/src/scheduler/TaskTable.cpp
core/src/scheduler/TaskTable.cpp
+2
-1
core/src/scheduler/resource/Resource.cpp
core/src/scheduler/resource/Resource.cpp
+4
-1
未找到文件。
CHANGELOG.md
浏览文件 @
c07aa9a0
...
...
@@ -21,6 +21,7 @@ Please mark all change in change log and use the ticket from JIRA.
-
\#
440 - Server cannot startup with gpu_resource_config.enable=false in GPU version
-
\#
458 - Index data is not compatible between 0.5 and 0.6
-
\#
486 - gpu no usage during index building
-
\#
530 - BuildIndex stop when do build index and search simultaneously
## Feature
-
\#
12 - Pure CPU version for Milvus
...
...
core/src/scheduler/BuildMgr.h
浏览文件 @
c07aa9a0
...
...
@@ -55,6 +55,11 @@ class BuildMgr {
}
}
int64_t
NumOfAvailable
()
{
return
available_
;
}
private:
std
::
int64_t
available_
;
std
::
mutex
mutex_
;
...
...
core/src/scheduler/TaskTable.cpp
浏览文件 @
c07aa9a0
...
...
@@ -178,7 +178,8 @@ TaskTable::PickToLoad(uint64_t limit) {
// if task is a build index task, limit it
if
(
task
->
Type
()
==
TaskType
::
BuildIndexTask
&&
task
->
path
().
Current
()
==
"cpu"
)
{
if
(
not
BuildMgrInst
::
GetInstance
()
->
Take
())
{
if
(
BuildMgrInst
::
GetInstance
()
->
NumOfAvailable
()
<
1
)
{
SERVER_LOG_WARNING
<<
"BuildMgr doesnot have available place for building index"
;
continue
;
}
}
...
...
core/src/scheduler/resource/Resource.cpp
浏览文件 @
c07aa9a0
...
...
@@ -178,6 +178,10 @@ Resource::loader_function() {
if
(
task_item
==
nullptr
)
{
break
;
}
if
(
task_item
->
task
->
Type
()
==
TaskType
::
BuildIndexTask
&&
name
()
==
"cpu"
)
{
BuildMgrInst
::
GetInstance
()
->
Take
();
SERVER_LOG_DEBUG
<<
name
()
<<
" load BuildIndexTask"
;
}
LoadFile
(
task_item
->
task
);
task_item
->
Loaded
();
if
(
task_item
->
from
)
{
...
...
@@ -208,7 +212,6 @@ Resource::executor_function() {
if
(
task_item
==
nullptr
)
{
break
;
}
auto
start
=
get_current_timestamp
();
Process
(
task_item
->
task
);
auto
finish
=
get_current_timestamp
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录