0

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:

  1. images/user/18/11/15/10
  2. images/user/18/11/15/11
  3. images/user/19/11/15/1

Is that will make a difference?

1 Answers1

2
  • Is there any way to reduce the load to normal range?

Use scientific method to analyse the problem this really is science not guesswork.

  • Use the usual tools, sar, free, top, iostat vmstat etc to gather information about your system.

  • Make an informed decision about what changes to make.

  • Monitor your system to see if the changes helped. If the didn't reanalize, rinse and repeat.

user9517
  • 117,122