Content distribution network configuration method, device, equipment, medium and program product
By configuring condition groups and executing actions in the content distribution network, and generating processing information to process access requests, the problem of long-term configuration of the content distribution network is solved, and an efficient and flexible configuration method is achieved.
Patent Information
- Application Number
- CN202411793348.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-06
- Publication Date
- 2025-03-28
- Estimated Expiration
- 2044-12-06
AI Technical Summary
The content distribution network configuration takes a long time and cannot effectively meet the complex customization needs of users.
By displaying the rule configuration page, users are allowed to configure and display condition groups and perform actions, generating processing information to process access requests.
The free combination between the condition group and the execution action is realized, the efficiency and flexibility of the content distribution network configuration is improved, and the timing accuracy of the configuration is ensured.
Smart Images

Figure CN119276699B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a content distribution network configuration method, apparatus, device, medium and program product. Background Art
[0002] In the related art, users access the services of the content distribution network through domain names to accelerate resource access. In order to accurately control resource request behavior, content distribution network providers usually provide users with a variety of domain name configuration capabilities through configuration control systems. These domain name configuration capabilities are often at the domain name level. If a domain name is configured with certain functions, they will take effect on all request scenarios under this domain name. However, in actual business scenarios, users may want certain functions to take effect only in specific request scenarios. Faced with complex customer needs, the content distribution network's servers and domain name configuration control systems are often required to expand, develop, and test the function at the same time, which results in a long time for content distribution network configuration. Summary of the invention
[0003] In view of this, the present disclosure provides a content distribution network configuration method, apparatus, device, medium and program product to solve the problem that content distribution network configuration takes a long time.
[0004] In a first aspect, the present disclosure provides a content distribution network configuration method, the method comprising:
[0005] Displaying a rule configuration page, wherein the rule configuration page displays a first condition configuration item of the content distribution network for the target domain name;
[0006] In response to the configuration operation on the first condition configuration item, configuring and displaying a first condition group;
[0007] In response to the action configuration instruction for the first condition group, displaying a first action configuration item;
[0008] In response to a configuration operation on the first action configuration item, a first execution action corresponding to the first condition group is configured and displayed, and an execution timing of the first execution action is related to a judgment timing of the first condition group;
[0009] Based on the first condition group and the first execution action, first processing information of the target domain name is generated, and the first processing information is used by the content distribution network to process an access request under the target domain name.
[0010] In a second aspect, the present disclosure provides a content distribution network configuration device, the device comprising:
[0011] A page display module, used to display a rule configuration page, wherein the rule configuration page displays a first condition configuration item of the content distribution network for the target domain name;
[0012] A condition configuration module, configured to configure and display a first condition group in response to a configuration operation on the first condition configuration item;
[0013] an instruction response module, configured to display a first action configuration item in response to an action configuration instruction for the first condition group;
[0014] an action configuration module, configured to configure and display a first execution action corresponding to the first condition group in response to a configuration operation on the first action configuration item, wherein an execution timing of the first execution action is related to a judgment timing of the first condition group;
[0015] A configuration generation module is configured to generate first processing information of the target domain name based on the first condition group and the first execution action, wherein the first processing information is used by the content distribution network to process an access request under the target domain name.
[0016] In a third aspect, the present disclosure provides an electronic device, comprising: a memory and a processor, the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the content distribution network configuration method of the first aspect by executing the computer instructions.
[0017] In a fourth aspect, the present disclosure provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the content distribution network configuration method of the first aspect.
[0018] In a fifth aspect, the present disclosure provides a computer program product, including computer instructions, where the computer instructions are used to enable a computer to execute the content distribution network configuration method of the first aspect.
[0019] The content distribution network configuration method provided by the embodiment of the present disclosure configures and displays the first condition group through the configuration operation for the first condition configuration item. And, through the configuration operation for the first action configuration item, the first execution action corresponding to the first condition group is configured and displayed. Therefore, the configuration of the first condition group and the corresponding first execution action can be used to realize the free combination between the condition group and the execution action, so as to flexibly configure the processing of the target domain name by the content distribution network. At the same time, the execution timing of the configured first execution action is related to the judgment timing of the first condition group. Therefore, it is possible to avoid that the first execution action is triggered before the first condition group when the content distribution network processes the access request under the target domain name, so as to ensure the correctness of the content distribution network configuration in terms of timing. Furthermore, based on the first condition group and the corresponding first execution action, the first processing information of the target domain name is generated, so that the content distribution network processes the access request under the target domain name based on the first processing information. Therefore, the configuration efficiency of the content distribution network can be effectively improved to improve the configuration efficiency of the complex customized requirements of the target domain name. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the specific embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0021] Figure 1 is a flowchart of a first content distribution network configuration method according to an embodiment of the present disclosure;
[0022] Figure 2 is a schematic diagram of a life cycle of an access request in a content distribution network according to an embodiment of the present disclosure;
[0023] Figure 3 is a flow chart of a second content distribution network configuration method according to an embodiment of the present disclosure;
[0024] Figure 4 is a configuration diagram of a first configuration condition in a first condition group according to an embodiment of the present disclosure;
[0025] Figure 5 is a configuration diagram of conditional parameters of a first configuration condition according to an embodiment of the present disclosure;
[0026] Figure 6 is a schematic diagram of a configuration of a sub-condition group under a first configuration condition according to an embodiment of the present disclosure;
[0027] Figure 7is a flowchart of a third content distribution network configuration method according to an embodiment of the present disclosure;
[0028] Figure 8 is a schematic diagram of a configuration for adding a first execution action according to an embodiment of the present disclosure;
[0029] Fig. 9 is a schematic diagram of a configuration of an execution timing of a first execution action according to an embodiment of the present disclosure;
[0030] Fig.10 is a schematic diagram of configuring other action information of a first execution action according to an embodiment of the present disclosure;
[0031] Fig.11 is a schematic diagram of a configuration of a sub-rule triggered when a first condition group is met according to an embodiment of the present disclosure;
[0032] Fig.12 is a schematic diagram of a configuration of a fourth execution action executed when a first condition group is not satisfied according to an embodiment of the present disclosure;
[0033] Fig.13 is a configuration interaction diagram of a content distribution network according to an embodiment of the present disclosure;
[0034] Fig.14 is a structural block diagram of a content distribution network configuration device according to an embodiment of the present disclosure;
[0035] Fig.15 is a structural block diagram of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0036] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.
[0037] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0038] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.
[0039] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0040] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0041] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.
[0042] Users access the Content Delivery Network (CDN) service through domain names to accelerate resource access. In order to accurately control resource request behavior, content delivery network providers usually provide users with a variety of domain name configuration capabilities through configuration control systems. For example, adding specific back-to-origin request headers, deleting specific response headers, and limiting the speed of access to certain resource types.
[0043] In related technologies, these domain name configuration capabilities are at the domain name level, that is, if a content distribution network is configured with certain functions, then all requests for all paths and resource types under this domain name will take effect. However, in actual business scenarios, users may want certain functions to take effect only in specific scenarios and not in other scenarios. For example, a specific back-to-origin request header is added only when the requested resource is in image format.
[0044] In response to complex user needs, product research is usually required to decide whether to conditionally expand a function based on the industry's support for the function. For example, request path matching conditions. In this case, the content distribution network server and the content distribution network configuration control system need to expand, develop, and test the function at the same time, resulting in a long time to go online and a long function delivery cycle.
[0045] In view of this, according to an embodiment of the present disclosure, a content distribution network configuration method embodiment is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0046] In this embodiment, a first content distribution network configuration method is provided, which can be used in a configuration control system of a content distribution network. Figure 1 is a flow chart of a first content distribution network configuration method according to an embodiment of the present disclosure, such as Figure 1 As shown, the process includes the following steps:
[0047] Step S101: displaying a rule configuration page, wherein the rule configuration page displays a first condition configuration item of a content distribution network for a target domain name.
[0048] Specifically, in response to the rule configuration instruction for the target domain name, a rule configuration page is displayed.
[0049] Step S102: in response to a configuration operation on a first condition configuration item, a first condition group is configured and displayed.
[0050] Specifically, for access requests under the target domain name in each processing stage in the server of the content distribution network, the server provides nodes (also known as Hook points) that can be inserted with custom codes or functions to provide the ability to judge some business scenarios that can be captured in the current processing stage, and to perform specific content distribution network functions in the current processing stage and subsequent processing stages. Specifically, these captured business scenario judgments are abstracted into configuration conditions, such as the request path suffix matches A, the value of the request header B matches Y, the back-to-source status code is 502, and the request time is between 10:00-14:00. The configuration conditions are combined through the logical relationship of "and" and "or" to configure the first condition group.
[0051] Step S103: In response to the action configuration instruction for the first condition group, display the first action configuration item.
[0052] Specifically, an action configuration control is displayed in an area of the rule configuration page corresponding to the first condition group, and in response to an interactive operation on the action configuration control, a first action configuration item corresponding to the first condition group is displayed.
[0053] Step S104, in response to the configuration operation for the first action configuration item, configure and display the first execution action corresponding to the first condition group, and the execution timing of the first execution action is related to the judgment timing of the first condition group.
[0054] Specifically, the content distribution network functions are abstracted into execution actions, such as adding request header C, rewriting the back-to-source path to path D, responding with status code 403, and controlling the request rate at 100KB / s. The configuration control system provides an interactive mode for selecting configuration conditions and execution actions, so that users can flexibly combine configuration conditions and execution actions according to their own business scenarios to meet complex configuration requirements.
[0055] Among them, Figure 2 As shown, when the client sends an access request for the target domain name to the content distribution network, the life cycle of the access request in the content distribution network is roughly divided into the following stages: client request stage, source return request stage, source return response stage, client response stage. Furthermore, there is a read cache stage before the content distribution network returns to the source, and there is a write cache stage after the content distribution network reads the source return response. Among them, there is a strict execution order between different stages. For example, the client request stage from the client to the edge node of the content distribution network is processed first, then the source return request stage from the edge node to the server is processed, and then the source return response stage from the server to the edge node is processed, and finally the client response stage from the edge node to the client is processed. Different stages correspond to different execution actions. Therefore, in order to avoid the configured first execution action being triggered before the first condition group, when configuring the first execution action, it is necessary to configure the first execution action according to the judgment timing of the first condition group to ensure that the execution timing of the first execution action is not earlier than the judgment timing of the first condition group. For example, assuming that the first condition group is judged to be completed in the source return response stage, the execution stage corresponding to the first execution action needs to be no earlier than the source return response stage, for example, the client response stage. It should be noted that the above-divided stages are only examples. In actual operation, the stage division of access requests in the content distribution network can be adjusted according to actual conditions.
[0056] Step S105: generating first processing information of the target domain name based on the first condition group and the first execution action, wherein the first processing information is used by the content distribution network to process access requests under the target domain name.
[0057] Specifically, the configuration control system uses a rule engine to assemble the first condition group and the corresponding first execution action into configuration information for the target domain name, and uses the syntax supported by the "condition action framework (i.e., a framework based on condition groups and execution actions)" pre-built in the server of the content distribution network to convert the configuration information into processing information that the server can understand. The processing information is sent to the server of the content distribution network so that the content distribution network can process the access request under the target domain name based on the processing information.
[0058] The content distribution network configuration method provided in this embodiment configures and displays the first condition group through the configuration operation for the first condition configuration item. And, through the configuration operation for the first action configuration item, the first execution action corresponding to the first condition group is configured and displayed. Therefore, the configuration of the first condition group and the corresponding first execution action can be used to realize the free combination between the condition group and the execution action, so as to flexibly configure the processing of the target domain name by the content distribution network. At the same time, the execution timing of the configured first execution action is related to the judgment timing of the first condition group. Therefore, it is possible to avoid the first execution action being triggered before the first condition group when the content distribution network processes the access request under the target domain name, so as to ensure the correctness of the content distribution network configuration in terms of timing. Furthermore, based on the first condition group and the corresponding first execution action, the first processing information of the target domain name is generated, so that the content distribution network processes the access request under the target domain name based on the first processing information. Therefore, the configuration efficiency of the content distribution network can be effectively improved to improve the configuration efficiency of the complex customized requirements of the target domain name.
[0059] In this embodiment, a second content distribution network configuration method is provided, which can be used for a configuration control system of a content distribution network. Figure 3 is a flow chart of a second content distribution network configuration method according to an embodiment of the present disclosure, such as Figure 3 As shown, the process includes the following steps:
[0060] Step S201, displaying a rule configuration page, wherein the rule configuration page displays a first condition configuration item of the content distribution network for the target domain name. Please refer to the above step S101, which will not be described in detail here.
[0061] Step S202: In response to a configuration operation on a first condition configuration item, a first condition group is configured and displayed.
[0062] Specifically, the above step S202 includes:
[0063] Step S2021: In response to an interactive operation on a first condition configuration item, display optional configuration conditions.
[0064] Specifically, the optional configuration conditions include at least one of constant establishment, client request parameters, client request method, client request source, client request path, client request Uniform Resource Locator (URL), client request time, client request header, client Internet Protocol (IP), client request protocol, client source (Origin), client request header (Referer), client user agent (UA), source station response header, and source station response status code. It should be noted that the above optional configuration conditions are only an example. In actual operation, the optional configuration conditions can be adjusted according to actual conditions.
[0065] Furthermore, the client request uniform resource locator system includes a first client request uniform resource locator system excluding a protocol and a server address for processing an access request, and a complete second client request uniform resource locator system.
[0066] It should be noted that the optional configuration conditions are determined based on the service scenarios of the content distribution network.
[0067] For example, Figure 4 As shown, in response to the interactive operation on the first condition configuration item, optional configuration conditions are displayed. For example, constant establishment, client request parameters, client request method, client request source, client request path, client request time, etc. The user can select from the optional configuration conditions to determine the first configuration condition to obtain the first condition group. It should be noted that Figure 4 The IF shown represents the situation where the first condition group is satisfied.
[0068] Step S2022: In response to a selection instruction for an optional configuration condition, determine and display a first configuration condition to obtain a first condition group.
[0069] Specifically, in response to a selection instruction for an optional configuration condition, a first configuration condition is determined and displayed. A parameter configuration item of the first configuration condition is displayed on a rule configuration page. In response to a configuration operation for a parameter configuration item, a condition parameter of the first configuration condition is configured and displayed to obtain a configured first configuration condition, thereby obtaining a first condition group.
[0070] For example, Figure 5As shown, assuming that the first configuration condition is the client request path, the parameter configuration items with hierarchical attribution relationships of the client request path are displayed, for example, matching relationships and parameters corresponding to the matching relationships. In response to interactive operations on parameter configuration items, optional conditional parameters of the client request path are displayed. In response to selection operations on optional conditional parameters, conditional parameters corresponding to the parameter configuration items are determined. For example, by clicking on the parameter configuration item of "matching relationship", optional conditional parameters such as "not equal to", "prefix match", "prefix mismatch", "suffix match", "suffix mismatch", and "regular match" are displayed, from which conditional parameters corresponding to the "matching relationship" can be selected, for example, "prefix match". Then, the conditional parameters of the parameter configuration items of the next level of "matching relationship" are configured, for example, the conditional parameters corresponding to "prefix match" are " / abc / def", so that the first configuration condition can be obtained as "the client request path prefix is / abc / def". In addition, in response to input operations on conditional parameters in parameter configuration items, conditional parameters corresponding to the parameter configuration item can be determined to configure the first configuration condition.
[0071] It should be noted that in actual operation, the optional conditional parameters displayed by each parameter configuration item are related to the conditional parameters of the parameter configuration item at the previous level, and the optional conditional parameters of the current parameter configuration item will be dynamically adjusted according to the conditional parameters configured at the previous level.
[0072] It should be noted that a single configuration condition can be used as a condition group, or multiple condition groups can be combined into one condition group through the logical relationship of "and" or "or".
[0073] Step S203, in response to the action configuration instruction for the first condition group, display the first action configuration item. Please refer to the above step S103, which will not be described in detail here.
[0074] Step S204, in response to the configuration operation for the first action configuration item, configure and display the first execution action corresponding to the first condition group, and the execution timing of the first execution action is related to the judgment timing of the first condition group. Please refer to the above step S104, which will not be repeated here.
[0075] Step S205: Generate first processing information of the target domain name based on the first condition group and the first execution action, the first processing information is used by the content distribution network to process the access request under the target domain name. Please refer to the above step S105, which will not be described in detail here.
[0076] The content distribution network configuration method provided in this embodiment displays optional configuration conditions, and determines the first configuration condition through the selection instruction of the optional configuration conditions to obtain the first condition group. Therefore, on the one hand, it can avoid configuration errors of the first condition group, and on the other hand, it can also improve the configuration efficiency of the first condition group.
[0077] In some optional implementations, a first condition adding control for adding a sub-condition group of the first configuration condition is also displayed on the rule configuration page. The content distribution network configuration method of the present disclosure also includes:
[0078] Step a1: In response to an interactive operation of adding a control for the first condition, display a second condition configuration item.
[0079] For example, Figure 6 As shown, after configuring the first configuration condition, for example, the first configuration condition is "the client request path prefix is / abc / def", the first condition add control is also displayed in the display item where the first configuration condition is located. If the user clicks the first condition add control, the second condition configuration item can be displayed in the corresponding area of the first configuration condition (such as below the first configuration condition). Among them, the second condition configuration item is used to configure the sub-condition group under the first configuration condition.
[0080] Step a2: in response to the configuration operation on the second condition configuration item, configure and display the sub-condition group of the first configuration condition, where the first condition group includes the first configuration condition and the sub-condition group.
[0081] Specifically, the sub-condition group includes at least one configuration condition belonging to the first configuration condition.
[0082] Specifically, in response to the configuration operation on the second condition configuration item, the configuration conditions under the first configuration condition are configured and displayed to obtain a sub-condition group.
[0083] For example, Figure 6 As shown, assume that the first configuration condition is "Client request path prefix matches / abc / def". By interacting with the first condition add control in the display item where "Client request path prefix matches / abc / def" is located, a sub-condition group under the first configuration condition can be added. For example, "Client request parameter filename regularly matches .jpg, .png" and "Client request source matches the target area".
[0084] It should be noted that sub-condition groups can be further nested under sub-condition groups. That is, the sub-condition group of the first configuration condition includes at least one nested level of sub-condition groups. Specifically, the area corresponding to each configuration condition in the sub-condition group also displays a sub-condition group addition control, and the sub-condition group addition control can be used to continue to add sub-condition groups under the configuration condition. Among them, the configuration method of the sub-condition group can refer to the configuration method of the first condition group, and will not be described in detail here.
[0085] Furthermore, in the area corresponding to the sub-condition group on the rule configuration page, a sub-condition adding control for adding configuration conditions of the sub-condition group is also displayed to add configuration conditions of the sub-condition group. Figure 6 , you can add the sub-condition add control under the logical level corresponding to "and", and add the configuration conditions of the sub-condition group where "Client request parameter filename regular matches .jpg, .png" and "Client request source matches target area" are located. The method of adding configuration conditions of the sub-condition group can refer to the method of adding configuration conditions of the first condition group, and will not be repeated here.
[0086] The content distribution network configuration method provided by this embodiment displays a first condition adding control for adding a sub-condition group of a first configuration condition on a rule configuration page. Through the interactive operation of the first condition adding control, a second condition configuration item is displayed to configure the sub-condition group under the first configuration condition. Therefore, free combination between multiple configuration conditions can be achieved to improve the configuration efficiency of complex configuration conditions.
[0087] In some optional implementations, a second condition adding control for adding a configuration condition of the first condition group is also displayed on the rule configuration page. The content distribution network configuration method of the present disclosure also includes:
[0088] Step b1, in response to the interactive operation of adding a control for the second condition, displaying the third condition configuration item.
[0089] Exemplarily, if the user clicks "Add control for second condition", a third condition configuration item may be displayed in the corresponding area of the first condition group to configure the second configuration condition of the first condition group.
[0090] Step b2: in response to the configuration operation on the third condition configuration item, configure and display the second configuration condition, the first condition group includes the first configuration condition and the second configuration condition.
[0091] For example, assuming that the first condition group is the condition group where "the client request path prefix matches / abc / def", then, see Figure 6 , the user can add a control through the second condition below the logical level corresponding to "or" to add the second configuration condition of the first condition group.
[0092] It should be noted that the configuration method of the second configuration condition can refer to the configuration method of the first configuration condition, and will not be elaborated here.
[0093] The content distribution network configuration method provided by this embodiment displays a second condition adding control for adding a configuration condition of the first condition group on the rule configuration page. Through the interactive operation of the second condition adding control, a third condition configuration item is displayed to add the second configuration condition to the first condition group. Therefore, multiple configuration conditions can be combined into the first condition group to flexibly configure the configuration conditions for the target domain name.
[0094] In some optional implementations, the first condition group includes at least one nested level of configuration conditions, and the rule configuration page also displays logical connectives corresponding to the nested levels, and the logical connectives are used to combine the configuration conditions of the corresponding nested levels. The content distribution network configuration method of the present disclosure also includes: in response to a switching instruction for the logical connectives, switching the logical connectives to update the first condition group.
[0095] Specifically, the logical connectives corresponding to the nested levels include one of and, or.
[0096] For example, Figure 6 As shown in the figure, the configuration conditions of the first nested level are "the client request path prefix matches / abc / def", and the configuration conditions of the second nested level are "the client request parameter filename regular matches .jpg, .png", and "the client request source matches the target area". Figure 6 , the logical connective of the first nesting level is "or", and the logical connective of the second nesting level is "and". By interactive operation with the logical connectives, a switching instruction can be generated to switch the logical connectives. For example, by clicking "or", the configuration condition of the first nesting level can be switched to "and".
[0097] It can be understood that the configuration conditions support flexible combinations of logical relationships of "and" and "or". Among them, the priority of "and" is higher than the priority of "or". Multiple configuration conditions can be combined into a condition group through "and" and "or", and multiple condition groups can also be combined into a condition group through "and" and "or". "And" and "or" are used to express the logical relationship between configuration conditions in a condition group.
[0098] In the content distribution network configuration method provided in this embodiment, the rule configuration page also displays logical connectives corresponding to the nested levels; wherein the logical connectives are used to combine the configuration conditions of the corresponding nested levels. Therefore, the logical connectives can be switched through switching instructions for the logical connectives, and the logical relationships of the various nested levels can be flexibly adjusted to update the first condition group.
[0099] In this embodiment, a third content distribution network configuration method is provided, which can be used for a configuration control system of a content distribution network. Figure 7is a flow chart of a third content distribution network configuration method according to an embodiment of the present disclosure, such as Figure 7 As shown, the process includes the following steps:
[0100] Step S301, displaying a rule configuration page, wherein the rule configuration page displays a first condition configuration item of the content distribution network for the target domain name. Please refer to the above step S101, which will not be described in detail here.
[0101] Step S302: In response to the configuration operation for the first condition configuration item, configure and display the first condition group. Please refer to the above step S202, which will not be described in detail here.
[0102] Step S303, in response to the action configuration instruction for the first condition group, displaying a first action configuration item, the first action configuration item including a first sub-configuration item for configuring the execution timing of the first execution action, and a second sub-configuration item for configuring other action information of the first execution action.
[0103] Specifically, an execution action adding control is displayed in the area corresponding to the first condition group on the rule configuration page. The execution action adding control is used to add a first execution action to be executed when the first condition group is satisfied. Then, step S303 includes: in response to the interactive operation of the execution action adding control, generating an action configuration instruction to display the first action configuration item.
[0104] For example, see Figure 8 The execution action adding control shown, after the first condition group is configured, for example, "the client request path is prefix matched / abc / def" or "the client request parameter filename regular matches .jpg, .png, and the client request source matches the target area", the first action configuration item can be displayed through interactive operations with the execution action adding control to configure the first execution action to be executed when the first condition group is met.
[0105] Step S304, in response to the configuration operation for the first action configuration item, configure and display the first execution action corresponding to the first condition group, and the execution timing of the first execution action is related to the judgment timing of the first condition group.
[0106] Specifically, the above step S304 includes:
[0107] Step S3041: in response to a configuration operation on a first sub-configuration item, a target execution timing of a first execution action is configured and displayed, where the target execution timing is related to a judgment timing of a first condition group.
[0108] Specifically, the judgment timing of the first condition group can be determined by configuring the first condition group. Then, the optional execution timing is provided by the judgment timing, and the target execution timing is configured based on the optional execution timing. For example, see Fig. 9 In response to the interactive operation of the first sub-configuration item, the optional execution timing is displayed, such as optional execution stages such as cache, back-to-source response, back-to-source request, client response, and client request. Then, in response to the selection operation of the optional execution timing, the target execution timing is determined. Alternatively, when the configured target execution timing conflicts with the judgment timing, a configuration error message is generated to reconfigure the target execution timing.
[0109] Step S3042: In response to the interactive operation on the second sub-configuration item, display the optional action information corresponding to the target execution timing.
[0110] Specifically, there is a hierarchical relationship between the optional action information corresponding to the target execution timing.
[0111] Specifically, the optional action information includes at least one of the optional action type, the optional action name under the optional action type, and the action parameter corresponding to the optional action name. It should be noted that the above optional action information is only an example, and in actual operation, the optional action information can be adjusted according to actual needs.
[0112] Specifically, different execution times correspond to different optional action information, as shown in Table 1. If the target execution time is the client request stage, the optional action type includes at least one of client request rewriting, execution plug-in, access control, and speed and flow limiting. Among them, the optional action names corresponding to client request rewriting include request header rewriting (for example, adding, deleting, and modifying request headers). The optional action names corresponding to the execution plug-in include plug-ins for each processing stage. The optional action names corresponding to access control include at least one of redirection, denying access, allowing access, and custom variable setting. The optional action names corresponding to speed and flow limiting include download speed limiting.
[0113] If the target execution time is the cache stage, the optional action types include cache rules and other cache functions. Among them, the optional action names corresponding to the cache rules include at least one of setting the cache time and setting the cache key. The optional action names corresponding to other cache functions include at least one of video dragging and resource compression.
[0114] If the target execution time is the back-to-source request stage, the optional action types include at least one of the back-to-source request rewrite and the back-to-source request configuration. Among them, the optional action names corresponding to the back-to-source request rewrite include request header rewrite (for example, adding, deleting, and modifying the request header). The optional action names corresponding to the back-to-source request configuration include at least one of the back-to-source fragmentation, back-to-source Hypertext Transfer Protocol (HTTP) read timeout, back-to-source Transmission Control Protocol (TCP) connection timeout, and back-to-source redirection follow.
[0115] If the target execution time is the back-to-source response phase, the optional action type includes source station response rewrite. Among them, the optional action name corresponding to the source station response rewrite includes response header rewrite (such as adding, deleting, and modifying the response header).
[0116] If the target execution time is the client response phase, the optional action type includes at least one of client response rewriting and plug-in execution. The client response rewriting includes response header rewriting (such as adding, deleting, modifying response headers) and at least one of plug-ins in each processing phase.
[0117] Table 1 Optional action types and optional action names at each execution time
[0118]
[0119] It is understandable that, since different content distribution network functions can be executed at different processing stages, the executable actions for the access request of the target domain name will also change with the different target execution timings. Therefore, it is necessary to determine the optional action information at the target execution timing according to the target execution timing to ensure the accuracy of the configured first execution action.
[0120] It should be noted that, since the optional action information has a hierarchical relationship, the optional action information displayed corresponding to the current second sub-configuration item needs to depend on the action information selected by the second sub-configuration item of the previous level. For example, the display of the optional action name needs to depend on the action type selected in the previous level. Fig.10 As shown, assuming that the target execution timing is "client request" and the selected action type is "current limiting limit", the optional action name corresponding to the "current limiting limit" is displayed in response to the second sub-configuration item corresponding to the action name, such as download speed limit, etc.
[0121] Step S3043: In response to a selection instruction for the optional action information, other action information of the first execution action is determined and displayed to determine the first execution action.
[0122] It can be understood that the first execution action is determined based on the target execution information and other action information.
[0123] Step S305: Generate first processing information of the target domain name based on the first condition group and the first execution action, the first processing information is used by the content distribution network to process the access request under the target domain name. Please refer to the above step S105, which will not be described in detail here.
[0124] The content distribution network configuration method provided in this embodiment first configures and displays the target execution timing of the first execution action through the configuration operation for the first sub-configuration item; wherein the target execution timing is related to the first condition group. Then, the optional action information corresponding to the target execution timing is displayed to determine other action information of the first execution action through the selection instruction of the optional action information. Therefore, it is possible to ensure the correctness of the execution order between the configured first execution action and the corresponding first condition group to a certain extent, improve the accuracy of the content distribution network configuration, and thus ensure the orderly processing of access requests under the target domain name.
[0125] In some optional implementations, the above step S3041 includes:
[0126] Step c1: in response to an interactive operation on a first sub-configuration item, displaying an optional execution timing, where the optional execution timing is determined based on a judgment timing of a first condition group.
[0127] It is worth noting that when the content distribution network processes the access request of the target domain name, there is a strict execution order between different processing stages. Therefore, the displayed optional execution timing needs to be later than the judgment timing of the first condition group to avoid the target execution timing being earlier than the judgment timing of the first condition group. For example, assuming that the first condition group is judged to be completed in the back-to-source response stage, the optional execution timing includes other stages that are not earlier than the back-to-source response stage, such as the client response stage.
[0128] For example, Fig. 9 As shown, in response to the interactive operation for the first sub-configuration item, optional execution timings are displayed, for example, optional execution phases such as the cache phase, the back-to-source response phase, the back-to-source request phase, the client response phase, and the client request phase.
[0129] Step c2, in response to a selection instruction for an optional execution timing, determining and displaying a target execution timing.
[0130] Specifically, the selected optional execution timing is determined as the target execution timing, for example Fig.10As shown, if "client request" is selected, "client request" is determined as the target execution timing. In addition, in actual operation, the target execution timing can also be determined and displayed in response to the execution timing input in the first sub-configuration item.
[0131] The content distribution network configuration method provided in this embodiment displays the optional execution timing through the interactive operation on the first sub-configuration item. The optional execution timing is determined based on the judgment timing of the first condition group. Thus, the target execution timing is determined by the selection instruction of the optional execution timing. Therefore, it is possible to effectively avoid the judgment timing of the first condition group being later than the execution timing of the first execution action, so as to further ensure the accuracy of the content distribution network configuration.
[0132] In some other optional implementations, the content distribution network configuration method of the present disclosure further includes: if the target execution timing of the first execution action is earlier than the judgment timing of the first condition group, displaying configuration error information, the configuration error information including the configuration error reason of the first execution action.
[0133] The content distribution network configuration method provided in this embodiment displays configuration error information when the target execution timing of the first execution action is earlier than the judgment timing of the first condition group. Therefore, it is easy to find configuration errors in time to ensure that the content distribution network correctly handles the access request for the target domain name after configuration.
[0134] It can be understood that when configuring the condition group and executing the action, it should be ensured that the execution time of the execution action is later than the judgment of the corresponding condition group. That is, among all the execution actions corresponding to the condition group, the earliest execution time of the execution action is later than the latest judgment time of the configuration conditions in the condition group. This avoids the situation where the corresponding execution action is executed before the condition group is judged to be completed, so as to ensure the accuracy of the execution order between the condition group and the execution action. For example, assuming that the configuration conditions of the condition group can only be fully judged in the back-source response stage, the execution time of the execution action corresponding to the condition group cannot be earlier than the back-source response stage. Assuming that the execution time of the execution action at this time is the client request stage, it means that the execution time of the execution action is earlier than the latest judgment time of the configuration conditions of the condition group. Therefore, the configuration error information can be displayed in the form of a pop-up window. Alternatively, when providing an optional execution time for the execution action, only an execution time not earlier than the back-source response stage is provided for the user to choose, so as to ensure that the execution time of the execution action is later than the judgment time of the corresponding condition group.
[0135] In some optional embodiments, such as Fig.10 As shown, a first action adding control is also displayed on the rule configuration page, and the first action adding control is used to add an execution action corresponding to the first condition group; the content distribution network configuration method of the present disclosure also includes:
[0136] Step d1, in response to an interactive operation of adding a control to the first action, displaying a second action configuration item.
[0137] Specifically, the second action configuration item includes a third sub-configuration item and a fourth sub-configuration item, wherein the third sub-configuration item is used to configure the execution timing of the added execution action, and the fourth sub-configuration item is used to configure other action information of the added execution action.
[0138] Step d2: in response to the configuration operation on the second action configuration item, add and display the second execution action corresponding to the first condition group.
[0139] Specifically, the configuration method of the second execution action can refer to the configuration method of the first execution action, which will not be described in detail here.
[0140] The content distribution network configuration method provided by this embodiment displays a first action adding control for adding an execution action corresponding to the first condition group on the rule configuration page. Therefore, the first action adding control can flexibly add an action to be executed when the first condition group is satisfied, thereby improving the flexibility of content distribution network configuration.
[0141] In some optional embodiments, such as Fig.11 As shown, the area corresponding to the first condition group on the rule configuration page also displays a first rule adding control. The first rule adding control is used to add a second condition group triggered when the first condition group is met, and a third execution action executed when the second condition group is met. The content distribution network configuration method disclosed in the present invention also includes:
[0142] Step e1, in response to an interactive operation of adding a control for the first rule, displaying a fourth condition configuration item, where the fourth condition configuration item is used to configure a second condition group that is triggered when the first condition group is satisfied.
[0143] Step e2: in response to the configuration operation on the fourth condition configuration item, configure and display the second condition group.
[0144] Step e3: in response to the action configuration instruction for the second condition group, display the third action configuration item.
[0145] Step e4: in response to the configuration operation on the third action configuration item, configure and display the third execution action corresponding to the second condition group.
[0146] It should be noted that the configuration method of the second condition group can refer to the configuration method of the first condition group, and the configuration method of the third execution action can refer to the configuration method of the first execution action, which will not be repeated here.
[0147] For example, Fig.11As shown, assuming that the first condition group is "the client request path is prefix matching / abc / def" or "the client request parameter filename is regular matching .jpg, .png, and the client request source matches the target area", when the first condition group is met, in addition to executing the first execution action "the first 1MB of the client request is not limited, and the rest is limited to 100KB / s", the judgment logic of the second condition group "the client request time is 14:00-18:00 every day" is also triggered. When the second condition group is met, the third execution action "the access control of the client request is access denied 403" is executed.
[0148] The content distribution network configuration method provided in this embodiment displays a first rule adding control in the area corresponding to the first execution action on the rule configuration page to configure a second condition group triggered when the first condition group is satisfied and a third action configuration item corresponding to the second condition group. Therefore, multi-layer nesting of condition groups and flexible configuration between condition groups and execution actions can be achieved.
[0149] Furthermore, in the corresponding area of the second condition group and the third execution action, a sub-rule adding control and a sub-action adding control are also displayed, so as to further add a sub-condition group and a corresponding execution action when the second condition group is satisfied, or to add an execution action of the second condition group. Among them, the method of adding a sub-condition group can refer to the configuration method of the sub-condition group in the first condition group, and the method of adding an execution action of the second condition group can refer to the configuration method of the second execution action, which will not be described in detail here.
[0150] In some optional embodiments, such as Fig.11 As shown, a second rule adding control is also displayed on the rule configuration page. The content distribution network configuration method disclosed in the present invention further includes: in response to an interactive operation on the second rule adding control, adding second processing information of the target domain name.
[0151] It should be noted that the configuration method of the second processing information may refer to the configuration method of the first processing information, which will not be described in detail here.
[0152] The content distribution network configuration method provided in this embodiment displays a second rule adding control on the rule configuration page to add the second processing information of the target domain name. Therefore, the content distribution network can flexibly configure the processing of the access request of the target domain name.
[0153] It is worth noting that, in order to distinguish different processing information, a configuration item for configuring the name of the processing information is also displayed on the rule configuration page. The name of the processing information can be configured by interacting with the configuration item. The information identifier corresponding to the processing information is also displayed. For example, the information identifier of the first processing information is "1", indicating that the first processing information is the first configured processing information.
[0154] In some optional embodiments, such as Fig.11 As shown, a second action adding control is also displayed on the rule configuration page, and the second action adding control is used to configure a fourth execution action executed when the first condition group is not satisfied.
[0155] It should be noted that the configuration method of the fourth execution action can refer to the configuration method of the first execution action, and will not be described in detail here.
[0156] For example, see Fig.12 In the area divided by "ELSE", the fourth execution action configured is "the client responds to add a response header X-Resp: OK", that is, when "the client request path is a prefix matching / abc / def" or "the client request parameter filename is a regular matching .jpg, .png, and the client request source matches the target area" is not satisfied, "the client responds to add a response header X-Resp: OK" is executed.
[0157] Furthermore, in the corresponding area of the fourth execution action, a sub-rule adding control and a sub-action adding control are also displayed, so as to further add a sub-condition group triggered when the first condition group is not satisfied and a corresponding execution action, or add an execution action executed when the first condition group is not satisfied. The adding method of the sub-condition group and the execution action can refer to the configuration method of the sub-condition group in the first condition group and the configuration method of the first execution action, respectively, and will not be described in detail here.
[0158] The content distribution network configuration method provided in this embodiment displays a second action adding control on the rule configuration page to configure a fourth execution action to be executed when the first condition group is not satisfied. Therefore, it is possible to realize a free combination of configuration conditions and execution actions to further improve the flexibility of content distribution network configuration.
[0159] In some optional implementations, the area of the rule configuration page corresponding to the second condition group further displays a third action adding control, and the third action adding control is used to configure a fifth execution action executed when the second condition group is not satisfied.
[0160] In some optional implementations, the rule configuration page further displays a fourth action adding control in an area corresponding to each sub-condition group, and the fourth action adding control is used to configure a sixth execution action executed when the corresponding sub-condition group is not satisfied.
[0161] For example, Fig.12 As shown in FIG. 1 , a second rule adding control is displayed on the rule configuration page, and the user can add the processing information of the target domain name through the second rule adding control. Fig.12 In the configuration, the first condition group is configured as "the client request path is prefixed with / abc / def" or "the client request parameter filename is regex matched with .jpg, .png, and the client request source matches the target area". If the first condition group is met, the first execution action is performed, for example, "the first 1MB of the client request is not limited, and the rest is limited to 100KB / s". At the same time, the second condition group is triggered, for example, "the client request time is 14:00-18:00 every day". If the second condition group is met, the third execution action is performed, for example, "the access control of the client request is access denied 403". If the first condition group is not met, the fourth execution action is performed, for example, "the client response adds a response header X-Resp: OK".
[0162] It is worth noting that after configuring the first condition group and the corresponding first execution action, the rule engine can be used to convert the first condition group and the first execution action into processing information. During the conversion process, if the first condition group only contains the configuration conditions of the client request stage, then in the process of configuration conversion (or rendering), the configuration conditions will be matched to the condition action framework entrance pre-built in the client request stage to obtain the configuration of the condition group and execution action in the client request stage. When the server of the content distribution network receives the access request, it parses the configuration of the condition group and execution action in the client request stage. If the first condition group is hit, the action name and action parameters of the first execution action are combined into a key-value pair and cached in the context of the access request. When the access request reaches the target execution time of each first execution action, it is determined whether the first execution action needs to be executed. If the first condition group contains both the configuration conditions of the client request stage and the configuration conditions of the back-to-source response stage, the first execution action must be executed in the back-to-source response stage or later in terms of timing. Therefore, the first condition group and the first execution action can be mapped to the condition action framework entry pre-built in the back-to-source response phase to obtain the configuration of the condition group and execution action in the back-to-source response phase. Before the server of the content distribution network processes the access request, it parses the configuration of the condition group and execution action in the back-to-source response phase. If the first condition group is hit, the first execution action is cached in the context of the access request and waits for execution.
[0163] As a specific application example, Fig.13 As shown, a target application is installed on the configuration control system of the content distribution network, and the target application is used to configure the content distribution network's processing information for access requests under the target domain name. In the target application, the content distribution network configuration method disclosed in the present invention provides a rule configuration page to the user, and the user can configure the condition group and the corresponding execution action on the rule configuration page. The rule engine performs configuration conversion on the combination of the condition group and the execution action to obtain the processing information of the target domain name. The configuration control system sends the processing information to the edge node of the content distribution network, so that the edge node processes the access request under the target domain name according to the processing information.
[0164] It is worth noting that in the related art, if it is necessary to perform complex domain name configuration on the content distribution network, it is usually necessary to communicate with the user repeatedly to confirm the details, and then the relevant personnel will handwrite the complex conditions and actions through the syntax and configuration fields provided by the conditional action framework. The complex needs of a single user usually take days to configure. Moreover, due to the long grammar and complex underlying grammar, the complexity of handwritten configuration is high, the efficiency of handwritten configuration is low and the error rate is high. The technical requirements for relevant personnel are also high. Not only that, the domain name configuration capability in the related art lacks flexibility and can only support the domain name basic functions of some content distribution networks, making it difficult to cover the diversity of customized needs of different users. In contrast, the content distribution network configuration method disclosed in the present invention abstracts the business scenarios of the content distribution network into conditions and the functions into execution actions. Through a set of content distribution network configuration methods that support visual programming, multiple business scenarios and multiple functions supported by the content distribution network are provided to the outside, so that users can combine business scenarios and functions to be executed according to actual needs on the configuration control platform, and realize the configuration of the content distribution network by combining condition groups and execution actions. Therefore, the technical threshold and learning cost of content distribution network configuration can be effectively reduced, allowing users to intuitively configure the content distribution network through the free combination of conditions and actions. Furthermore, the configured condition group and the corresponding execution action are converted into processing information that can be understood by the content distribution network through the rule engine, so that the content distribution network processes the access request of the corresponding target domain name based on the processing information. Therefore, the processing of the target domain name by the content distribution network can be configured flexibly, quickly and efficiently, and what you see is what you get. The user's complex domain name customization requirements no longer require long-term delivery from the product and R&D side, which can effectively improve the configuration efficiency of the content distribution network and reduce configuration time.
[0165] It is worth noting that a content distribution network configuration device is also provided in the present embodiment, and the device is used to implement the above-mentioned embodiment and preferred implementation mode, and the descriptions have been made no further. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware is also possible and conceivable.
[0166] This embodiment provides a content distribution network configuration device, such as Fig.14 As shown, including:
[0167] A page display module 401 is used to display a rule configuration page, where the rule configuration page displays a first condition configuration item of the content distribution network for the target domain name;
[0168] The condition configuration module 402 is used to configure and display a first condition group in response to a configuration operation on a first condition configuration item;
[0169] An instruction response module 403, configured to display a first action configuration item in response to an action configuration instruction for a first condition group;
[0170] An action configuration module 404, configured to configure and display a first execution action corresponding to a first condition group in response to a configuration operation on a first action configuration item, wherein an execution timing of the first execution action is related to a judgment timing of the first condition group;
[0171] The configuration generation module 405 is used to generate first processing information of the target domain name based on the first condition group and the first execution action, and the first processing information is used by the content distribution network to process the access request under the target domain name.
[0172] In some optional implementations, the condition configuration module 402 includes:
[0173] An optional condition display unit, configured to display an optional configuration condition in response to an interactive operation on the first condition configuration item;
[0174] The configuration condition selection unit is used to determine and display a first configuration condition in response to a selection instruction for an optional configuration condition to obtain a first condition group.
[0175] In some optional implementations, a first condition adding control for adding a sub-condition group of the first configuration condition is also displayed on the rule configuration page. The content distribution network configuration device of the present disclosure also includes:
[0176] A first condition adding module, configured to display a second condition configuration item in response to an interactive operation on a first condition adding control;
[0177] The sub-condition group configuration module is used to configure and display the sub-condition group of the first configuration condition in response to the configuration operation on the second condition configuration item, where the first condition group includes the first configuration condition and the sub-condition group.
[0178] In some optional implementations, a second condition adding control for adding a configuration condition of the first condition group is also displayed on the rule configuration page. The content distribution network configuration device of the present disclosure also includes:
[0179] A second condition adding module, configured to display a third condition configuration item in response to an interactive operation on a second condition adding control;
[0180] A new condition configuration module is added, which is used to configure and display the second configuration condition in response to a configuration operation on the third condition configuration item, and the first condition group includes the first configuration condition and the second configuration condition.
[0181] In some optional implementations, the first condition group includes at least one nested level of configuration conditions, and the rule configuration page also displays logical connectives corresponding to the nested levels, and the logical connectives are used to combine the configuration conditions of the corresponding nested levels. The content distribution network configuration device of the present disclosure also includes:
[0182] The logic word switching module is used to switch the logical connective words in response to the switching instruction for the logical connective words to update the first condition group.
[0183] In some optional implementations, the first action configuration item includes a first sub-configuration item for configuring the execution timing of the first execution action, and a second sub-configuration item for configuring other action information of the first execution action. The action configuration module 404 includes:
[0184] an execution timing configuration unit, configured to configure and display a target execution timing of the first execution action in response to a configuration operation on the first sub-configuration item, wherein the target execution timing is related to a judgment timing of the first condition group;
[0185] An optional action display unit, configured to display optional action information corresponding to a target execution timing in response to an interactive operation on a second sub-configuration item;
[0186] The optional action selection unit is used to determine and display other action information of the first execution action in response to a selection instruction for the optional action information, so as to determine the first execution action.
[0187] In some optional implementations, the execution timing configuration unit includes:
[0188] An optional timing display subunit, configured to display an optional execution timing in response to an interactive operation on the first sub-configuration item, wherein the optional execution timing is determined based on a judgment timing of the first condition group;
[0189] The optional timing selection subunit is used to determine and display the target execution timing in response to the selection instruction for the optional execution timing.
[0190] In some optional implementations, the content distribution network configuration device of the present disclosure further includes:
[0191] The error prompt module is used to display configuration error information if the target execution timing of the first execution action is earlier than the judgment timing of the first condition group, and the configuration error information includes the configuration error reason of the first execution action.
[0192] In some optional implementations, a first action adding control is also displayed on the rule configuration page, and the first action adding control is used to add an execution action corresponding to the first condition group. The content distribution network configuration device of the present disclosure also includes:
[0193] A first action adding module, configured to display a second action configuration item in response to an interactive operation on a first action adding control;
[0194] The second action adding module is used to add and display the second execution action corresponding to the first condition group in response to the configuration operation on the second action configuration item.
[0195] In some optional implementations, the area corresponding to the first condition group on the rule configuration page also displays a first rule adding control. The content distribution network configuration device of the present disclosure also includes:
[0196] A first rule adding module, configured to display a fourth condition configuration item in response to an interactive operation on the first rule adding control, where the fourth condition configuration item is used to configure a second condition group that is triggered when the first condition group is satisfied;
[0197] A condition group adding module, configured to configure and display a second condition group in response to a configuration operation on a fourth condition configuration item;
[0198] A third action adding module, configured to display a third action configuration item in response to an action configuration instruction for the second condition group;
[0199] The fourth action adding module is used to configure and display the third execution action corresponding to the second condition group in response to the configuration operation on the third action configuration item.
[0200] In some optional implementations, a second rule adding control is also displayed on the rule configuration page. The content distribution network configuration device of the present disclosure also includes:
[0201] The processing information adding module is used to add second processing information of the target domain name in response to the interactive operation of adding a control for the second rule.
[0202] In some optional implementations, a second action adding control is also displayed on the rule configuration page, and the second action adding control is used to configure a fourth execution action executed when the first condition group is not satisfied.
[0203] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0204] The content distribution network configuration device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0205] The present disclosure also provides an electronic device having the above Fig.14 The content distribution network configuration device is shown.
[0206] See also Fig.15 , Fig.15 is a structural block diagram of an electronic device provided by an optional embodiment of the present disclosure, such as Fig.15 As shown, the electronic device includes: one or more processors 501, processor 502, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the electronic device, including instructions stored in or on a memory to display graphical information of a GUI on an external input / output device (such as a display device coupled to an interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple electronic devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Fig.15 A processor 501 is taken as an example.
[0207] The processor 501 may be a central processing unit, a network processor or a combination thereof. The processor 501 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0208] The processor 502 stores instructions executable by at least one processor 501 , so that at least one processor 501 executes the method shown in the above embodiment.
[0209] The processor 502 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the electronic device, etc. In addition, the processor 502 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the processor 502 may optionally include a memory remotely arranged relative to the processor 501, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0210] The processor 502 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the processor 502 may also include a combination of the above types of memory.
[0211] The electronic device also includes an input device 503 and an output device 504. The processor 501, the processor 502, the input device 503 and the output device 504 may be connected via a bus or other means. Fig.15 The example of connecting through bus is taken in the following.
[0212] The input device 503 can receive input digital or character information, and generate key signal input related to the user settings and function control of the electronic device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator rod, one or more mouse buttons, a trackball, a joystick, etc. The output device 504 may include a display device, an auxiliary lighting device (e.g., an LED), and a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display, and a plasma display. In some optional embodiments, the display device may be a touch screen.
[0213] The embodiments of the present disclosure also provide a computer-readable storage medium. The above-mentioned method according to the embodiments of the present disclosure can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium and downloaded through a network, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state drive, etc.; further, the storage medium can also include a combination of the above-mentioned types of memory. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0214] A part of the present disclosure may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present disclosure through the operation of the computer. Those skilled in the art should understand that the existence of computer program instructions in computer-readable media includes, but is not limited to, source files, executable files, installation package files, etc., and accordingly, the way in which computer program instructions are executed by a computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to the computer.
[0215] Although the embodiments of the present disclosure have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present disclosure, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A content distribution network configuration method, characterized in that: The method comprises: Displaying a rule configuration page, wherein the rule configuration page displays a first condition configuration item of the content distribution network for the target domain name; In response to the configuration operation on the first condition configuration item, configuring and displaying a first condition group; In response to the action configuration instruction for the first condition group, displaying a first action configuration item; In response to a configuration operation on the first action configuration item, a first execution action corresponding to the first condition group is configured and displayed, the first action configuration item including a first sub-configuration item for configuring an execution timing of the first execution action, and a second sub-configuration item for configuring other action information of the first execution action, the execution timing of the first execution action is related to a judgment timing of the first condition group, and the execution timing of the first execution action is not earlier than the judgment timing of the first condition group; Based on the first condition group and the first execution action, generate first processing information of the target domain name, the first processing information is used by the content distribution network to process the access request under the target domain name; The configuring and displaying the first execution action corresponding to the first condition group in response to the configuration operation on the first action configuration item includes: In response to the configuration operation on the first sub-configuration item, configuring and displaying a target execution timing of the first execution action; In response to the interactive operation on the second sub-configuration item, displaying optional action information corresponding to the target execution timing; In response to a selection instruction for the selectable action information, other action information of the first execution action is determined and displayed to determine the first execution action.
2. The method according to claim 1, characterized in that The configuring and displaying a first condition group in response to the configuration operation on the first condition configuration item includes: In response to an interactive operation on the first condition configuration item, displaying optional configuration conditions; In response to a selection instruction for the optional configuration condition, a first configuration condition is determined and displayed to obtain the first condition group.
3. The method according to claim 2, characterized in that The rule configuration page also displays a first condition adding control for adding a sub-condition group of the first configuration condition; the method further includes: In response to an interactive operation of adding a control for the first condition, displaying a second condition configuration item; In response to a configuration operation on the second condition configuration item, a sub-condition group of the first configuration condition is configured and displayed, where the first condition group includes the first configuration condition and the sub-condition group.
4. The method according to claim 2, characterized in that: The rule configuration page also displays a second condition adding control for adding a configuration condition of the first condition group; the method further includes: In response to an interactive operation of adding a control for the second condition, displaying a third condition configuration item; In response to a configuration operation on the third condition configuration item, a second configuration condition is configured and displayed, and the first condition group includes the first configuration condition and the second configuration condition.
5. The method according to claim 1, characterized in that The first condition group includes at least one nested level of configuration conditions, and the rule configuration page also displays logical connectives corresponding to the nested levels, and the logical connectives are used to combine the configuration conditions of the corresponding nested levels; the method also includes: In response to a switch instruction for the logical connective, the logical connective is switched to update the first condition group.
6. The method according to claim 1, characterized in that The configuring and displaying the target execution timing of the first execution action in response to the configuration operation on the first sub-configuration item includes: In response to an interactive operation on the first sub-configuration item, displaying an optional execution timing, where the optional execution timing is determined based on a judgment timing of the first condition group; In response to a selection instruction for the optional execution timing, the target execution timing is determined and displayed.
7. The method according to claim 1, characterized in that The method further comprises: If the target execution timing of the first execution action is earlier than the judgment timing of the first condition group, configuration error information is displayed, and the configuration error information includes a configuration error reason of the first execution action.
8. The method according to claim 1, characterized in that The rule configuration page also displays a first action adding control, and the first action adding control is used to add an execution action corresponding to the first condition group; the method further includes: In response to an interactive operation of adding a control for the first action, displaying a second action configuration item; In response to the configuration operation on the second action configuration item, a second execution action corresponding to the first condition group is added and displayed.
9. The method according to claim 1, characterized in that: The area of the rule configuration page corresponding to the first condition group further displays a first rule adding control; the method further includes: In response to an interactive operation of adding a control for the first rule, displaying a fourth condition configuration item, wherein the fourth condition configuration item is used to configure a second condition group that is triggered when the first condition group is satisfied; In response to a configuration operation on the fourth condition configuration item, configuring and displaying the second condition group; In response to the action configuration instruction for the second condition group, displaying a third action configuration item; In response to a configuration operation on the third action configuration item, a third execution action corresponding to the second condition group is configured and displayed.
10. The method according to claim 1, characterized in that The rule configuration page also displays a second rule adding control; the method further includes: In response to the interactive operation of adding a control for the second rule, second processing information of the target domain name is added.
11. The method according to claim 1, characterized in that: The rule configuration page also displays a second action adding control, where the second action adding control is used to configure a fourth execution action executed when the first condition group is not satisfied.
12. A content distribution network configuration device, characterized in that: The device comprises: A page display module, used to display a rule configuration page, wherein the rule configuration page displays a first condition configuration item of the content distribution network for the target domain name; A condition configuration module, configured to configure and display a first condition group in response to a configuration operation on the first condition configuration item; an instruction response module, configured to display a first action configuration item in response to an action configuration instruction for the first condition group; an action configuration module, configured to configure and display a first execution action corresponding to the first condition group in response to a configuration operation on the first action configuration item, wherein the first action configuration item includes a first sub-configuration item for configuring an execution timing of the first execution action, and a second sub-configuration item for configuring other action information of the first execution action, wherein the execution timing of the first execution action is related to a judgment timing of the first condition group, and the execution timing of the first execution action is not earlier than the judgment timing of the first condition group; A configuration generation module is configured to generate first processing information of the target domain name based on the first condition group and the first execution action, wherein the first processing information is used by the content distribution network to process an access request under the target domain name; The action configuration module includes: an execution timing configuration unit, configured to configure and display a target execution timing of the first execution action in response to a configuration operation on the first sub-configuration item; An optional action display unit, configured to display optional action information corresponding to a target execution timing in response to an interactive operation on a second sub-configuration item; The optional action selection unit is used to determine and display other action information of the first execution action in response to a selection instruction for the optional action information, so as to determine the first execution action.
13. An electronic device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the content distribution network configuration method according to any one of claims 1 to 11 by executing the computer instructions.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the content distribution network configuration method according to any one of claims 1 to 11.
15. A computer program product, characterized in that The method comprises computer instructions, wherein the computer instructions are used to cause a computer to execute the content distribution network configuration method according to any one of claims 1 to 11.
Citation Information
Patent Citations
Acceleration domain name configuration method and device, storage medium and electronic equipment
CN113037888A
Domain name management method and device and readable storage medium
CN118646736A