Configuration processing method, computing device, storage medium and computer program product

By updating the validity relationship between the configuration node and its upper-level configuration node to process the configuration request, the problem of high computational overhead in the configuration tree is solved, efficient configuration processing is achieved, and computing resources of the target device are saved.

CN120653290APending Publication Date: 2025-09-16HANGZHOU ALICLOUD FEITIAN INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410301834.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-14
Publication Date
2025-09-16

AI Technical Summary

Technical Problem

In the prior art, the configuration tree has a large number of root nodes and each root node has a large number of descendants. Therefore, all root nodes need to be traversed every time the configuration tree changes, resulting in a large computational overhead and occupying the computing resources of the target device.

Method used

By receiving the configuration processing request, the initial configuration structure of the target device is updated to the target configuration structure, the updated configuration node and its upper-level configuration node are determined, and the request is processed according to the effective relationship between the upper-level configuration node and the root node, thereby reducing the traversal of all root nodes and utilizing the inheritable characteristics of the effective relationship to process the configuration request.

Benefits of technology

This reduces the computational overhead of the target device, saves computing resources, and improves the efficiency of configuration processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120653290A_ABST
    Figure CN120653290A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a configuration processing method, computing equipment, a storage medium and a computer program product, and the configuration processing method comprises the steps that a configuration processing request for target equipment is received, and the configuration processing request carries configuration processing information; according to the configuration processing information, an initial configuration structure of the target device is updated, a target configuration structure of the target device is obtained, and the initial configuration structure and the target configuration structure each comprise a root node and a plurality of child nodes with a hierarchical relationship; determining an update configuration node according to the initial configuration structure and the target configuration structure, and determining a previous level configuration node of the update configuration node; and processing the configuration processing request according to the effective relationship between the previous level of configuration node and the root node. All root nodes of the configuration structure do not need to be traversed, the computing overhead of the target device is reduced, and computing resources of the target device are saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of this specification relate to the field of computer technology, and in particular to configuration processing methods, computing devices, storage media, and computer program products. Background Art

[0002] A configuration tree is a configuration record format that, based on the inherited nature of a tree structure, establishes dependencies between configurations and between configurations and devices. Typically, when using a configuration tree to update a target device's configuration, it's necessary to quickly detect changes in the descendant set. This can be accomplished by traversing all root nodes and observing changes in each root node's descendant set to update the target device's configuration.

[0003] However, since the configuration tree contains a large number of root nodes and each root node has a large number of descendants (i.e., child nodes), if the configuration tree is traversed every time it changes, it will generate a large computational overhead and occupy the computing resources of the target device. Therefore, an effective technical solution is urgently needed to solve the above problem. Summary of the Invention

[0004] In view of this, the embodiments of this specification provide two configuration processing methods. One or more embodiments of this specification also involve two configuration processing devices, a computing device, a computer-readable storage medium, and a computer program product to address technical deficiencies in the prior art.

[0005] According to a first aspect of an embodiment of this specification, a configuration processing method is provided, including:

[0006] receiving a configuration processing request for a target device, wherein the configuration processing request carries configuration processing information;

[0007] updating an initial configuration structure of the target device according to the configuration processing information to obtain a target configuration structure of the target device, wherein both the initial configuration structure and the target configuration structure include a root node and a plurality of child nodes having a hierarchical relationship;

[0008] Determining an updated configuration node according to the initial configuration structure and the target configuration structure, and determining a configuration node one level above the updated configuration node;

[0009] The configuration processing request is processed according to the validity relationship between the upper-level configuration node and the root node.

[0010] According to a second aspect of the embodiments of this specification, a configuration processing device is provided, including:

[0011] A receiving module is configured to receive a configuration processing request for a target device, wherein the configuration processing request carries configuration processing information;

[0012] an updating module configured to update an initial configuration structure of the target device according to the configuration processing information to obtain a target configuration structure of the target device, wherein both the initial configuration structure and the target configuration structure include a root node and a plurality of hierarchically related child nodes;

[0013] a determination module configured to determine an updated configuration node according to the initial configuration structure and the target configuration structure, and determine a configuration node one level above the updated configuration node;

[0014] The processing module is configured to process the configuration processing request according to the validity relationship between the upper-level configuration node and the root node.

[0015] According to a third aspect of an embodiment of this specification, another configuration processing method is provided, which is applied to a cloud network server, including:

[0016] receiving a configuration processing request for a cloud network server, wherein the configuration processing request carries configuration processing information;

[0017] updating an initial configuration structure of the cloud network server according to the configuration processing information to obtain a target configuration structure of the cloud network server, wherein both the initial configuration structure and the target configuration structure include a root node and a plurality of child nodes having a hierarchical relationship;

[0018] Determining an updated configuration node according to the initial configuration structure and the target configuration structure, and determining a configuration node one level above the updated configuration node;

[0019] The configuration processing request is processed according to the validity relationship between the upper-level configuration node and the root node.

[0020] According to a fourth aspect of the embodiments of this specification, another configuration processing device is provided, which is applied to a cloud network server, including:

[0021] A receiving module is configured to receive a configuration processing request for a cloud network server, wherein the configuration processing request carries configuration processing information;

[0022] an updating module configured to update an initial configuration structure of the cloud network server according to the configuration processing information to obtain a target configuration structure of the cloud network server, wherein both the initial configuration structure and the target configuration structure include a root node and a plurality of hierarchically related child nodes;

[0023] a determination module configured to determine an updated configuration node according to the initial configuration structure and the target configuration structure, and determine a configuration node one level above the updated configuration node;

[0024] The processing module is configured to process the configuration processing request according to the validity relationship between the upper-level configuration node and the root node.

[0025] According to a fifth aspect of the embodiments of this specification, there is provided a computing device, including:

[0026] memory and processor;

[0027] The memory is used to store computer programs / instructions, and the processor is used to execute the computer programs / instructions. When the computer programs / instructions are executed by the processor, the steps of the above-mentioned configuration processing method are implemented.

[0028] According to a sixth aspect of the embodiments of this specification, a computer-readable storage medium is provided, which stores a computer program / instruction, and when the computer program / instruction is executed by a processor, the steps of the above-mentioned configuration processing method are implemented.

[0029] According to a seventh aspect of the embodiments of this specification, a computer program product is provided, comprising a computer program / instruction, which implements the steps of the above-mentioned configuration processing method when executed by a processor.

[0030] An embodiment of the present specification provides a configuration processing method, comprising: receiving a configuration processing request for a target device, wherein the configuration processing request carries configuration processing information; updating an initial configuration structure of the target device according to the configuration processing information to obtain a target configuration structure of the target device, wherein both the initial configuration structure and the target configuration structure include a root node and a plurality of child nodes having a hierarchical relationship; determining an update configuration node according to the initial configuration structure and the target configuration structure, and determining a configuration node at a higher level than the update configuration node; and processing the configuration processing request according to the effective relationship between the configuration node at the higher level and the root node.

[0031] In the above method, after receiving a configuration processing request for a target device, the initial configuration structure of the target device can be updated according to the configuration processing information carried in the configuration processing request, and the target configuration structure of the target device can be obtained, thereby determining the updated configuration node, and processing the configuration processing request according to the effective relationship between the upper-level configuration node and the root node of the updated configuration node, without traversing all the root nodes of the configuration structure, and through the inheritable characteristics of the effective relationship between the upper-level configuration node and the root node, the processing of the configuration processing request is realized, thereby reducing the computing overhead of the target device and saving the computing resources of the target device. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 This is a schematic diagram of an application scenario of a configuration processing method provided by an embodiment of this specification;

[0033] Figure 2 This is a flowchart of a configuration processing method provided by one embodiment of this specification;

[0034] Figure 3 It is a schematic diagram of an initial configuration structure and a target configuration structure in a configuration processing method provided in one embodiment of this specification;

[0035] Figure 4 This is a flowchart of a configuration processing method provided by one embodiment of this specification;

[0036] Figure 5 This is a schematic diagram of the structure of a configuration processing device provided by one embodiment of this specification;

[0037] Figure 6 is a flowchart of another configuration processing method provided by an embodiment of this specification;

[0038] Figure 7 This is a schematic diagram of the structure of another configuration processing device provided by an embodiment of this specification;

[0039] Figure 8 This is a structural block diagram of a computing device provided by one embodiment of this specification. DETAILED DESCRIPTION

[0040] The following description sets forth many specific details to facilitate a thorough understanding of this specification. However, this specification can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the scope of this specification. Therefore, this specification is not limited to the specific implementations disclosed below.

[0041] The terms used in one or more embodiments of this specification are for the purpose of describing specific embodiments only and are not intended to limit one or more embodiments of this specification. The singular forms "a," "the," and "the" used in one or more embodiments of this specification and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used in one or more embodiments of this specification refers to and includes any or all possible combinations of one or more associated listed items.

[0042] It should be understood that although the terms first, second, etc. may be used to describe various information in one or more embodiments of this specification, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of this specification, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0043] In addition, it should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in one or more embodiments of this specification are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0044] In this specification, two configuration processing methods are provided. This specification also involves two configuration processing devices, a computing device, a computer-readable storage medium, and a computer program product, which are described in detail one by one in the following embodiments.

[0045] See also Figure 1 , Figure 1 A schematic diagram of an application scenario of a configuration processing method provided according to an embodiment of this specification is shown.

[0046] Figure 1 It includes a terminal side device 102 and a cloud side device 104.

[0047] During specific implementation, the user can send a configuration processing request to the cloud-side device 104 through the end-side device 102. After receiving the configuration processing request, the cloud-side device 104 can update the initial configuration tree recording the cloud-side device 104 according to the configuration processing information carried in the configuration processing request, obtain the target configuration tree, and determine the updated configuration node and the upper-level configuration node of the updated configuration node based on the initial configuration tree and the target configuration tree. In this way, based on the inheritable characteristics of the configuration tree and the effective relationship between the upper-level configuration node and the root node, the effective relationship between the updated configuration node and the root node can be determined, thereby processing the configuration processing request, realizing the normal operation of the cloud-side device 104, and saving the computing resources occupied by the cloud-side device 104.

[0048] The end-side device 102 may include a browser, an APP (Application), or a web application such as an H5 (Hyper Text Markup Language 5, version 5 of Hypertext Markup Language) application, or a light application (also known as a mini-program, a lightweight application) or a cloud application, etc. The end-side device may be based on the software development kit (SDK) of the corresponding service provided by the server, such as developed based on the real-time communication (RTC) SDK, etc. The end-side device can be deployed in an electronic device and needs to rely on the device to run or certain APPs in the device to run. The electronic device may have a display screen and support information browsing, etc., such as a personal mobile terminal such as a mobile phone, tablet computer, personal computer, etc. Various other types of applications can usually be configured in the electronic device, such as human-computer dialogue applications, model training applications, text processing applications, web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, etc.

[0049] The cloud-side device 104 can be understood as a server that provides various services, including physical servers and cloud servers. For example, a server that provides communication services to multiple clients, a server that provides background training to support models used on clients, and a server that processes data sent by clients. It should be noted that the cloud-side device 104 can be implemented as a distributed server cluster consisting of multiple servers, or as a single server. The cloud-side device 104 can also be a server for a distributed system, or a server that integrates a blockchain. The cloud-side device 104 can also be a cloud server for basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms, or an intelligent cloud computing server or intelligent cloud host with artificial intelligence technology.

[0050] See also Figure 2 , Figure 2 A flowchart of a configuration processing method provided according to an embodiment of this specification is shown, which specifically includes the following steps.

[0051] Step 202: Receive a configuration processing request for a target device, wherein the configuration processing request carries configuration processing information.

[0052] Specifically, the configuration processing method provided in the embodiments of this specification can be applied to the field of cloud network configuration update. For example, for a cloud network server, the configuration processing method can be used to update the configuration information of the cloud network server, thereby ensuring the normal operation of the cloud network server.

[0053] Among them, the target device can be understood as a cloud network server. The configuration processing request for the target device can be understood as a request to change the configuration information of the target device. The configuration processing request can be, for example, a virtual machine creation request, that is, a request to create a virtual machine in the target device. Creating a virtual machine in the target device will increase the configuration information of the target device. Alternatively, the configuration processing request can also be, for example, a virtual machine deletion request, that is, deleting the virtual machine in the target device, which will cause the configuration information of the deleted virtual machine to become invalid. At this time, these configuration information can be deleted to ensure the resources of the target device. Configuration processing information can be understood as configuration information that has changed based on the configuration processing request, such as newly added configuration information or configuration information that needs to be deleted.

[0054] Based on this, a request for changing the configuration information of the target device may be received, and the request carries the changed configuration processing information.

[0055] For example, a virtual machine creation request for a cloud network server may be received, i.e., a virtual machine needs to be created on the cloud network server. Then, the virtual machine creation request carries configuration processing information for creating and running the virtual machine, such as the network address information where the virtual machine is mounted.

[0056] Step 204: updating the initial configuration structure of the target device according to the configuration processing information to obtain the target configuration structure of the target device, wherein both the initial configuration structure and the target configuration structure include a root node and a plurality of hierarchical child nodes.

[0057] Among them, the configuration structure can be understood as the configuration tree of the target device. The configuration tree can be understood as a configuration recording method, which establishes the dependency relationship between the configuration of the target device and the configuration, and between the configuration and the target device based on the inherent relationship inheritance characteristics of the tree structure. Specifically, the configuration tree may include a root node (i.e., the target device) and multiple child nodes, and there is a hierarchical relationship between the multiple child nodes. The upper-level node of a child node can be understood as the parent node of the child node. Each child node corresponds to a configuration processing information of the target device. Specifically, the child node will inherit the effectiveness relationship between the parent node and the root node, that is, if the parent node is effective on the target device, the child node will also be effective on the target device. Moreover, the descendants of a root node are all the configurations that should be effective on it. In this way, we can obtain the changes in the configuration on the target device by observing the changes in the set of descendants of each root node.

[0058] Then, the initial configuration structure can be understood as the configuration tree of the target device before receiving the configuration processing request, and the target configuration structure can be understood as the configuration tree obtained by updating the initial configuration tree after receiving the configuration processing request.

[0059] Based on this, the initial configuration tree of the target device can be updated according to the configuration processing information to obtain the target configuration tree of the target device.

[0060] During specific implementation, the configuration node corresponding to the configuration processing information may be determined, and the configuration node may be added to the initial configuration tree of the target device, thereby obtaining the target configuration tree of the target device.

[0061] Using the above example, the initial configuration tree of the target device can be updated according to the configuration processing information carried in the virtual machine creation request to obtain the target configuration tree of the target device.

[0062] Step 206: Determine an updated configuration node according to the initial configuration structure and the target configuration structure, and determine a configuration node at a higher level than the updated configuration node.

[0063] The updated configuration node can be understood as the configuration node that has changed between the initial configuration structure and the target configuration structure. The updated configuration node can include newly added configuration nodes and changed original configuration nodes. The configuration node at the previous level of the updated configuration node can be understood as the parent node of the updated configuration node.

[0064] In a specific implementation, determining the updated configuration node according to the initial configuration structure and the target configuration structure includes:

[0065] Matching the initial configuration structure with the target configuration structure, determining a target sub-node according to the matching result, and determining associated sub-nodes associated with the target sub-node;

[0066] The target child node and the associated child node are determined as update configuration nodes.

[0067] The target subnode can be a newly added node or a node with changed configuration information. The associated subnode associated with the target subnode can be understood as a subnode associated with the target subnode, which can be a subnode pointed to by the target subnode or a subnode pointing to the target subnode.

[0068] Based on this, the initial configuration structure and the target configuration structure can be matched. Based on the matching results, newly added nodes in the target configuration structure and nodes not present in the initial configuration structure are determined as target child nodes. Associated child nodes associated with the target child nodes are also determined. The associated child nodes and the target child nodes are determined as updated configuration nodes.

[0069] For details, see Figure 3 , Figure 3 FIG1 shows a schematic diagram of an initial configuration structure and a target configuration structure in a configuration processing method provided according to an embodiment of this specification. Figure 3 As shown, Figure 3 The initial configuration structure (i.e., initial configuration tree) includes root node 1, child nodes 2, 3, 4, 5, and 6, while the target configuration structure (i.e., target configuration tree) also includes target child nodes 7 and 8. Therefore, the target child nodes 7, 8, and the child node 4 associated with the target child node 8 can be used as the updated configuration node.

[0070] In summary, by determining the target subnode according to the matching result between the initial configuration structure and the target configuration structure, it is convenient to subsequently determine the updated configuration node according to the target subnode and the associated subnodes associated with the target subnode, thereby facilitating the subsequent determination of the effectiveness relationship of the updated configuration node.

[0071] Step 208: Process the configuration processing request according to the validation relationship between the upper-level configuration node and the root node.

[0072] The validity relationship between the previous-level configuration node and the root node can be understood as whether the previous-level configuration node is valid for the root node. As can be understood, if the previous-level configuration node is valid for the root node, the operation of the target device corresponding to the root node is dependent on the distribution of the configuration information corresponding to the previous-level configuration node. The validity relationship between the previous-level configuration node and the root node is the validity relationship contained in the initial configuration structure.

[0073] Specifically, when it is determined that the upper-level configuration node is not the root node, the configuration processing request may be processed according to the validation relationship between the upper-level configuration node and the root node.

[0074] In a specific implementation, processing the configuration processing request according to the validity relationship between the upper-level configuration node and the root node includes:

[0075] Determining a validation relationship between the updated configuration node and the root node based on a validation relationship between the upper-level configuration node and the root node;

[0076] In a case where it is determined that the validation relationship between the configuration update node and the root node satisfies a preset validation condition, the configuration processing request is processed according to the configuration update node.

[0077] Among them, the preset effectiveness conditions can be understood as the conditions for effectiveness.

[0078] Specifically, based on the inheritance relationship between the relationships between the configuration structures, the effectiveness relationship between the update configuration node and the root node can be determined according to the effectiveness relationship between the upper-level configuration node and the root node. In the case where the effectiveness relationship between the upper-level configuration node and the root node is effective, the effectiveness relationship between the update configuration node and the root node is also effective. In the case where the effectiveness relationship between the upper-level configuration node and the root node is not effective, the effectiveness relationship between the update configuration node and the root node is also not effective. Further, in the case where it is determined that the effectiveness relationship between the update configuration node and the root node is effective, the configuration processing request is processed according to the configuration information corresponding to the update configuration node.

[0079] It is understood that the validity relationship between the updated configuration node and the root node may satisfy the preset validity conditions (i.e., valid) or not (i.e., not valid). If it is determined that the validity relationship between the updated configuration node and the root node satisfies the preset validity conditions, the configuration processing request is processed based on the updated configuration node. For example, if the validity relationship between updated configuration node 1 and the root node satisfies the preset validity conditions, but the validity relationship between updated configuration node 2 and the root node does not, the configuration processing request may be processed based on the configuration information corresponding to updated configuration node 1, which satisfies the preset validity conditions.

[0080] In addition, an update configuration node can have multiple upper-level configuration nodes. If any of the multiple upper-level configuration nodes of the update configuration node have a valid relationship with the root node, the relationship between the update configuration node and the root node is valid. If none of the multiple upper-level configuration nodes of the update configuration node have valid relationships with the root node, the relationship between the update configuration node and the root node is invalid, as described in the following formula.

[0081] ref(Group,Conf A )=∨ i ref(Group,P i )

[0082] Among them, P i It is Conf A The i-th parent node (i.e. the previous level configuration node), Conf A ref is a valid value, which can be used to indicate the valid relationship between the child node and the root node. In one embodiment of this specification, a valid value of 1 indicates that the valid relationship between the child node and the root node is valid, and a valid value of 0 indicates that the valid relationship between the child node and the root node is invalid.

[0083] It can be understood that the configuration node at the previous level of the updated configuration node is the parent node of the updated configuration node;

[0084] Accordingly, determining the validity relationship between the updated configuration node and the root node according to the validity relationship between the upper-level configuration node and the root node includes:

[0085] The validity relationship between the parent node of the update configuration node and the root node is inherited to the validity relationship between the update configuration node and the root node.

[0086] Specifically, such as Figure 3As shown, root node 1 can correspond to the target device, and each child node can correspond to a configuration information of the target device. Child node 2 is the upper-level configuration node of child node 3, that is, child node 2 is the parent node of child node 3. In the initial configuration structure, the effectiveness relationship between child node 2 and root node 1 is: child node 2 is effective on root node 1 (that is, the effectiveness value of child node 2 can be set to 1), and the effectiveness relationship between child node 3 and child node 2 is: child node 3 is effective on child node 2. Therefore, the effectiveness relationship between child node 3 and root node 1 is: child node 3 is effective on root node 1. This indicates that the configuration information corresponding to child nodes 2 and 3 needs to be distributed during the normal operation of the target device. For each updated configuration node, taking target child node 8 as an example, the upper-level configuration node of target child node 8 is target child node 7. Since the effectiveness relationship between target child node 7 and root node 1 is: target child node 7 is effective on root node 1, the effectiveness relationship between target child node 8 and root node 1 is: target child node 8 is effective on root node 1.

[0087] In summary, by determining the validity relationship between the updated configuration node and the root node based on the validity relationship between the previous-level configuration node and the root node, it is convenient to subsequently determine which configuration information is needed when executing the configuration processing request.

[0088] Furthermore, the upper-level configuration nodes of the update configuration node include multiple;

[0089] Accordingly, determining the validity relationship between the updated configuration node and the root node according to the validity relationship between the upper-level configuration node and the root node includes:

[0090] Calculating target validation values ​​corresponding to the plurality of upper-level configuration nodes according to validation relationships between each of the plurality of upper-level configuration nodes and the root node;

[0091] The validity relationship between the update configuration node and the root node is determined according to the target validity value.

[0092] Among them, the target effective values ​​corresponding to multiple upper-level configuration nodes can be used as the effective values ​​of the updated configuration node.

[0093] Based on this, the target effectiveness values ​​corresponding to multiple upper-level configuration nodes can be calculated according to the effectiveness relationship between each upper-level configuration node and the root node in multiple upper-level configuration nodes, and the target effectiveness value can be used as the effectiveness value of the updated configuration node. Based on the effectiveness value of the updated configuration node, the effectiveness relationship between the updated configuration node and the root node can be determined.

[0094] In summary, by determining the effectiveness relationship according to the effectiveness value, the calculation time can be reduced, thereby saving computing resources.

[0095] Furthermore, the calculating target validation values ​​corresponding to the plurality of upper-level configuration nodes according to the validation relationships between each of the plurality of upper-level configuration nodes and the root node includes:

[0096] Determining, according to the validation relationships between each of the plurality of upper-level configuration nodes and the root node, an associated validation value between each of the upper-level configuration nodes and the root node;

[0097] Through a step function, the associated effectiveness values ​​between each of the upper-level configuration nodes and the root node are accumulated to obtain target effectiveness values ​​corresponding to multiple upper-level configuration nodes, wherein the step function is used to limit the associated effectiveness values ​​and the target effectiveness values ​​to be within a preset effectiveness value range.

[0098] The step function is F(x) = 1, x > 0; F(x) = 0, xc = 0. The step function can be used to limit the associated effective value and target effective value from being passed to the descendants when the effective value of the parent node changes within the positive range.

[0099] Specifically, such as Figure 3 As shown, taking child node 4 (i.e., the updated configuration node) as an example, the upper-level configuration nodes of child node 4 are child node 3 and target child node 8. Child node 3 is effective on root node 1, and the associated effectiveness value of child node 3 is 1. Target child node 8 is effective on root node 1, and the associated effectiveness value of target child node 8 is 1. Then, the associated effectiveness value of child node 3 and the associated effectiveness value of target child node 8 can be accumulated through a step function, and the effectiveness value of child node 4 can be calculated to be F(1) plus F(1) equal to 2.

[0100] In summary, by introducing the step function and using the idea of ​​accumulation, invalid changes in the effective value are shielded. As a result, the effective value of each newly added parent node of each child node increases by 1, but all descendants are not affected by this change. This solves the problem of invalid transmission of the effective value, reduces the computational complexity, and has adaptability to large-scale deployment in cloud networks.

[0101] In actual application, the configuration processing request is a virtual machine creation request;

[0102] Accordingly, when it is determined that the validity relationship between the updated configuration node and the root node meets the preset validity condition, processing the configuration processing request according to the updated configuration node includes:

[0103] When it is determined that the validation relationship between the update configuration node and the root node meets a preset validation condition, a virtual machine is created and run according to the configuration information corresponding to the update configuration node.

[0104] Specifically, when it is determined that the validity relationship between the updated configuration node and the root node is valid, the configuration information corresponding to the updated configuration node can be issued, and the virtual machine can be created and run according to the configuration information to ensure the stability of the target device.

[0105] In addition, it can be understood that when the upper-level configuration node is the root node, it indicates that the validity relationship between the updated configuration node and the root node is valid.

[0106] To sum up, in the above method, after receiving the configuration processing request for the target device, the initial configuration structure of the target device can be updated according to the configuration processing information carried in the configuration processing request, and the target configuration structure of the target device can be obtained, thereby determining the updated configuration node, and processing the configuration processing request according to the effective relationship between the upper-level configuration node and the root node of the updated configuration node, without traversing all the root nodes of the configuration structure, and through the inheritable characteristics of the effective relationship between the upper-level configuration node and the root node, the processing of the configuration processing request is realized, thereby reducing the computing overhead of the target device and saving the computing resources of the target device.

[0107] The following combined Figure 4 , taking the application of the configuration processing method provided in this specification in the virtual machine creation as an example, the configuration processing method is further explained. Figure 4 A flowchart of a configuration processing method provided in an embodiment of this specification is shown, which specifically includes the following steps.

[0108] Step 402: Receive a configuration processing request for a target device, wherein the configuration processing request carries configuration processing information.

[0109] Specifically, a virtual machine creation request (ie, a configuration processing request) for a server (ie, a target device) may be received. The virtual machine creation request carries configuration processing information for creating a virtual machine.

[0110] Step 404: Update the initial configuration structure of the target device according to the configuration processing information to obtain the target configuration structure of the target device.

[0111] Specifically, the initial configuration tree of the server may be updated according to the configuration processing information carried in the virtual machine creation request to obtain the target configuration tree of the server.

[0112] Step 406: Match the initial configuration structure and the target configuration structure, determine a target sub-node according to the matching result, determine associated sub-nodes associated with the target sub-node, and determine the target sub-node and the associated sub-nodes as updated configuration nodes.

[0113] Specifically, the target child node and the associated child node associated with the target child node in the target configuration tree of the server may be determined as the update configuration node.

[0114] Step 408: Determine the upper-level configuration node of the updated configuration node.

[0115] Specifically, the upper-level configuration node (ie, the parent node) of the updated configuration node may be determined.

[0116] Step 410: Determine the validity relationship between the updated configuration node and the root node based on the validity relationship between the upper-level configuration node and the root node.

[0117] Specifically, the validity relationship between the updated configuration node and the root node may be inherited based on the validity relationship between the parent node and the root node.

[0118] In addition, when the updated configuration node includes multiple upper-level configuration nodes, the effectiveness value of each upper-level configuration node can be accumulated through a step function to obtain the effectiveness value of the updated configuration node, thereby determining the effectiveness relationship between the updated configuration node and the root node.

[0119] Step 412: When it is determined that the validity relationship between the updated configuration node and the root node meets a preset validity condition, the configuration processing request is processed according to the updated configuration node.

[0120] Specifically, when it is determined that the validation relationship between the updated configuration node and the root node meets the preset validation condition, a virtual machine may be created and run according to the configuration information corresponding to the updated configuration node.

[0121] To sum up, in the above method, after receiving the configuration processing request for the target device, the initial configuration structure of the target device can be updated according to the configuration processing information carried in the configuration processing request, and the target configuration structure of the target device can be obtained, thereby determining the updated configuration node, and processing the configuration processing request according to the effective relationship between the upper-level configuration node and the root node of the updated configuration node, without traversing all the root nodes of the configuration structure, and through the inheritable characteristics of the effective relationship between the upper-level configuration node and the root node, the processing of the configuration processing request is realized, thereby reducing the computing overhead of the target device and saving the computing resources of the target device.

[0122] Corresponding to the above method embodiment, this specification also provides a configuration processing device embodiment, Figure 5 FIG1 shows a schematic diagram of a configuration processing device provided by an embodiment of this specification. Figure 5 As shown, the device includes:

[0123] The receiving module 502 is configured to receive a configuration processing request for a target device, wherein the configuration processing request carries configuration processing information;

[0124] An updating module 504 is configured to update the initial configuration structure of the target device according to the configuration processing information to obtain a target configuration structure of the target device, wherein both the initial configuration structure and the target configuration structure include a root node and a plurality of hierarchically related child nodes;

[0125] The determining module 506 is configured to determine an updated configuration node according to the initial configuration structure and the target configuration structure, and determine a configuration node one level above the updated configuration node;

[0126] The processing module 508 is configured to process the configuration processing request according to the validity relationship between the upper-level configuration node and the root node.

[0127] In an optional embodiment, the processing module 508 is further configured to:

[0128] Determining a validation relationship between the updated configuration node and the root node based on a validation relationship between the upper-level configuration node and the root node;

[0129] In a case where it is determined that the validation relationship between the configuration update node and the root node satisfies a preset validation condition, the configuration processing request is processed according to the configuration update node.

[0130] In an optional embodiment, the upper-level configuration node of the updated configuration node is the parent node of the updated configuration node;

[0131] Accordingly, the processing module 508 is further configured to:

[0132] The validity relationship between the parent node of the update configuration node and the root node is inherited to the validity relationship between the update configuration node and the root node.

[0133] In an optional embodiment, the upper-level configuration node of the update configuration node includes multiple;

[0134] Accordingly, the processing module 508 is further configured to:

[0135] Calculating target validation values ​​corresponding to the plurality of upper-level configuration nodes according to validation relationships between each of the plurality of upper-level configuration nodes and the root node;

[0136] The validity relationship between the update configuration node and the root node is determined according to the target validity value.

[0137] In an optional embodiment, the processing module 508 is further configured to:

[0138] Determining, according to the validation relationships between each of the plurality of upper-level configuration nodes and the root node, an associated validation value between each of the upper-level configuration nodes and the root node;

[0139] Through a step function, the associated effectiveness values ​​between each of the upper-level configuration nodes and the root node are accumulated to obtain target effectiveness values ​​corresponding to multiple upper-level configuration nodes, wherein the step function is used to limit the associated effectiveness values ​​and the target effectiveness values ​​to be within a preset effectiveness value range.

[0140] In an optional embodiment, the configuration processing request is a virtual machine creation request;

[0141] Accordingly, the processing module 508 is further configured to:

[0142] When it is determined that the validation relationship between the update configuration node and the root node meets a preset validation condition, a virtual machine is created and run according to the configuration information corresponding to the update configuration node.

[0143] In an optional embodiment, the determining module 506 is further configured to:

[0144] Matching the initial configuration structure with the target configuration structure, determining a target sub-node according to the matching result, and determining associated sub-nodes associated with the target sub-node;

[0145] The target child node and the associated child node are determined as update configuration nodes.

[0146] In an optional embodiment, the target device is a cloud network server.

[0147] To sum up, in the above-mentioned device, after receiving a configuration processing request for a target device, the initial configuration structure of the target device can be updated according to the configuration processing information carried in the configuration processing request, and the target configuration structure of the target device can be obtained, thereby determining the updated configuration node, and processing the configuration processing request according to the effective relationship between the upper-level configuration node of the updated configuration node and the root node, without traversing all the root nodes of the configuration structure, and through the inheritable characteristics of the effective relationship between the upper-level configuration node and the root node, the processing of the configuration processing request is realized, thereby reducing the computing overhead of the target device and saving the computing resources of the target device.

[0148] The above is a schematic scheme of a configuration processing device of this embodiment. It should be noted that the technical scheme of the configuration processing device and the technical scheme of the configuration processing method described above are based on the same concept. For details not described in detail in the technical scheme of the configuration processing device, please refer to the description of the technical scheme of the configuration processing method described above.

[0149] Corresponding to the above method embodiment, see Figure 6 , Figure 6 A flowchart of another configuration processing method provided according to an embodiment of this specification is shown, which is applied to a cloud network server, and the specific steps are as follows.

[0150] Step 602: Receive a configuration processing request for a cloud network server, wherein the configuration processing request carries configuration processing information;

[0151] Step 604: updating the initial configuration structure of the cloud network server according to the configuration processing information to obtain a target configuration structure of the cloud network server, wherein both the initial configuration structure and the target configuration structure include a root node and a plurality of hierarchically related child nodes;

[0152] Step 606: Determine an updated configuration node according to the initial configuration structure and the target configuration structure, and determine a configuration node one level above the updated configuration node;

[0153] Step 608: Process the configuration processing request according to the validation relationship between the upper-level configuration node and the root node.

[0154] To sum up, in the above method, after receiving the configuration processing request for the target device, the initial configuration structure of the target device can be updated according to the configuration processing information carried in the configuration processing request, and the target configuration structure of the target device can be obtained, thereby determining the updated configuration node, and processing the configuration processing request according to the effective relationship between the upper-level configuration node and the root node of the updated configuration node, without traversing all the root nodes of the configuration structure, and through the inheritable characteristics of the effective relationship between the upper-level configuration node and the root node, the processing of the configuration processing request is realized, thereby reducing the computing overhead of the target device and saving the computing resources of the target device.

[0155] The above is an illustrative embodiment of another configuration processing method of this embodiment. It should be noted that the technical solution of this configuration processing method and the technical solution of the above configuration processing method are of the same concept. For details not described in detail in the technical solution of the configuration processing method, please refer to the description of the technical solution of the above configuration processing method.

[0156] Corresponding to the above method embodiment, this specification also provides another configuration processing device embodiment, which is applied to a cloud network server. Figure 7 FIG. 1 shows a schematic diagram of another configuration processing device provided by an embodiment of this specification. Figure 7 As shown, the device includes:

[0157] The receiving module 702 is configured to receive a configuration processing request for the cloud network server, wherein the configuration processing request carries configuration processing information;

[0158] An updating module 704 is configured to update the initial configuration structure of the cloud network server according to the configuration processing information to obtain a target configuration structure of the cloud network server, wherein both the initial configuration structure and the target configuration structure include a root node and a plurality of hierarchically related child nodes;

[0159] The determining module 706 is configured to determine an updated configuration node according to the initial configuration structure and the target configuration structure, and determine a configuration node one level above the updated configuration node;

[0160] The processing module 708 is configured to process the configuration processing request according to the validity relationship between the upper-level configuration node and the root node.

[0161] To sum up, in the above-mentioned device, after receiving a configuration processing request for a target device, the initial configuration structure of the target device can be updated according to the configuration processing information carried in the configuration processing request, and the target configuration structure of the target device can be obtained, thereby determining the updated configuration node, and processing the configuration processing request according to the effective relationship between the upper-level configuration node of the updated configuration node and the root node, without traversing all the root nodes of the configuration structure, and through the inheritable characteristics of the effective relationship between the upper-level configuration node and the root node, the processing of the configuration processing request is realized, thereby reducing the computing overhead of the target device and saving the computing resources of the target device.

[0162] The above is a schematic scheme of a configuration processing device of this embodiment. It should be noted that the technical scheme of the configuration processing device and the technical scheme of the configuration processing method described above are based on the same concept. For details not described in detail in the technical scheme of the configuration processing device, please refer to the description of the technical scheme of the configuration processing method described above.

[0163] Figure 8 8 shows a block diagram of a computing device 800 according to one embodiment of the present disclosure. Components of the computing device 800 include, but are not limited to, a memory 810 and a processor 820. The processor 820 is connected to the memory 810 via a bus 830, and a database 850 is used to store data.

[0164] The computing device 800 also includes an access device 840 that enables the computing device 800 to communicate via one or more networks 860. Examples of such networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 840 may include one or more of any type of network interface (e.g., a network interface card (NIC)) whether wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a Worldwide Interoperability for Microwave Access (Wi-MAX) interface, an Ethernet interface, a universal serial bus (USB) interface, a cellular network interface, a Bluetooth interface, a near field communication (NFC) interface, and the like.

[0165] In one embodiment of the present application, the above components of the computing device 800 and Figure 8 Other components not shown in the figure may also be connected to each other, for example, via a bus. Figure 8 The computing device structure block diagram shown is for illustrative purposes only and is not intended to limit the scope of the present application. Those skilled in the art may add or replace other components as needed.

[0166] Computing device 800 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, personal digital assistant, laptop computer, notebook computer, netbook computer, etc.), a mobile phone (e.g., a smartphone), a wearable computing device (e.g., a smartwatch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or personal computer (PC). Computing device 800 may also be a mobile or stationary server.

[0167] The processor 820 is configured to execute the following computer-executable instructions, which implement the steps of the above-mentioned configuration processing method when executed by the processor.

[0168] The various embodiments in this specification are described in a progressive manner. Similar portions between the various embodiments can be referenced to each other. Each embodiment focuses on the differences between the other embodiments. In particular, the computing device embodiment is generally similar to the configuration and processing method embodiment, so the description is relatively simple. For relevant portions, refer to the description of the configuration and processing method embodiment.

[0169] An embodiment of the present specification further provides a computer-readable storage medium storing a computer program / instruction, which implements the steps of the above-mentioned configuration processing method when executed by a processor.

[0170] The various embodiments in this specification are described in a progressive manner. Similar portions between the various embodiments can be referenced to each other. Each embodiment focuses on the differences from the other embodiments. In particular, the computer-readable storage medium embodiment is generally similar to the configuration and processing method embodiment, so its description is relatively simple. For relevant portions, refer to the description of the configuration and processing method embodiment.

[0171] An embodiment of the present specification further provides a computer program product, including a computer program / instruction, which implements the steps of the above-mentioned configuration processing method when executed by a processor.

[0172] The above is a schematic solution of a computer program product of this embodiment. It should be noted that the technical solution of this computer program product and the technical solution of the configuration processing method described above are based on the same concept. For details not described in detail in the technical solution of the computer program product, please refer to the description of the technical solution of the configuration processing method described above.

[0173] The foregoing description of this specification describes specific embodiments. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in an order different from that described in the embodiments and still achieve the desired results. Furthermore, the processes depicted in the accompanying drawings do not necessarily require the specific order shown or the sequential order to achieve the desired results. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0174] The computer instructions include computer program code, which may be in source code form, object code form, executable file, or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal, and software distribution medium. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of patent practice. For example, in some regions, according to patent practice, computer-readable media does not include electric carrier signals and telecommunication signals.

[0175] It should be noted that for the aforementioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of this specification are not limited by the order of the actions described, because according to the embodiments of this specification, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in this specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the embodiments of this specification.

[0176] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant description of other embodiments.

[0177] The preferred embodiments disclosed above are intended only to help illustrate this specification. The optional embodiments do not exhaustively describe all details, nor do they limit the invention to the specific embodiments described. Obviously, many modifications and variations can be made based on the content of the embodiments of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the embodiments of this specification, so that those skilled in the art can better understand and utilize this specification. This specification is limited only by the claims and their full scope and equivalents.

Claims

1. A configuration processing method, comprising: receiving a configuration processing request for a target device, wherein the configuration processing request carries configuration processing information; updating an initial configuration structure of the target device according to the configuration processing information to obtain a target configuration structure of the target device, wherein both the initial configuration structure and the target configuration structure include a root node and a plurality of child nodes having a hierarchical relationship; Determining an updated configuration node according to the initial configuration structure and the target configuration structure, and determining a configuration node one level above the updated configuration node; The configuration processing request is processed according to the validity relationship between the upper-level configuration node and the root node.

2. The configuration processing method according to claim 1, wherein processing the configuration processing request according to the validation relationship between the upper-level configuration node and the root node comprises: Determining a validation relationship between the updated configuration node and the root node based on a validation relationship between the upper-level configuration node and the root node; In a case where it is determined that the validation relationship between the configuration update node and the root node satisfies a preset validation condition, the configuration processing request is processed according to the configuration update node.

3. The configuration processing method according to claim 2, wherein the configuration node one level above the updated configuration node is the parent node of the updated configuration node; Accordingly, determining the validity relationship between the updated configuration node and the root node according to the validity relationship between the upper-level configuration node and the root node includes: The validity relationship between the parent node of the update configuration node and the root node is inherited to the validity relationship between the update configuration node and the root node.

4. The configuration processing method according to claim 2, wherein the upper-level configuration node of the updated configuration node includes multiple configuration nodes; Accordingly, determining the validity relationship between the updated configuration node and the root node according to the validity relationship between the upper-level configuration node and the root node includes: Calculating target validation values ​​corresponding to the plurality of upper-level configuration nodes according to validation relationships between each of the plurality of upper-level configuration nodes and the root node; The validity relationship between the update configuration node and the root node is determined according to the target validity value.

5. The configuration processing method according to claim 4, wherein the step of calculating target validity values ​​corresponding to the plurality of upper-level configuration nodes based on validity relationships between each of the plurality of upper-level configuration nodes and the root node comprises: Determining, according to the validation relationships between each of the plurality of upper-level configuration nodes and the root node, an associated validation value between each of the upper-level configuration nodes and the root node; Through a step function, the associated effectiveness values ​​between each of the upper-level configuration nodes and the root node are accumulated to obtain target effectiveness values ​​corresponding to multiple upper-level configuration nodes, wherein the step function is used to limit the associated effectiveness values ​​and the target effectiveness values ​​to be within a preset effectiveness value range.

6. The configuration processing method according to claim 2, wherein the configuration processing request is a virtual machine creation request; Accordingly, when it is determined that the validity relationship between the updated configuration node and the root node meets the preset validity condition, processing the configuration processing request according to the updated configuration node includes: When it is determined that the validation relationship between the update configuration node and the root node meets a preset validation condition, a virtual machine is created and run according to the configuration information corresponding to the update configuration node.

7. The configuration processing method according to claim 1 or 2, wherein determining the updated configuration node according to the initial configuration structure and the target configuration structure comprises: Matching the initial configuration structure with the target configuration structure, determining a target sub-node according to the matching result, and determining associated sub-nodes associated with the target sub-node; The target child node and the associated child node are determined as update configuration nodes.

8. The configuration processing method according to claim 1, wherein the target device is a cloud network server.

9. A configuration processing method, applied to a cloud network server, comprising: receiving a configuration processing request for a cloud network server, wherein the configuration processing request carries configuration processing information; updating an initial configuration structure of the cloud network server according to the configuration processing information to obtain a target configuration structure of the cloud network server, wherein both the initial configuration structure and the target configuration structure include a root node and a plurality of child nodes having a hierarchical relationship; Determining an updated configuration node according to the initial configuration structure and the target configuration structure, and determining a configuration node one level above the updated configuration node; The configuration processing request is processed according to the validity relationship between the upper-level configuration node and the root node.

10. A computing device comprising: memory and processor; The memory is used to store computer programs / instructions, and the processor is used to execute the computer programs / instructions. When the computer program / instructions are executed by the processor, the steps of the configuration processing method according to any one of claims 1 to 9 are implemented.

11. A computer-readable storage medium storing a computer program / instruction, wherein the computer program / instruction, when executed by a processor, implements the steps of the configuration processing method according to any one of claims 1 to 9.

12. A computer program product, comprising a computer program / instruction, which, when executed by a processor, implements the steps of the configuration processing method according to any one of claims 1 to 9.