# Overview

The source IP flow control function is used to configure flow control rules at the source IP level. It can limit traffic from the two dimensions of concurrency and QPS, and supports custom response messages after triggering flow limiting. The following introduces the source IP flow control function.

# Source IP flow control list

Menu location: Flow Control Management > Source IP Flow Control. Click the menu to enter the source IP flow control list page, as shown in the figure.

manager_flow_control_rule_ip_query

# Add interface rules

Click the Add button to pop up the new window, as shown in the figure.

manager_flow_control_rule_ip_add_1

manager_flow_control_rule_ip_add_2

Source IP: The IP address to be limited, required;

Front-end service name: Select the service name to be limited from the drop-down list. If not configured, the flow will be limited based on the source IP;

Front-end API path: If the interface URL is http://gateway IP:port/proxy/user-service/user/list, enter /user/list. If configured, the front-end service name is required. If not configured, the source IP will be used. or service throttling;

Single-machine QPS: At least one of the QPS allowed by a single machine and the number of QPS and concurrency must be filled in;

Single machine concurrency count: The number of concurrency allowed on a single machine, at least one of QPS and concurrency count must be filled in;

Current limiting response ContentType: Customized current limiting response content type. If not configured, the current limiting response ContentType in the default rule will be used;

Current limiting response message: Customized current limiting response message. If not configured, the current limiting response message in the default rule will be used.

# Edit interface rules

Click the Edit button to pop up the editing window, as shown in the figure.

manager_flow_control_rule_ip_edit_1

manager_flow_control_rule_ip_edit_2

# Delete interface rules

Click the Delete button to pop up the deletion confirmation window, as shown in the figure.

manager_flow_control_rule_ip_delete_1

manager_flow_control_rule_ip_delete_2