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

Why upload speed slow and below 3mbps? #759

Open
fcdont opened this issue Feb 7, 2025 · 5 comments
Open

Why upload speed slow and below 3mbps? #759

fcdont opened this issue Feb 7, 2025 · 5 comments
Labels

Comments

@fcdont
Copy link

fcdont commented Feb 7, 2025

Question
I have a dedicated server with 1gbps port and pretty high end spec, I expect the upload speed would be like 10/20mbps, but the upload speed only below 3mbps like 2.3 to 2.5mbps. When i try a non tus file upload, it reaches to 15-35mbps. Im using nginx as reverse proxy for both tus server software and my react app. I just want to know if there is any configurations or tus upload has limit?

Setup details
Please provide following details, if applicable to your situation:

  • Runtime environment:
    Node.js and Browser

  • Used tus-js-client version:
    Using the latest version

  • Used tus server software:
    tusd

@fcdont fcdont added the question label Feb 7, 2025
@Acconut
Copy link
Member

Acconut commented Feb 7, 2025

Tus itself does not have a speed limit, it's just a protocol. Debugging performance bottlenecks is impossible without more detailed information and your system and used configuration. Here are some pointers:

@softpottk
Copy link

I've added the http2_body_preread_size 512k; on nginx but still same, and tried copy exact same like on the examples, the upload speed was like 20% only. Is it better to use on http1 or http2? @Acconut

@Acconut
Copy link
Member

Acconut commented Feb 19, 2025

Are uploads faster if you send requests to tusd directly without going through Nginx first? That would tell us whether the proxy is the bottleneck or not.

@softpottk
Copy link

Are uploads faster if you send requests to tusd directly without going through Nginx first? That would tell us whether the proxy is the bottleneck or not.

On local, yes. Do you have any recommendation for other proxy/web server to use?

@Acconut
Copy link
Member

Acconut commented Feb 24, 2025

I have made good experience with HAProxy so far. Performant and offers flexible configuration.

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

3 participants