V
V
vixh2010-12-13 06:18:30
Nginx
vixh, 2010-12-13 06:18:30

Maximum number of images in nginx directory

How does the number of files in the directory affect the speed of sending images to nginx.
What is the maximum number that can be placed without sacrificing performance.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
admin4eg, 2010-12-13
@admin4eg

It affects only the File system, that it has to look for this file for a long time.
I have my own OpenMapStreet server deployed at each deputy level, the number of images is increasing ...
at the 10th level in one directory 180,000
at the 15th level 3,967,815
And so on until the 18th.
Of course, you need to spread the files into directories. to make life easier for the file system.

V
Vitaly Peretyatko, 2010-12-23
@viperet

Even in nginx, you can try to enable open_file_cache, if a lot of static (pictures) are distributed and they practically do not change, it can help if there are a lot of files in the folders.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question