Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate deleting job artifacts proactively #154

Open
farski opened this issue Aug 8, 2023 · 0 comments
Open

Investigate deleting job artifacts proactively #154

farski opened this issue Aug 8, 2023 · 0 comments
Labels

Comments

@farski
Copy link
Member

farski commented Aug 8, 2023

When a Porter job creates an intermediary file (such as the source file being ingested, or a transcoded file before it's copied to its destination), those files are created in the artifacts S3 bucket. Those files are only used in the context of the Step Function execution, and unneeded after the job stops running, other than for debugging purposes.

Currently, cleanup of those files is handled by a lifecycle rule on the bucket: objects expire after 1 day.

We do a large enough volume of work in Porter that at any given time, that bucket is over 200 GB. So we're currently paying for every object to live for 24 hours, when they are only providing value for about a minute, in most cases (under 10 minutes in nearly all cases).

We could have the state machine proactively delete objects associated with the job right before it completes to significantly reduce our byte-seconds usage in S3.

@farski farski added the low label Aug 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant