-
Notifications
You must be signed in to change notification settings - Fork 83
Expand file tree
/
Copy pathbackup.yaml
More file actions
183 lines (156 loc) · 6.22 KB
/
Copy pathbackup.yaml
File metadata and controls
183 lines (156 loc) · 6.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
# The schema version this file is written in. Required by v2.
# A file without it is read as v1 and translated, which still works but is
# deprecated: run `milvus-backup config migrate` to convert it.
configVersion: v2
# Configures the system log output.
log:
level: info # Only supports debug, info, warn, error, panic, or fatal. Default 'info'.
console: true # whether print log to console
file:
path: "logs/backup.log"
# The milvus-backup HTTP API server itself.
server:
debugMode: false
# Set when the API is served behind a reverse proxy under a path prefix.
swaggerBasePath: ""
# The Milvus deployment to back up, and the storage it keeps its data in.
milvus:
user: "root"
password: "Milvus"
# The public gRPC endpoint, used for metadata, collection and database
# operations, flush, and RBAC.
grpc:
address: localhost
port: 19530
# disabled, server (verify the server certificate), or mutual (also present
# a client certificate).
tlsMode: disabled
# Verifies the server certificate. Used when tlsMode is server or mutual.
caCertPath: ""
serverName: ""
# The client key pair. Required when tlsMode is mutual.
mtlsCertPath: ""
mtlsKeyPath: ""
# The public REST endpoint, used for segment describe during backup and for
# import during restore. Derived from the gRPC connection when left empty,
# which covers deployments where one proxy serves both protocols.
rest:
endpoint: ""
# The Milvus internal management endpoint, serving GC pause/resume.
management:
endpoint: http://localhost:9091
replicate:
# Milvus replicate msg channel name, default is by-dev-replicate-msg
rpcChannelName: "by-dev-replicate-msg"
etcd:
endpoints:
- 127.0.0.1:2379
rootPath: "by-dev"
# Milvus storage configs, make them the same with milvus config.
storage:
# Supported providers: local, minio, s3, aws, gcp, gcpnative, azure,
# aliyun, tencent, hwc.
# local is Milvus standalone with COMMON_STORAGETYPE=local: there is no
# bucket or endpoint, and rootPath is the directory backing Milvus
# localStorage.path as milvus-backup sees it on disk. Optional localPath is
# the path the Milvus process itself resolves (for a container bind-mount);
# restore import paths use it. See configs/backup-local-milvus.yaml for a
# complete example.
provider: "minio"
address: localhost
port: 9000
region: ""
useSSL: false
# The Azure storage account. Required by the azure provider, and rejected
# for every other one.
# accountName: ""
# Milvus bucket name, make it the same as your milvus instance.
bucketName: "a-bucket"
# Milvus storage root path, make it the same as your milvus instance.
rootPath: "files"
# Only the credentials the chosen type uses may be set: naming one it does
# not use is a mistake, and is rejected rather than ignored.
auth:
# static: an access key pair. iam: fetched from an IAM endpoint.
# sharedKey: an Azure account key. serviceAccount: a GCP credentials
# file. default: resolved by the provider SDK.
type: static
# type: static
accessKeyID: minioadmin
secretAccessKey: minioadmin
# sessionToken: ""
# type: sharedKey, the Azure storage account key.
# accountKey: ""
# type: serviceAccount, path to the GCP service account JSON file.
# credentialsFile: ""
# type: iam, the endpoint credentials are fetched from. AWS and GCP read
# instance metadata from a well-known address, while MinIO needs one
# configured.
# endpoint: ""
backup:
# Where backup data is written. Anything left out is inherited from
# milvus.storage, so a backup kept in the same backend only names what
# differs. rootPath is the exception and always defaults to "backup".
storage:
provider: "minio"
address: localhost
port: 9000
region: ""
useSSL: false
# accountName: ""
# Backup data is stored under bucketName/rootPath.
bucketName: "a-bucket"
rootPath: "backup"
# The endpoint the Milvus server itself uses to reach this storage, when
# it differs from address/port above: a container port mapping, a private
# link, or an internal DNS name gives one store two endpoints. Snapshot
# URIs handed to Milvus must name the endpoint Milvus resolves. Left
# empty, a backup kept in the same backend as Milvus omits the endpoint
# from those URIs entirely and lets Milvus use its own storage config.
# milvusAddress: ""
# milvusPort: 0
auth:
type: static
accessKeyID: minioadmin
secretAccessKey: minioadmin
# sessionToken: ""
# accountKey: ""
# credentialsFile: ""
# endpoint: ""
concurrency:
# number of collections to backup in parallel.
collections: 4
# number of segments to backup in parallel
segments: 1024
# Pause GC during backup through the Milvus management endpoint.
pauseGC: true
restore:
concurrency:
# Collection level parallelism to restore
collections: 2
# max number of import jobs to run in parallel,
# should be less than milvus's config dataCoord.import.maxImportJobNum
importJobs: 768
# max number of segments merged into one import job,
# should be less than milvus's config dataCoord.import.maxImportFileNumPerReq
maxSegmentsPerImportJob: 256
# keep temporary files during restore, only use to debug
keepTempFiles: false
# How objects move between the two storage backends.
transfer:
# auto asks the storage service to copy when both ends are the same backend,
# and streams through milvus-backup otherwise. direct always asks the storage
# service to copy; streaming always goes through milvus-backup.
mode: auto
# number of threads to copy data. reduce it if blocks your storage's network bandwidth
concurrency: 128
# File size threshold (MiB) above which multipart copy is used for
# S3-compatible storage. GCP does not support multipart copy and will always
# use single copy.
multipartCopyThresholdMiB: 500
# Zilliz Cloud config.
# If you want to migrate data to Zilliz Cloud, you need to configure the following parameters.
# Otherwise, you can ignore it.
zillizCloud:
endpoint: https://api.cloud.zilliz.com
apiKey: <your-api-key>