An inode limit can be considered as several files and directories one customer can own.
The default WordPress installation has approximately 1,100 files/directories.
The default Magento install is 10,000 files/directories.
You would need to consider at least 30,000 to be an inode limit for a minimal package for your customers.
You can calculate limits based on the current usage of your customers by running the following command.
repquota -a | grep -v root | awk '{print $6" "$1 }' | sort -g
The following counts the number of inodes per the current directory.
echo "Detailed Inode usage for: $(pwd)" ; for d in `find -maxdepth 1 -type d | cut -d\/ -f2 | grep -xv .`; do c=$(find $d | wc -l); printf "$c\t\t- $d\n"; done | sort -n; printf "Total: \t\t$(find $(pwd) | wc -l)\n"
To change the inode limit for a user to a limit of 450.000:
cl-quota -u USER -S 450000 -H 450000
Do not forget - temporary files and session files are also counted towards the inode limit.
Comments
0 comments
Please sign in to leave a comment.