-1

I have an upload site for uploading images and files. We've been running for two months and since then have 4.5k uploaded files and images. About 4.3k images and 200 files.

Last night we had a "small ddos attack" that slowed page loading up to 15 seconds. A few hours after we reached an inodes quota of 100% but it's imposible that we've exceeded 1.280.000 files (OVH limit of indoes).

Could you help?

1 Answers1

0

I had a similar issue, I found out the files piling up under one specific directory using this command-

$find . -xdev -type f | cut -d "/" -f 2 | sort | uniq -c | sort -n

and eventually you can get to a path where you have a dir holding numerous file.

One solution is to just delete all the files under this tmp to free up inodes. But I think you would like to triage further.

Hope it helps!

Rishi
  • 5,869
  • 7
  • 34
  • 45
  • Problem solved, problem was in session. While ddos attack that slow page down. Site created about milion of sessions. Coder found it using command u provided! Thank you! :) www.uploaduj.me will be online shortly :) – Nelson Zara Sep 27 '17 at 21:17
  • awesome! please dont forget to accept the answer / upvote =) – Rishi Sep 27 '17 at 21:19
  • I thing that I accepted answer and upvode check it I'm new here. And we are online https://www.uploaduj.me :) Thanks again! – Nelson Zara Sep 28 '17 at 08:02