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
Run logs are never deleted, so disk space usage on the server can grow quickly and indefinitely.
Solution
Add a setting that will specify the TTL for run logs. Once the run finishes and its TTL expires, dstack server should delete this run's logs automatically.
The setting can be specified in ~/.dstack/server/config.yml at project level. The values can be in ISO 8601 duration format.
The setting should work for both file storage and CloudWatch storage options.
The default is to store logs indefinitely.
Workaround
Delete the logs manually in ~/.dstack/server/projects/<project_name>/logs or store logs in AWS CloudWatch and use CloudWatch-specific mechanisms for logs expiry.
Alternative/future solutions
dstack server could automatically delete the oldest logs when storage is approaching the disk capacity or the specified limit.
Would you like to help us implement this feature by sending a PR?
Yes
The text was updated successfully, but these errors were encountered:
Different projects can have different TTL requirements, e.g. a project for production deployments may set a long TTL while development projects may set a shorter TTL. Projects that are known to produce a lot of logs can also benefit from shorter TTLs.
A compromise could be to allow setting the default TTL at server level and overriding it at project level.
Problem
Run logs are never deleted, so disk space usage on the server can grow quickly and indefinitely.
Solution
Add a setting that will specify the TTL for run logs. Once the run finishes and its TTL expires,
dstack
server should delete this run's logs automatically.The setting can be specified in
~/.dstack/server/config.yml
at project level. The values can be in ISO 8601 duration format.The setting should work for both file storage and CloudWatch storage options.
The default is to store logs indefinitely.
Workaround
Delete the logs manually in
~/.dstack/server/projects/<project_name>/logs
or store logs in AWS CloudWatch and use CloudWatch-specific mechanisms for logs expiry.Alternative/future solutions
dstack
server could automatically delete the oldest logs when storage is approaching the disk capacity or the specified limit.Would you like to help us implement this feature by sending a PR?
Yes
The text was updated successfully, but these errors were encountered: