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

Handle video file move in a job #4282

Closed

Conversation

kontrollanten
Copy link
Contributor

Description

This is a proposal that shows how heavy tasks during file upload is handled in a job instead of during the HTTP request. This will make PeerTube scale better when an instance grows big and a lot of file uploads are done simultaneously. It will also create a better user experience since the user can leave the video creation before all the video process are done, which is not the case today. And it will also solve issues when using S3 video storage where it can take 10 minutes for a file move to S3 to finish.

@Chocobozzz Should I go further with this? Do you have any preferences regarding how it should be handled?

Related issues

#4147
#3661

Has this been tested?

  • 👍 yes, I added tests to the test suite
  • 💭 no, because this PR is a draft and still needs work
  • 🙅 no, because this PR does not update server code
  • 🙋 no, because I need help

@Chocobozzz
Copy link
Owner

Chocobozzz commented Aug 5, 2021

Would #4290 fix the underlying issue?

@Chocobozzz Chocobozzz added the Status: Waiting for answer Waiting issue author answer label Aug 5, 2021
@kontrollanten
Copy link
Contributor Author

Yes, It'll solve a huge part of it. After the upload is done there's still a few kind of heavy operations that's done during the HTTP request

  • Move the uploaded file.
  • Generate preview image.
  • Calculate video length.

Hypothetically that can be an issue, but maybe it's better solve that when it's a real issue.

@Chocobozzz
Copy link
Owner

Hypothetically that can be an issue, but maybe it's better solve that when it's a real issue.

👍 Then closing and we'll see when the S3 PR will be integrated

@Chocobozzz Chocobozzz closed this Aug 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Waiting for answer Waiting issue author answer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants