提交 a86a18a5 编写于 作者: Y yu yunfeng

alter off


Former-commit-id: 48cd5c15086b16512e25ce6baa9111168030c1fc
server_config: server_config:
address: 0.0.0.0 address: 0.0.0.0
port: 19530 port: 19530 # the port milvus listen to, default: 19530, range: 1025 ~ 65534
transfer_protocol: binary #optional: binary, compact, json gpu_index: 0 # the gpu milvus use, default: 0, range: 0 ~ gpu number - 1
server_mode: thread_pool #optional: simple, thread_pool mode: single # milvus deployment type: single, cluster
gpu_index: 0 #which gpu to be used
mode: single #optional: single, cluster
db_config: db_config:
db_path: /tmp/milvus db_path: /tmp/milvus # milvus data storage path
db_backend_url: http://127.0.0.1 db_backend_url: http://127.0.0.1 # meta database uri
index_building_threshold: 1024 #build index file when raw data file size larger than this value, unit: MB index_building_threshold: 1024 # index building trigger threshold, default: 1024, unit: MB
metric_config: metric_config:
is_startup: off # on is activated, otherwise is down. note: case sensitive is_startup: on # if monitoring start: on, off
collector: prometheus # prometheus, now we only have prometheus collector: prometheus # metrics collector: prometheus
prometheus_config: prometheus_config: # following are prometheus configure
collect_type: pull # pull means prometheus pull the message from server, push means server push metric to push gateway collect_type: pull # prometheus collect data method
port: 8080 port: 8080 # the port prometheus use to fetch metrics
push_gateway_ip_address: 127.0.0.1 push_gateway_ip_address: 127.0.0.1 # push method configure: push gateway ip address
push_gateway_port: 9091 push_gateway_port: 9091 # push method configure: push gateway port
license_config:
license_path: "/tmp/system.license"
cache_config: license_config: # license configure
cpu_cache_capacity: 16 # memory pool to hold index data, unit: GB license_path: "/tmp/system.license" # license file path
\ No newline at end of file
cache_config: # cache configure
cpu_cache_capacity: 16 # how many memory are used as cache, unit: GB, range: 0 ~ less than total memory
\ No newline at end of file
...@@ -30,6 +30,7 @@ TEST_F(DBTest, Metric_Tes) { ...@@ -30,6 +30,7 @@ TEST_F(DBTest, Metric_Tes) {
server::SystemInfo::GetInstance().Init(); server::SystemInfo::GetInstance().Init();
// server::Metrics::GetInstance().Init(); // server::Metrics::GetInstance().Init();
// server::Metrics::GetInstance().exposer_ptr()->RegisterCollectable(server::Metrics::GetInstance().registry_ptr()); // server::Metrics::GetInstance().exposer_ptr()->RegisterCollectable(server::Metrics::GetInstance().registry_ptr());
server::Metrics::GetInstance().Init(); server::Metrics::GetInstance().Init();
// server::PrometheusMetrics::GetInstance().exposer_ptr()->RegisterCollectable(server::PrometheusMetrics::GetInstance().registry_ptr()); // server::PrometheusMetrics::GetInstance().exposer_ptr()->RegisterCollectable(server::PrometheusMetrics::GetInstance().registry_ptr());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册