Monitoring management includes start-up 、 stop it 、 delete 、 Listen and modify 、 Set Access Control 、 Set forwarding policy. Here we focus on access control and forwarding policies. What is access control Access control is to authorize a group of users to perform a group of operations on a group of resources. The load balancing is authorized through the white list policy. That is, by authorizing users of the specified IP or IP network segment, some users can have access to the load balancing instance. Users outside the authorization are prohibited from accessing. What is forwarding policy Forwarding policy refers to the rules or policies for forwarding a group of information (such as client requests, routes, etc.). The forwarding strategy of load balancing is mainly used for HTTP/HTTPS listening. Used to match and forward HTTP requests. Set Access Control Premises: - Monitoring has been created on the load balancing instance
- The server group has been added to the load balancing instance
1. Open the load balancing instance management, enter the listening page, and select "Set Access Control" 2. Open the "Access Control Status" and set the white list Confirm to complete the configuration! be careful:
- Once access control is enabled, only the specified IP or IP network segment can access the instance. Please use it carefully;
- Each line has one IP or IP network segment, and no delimiter is required at the end of the line. At most 300 white list records are supported;
Set forwarding policy 1. Open the load balancing instance management, enter the listening page, and select "Set forwarding policy" 2. Select New Forwarding Policy 3. The modification is as follows 4. Modify forwarding policy Only the server group corresponding to the forwarding policy can be modified. If you need to modify other rules, you need to delete the old rules and re-establish a new forwarding policy. be careful: After using the forwarding policy, the priority of load balancing forwarding is as follows: 1. Forward the listening forwarding policy first, and forward the request to the server group corresponding to the forwarding policy; 2. If the forwarding policy is not set, the server group is used when the listener is created, and the forwarding request turns to the corresponding server group when the listener is created; 3. If no forwarding policy is set and no server group is used, the forwarding request is directed to all back-end servers. After setting the forwarding policy, the forwarding logic is as follows: |