The online server is running. now there is a problem with insufficient hard disk space on the website. all the data that can be deleted is deleted, but it will still be full in a short time. what should I do? The server is lnmp. Is there any way to completely solve this problem? how do large websites operate? The online server is running. now there is a problem with insufficient hard disk space on the website. all the data that can be deleted is deleted, but it will still be full in a short time. what should I do? The server is lnmp. Is there any way to completely solve this problem? how do large websites operate?
Reply content:
The online server is running. now there is a problem with insufficient hard disk space on the website. all the data that can be deleted is deleted, but it will still be full in a short time. what should I do? The server is lnmp. Is there any way to completely solve this problem? how do large websites operate?
Logs are regularly deleted when they are retained for N days, years, or even years.
Upload and save files to a dedicated file server (Qiniu/upyun/aws)
The website server only stores logs and website code. Databases and uploaded files are stored on other servers.
If it is an ECS, you can usually add a hard disk. Generally, insufficient hard disks are caused by Files. Therefore, a website file with a slightly larger size will have a dedicated file server.
Clear and Resize large log files