Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
milvus
提交
669e134f
milvus
项目概览
BaiXuePrincess
/
milvus
与 Fork 源项目一致
从无法访问的项目Fork
通知
7
Star
4
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,发现更多精彩内容 >>
提交
669e134f
编写于
6月 27, 2019
作者:
Z
zhiru
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
temporarily disable decrementing conns_in_use_ when it's already <= 0
Former-commit-id: 4025643a777ae3566bee289d6d5db5c80409a6e5
上级
9b74b7ae
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
9 addition
and
7 deletion
+9
-7
cpp/conf/log_config.conf
cpp/conf/log_config.conf
+2
-2
cpp/conf/server_config.yaml
cpp/conf/server_config.yaml
+3
-3
cpp/src/db/MySQLConnectionPool.h
cpp/src/db/MySQLConnectionPool.h
+4
-2
未找到文件。
cpp/conf/log_config.conf
浏览文件 @
669e134f
...
@@ -20,8 +20,8 @@
...
@@ -20,8 +20,8 @@
TO_STANDARD_OUTPUT
=
false
TO_STANDARD_OUTPUT
=
false
## Error logs
## Error logs
*
ERROR
:
*
ERROR
:
ENABLED
=
fals
e
ENABLED
=
tru
e
FILENAME
=
"/tmp/milvus/logs/milvus-%datetime{%H:%m}-error.log"
FILENAME
=
"/tmp/milvus/logs/milvus-%datetime{%H:%m}-error.log"
*
FATAL
:
*
FATAL
:
ENABLED
=
fals
e
ENABLED
=
tru
e
FILENAME
=
"/tmp/milvus/logs/milvus-%datetime{%H:%m}-fatal.log"
FILENAME
=
"/tmp/milvus/logs/milvus-%datetime{%H:%m}-fatal.log"
\ No newline at end of file
cpp/conf/server_config.yaml
浏览文件 @
669e134f
server_config
:
server_config
:
address
:
0.0.0.0
address
:
0.0.0.0
port
:
1953
0
# the port milvus listen to, default: 19530, range: 1025 ~ 65534
port
:
1953
1
# the port milvus listen to, default: 19530, range: 1025 ~ 65534
gpu_index
:
0
# the gpu milvus use, default: 0, range: 0 ~ gpu number - 1
gpu_index
:
0
# the gpu milvus use, default: 0, range: 0 ~ gpu number - 1
mode
:
single
# milvus deployment type: single, cluster
mode
:
cluster
# milvus deployment type: single, cluster
db_config
:
db_config
:
db_path
:
/tmp/milvus
# milvus data storage path
db_path
:
/tmp/milvus
# milvus data storage path
#URI format: dialect://username:password@host:port/database
#URI format: dialect://username:password@host:port/database
#All parts except dialect are optional, but you MUST include the delimiters
#All parts except dialect are optional, but you MUST include the delimiters
#Currently supports mysql or sqlite
#Currently supports mysql or sqlite
db_backend_url
:
dialect://username:password@host:port/database
# meta database uri
db_backend_url
:
mysql://root:1234@:/test
# meta database uri
index_building_threshold
:
1024
# index building trigger threshold, default: 1024, unit: MB
index_building_threshold
:
1024
# index building trigger threshold, default: 1024, unit: MB
metric_config
:
metric_config
:
...
...
cpp/src/db/MySQLConnectionPool.h
浏览文件 @
669e134f
...
@@ -54,10 +54,12 @@ public:
...
@@ -54,10 +54,12 @@ public:
void
release
(
const
mysqlpp
::
Connection
*
pc
)
override
{
void
release
(
const
mysqlpp
::
Connection
*
pc
)
override
{
mysqlpp
::
ConnectionPool
::
release
(
pc
);
mysqlpp
::
ConnectionPool
::
release
(
pc
);
// ENGINE_LOG_DEBUG << "conns_in_use_ in release: " << conns_in_use_ << std::endl;
// ENGINE_LOG_DEBUG << "conns_in_use_ in release: " << conns_in_use_ << std::endl;
--
conns_in_use_
;
if
(
conns_in_use_
<=
0
)
{
if
(
conns_in_use_
<
0
)
{
ENGINE_LOG_WARNING
<<
"MySQLConnetionPool::release: conns_in_use_ is less than zero. conns_in_use_ = "
<<
conns_in_use_
<<
std
::
endl
;
ENGINE_LOG_WARNING
<<
"MySQLConnetionPool::release: conns_in_use_ is less than zero. conns_in_use_ = "
<<
conns_in_use_
<<
std
::
endl
;
}
}
else
{
--
conns_in_use_
;
}
}
}
void
set_max_idle_time
(
int
max_idle
)
{
void
set_max_idle_time
(
int
max_idle
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录