Get the App
SLTechnology News&Howtos  ›  Database  › 

Implement the method of using the same MYSQL and the same web page profile between Web servers

Shulou Source: shulou.com Published: 2022-06-01 21:04:19 10月04日 Update

Load balancing (Cloud Load Balancer) is a service that distributes traffic to multiple CVMs. Load balancing can expand the external service capacity of the application system through traffic distribution and improve the availability of the application system by eliminating a single point of failure. The cloud load balancer service virtualizes multiple CVM resources located in the same region into a high-performance and highly available application service pool by setting virtual service addresses (VIP). Distribute the network requests from the client to the cloud server pool according to the way specified by the application. The load balancer service checks the health status of the CVM instances in the CVM pool and automatically isolates the abnormal instances, thus solving the single point problem of the CVM and improving the overall service capability of the application. Today, I will show you how to use the same MYSQL and the same web page profile between Web servers.

Foreword:

The combination of NFS, LAMP and BIND is used to deal with the increase of traffic in the network, which leads to the load operation of the CVM. To make it possible to use the same MYSQL and the same web page profile between Web servers.

Experimental environment:

HostNameIP Planning nfs.preferred.com192.168.1.6NFSns.preferred.com192.168.1.5DNSmysql.preferred.com192.168.1.4MYSQLwww.preferred.com192.168.1.3WEBwww.preferred.com192.168.1.2WEB

Lab Topology:

The steps of the experiment:

First, set up NFS

The following operations implement [root@localhost ~] # yum install nfs-utils-y / dev/null [root@localhost webdata] # chmod-R 777 wordpress [root@localhost webdata] # ls-l drwxrwxrwx 5 root root 4096 Oct 11 2016 wordpress-rw-r--r-- 1 root root 4372680 Oct 11 2016 wordpress-3.2.1-zh_ dev/null [root @ localhost webdata] # vim / etc/exports / mydata 192.168.1.4 on the nfs.preferred.com server (rw No_root_squash) / webdata 192.168.1.2 (rw,no_root_squash) 192.168.1.3 (rw,no_root_squash) [root@localhost ~] # service rpcbind start Note: rpcbind is a RPC service It is mainly responsible for notifying the client and server of the nfs port number when nfs is shared. [root@localhost ~] # service nfs start Starting NFS services: [OK] Starting NFS quotas: [OK] Starting NFS mountd: [OK] Starting NFS daemon: [OK] Starting RPC idmapd: [OK] [root@localhost ~] # showmount-e 192.168.1.6

Tags: Service server data configuration database file reality application test balance experiment directory same between method web page specialty host region multiple Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple NVidia Microsoft OPPO Reno Docker