Hello! The site has gained an audience that the hosting simply does not maintain, therefore, you need to switch to more powerful equipment. I produce and maintain the site alone, and then did not use hosting. I would like to know: Site-service, it constantly loads new files and the database successfully grows quickly. How to use in such a situation - separately hosting only with the site, and using FTP to work with VPS? And where to store the database? I would like to know how popular sites work? I did not find such information on the Internet. Thank you in advance.
1 answer
About files. Depending on the attendance of the site there may be different approaches. When a lot of files are actually loaded, unloaded (videos, pictures, etc.), it is convenient to store them simply in the file system (xfs, etc.), and in the database only keep the paths to these files. If the number and size of these files are large, you can select a separate server for them, which will only give these files.
About the database. Depending on its type (SQL / NoSQL, disk, memory, etc.) and its size, it can be conveniently stored on a separate server. However, in this case, the physical connection to the database server itself may become the bottleneck. Plus, each new server is extra money.
- It would be a good option to use regular hosting for the site itself, and already use VPS for the database and for files? - Selected
- What do you call the usual hosting? - stanislav
- Virtual hosting for 200-500 rubles. - Selected
- There is no special sense to share, only if they are not configured much differently: that is, in one lot of space, in another memory. And so you have from the VPS with a margin should remain resource. - stanislav
- That is, use VPS in the same way as cheap shared hosting? All stored on a VPS? - Selected