mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-30 15:35:33 +08:00
temporarily disable decrementing conns_in_use_ when it's already <= 0
Former-commit-id: 4025643a777ae3566bee289d6d5db5c80409a6e5
This commit is contained in:
parent
9b74b7ae41
commit
669e134fa1
@ -20,8 +20,8 @@
|
||||
TO_STANDARD_OUTPUT = false
|
||||
## Error logs
|
||||
* ERROR:
|
||||
ENABLED = false
|
||||
ENABLED = true
|
||||
FILENAME = "/tmp/milvus/logs/milvus-%datetime{%H:%m}-error.log"
|
||||
* FATAL:
|
||||
ENABLED = false
|
||||
ENABLED = true
|
||||
FILENAME = "/tmp/milvus/logs/milvus-%datetime{%H:%m}-fatal.log"
|
||||
@ -1,15 +1,15 @@
|
||||
server_config:
|
||||
address: 0.0.0.0
|
||||
port: 19530 # the port milvus listen to, default: 19530, range: 1025 ~ 65534
|
||||
port: 19531 # the port milvus listen to, default: 19530, range: 1025 ~ 65534
|
||||
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_path: /tmp/milvus # milvus data storage path
|
||||
#URI format: dialect://username:password@host:port/database
|
||||
#All parts except dialect are optional, but you MUST include the delimiters
|
||||
#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
|
||||
|
||||
metric_config:
|
||||
|
||||
@ -54,10 +54,12 @@ public:
|
||||
void release(const mysqlpp::Connection* pc) override {
|
||||
mysqlpp::ConnectionPool::release(pc);
|
||||
// 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;
|
||||
}
|
||||
else {
|
||||
--conns_in_use_;
|
||||
}
|
||||
}
|
||||
|
||||
void set_max_idle_time(int max_idle) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user