standalone部署的milvus暴露2379端口
说明:2380端口不需要暴露,内部通信使用.
1.修改配置文件
version: '3.5'
services:
etcd:
container_name: milvus-etcd
image: quay.io/coreos/etcd:v3.5.5
environment:
- ETCD_AUTO_COMPACTION_MODE=revision
- ETCD_AUTO_COMPACTION_RETENTION=1000
- ETCD_QUOTA_BACKEND_BYTES=4294967296
- ETCD_SNAPSHOT_COUNT=50000
volumes:
- ${DOCKER_VOLUME_DIRECTORY:-.}/volumes/etcd:/etcd
command: etcd -advertise-client-urls=http://127.0.0.1:2379 -listen-client-urls http://0.0.0.0:2379 --data-dir /etcd
healthcheck:
test: ["CMD", "etcdctl", "endpoint", "health"]
interval: 30s
timeout: 20s
retries: 3
ports:
- "2379:2379"
2.重新部署milvus
cd /home/middle/milvus
docker-compose down
docker-compose up -d
3.查看暴露的端口
[root@host135 milvus]# ss -nlp|grep 2379
tcp LISTEN 0 65535 *:2379 *:* users:(("docker-proxy",pid=31104,fd=4))
tcp LISTEN 0 65535 :::2379 :::* users:(("docker-proxy",pid=31109,fd=4))
4.尝试使用birdwatcher链接
[root@localhost birdwatcher]# ./birdwatcher
Offline > connect --etcd 192.168.1.135:2379
Using meta path: by-dev/meta/
Milvus(by-dev) > help
Milvus(by-dev) > help
Usage:
[command]
Available Commands:
backup backup etcd key-values
check-partiton-key check partition key field file
completion Generate the autocompletion script for the specified shell
consume consume msgs from provided topic
disconnect disconnect from current etcd instance
download download etcd data
download-pk download segment pk with provided collection/segment id
download-segment download segment file with provided segment id
dry-mode enter dry mode to select instance
exit Close this CLI tool
explain-balance explain segments and channels current balance status
fetch-metrics fetch metrics from milvus instances
force-release
garbage-collect scan oss of milvus instance for garbage(dry-run)
healthz-check perform healthz check for connect instance
help Help about any command
inspect-pk inspect pk column remote or local
kill Kill component session from etcd
list
listen-events
parse-ts parse hybrid timestamp
pprof get pprof from online components
probe probe service state with internal apis
release-dropped-collection Clean loaded collections meta if it's dropped from QueryCoord
remove
repair
scan-binlog test expr
set
show
show-log-level show log level of milvus roles
test
test-minio-cfg
update-log-level update log level of milvus role
verify-segment Verify segment file matches storage
version print version
visit enter state that could visit some service of component
web start a web server to see more details on browser
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?
2021-11-12 recover database using backup controlfile
2020-11-12 centos7 磁盘目录扩容