京东 Vearch Docker 模式下 config.toml 配置详解
在京东 Vearch 的 Docker 模式下,可以通过修改'config.toml'文件来配置 Vearch 的参数。
以下是一些常见的配置项:
-
'server_port':指定 Vearch 服务监听的端口,默认为 8000。
server_port = 8000 -
'index_name':指定 Vearch 索引的名称,默认为'default'。
index_name = 'default' -
'data_dir':指定 Vearch 数据存储目录,默认为'./data'。
data_dir = './data' -
'log_level':指定日志级别,可以是'debug'、'info'、'warn'、'error'或'critical',默认为'info'。
log_level = 'info' -
'enable_prometheus':是否启用 Prometheus 监控,默认为 false。
enable_prometheus = false -
'prometheus_port':指定 Prometheus 监控的端口,默认为 9090。
prometheus_port = 9090 -
'enable_grpc':是否启用 gRPC 服务,默认为 false。
enable_grpc = false -
'grpc_port':指定 gRPC 服务的端口,默认为 50051。
grpc_port = 50051
请根据具体需求修改'config.toml'文件中的配置项,并将其挂载到 Docker 容器中即可生效。
原文地址: https://www.cveoy.top/t/topic/qEXn 著作权归作者所有。请勿转载和采集!