As the number of user visits increases, the background of the website is constantly changing to meet the needs. This article mainly describes the excessive changes and changes from a small website to a large website. 1.1 The website background architecture mainly refers to the website background system composed of webserver, application server, database, storage, and monitoring. 1.2 Architecture Evolution personal site background architecture.
As the number of user visits increases, the background of the website is constantly changing to meet the needs. This article mainly describes the excessive changes and changes from a small website to a large website.
1.1 website background
Architecture
It is a website background system consisting of web server, application server, database, storage, monitoring, etc.
1.2 Architecture Evolution
Personal website background architecture. 2-1.
-1. One group with one table
If it is a personal site with a low traffic volume, the web server, application server, and database are generally deployed on a physical server. You can also see that the basic background of a website consists of three parts: web server, application server, and database.
1.2.1 further evolution of website architecture
Considering the increasing number of website visits, the background architecture of the website must be constantly adjusted and optimized to further implement function separation. Www. linuxIdC.com, especially with the increasing access traffic and the importance of database load and data, the database needs to be separated. From web server to database implementationServer Load balancer.
1.2.1.1 database function separation, single database deployment
Considering the Security and processing performance of the database, a single database is deployed. 2-2-1-1.
-2-1-1 Database Separation
The database is separated from the web server and application server and deployed on a single server. There are two advantages:
(1) database server performance is improved, and resources are no longer preemptible with webserver and application server.
(2) The security performance of database servers is improved, so that all services, especially database services, will not be affected because one server is down.
1.2.1.2 frontend server Load balancer deployment to relieve the pressure on a single web server
As the number of visits increases, the load on a single web server may increase or even lead to downtime. Therefore, you need to add a Load balancer at the front end to achieve load balancing at the web server layer. Slow downExtractForce. 2-2-2.
-2-1-2 Front-End Server Load balancer
By adding a web server and using load balaNcE. In addition, Master-Slave backup is performed to ensure the absolute security of the database. In this way, when the master database goes down, slavEdB can be enabled immediately. Therefore, doing so has the following benefits:
(1) the front-end web server and application server have less pressure and the Load balancer distributes loads.
(2) the security of the backend database is enhanced. After a fault occurs, the business can be quickly switched to the slave db.