Server role |
Partition recommendations |
Advantages |
RAID Solution |
Single Server Such as 8 GB memory, GB hard disk |
/Boot 100-200 M Swap 16 GB, memory size 8 GB x 2 /80G /Var 20G (or not) /Data 180 GB (storing web and db data) |
Data disks and system disks are separated to facilitate maintenance in case of problems. |
Depending on data and performance requirements, the RAID 5 compromise is generally adopted. |
Server Load balancer (such as LVS) |
/Boot 100-200 M 1-2 times of swap memory / |
Simple and Convenient. Only a small amount of data is forwarded. |
The data size is small and the importance is high. RAID1 can be used. |
RS server under server Load balancer |
/Boot 100-200 M 1-2 times of swap memory / |
It is simple and convenient, because there are multiple machines and there are low data requirements. |
Large data volume, low importance, performance requirements, low data requirements, RAID0 can be used |
Database Server Mysql and oracle For example, 16/32 GB memory |
/Boot 100-200 M Swap 16 GB, 1 time of memory /100 GB /Data surplus (store db data) |
Data disks and system disks are separated to facilitate maintenance when problems occur and to maintain data integrity. |
The master database can adopt raid10/raid5 Based on Data and performance requirements, and the slave database can adopt raid0 to Improve the Performance (when read/write splitting is enabled .) |
Storage Server |
/Boot 100-200 M 1-2 times of swap memory /100 GB /Data (store data) |
This server should not have too many partitions. Backup only, with low performance requirements. Large capacity. |
Available sata disks, RAID 5 |
Shared storage servers (such as NFS) |
/Boot 100-200 M 1-2 times of swap memory /100 GB /Data (store data) |
This server should not have too many partitions. NFS sharing requires more performance than storage. |
You can use raid5, raid10, or even raid0 based on performance and access requirements (there must be a high-availability or dual-write solution) |
Monitoring Server Cacti, nagios |
/Boot 100-200 M 1-2 times of swap memory / |
Average importance and data requirements. |
Single disk or dual disk RAID 1. Three disks are RAID 5. You only need to add disks to check the capacity. |