birdwatcher日常维护
1.连接到etcd
[root@localhost birdwatcher]# ./birdwatcher
Offline > connect --etcd 192.168.1.135:2379
Using meta path: by-dev/meta/
Milvus(by-dev) > help
2.备份和恢复etcd
备份
Milvus(by-dev) > backup
meta path meta
Backing up etcd ... 100%(419/419)
backup etcd for prefix done
http://172.26.0.4:9091/metrics
http://172.26.0.4:9091/metrics
http://172.26.0.4:9091/metrics
http://172.26.0.4:9091/metrics
http://172.26.0.4:9091/metrics
http://172.26.0.4:9091/metrics
http://172.26.0.4:9091/metrics
http://172.26.0.4:9091/metrics
backup for prefix done, stored in file: bw_etcd_ALL.250901-150411.bak.gz
恢复
Backup(by-dev) >load-backup bw_etcd_ALL.250901-150411.bak.gz
3.列出collections
show collections
================================================================================
DBID: 459715192409060489
Collection ID: 459715192410023075 Collection Name: customized_setup_2
Collection State: CollectionCreated Create Time: 2025-07-31 17:51:31
Update Time: 2025-07-31 17:51:31 Update timestamp: 459788908408602629
Fields:
- Field ID: 0 Field Name: RowID Field Type: Int64
- Field ID: 1 Field Name: Timestamp Field Type: Int64
- Field ID: 100 Field Name: my_id Field Type: Int64
- Primary Key: true, AutoID: false
- Field ID: 101 Field Name: my_vector Field Type: FloatVector
- Type Param dim: 5
- Field ID: 102 Field Name: my_varchar Field Type: VarChar
- Type Param max_length: 512
- Field ID: 103 Field Name: $meta Field Type: JSON
- Dynamic Field
Enable Dynamic Schema: true
Consistency Level: Bounded
Start position for channel by-dev-rootcoord-dml_10(by-dev-rootcoord-dml_10_459715192410023075v0): [1 0 24 126 147 127 97 6]
Collection properties(1):
Key: collection.ttl.seconds: 86400
================================================================================
--- Total collections: 16 Matched collections: 16
--- Total channel: 16 Healthy collections: 16
4.查看回话
Backup(by-dev) > show session
Cordinator rootcoord
[Main] ID: 6[Mixture] Version: 2.5.14 Address: 172.26.0.4:53100
Cordinator datacoord
[Main] ID: 6[Mixture] Version: 2.5.14 Address: 172.26.0.4:13333
Cordinator querycoord
[Main] ID: 6[Mixture] Version: 2.5.14 Address: 172.26.0.4:19531
Cordinator indexcoord
[Main] ID: 6[Mixture] Version: 2.5.14 Address: 172.26.0.4:13333
Node(s) datanode
ID: 6 Version: 2.5.14 Address: 172.26.0.4:21124
Node(s) querynode
ID: 6 Version: 2.5.14 Address: 172.26.0.4:21123
Node(s) indexnode
ID: 6 Version: 2.5.14 Address: 172.26.0.4:21121
Node(s) proxy
ID: 6 Version: 2.5.14 Address: 172.26.0.4:19529
Node(s) streamingnode