Answer the question
In order to leave comments, you need to log in
Serving files: nginx or ftp?
There is a server with several TB of movies, series, music. Now the server is loaded due to the huge number of downloaders.
Question: will the server load decrease if nginx is used instead of ftp?
Answer the question
In order to leave comments, you need to log in
Nginx uses the SendFile command built into the Linux kernel - there is nothing faster.
Putting static on a separate server is good, on several servers it's great.
With nginx, the load should be less. First, HTTP, unlike FTP, does not use different connections for transferring commands and data; uses only one connection per client. Secondly, the architecture of the server plays a role. For example, vsftpd spawns an additional process for each connection. nginx does not do this, processing all connections in cycles in a given number of processes. The resource savings are obvious.
nginx because there are fewer steps between client and server to get content
Yes, the load will be reduced. You can generally keep some files in RAM while minimizing disk access. I also advise you to play around with the network parameters of the kernel using sysctl (there are many guides on this topic on the net).
supported nginx. For example, FTP uses 2 ports, and HTTP uses 1. This fact already says a lot. In general, ftp should die, IMHO.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question