You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/guides/server-deployment.md
+52-2Lines changed: 52 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -162,7 +162,7 @@ For multi-replica server deployments, it's required to store logs externally.
162
162
To store logs in AWS CloudWatch, set the `DSTACK_SERVER_CLOUDWATCH_LOG_GROUP` and
163
163
the `DSTACK_SERVER_CLOUDWATCH_LOG_REGION` environment variables.
164
164
165
-
The log group must be created beforehand,`dstack` won't try to create it.
165
+
The log group must be created beforehand.`dstack` won't try to create it.
166
166
167
167
??? info "Required permissions"
168
168
@@ -218,6 +218,56 @@ To store logs using GCP Logging, set the `DSTACK_SERVER_GCP_LOGGING_PROJECT` env
218
218
219
219
</div>
220
220
221
+
## File storage
222
+
223
+
When using [repos](../concepts/repos.md), the `dstack` CLI uploads uncommitted local files and diffs to the server so that you can have access to them within runs. By default, the files are stored in the DB and each upload is limited to 2MB. You can configure an object storage to be used for uploads and increase the default limit by setting the `DSTACK_SERVER_CODE_UPLOAD_LIMIT` environment variable
224
+
225
+
### S3
226
+
227
+
To use S3 for storing uploaded files, set the `DSTACK_SERVER_S3_BUCKET` and `DSTACK_SERVER_BUCKET_REGION` environment variables.
228
+
The bucket must be created beforehand. `dstack` won't try to create it.
229
+
230
+
??? info "Required permissions"
231
+
232
+
```json
233
+
{
234
+
"Version": "2012-10-17",
235
+
"Statement": [
236
+
{
237
+
"Effect": "Allow",
238
+
"Action": [
239
+
"s3:GetObject",
240
+
"s3:PutObject",
241
+
"s3:DeleteObject",
242
+
"s3:ListBucket"
243
+
],
244
+
"Resource": [
245
+
"arn:aws:s3:::<bucket-name>",
246
+
"arn:aws:s3:::<bucket-name>/*"
247
+
]
248
+
}
249
+
]
250
+
}
251
+
```
252
+
253
+
### GCS
254
+
255
+
To use GCS for storing uploaded files, set the `DSTACK_SERVER_GCS_BUCKET` environment variable.
256
+
The bucket must be created beforehand. `dstack` won't try to create it.
257
+
258
+
??? info "Required permissions"
259
+
Ensure you've configured Application Default Credentials with the following permissions:
260
+
261
+
```
262
+
storage.buckets.get
263
+
storage.buckets.list
264
+
storage.objects.get
265
+
storage.objects.list
266
+
storage.objects.create
267
+
storage.objects.delete
268
+
storage.objects.update
269
+
```
270
+
221
271
## Encryption
222
272
223
273
By default, `dstack` stores data in plaintext. To enforce encryption, you
@@ -320,7 +370,7 @@ default_permissions:
320
370
`dstack` follows the `{major}.{minor}.{patch}` versioning scheme.
321
371
Backward compatibility is maintained based on these principles:
322
372
323
-
* The server backward compatibility is maintained across all minor and patch releases. The specific features can be removed but the removal is preceded with deprecation warnings for several minor releases. This means you can use older client versions with newer server versions.
373
+
* The server backward compatibility is maintained on a best-effort basis across minor and patch releases. The specific features can be removed, but the removal is preceded with deprecation warnings for several minor releases. This means you can use older client versions with newer server versions.
324
374
* The client backward compatibility is maintained across patch releases. A new minor release indicates that the release breaks client backward compatibility. This means you don't need to update the server when you update the client to a new patch release. Still, upgrading a client to a new minor version requires upgrading the server too.
0 commit comments