A
A
ArtemPugachev2010-11-15 21:22:19
Nginx
ArtemPugachev, 2010-11-15 21:22:19

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

6 answer(s)
H
Horse, 2010-11-15
@Horse

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.

P
peter23, 2010-11-15
@peter23

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.

M
miolini, 2010-11-15
@miolini

nginx because there are fewer steps between client and server to get content

A
ant0n, 2010-11-15
@ant0n

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).

C
charon, 2010-11-16
@charon

supported nginx. For example, FTP uses 2 ports, and HTTP uses 1. This fact already says a lot. In general, ftp should die, IMHO.

E
el777, 2010-11-16
@el777

from experience - nginx,
earlier in the donginx era it distributed static via FTP, now only nginx.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question