I have a website that generate images for each user, which are stored in /images/user/
. I have a server with 8 CPUs, so maximum server load should be 8, but the load on my server reach 100, 150, 200. Average image size is 50 KB, average number of images created in 1 day is more than 50,000. The only way to decrease load is empty the images directory.
Is there any way to reduce the load to normal range?
Note : I thought to grouping generated images in more than 1 folders depend on date + time, such as:
- images/user/18/11/15/10
- images/user/18/11/15/11
- images/user/19/11/15/1
Is that will make a difference?