Configuration checking method and device, computer equipment and storage medium

By considering the description information and association configuration of the server cluster in the cluster baseline inspection, determining the configuration items to be checked and the configuration check scripts, the problem of inaccurate baseline inspection in the prior art is solved and the cluster service performance is improved.

CN120196485APending Publication Date: 2025-06-24NETSUNION CLEARING CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311771126.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-21
Publication Date
2025-06-24

AI Technical Summary

Technical Problem

When performing cluster baseline inspection, the existing technology ignores the association configuration between each server in the cluster, resulting in inaccurate baseline inspection results, affecting the performance of the cluster's external services.

Method used

The configuration baseline information is determined based on the description information of the server cluster, including configuration check requirements and cluster configuration information, and then the configuration items to be checked are determined. Then, based on the configuration baseline information, a configuration check script containing configuration variables is determined to realize dynamic configuration item checking of the server cluster.

Benefits of technology

It improves the effectiveness and accuracy of configuration checks of server clusters, ensures the accuracy of the configuration of association relationships between servers in the cluster, and thus improves the performance of the cluster's external services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120196485A_ABST
    Figure CN120196485A_ABST
Patent Text Reader

Abstract

The invention provides a configuration checking method and device, computer equipment and a storage medium, and can be applied to the technical field of computers. The method comprises the following steps: determining configuration baseline information based on description information of a server cluster; determining a configuration check script containing a configuration variable based on the configuration baseline information; and obtaining configuration data of the server cluster, and performing configuration check on the server cluster based on the configuration data and the configuration check script to obtain a configuration check result. According to the method provided by the invention, from the perspective of the server cluster, the configuration check for the server cluster is more comprehensive, and the accuracy of the configuration check for the server cluster is improved, so that the server cluster can normally provide services to the outside.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technologies, and in particular, to a configuration check method, apparatus, computer device, and storage medium. Background Art

[0002] In a high-concurrency scenario, application systems are mainly deployed in a cluster manner. At this time, the configurations on multiple servers that make up the cluster must be coordinated to ensure that the cluster can provide services to the outside as a whole. When performing a consistency check on the cluster configuration, the consistency check of the configuration can be achieved through baseline check. Among them, baseline check means checking whether the configuration information of the cluster meets the requirements of the configuration baseline.

[0003] Currently, baseline check mainly checks whether the configurations of each server in the cluster meet the requirements of the configuration baseline in sequence. When it is determined that the configurations of all servers meet the requirements of the configuration baseline, it is determined that the configuration information of the cluster meets the requirements of the configuration baseline. At this time, it is determined that the cluster can provide services to the outside normally.

[0004] However, this baseline check method can only start from the server level, determine the performance of the cluster by performing a baseline check on the server, ignoring the accuracy of the configuration of the association relationship between each server in the cluster, which is likely to affect the baseline check result of the cluster and further affect the performance of the cluster providing cluster services to the outside. Summary of the Invention

[0005] This application provides a configuration check method, apparatus, computer device, and storage medium to solve the problem that the baseline check of the cluster is incomplete, resulting in a low accuracy of the baseline check result of the cluster and affecting the performance of the cluster providing services to the outside.

[0006] In a first aspect, this application provides a configuration check method, including:

[0007] Based on the description information of the server cluster, determine the configuration baseline information; wherein, the description information indicates the configuration check requirements and the cluster configuration information in the server cluster in a first format; the configuration baseline information indicates the to-be-checked configuration items that need to be checked for configuration in a second format; the to-be-checked configuration items indicate the configuration items that need to be coordinated with each other in the server cluster and / or in each server in the server cluster;

[0008] Based on the configuration baseline information, determine a configuration check script including configuration variables; wherein, the configuration variables indicate the dynamic configuration items of the server cluster; the dynamic configuration items indicate the configuration items that each server in the server cluster needs to configure separately;

[0009] Obtain the configuration data of the server cluster, and based on the configuration data and the configuration check script, perform a configuration check on the server cluster to obtain a configuration check result.

[0010] In one example, the configuration items to be checked include multiple sub-configuration items; the determining of the configuration check script including configuration variables based on the configuration baseline information includes:

[0011] Determine the configuration check type corresponding to the configuration baseline information; wherein, the configuration check type indicates the check dimension for performing a configuration check on the server cluster;

[0012] Based on the configuration check type, determine the configuration variables that match the configuration check type;

[0013] Based on the configuration variables, determine the execution scripts corresponding to the configuration item values of each of the sub-configuration items in the configuration items to be checked indicated by the configuration baseline information, to obtain the configuration check script.

[0014] In one example, the check dimension for performing a configuration check indicated by the configuration check type is the server cluster dimension; the determining of the configuration check script including the execution scripts corresponding to the configuration item values of each of the sub-configuration items in the configuration items to be checked indicated by the configuration baseline information includes:

[0015] Based on the cluster configuration information in the server cluster, determine the association relationship between each of the sub-configuration items; wherein, the association relationship indicates the dependency relationship between each of the sub-configuration items under the normal operation of the server cluster;

[0016] Based on the association relationship, determine the execution rules of the execution scripts corresponding to the configuration item values of each of the sub-configuration items; wherein, the execution rules correspond to the association relationship;

[0017] Based on the execution scripts corresponding to the configuration item values of each of the sub-configuration items in the configuration items to be checked indicated by the configuration baseline information and the execution rules, determine the configuration check script.

[0018] In one example, the check dimension for performing a configuration check indicated by the configuration check type is the server dimension; the determining of the configuration check script including the execution scripts corresponding to the configuration item values of each of the sub-configuration items in the configuration items to be checked indicated by the configuration baseline information includes:

[0019] Determine the execution order of the execution scripts corresponding to the configuration item values of each of the sub-configuration items; wherein, the execution order corresponds to the configuration order when the servers to be configured for a configuration check configure each of the sub-configuration items.

[0020] Determine the configuration check script based on the execution scripts and the execution order corresponding to the configuration item values of each of the sub-configuration items in the to-be-checked configuration items indicated by the configuration baseline information.

[0021] In one example, the obtaining the configuration data of the server cluster includes:

[0022] Obtain the first configuration data corresponding to each server from each server included in the server cluster; wherein, the first configuration data is the data for configuring the current server.

[0023] Obtain the second configuration data from the configuration management database; wherein, the second configuration data indicates the dependency relationships between the configuration items included in the server cluster.

[0024] Obtain the third configuration data from the cluster monitoring platform; wherein, the third configuration data indicates the cluster-related information of the server cluster.

[0025] Summarize the first configuration data, the second configuration data, and the third configuration data to obtain the configuration data of the server cluster.

[0026] In one example, the obtaining the configuration data of the server cluster includes:

[0027] In response to a configuration detection instruction for the server cluster, obtain the configuration data of the server cluster; wherein, the configuration detection instruction is used to request to obtain the configuration data corresponding to the server cluster.

[0028] In one example, the obtaining the configuration data of the server cluster includes:

[0029] Obtain the fourth configuration data corresponding to the to-be-checked configuration items indicated by the configuration baseline information from each server included in the server cluster to obtain the configuration data of the server cluster.

[0030] In one example, the performing a configuration check on the server cluster based on the configuration data and the configuration check script to obtain a configuration check result includes:

[0031] Based on the configuration data, parse the variable values of the configuration variables included in the configuration check script.

[0032] Based on the variable values, execute the configuration check script to obtain the configuration check result.

[0033] In a second aspect, the present application provides a configuration check device, including:

[0034] A first determination unit, configured to determine configuration baseline information based on description information of a server cluster; wherein, the description information indicates configuration check requirements and cluster configuration information in the server cluster in a first format; the configuration baseline information indicates configuration items to be checked that require configuration checks in a second format; the configuration items to be checked indicate configuration items that need to be coordinated with each other in the server cluster and / or in each server in the server cluster.

[0035] A second determination unit, configured to determine a configuration check script including configuration variables based on the configuration baseline information; wherein, the configuration variables indicate dynamic configuration items of the server cluster; the dynamic configuration items indicate configuration items that need to be separately configured for each server in the server cluster.

[0036] A data acquisition unit, configured to acquire configuration data of the server cluster.

[0037] A configuration check unit, configured to perform a configuration check on the server cluster based on the configuration data and the configuration check script, and obtain a configuration check result.

[0038] In one example, the second determination unit is configured to:

[0039] When the configuration items to be checked include multiple sub-configuration items, determine a configuration check type corresponding to the configuration baseline information; wherein, the configuration check type indicates a check dimension for performing a configuration check on the server cluster.

[0040] Based on the configuration check type, determine configuration variables that match the configuration check type.

[0041] Based on the configuration variables, determine execution scripts corresponding to the configuration item values of each of the sub-configuration items in the configuration items to be checked indicated by the configuration baseline information, and obtain the configuration check script.

[0042] In one example, the second determination unit includes:

[0043] A first sub-determination module, configured to, when the check dimension for performing a configuration check indicated by the configuration check type is the server cluster dimension, determine the association relationship between the sub-configuration items based on the cluster configuration information in the server cluster; wherein, the association relationship indicates the dependency relationship between the sub-configuration items when the server cluster is running normally.

[0044] Based on the association relationship, determine an execution rule of the execution script corresponding to the configuration item value of each of the sub-configuration items; wherein, the execution rule corresponds to the association relationship.

[0045] Determine the configuration check script based on the execution scripts and the execution rules corresponding to the configuration item values of each of the sub-configuration items in the configuration items to be checked indicated by the configuration baseline information.

[0046] In one example, the second determination unit includes:

[0047] A second sub-determination module, configured to determine the execution order of the execution scripts corresponding to the configuration item values of each of the sub-configuration items when the check dimension for performing the configuration check indicated by the configuration check type is the server dimension; wherein, the execution order corresponds to the configuration order when configuring each of the sub-configuration items for the server to be configured with the configuration.

[0048] Determine the configuration check script based on the execution scripts and the execution order corresponding to the configuration item values of each of the sub-configuration items in the configuration items to be checked indicated by the configuration baseline information.

[0049] In one example, the data acquisition unit includes:

[0050] A first sub-acquisition module, configured to: acquire first configuration data corresponding to each of the servers from each of the servers included in the server cluster; wherein, the first configuration data is data for configuring the current server.

[0051] Acquire second configuration data from a configuration management database; wherein, the second configuration data indicates the dependency relationships between the configuration items included in the server cluster.

[0052] Acquire third configuration data from a cluster monitoring platform; wherein, the third configuration data indicates the cluster-related information of the server cluster.

[0053] Summarize the first configuration data, the second configuration data, and the third configuration data to obtain the configuration data of the server cluster.

[0054] In one example, the data acquisition unit includes:

[0055] A second sub-acquisition module, configured to:

[0056] In response to a configuration detection instruction for the server cluster, acquire the configuration data of the server cluster; wherein, the configuration detection instruction is used to request to acquire the configuration data corresponding to the server cluster.

[0057] In one example, the data acquisition unit includes:

[0058] A third child acquisition module, configured to: obtain, from each server included in the server cluster, fourth configuration data corresponding to the to-be-checked configuration items indicated by the configuration baseline information, so as to obtain the configuration data of the server cluster.

[0059] In one example, a configuration check unit is configured to:

[0060] Based on the configuration data, parse the variable values of the configuration variables included in the configuration check script;

[0061] Based on the variable values, execute the configuration check script to obtain the configuration check result.

[0062] In a third aspect, the present application provides a computer device, including: a processor and a memory communicatively connected to the processor;

[0063] The memory stores computer-executable instructions;

[0064] The processor executes the computer-executable instructions stored in the memory to implement the method described in the first aspect.

[0065] In a fourth aspect, the present application provides a computer-readable storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions are executed by a processor, they are used to implement the method described in the first aspect.

[0066] In a fifth aspect, the present application provides a computer program product, which includes: computer-executable instructions, the computer-executable instructions are stored in a readable storage medium, at least one processor of a computer device can read the computer-executable instructions from the readable storage medium, and the at least one processor executes the computer-executable instructions to enable the computer device to execute the method described in the first aspect.

[0067] The configuration check method, device, computer device, and storage medium provided by this application can, before performing a configuration check on a server cluster, first determine the configuration baseline information in the second format based on the configuration check requirements indicated in the first format for the server cluster and the description information of the cluster configuration information in the server cluster. At this time, from the overall perspective of the server cluster, according to the actual check requirements, the configuration items to be checked for the server cluster can be determined, so that more accurate and comprehensive configuration items to be checked can be determined. Then, based on the configuration baseline information, a configuration check script containing configuration variables can be determined, so that the variableization and scripting of the items to be checked in the server cluster can be realized, making the configuration check more standardized and concise, and improving the readability of the configuration check. Then, the configuration data of the server cluster can be obtained, and the configuration check script can be run based on the actual configuration data of the server cluster to perform a configuration check on the server cluster and obtain a configuration check result. This configuration check method can perform a configuration check on all the configuration items that need to be coordinated with each other in the server cluster, thereby improving the effectiveness and accuracy of the configuration check of the server cluster, and avoiding the problems in the prior art that when checking each configuration item of the server separately, the check is not comprehensive, which affects the configuration check effect of the server cluster and the performance of the server cluster in providing services externally. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] The accompanying drawings herein are incorporated into the specification and constitute a part of this specification, showing embodiments consistent with this application, and are used together with the specification to explain the principles of this application.

[0069] Figure 1 It is a schematic diagram of an application scenario provided by an embodiment of this application;

[0070] Figure 2 It is a schematic flowchart of a configuration check method provided by an embodiment of this application;

[0071] Figure 3 It is a schematic flowchart of another configuration check method provided by an embodiment of this application;

[0072] Figure 4 It is a schematic flowchart of performing a configuration check on a server cluster from the perspective of the server cluster dimension provided by an embodiment of this application;

[0073] Figure 5 It is a schematic diagram of the structure of a configuration check device provided by an embodiment of this application;

[0074] Figure 6 It is a schematic diagram of the structure of another configuration check device provided by an embodiment of this application;

[0075] Figure 7 A structural schematic diagram of a computer device provided by an embodiment of the present application;

[0076] Figure 8 It is a block diagram of a computer device shown according to an exemplary embodiment.

[0077] Through the above-mentioned drawings, the specific embodiments of the present application have been shown, and more detailed descriptions will be provided later. These drawings and text descriptions are not intended to limit the scope of the concept of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. Specific Embodiments

[0078] Here, the exemplary embodiments will be described in detail, and the examples are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0079] 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 for analysis, stored data, displayed data, etc.) involved in the present application are all information and data authorized by the user or fully authorized by all parties, and the collection, use, and processing of relevant data need to comply with relevant laws, regulations, and standards, and corresponding operation entrances are provided for the user to select authorization or rejection.

[0080] It should be noted that the configuration check method, device, computer device, and storage medium provided by the embodiments of the present application can be used in the field of computer technology, can also be used in the distributed field, and can also be used in any technical field that requires configuration check other than the above fields. The application fields of the configuration check method, device, computer device, and storage medium provided by the embodiments of the present application are not limited here.

[0081] Figure 1 A schematic diagram of an application scenario provided by an embodiment of the present application. As Figure 1 shown, assume that the application system 101 deploys a server cluster 102, and as Figure 1 shown, the server cluster 102 includes 5 servers, namely Server 1, Server 2, Server 3, Server 4, and Server 5.

[0082] At this time, in order to ensure that the server cluster 102 can provide services externally in a complete and effective manner (i.e., provide services for the application system 101), before starting the server cluster 102 to execute the business of the application system 101, a consistency check of the configuration of the server cluster 102 (i.e., configuration check) can be performed first.

[0083] Currently, when performing a consistency check on the configuration of a server cluster, it is mainly to check in sequence whether the configurations of the servers in the server cluster meet the requirements of a pre-defined configuration baseline. When it is determined that the configurations of the servers in the server cluster all meet the requirements of the pre-defined configuration baseline, it is determined that the configuration of the server cluster meets the consistency requirements and can provide services externally normally.

[0084] However, this configuration check method can only start from the server level, determine the configuration check result of the server cluster by performing a configuration check on the servers, ignoring the accuracy of the configuration of the association relationship between the servers in the server cluster, which is likely to affect the baseline check result of the cluster, and further affect the performance of the cluster providing cluster services externally.

[0085] Exemplarily, assume that Figure 1 the primary node server in the initial configuration of the shown server cluster is server 1, and the remaining servers are secondary node servers. At this time, in the case of a failure of server 1, the server cluster will re-determine the primary node server. Assume that the re-determined primary node servers are server 2 and server 3. Then, at this time, when performing a configuration check on the server cluster, only whether the configurations of the individual servers are consistent will be checked, rather than checking from the cluster level whether the configurations of the individual servers meet the configuration requirements of the cluster. In this way, in the case where it is determined that the configurations of the servers in the server cluster all meet the consistency requirements, when providing services based on this server cluster externally, due to the existence of two primary node servers in the server cluster, the business execution of the application system will be chaotic, further affecting the performance of the cluster providing cluster services externally.

[0086] The configuration check method provided by this application aims to solve the above technical problems in the prior art.

[0087] The following will specifically describe the technical solution of this application and how the technical solution of this application solves the above technical problems with specific embodiments. These several specific embodiments below can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of this application will be described below with reference to the accompanying drawings.

[0088] The configuration check method provided by this application can be applied to any environment that requires configuration checks. For example, the configuration check method provided by this application can be applied to Zookeeper configuration checks. Since the production environment corresponding to Zookeeper generally consists of a server cluster composed of multiple servers to provide services externally, at this time, the configurations on each server must be consistent with those of other servers in the server cluster. At this time, the configuration check method provided by this application can be used to perform configuration checks.

[0089] Another example is that the configuration check method provided by this application can be applied to the production environment corresponding to a certain application system. Suppose that multiple sets of production environments are deployed for this application system. In the configuration of each production environment, it is necessary to configure the database address, Redis component address, Kafka component address, Zookeeper component address, alarm sending address, etc. of the current production environment. At this time, the configuration of each production environment needs to be consistent with the external address, and the external addresses referenced by each production environment should be the same. At this time, the configuration check method provided by this application can be used to perform configuration checks on multiple sets of production environments deployed by the application system.

[0090] Figure 2 It is a schematic flowchart of a configuration check method provided by an embodiment of this application, as Figure 2 shown, this method includes:

[0091] S201. Determine configuration baseline information based on the description information of the server cluster.

[0092] Among them, the description information indicates the configuration check requirements and the cluster configuration information in the server cluster in the first format; the configuration baseline information indicates the configuration items to be checked that need to be subjected to configuration checks in the second format; the configuration items to be checked indicate the configuration items that need to be coordinated with each other in the server cluster and / or in each server in the server cluster.

[0093] In one example, the first format can be the general term for the format of the configuration check requirements and the format of the cluster configuration information. For example, the configuration check requirements can be in the doc file format, and the cluster configuration information can be in the xml file format. At this time, the first format can be the configuration check requirements in the doc file format and the cluster configuration information in the xml file format. Or, the configuration check requirements can also represent the configuration check requirements in the txt file format and the cluster configuration information in the xml file format, etc. The specific content of this first format is not limited here, as long as it can be implemented.

[0094] In one example, the second format can represent the configuration baseline information in a preset standard format. For example, the second format can represent the text format or the script format, etc. The second format is not specifically limited here, as long as it can be implemented.

[0095] In the above embodiments, the configuration check requirements of various formats and the cluster configuration information can be converted into configuration baseline information in a standard format, which is convenient for configuration checking.

[0096] In one example, the configuration items to be checked can be at least one of the configuration items that need to be configured separately for the server (i.e., dynamic configuration items), the configuration items uniformly configured for each server, and the configuration items configured for the server cluster. Among them, the configuration item values of the configuration items uniformly configured for each server can be associated with the configuration item values of the configuration items that need to be configured separately for the server.

[0097] In one example, the number of items to be checked can be one or more. Among them, each item to be checked can include multiple sub-configuration items. At this time, the sub-configuration items correspond to the servers in the server cluster. Exemplarily, assume that the configuration item to be checked is the serverCnxnFactory configuration item. At this time, the sub-configuration items corresponding to this check configuration item can be the server.{serverId} configuration items corresponding to each server in the server cluster. At this time, the number of sub-configuration items corresponding to this check configuration item is the same as the number of servers in the server cluster that can provide services externally.

[0098] In one example, the configuration baseline information can indicate the configuration items to be checked that need to be configured in the server cluster, that is, it can be used to define the configuration item names and configuration item values of each sub-configuration item corresponding to the configuration items to be checked under the condition that the server cluster can provide services externally normally.

[0099] In one example, the configuration items to be checked can be determined based on the configuration check requirements indicated by the description information of the server cluster and the cluster configuration information in the server cluster, and the configuration baseline information can be determined based on the configuration items to be checked.

[0100] Exemplarily, assume that the configuration item to be checked is the "serverCnxnFactory" configuration item. Then, it can be determined that the configuration baseline information can be: the value of the "serverCnxnFactory" configuration item must be "NIOFactory", or the configuration baseline information can also be: conf("serverCnxnFactory").requeireValue("NIOFactory"). For example, in the case where the sub-configuration item included in the "serverCnxnFactory" configuration item is the "server.{serverId}" configuration item, then this configuration baseline information can be used to define that the value of the configuration item with the configuration item name "server.{serverId}" must be "10.0.0.{serverId}:1888:2888". For example, when "server.{serverId}" is "server.1", the value of the configuration item defined by this configuration baseline information for "server.1" is "10.0.0.1:1888:2888".

[0101] S202. Determine a configuration check script including configuration variables based on the configuration baseline information.

[0102] Among them, the configuration variable indicates the dynamic configuration item of the server cluster; the dynamic configuration item indicates the configuration item that each server in the server cluster needs to configure separately.

[0103] In one example, the dynamic configuration item can indicate the configuration item that each server in the server cluster needs to configure separately. At this time, the configuration data of the dynamic configuration items in different servers are at least partially different. For example, this dynamic configuration item can indicate the configuration item of the server ID, or can also indicate the configuration item of the master-slave node server type of the configuration server, etc.

[0104] In one example, the dynamic configuration item can be replaced with a configuration variable, so that the configuration baseline information can be converted into an execution script associated with this configuration variable, and a configuration check script including the configuration variable is obtained.

[0105] Exemplarily, assume that in the case where the dynamic configuration item is the "serverId" configuration item indicating the server ID of the configuration server, then it can be determined that the dynamic variable is "serverId", or it can also be determined that the dynamic variable is "myId", etc. At this time, the name of the configuration variable can be the same as or different from the configuration item name. Here, the name of the configuration variable is not limited, as long as each dynamic configuration item can be accurately distinguished. At this time, the variable value of this dynamic variable is the ID of each server in the server cluster.

[0106] At this time, for the above configuration baseline information: the configuration value of the configuration item with the configuration item name of server.{serverId} must be 10.0.0.{serverId}:1888:2888, the determined configuration check script is: conf(“server.”+clusterVar(“myId”)).requireValue(sysVal(“hostIp”)+“:1888:2888”). Among them, clusterVar indicates a configuration variable, and sysVal indicates that the IP of the current server is obtained.

[0107] S203. Obtain the configuration data of the server cluster, and based on the configuration data and the configuration check script, perform a configuration check on the server cluster to obtain a configuration check result.

[0108] In one example, the configuration data can be understood as the configuration values corresponding to each configuration item to be checked in the server cluster.

[0109] In one example, the configuration data can be used to assign values to each configuration variable in the configuration check script, so as to execute the corresponding configuration check script and obtain a configuration check result.

[0110] For example, for the above configuration check script: conf(“server.”+.clusterVar(“myId”)).requireValue(.sysVal(“hostIp”)+“:1888:2888”), when the configuration data corresponding to “myId” is determined to be 1, 2, and 3, the script for performing a configuration check on the server cluster based on the configuration check script is: clusterVar(“myid”).allValue().equalsSet(Sets.newSet(“1”, “2”, “3”)). At this time, after the execution is completed, a configuration check result is obtained.

[0111] As can be seen from the above description, in the embodiment of the present application, before performing a configuration check on a server cluster, the configuration baseline information in the second format can be determined first based on the configuration check requirements indicated in the first format of the server cluster and the description information of the cluster configuration information in the server cluster. At this time, from the overall perspective of the server cluster, according to the actual check requirements, the configuration items to be checked for the server cluster can be determined, so that more accurate and comprehensive configuration items to be checked can be determined. Then, based on the configuration baseline information, a configuration check script including configuration variables can be determined, so that the variable and scripting of the items to be checked in the server cluster can be realized, so that the configuration check can be more standardized and concise, and the readability of the configuration check can be better. Then, the configuration data of the server cluster can be obtained, and the configuration check script can be run based on the actual configuration data of the server cluster to perform a configuration check on the server cluster and obtain a configuration check result. This configuration check method can perform a configuration check on all the configuration items that need to be coordinated with each other in the server cluster, thereby improving the effectiveness and accuracy of the configuration check of the server cluster, and thus avoiding the problems in the prior art that when checking each configuration item of the server separately, the check is not comprehensive, which in turn affects the configuration check effect of the server cluster and the performance of the server cluster to provide services externally normally.

[0112] Figure 3 It is a schematic flowchart of another configuration check method provided by the embodiment of the present application. As Figure 3 shown, the method includes:

[0113] S301. Determine configuration baseline information based on the description information of the server cluster.

[0114] Among them, the description information indicates the configuration check requirements and the cluster configuration information in the server cluster in the first format; the configuration baseline information indicates the configuration items to be checked that need to perform a configuration check in the second format; the configuration items to be checked indicate the configuration items that need to be coordinated with each other in the server cluster and / or in each server in the server cluster.

[0115] In one example, this step can refer to the content described in S201 above, and will not be elaborated here.

[0116] In one example, the configuration items to be checked may include multiple sub-configuration items.

[0117] S302. Determine the configuration check type corresponding to the configuration baseline information.

[0118] Among them, the configuration check type indicates the check dimension for performing a configuration check on the server cluster.

[0119] Exemplarily, the configuration check type can be the server cluster check type. In this case, the check dimension for performing configuration checks on the server cluster indicated by this configuration check type is the server cluster dimension. For another example, the configuration check type can be the server check type. In this case, the check dimension for performing configuration checks on the server cluster indicated by this configuration check type is the server dimension.

[0120] S303. Determine configuration variables that match the configuration check type based on the configuration check type.

[0121] In one example, the configuration variables indicate the dynamic configuration items of the server cluster; the dynamic configuration items indicate the configuration items that need to be configured separately for each server in the server cluster.

[0122] In one example, during the process of defining the configuration variables, different variable types can be set for the configuration variables under different configuration check types, so as to obtain configuration variables that match the configuration check type.

[0123] This implementation method can set the same configuration item as different configuration variables, so that the configuration item can be applied to configuration checks with different check dimensions at the same time, thus ensuring the stable operation of the configuration check and the accuracy of the configuration check.

[0124] Exemplarily, when the configuration check type is the server cluster check type, the configuration variable can be defined as a variable of the "ClusterVar" type; when the configuration check type is the server check type, the configuration variable can be defined as a variable of the "Var" type. In this case, when performing configuration checks on two check dimensions for the cluster servers at the same time, the configuration data of the same configuration item can be called simultaneously through configuration variables of different variable types to perform the configuration check, avoiding the execution error phenomenon caused by multiple and different calls of the same configuration item.

[0125] S304. Determine the execution scripts corresponding to the configuration item values of each sub-configuration item in the to-be-checked configuration items indicated by the configuration baseline information based on the configuration variables, and obtain the configuration check script.

[0126] In one example, when the check dimensions for performing configuration checks indicated by the configuration check type are different, the method for determining the configuration check script is also different. For example, when the check dimension for performing configuration checks indicated by the configuration check type is the server cluster dimension, the following described process can be executed.

[0127] First, determine the association relationship between the sub-configuration items based on the cluster configuration information in the server cluster. Among them, the association relationship indicates the dependency relationship between the sub-configuration items when the server cluster is running normally.

[0128] Then, based on the association relationship, determine the execution rules of the execution scripts corresponding to the configuration item values of each sub-configuration item. Among them, the execution rules correspond to the association relationship;

[0129] Finally, based on the execution scripts and execution rules corresponding to the configuration item values of each sub-configuration item in the configuration items to be checked indicated by the configuration baseline information, determine the configuration check script.

[0130] Exemplarily, when the server is running normally, there is one and only one master node server among the servers in the server cluster. At this time, the association relationship between the sub-configuration items for configuring the master-slave node server types of the server is: there is one and only one value of the configuration item value of each sub-configuration item indicating that the server is the master node server.

[0131] At this time, the execution rules corresponding to this association relationship can indicate traversing whether there is one and only one value among the configuration item values of each sub-configuration item indicating the master-slave node server type in each server that indicates that the server is the master node server.

[0132] This implementation method can consider the association relationship between the servers in the server cluster when performing configuration checks on the server cluster, and determine the execution rules based on this association relationship, so as to determine the configuration check script, which can make the configuration check script more comprehensive and perfect, and improve the reliability of the configuration check of the server cluster.

[0133] In one example, when the check dimension for performing configuration checks indicated by the configuration check type is the server dimension, the following described process can be executed.

[0134] First, determine the execution order of the execution scripts corresponding to the configuration item values of each sub-configuration item. Among them, the execution order corresponds to the configuration order when the server to be configured checks configures each sub-configuration item.

[0135] Then, based on the execution scripts and execution order corresponding to the configuration item values of each sub-configuration item in the configuration items to be checked indicated by the configuration baseline information, determine the configuration check script.

[0136] In one example, in addition to corresponding to the configuration order when the server to be configured checks configures each sub-configuration item, the above execution order can also correspond to the magnitude of the variable values of the configuration variables on which the configuration item values of each sub-configuration item depend, etc. Here, the execution order is not specifically limited, as long as the execution scripts corresponding to the configuration item values of each sub-configuration item can be executed completely.

[0137] In the above implementation, when there are multiple sub-configuration items, the execution order of the execution scripts corresponding to the sub-configuration items can be determined to obtain the configuration check script, thereby ensuring the orderly execution of the configuration check script.

[0138] In one example, after the configuration variables and the configuration check script are determined, the steps described in S305 below may be performed.

[0139] S305: Obtain configuration data of the server cluster.

[0140] In one example, when the configuration check dimensions indicated by the configuration check type are different, the items to be checked may be different. In this case, the configuration data obtained is also different.

[0141] In an example, when the configuration check dimension indicated by the configuration check type is the server cluster dimension, the process of acquiring configuration data can be described as the following process.

[0142] Step 1: Obtain first configuration data corresponding to each server from each server included in the server cluster, wherein the first configuration data is data for configuring the current server.

[0143] In an example, the servers in the server cluster that can normally provide external services may be determined first, and then the data configured on the servers may be collected one by one to obtain the first configuration data.

[0144] Step 2: Obtain second configuration data from the configuration management database, wherein the second configuration data indicates the dependency relationship between configuration items included in the server cluster.

[0145] Step 3: Obtain third configuration data from the cluster monitoring platform, wherein the third configuration data indicates cluster-related information of the server cluster.

[0146] In an example, the cluster-related information may indicate information such as the cluster name of the server cluster, the number of servers included in the server cluster, the status of the server cluster, the status of each server in the server cluster (eg, normal operation, abnormality, etc.), and the like.

[0147] Step 4: Aggregate the first configuration data, the second configuration data, and the third configuration data to obtain configuration data of the server cluster.

[0148] In one example, when the configuration check dimension indicated by the configuration check type is the server cluster dimension, the configuration data can also be obtained by responding to a configuration detection instruction for the server cluster. The configuration detection instruction can be used to request configuration data corresponding to the server cluster.

[0149] Here, the configuration detection instruction for the server cluster is associated with the type of the server cluster, and the configuration detection instruction is not specifically limited herein.

[0150] By obtaining the comprehensive configuration data of the server cluster, it is possible to ensure the effective and stable operation of the configuration check for the server cluster and improve the configuration check efficiency.

[0151] In one example, when the check dimension for performing the configuration check indicated by the configuration check type is the server dimension, the fourth configuration data corresponding to the configuration items to be checked indicated by the configuration baseline information can be obtained from each server included in the server cluster, so as to obtain the configuration data of the server cluster.

[0152] At this time, when the check dimension is the server dimension, the configuration data can be obtained only from each server, which can avoid obtaining a large amount of invalid configuration data, thereby improving the efficiency of the configuration check and reducing the computational complexity of the configuration check.

[0153] S306. Based on the configuration data, parse the variable values of the configuration variables included in the configuration check script.

[0154] At this time, the configuration data matching the configuration variables can be parsed from the obtained configuration data, so as to determine the variable values of the configuration variables.

[0155] S307. Based on the variable values, execute the configuration check script to obtain the configuration check result.

[0156] Figure 4 This is a schematic flowchart of a process for performing a configuration check on a server cluster in the server cluster dimension provided by an embodiment of the present application.

[0157] As Figure 4 shown, first, based on the description information of the server cluster for which the configuration check needs to be performed, determine the configuration baseline information. Then, the configuration baseline information can be defined (i.e., the baseline definition shown in Figure 4 ). At this time, based on the configuration baseline information, the configuration variables can be determined, and then the execution script including the configuration variables can be determined.

[0158] Then, the configuration data of the server cluster can be obtained. At this time, the first configuration data corresponding to each server can be obtained from each server included in the server cluster, the second configuration data can be obtained from the configuration management database, and the third configuration data can be obtained from the cluster monitoring platform. Then, the first configuration data, the second configuration data, and the third configuration data can be aggregated and then the configuration check can be performed.

[0159] At this time, context information can be constructed (for example, the execution rules or execution order can be determined according to the above process to construct context information), and a configuration check script can be determined based on this context information and the execution script.

[0160] Next, the variable values of the configuration variables can be parsed from the obtained configuration data, so as to execute the configuration check script and obtain the configuration check result.

[0161] Those skilled in the art can understand that in the above method of the specific implementation manner, the writing order of each step does not mean a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of each step should be determined according to its function and possible internal logic.

[0162] Figure 5 The structural schematic diagram of a configuration check device provided by an embodiment of the present application is as Figure 5 shown. The configuration check device 500 includes:

[0163] A first determination unit 501, configured to determine configuration baseline information based on the description information of the server cluster; wherein, the description information indicates the configuration check requirements and the cluster configuration information in the server cluster in a first format; the configuration baseline information indicates the configuration items to be checked that need to be configured checked in a second format; the configuration items to be checked indicate the configuration items that need to be coordinated with each other in the server cluster and / or in each server in the server cluster.

[0164] A second determination unit 502, configured to determine a configuration check script including configuration variables based on the configuration baseline information; wherein, the configuration variables indicate the dynamic configuration items of the server cluster; the dynamic configuration items indicate the configuration items that need to be separately configured for each server in the server cluster.

[0165] A data acquisition unit 503, configured to acquire the configuration data of the server cluster.

[0166] A configuration check unit 504, configured to perform a configuration check on the server cluster based on the configuration data and the configuration check script, and obtain a configuration check result.

[0167] Figure 6 The structural schematic diagram of another configuration check device provided by an embodiment of the present application is as Figure 6 shown. The configuration check device 600 includes:

[0168] The first determination unit 601 is configured to determine configuration baseline information based on the description information of the server cluster; wherein, the description information indicates configuration check requirements and cluster configuration information in the server cluster in a first format; the configuration baseline information indicates, in a second format, configuration items to be checked that require configuration checks; the configuration items to be checked indicate configuration items that need to be coordinated with each other in the server cluster and / or in each server in the server cluster.

[0169] The second determination unit 602 is configured to determine a configuration check script including configuration variables based on the configuration baseline information; wherein, the configuration variables indicate dynamic configuration items of the server cluster; the dynamic configuration items indicate configuration items that each server in the server cluster needs to configure separately.

[0170] In one example, the second determination unit 602 is configured to: when the configuration items to be checked include multiple sub-configuration items, determine the configuration check type corresponding to the configuration baseline information; wherein, the configuration check type indicates the check dimension for performing a configuration check on the server cluster; based on the configuration check type, determine configuration variables that match the configuration check type; based on the configuration variables, determine the execution scripts corresponding to the configuration item values of each sub-configuration item in the configuration items to be checked indicated by the configuration baseline information, to obtain a configuration check script.

[0171] In one example, the second determination unit 602 includes:

[0172] The first sub-determination module 6021 is configured to, when the check dimension for performing a configuration check indicated by the configuration check type is the server cluster dimension, determine the association relationship between the sub-configuration items based on the cluster configuration information in the server cluster; wherein, the association relationship indicates the dependency relationship between the sub-configuration items when the server cluster is running normally; based on the association relationship, determine the execution rules of the execution scripts corresponding to the configuration item values of each sub-configuration item; wherein, the execution rules correspond to the association relationship; based on the execution scripts and the execution rules corresponding to the configuration item values of each sub-configuration item in the configuration items to be checked indicated by the configuration baseline information, determine a configuration check script.

[0173] In one example, the second determination unit 602 includes:

[0174] The second sub-determination module 6022 is configured to, when the check dimension for performing a configuration check indicated by the configuration check type is the server dimension, determine the execution order of the execution scripts corresponding to the configuration item values of each sub-configuration item; wherein, the execution order corresponds to the configuration order when the servers that need to perform configuration checks configure each sub-configuration item; based on the execution scripts and the execution order corresponding to the configuration item values of each sub-configuration item in the configuration items to be checked indicated by the configuration baseline information, determine a configuration check script.

[0175] The data acquisition unit 603 is used to acquire the configuration data of the server cluster.

[0176] In one example, the data acquisition unit 603 includes:

[0177] The first sub-acquisition module 6031 is used to acquire the first configuration data corresponding to each server from each server included in the server cluster; wherein, the first configuration data is the data for configuring the current server; acquire the second configuration data from the configuration management database; wherein, the second configuration data indicates the dependency relationships between the various configuration items included in the server cluster; acquire the third configuration data from the cluster monitoring platform; wherein, the third configuration data indicates the cluster-related information of the server cluster; summarize the first configuration data, the second configuration data, and the third configuration data to obtain the configuration data of the server cluster.

[0178] In one example, the data acquisition unit 603 includes:

[0179] The second sub-acquisition module 6032 is used to acquire the configuration data of the server cluster in response to a configuration detection instruction for the server cluster; wherein, the configuration detection instruction is used to request to acquire the configuration data corresponding to the server cluster.

[0180] In one example, the data acquisition unit 603 includes:

[0181] The third sub-acquisition module 6033 is used to acquire the fourth configuration data corresponding to the configuration items to be inspected indicated by the configuration baseline information from each server included in the server cluster to obtain the configuration data of the server cluster.

[0182] The configuration check unit 604 is used to perform a configuration check on the server cluster based on the configuration data and the configuration check script to obtain a configuration check result.

[0183] In one example, the configuration check unit 604 is used to:

[0184] Parse the variable values of the configuration variables included in the configuration check script based on the configuration data; execute the configuration check script based on the variable values to obtain a configuration check result.

[0185] Figure 7 The structural schematic diagram of a computer device provided by an embodiment of the present application is as Figure 7 shown. The computer device 700 includes: a memory 701 and a processor 702.

[0186] The memory 701; a memory for storing executable instructions of the processor 702.

[0187] Wherein, the processor 702 is configured to execute the method provided in the above embodiment.

[0188] The computer device further includes a receiver 703 and a transmitter 704. The receiver 703 is used to receive instructions and data sent by an external device, and the transmitter 704 is used to send instructions and data to the external device.

[0189] Figure 8 is a block diagram of a computer device shown according to an exemplary embodiment. The device can be a mobile device, a computer, a digital broadcast terminal, a messaging device, a task console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0190] The apparatus 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input / output (I / O) interface 812, a sensor component 814, and a communication component 816.

[0191] The processing component 802 generally controls the overall operation of the apparatus 800, such as operations associated with display, telephone calls, data communication, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-described method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.

[0192] The memory 804 is configured to store various types of data to support the operation of the apparatus 800. Examples of such data include instructions for any application or method operating on the apparatus 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, a magnetic disk, or an optical disk.

[0193] The power component 806 provides power to the various components of the apparatus 800. The power component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 800.

[0194] The multimedia component 808 includes a screen that provides an output interface between the device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can sense not only the boundaries of touch or swipe actions but also detect the duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front camera and the rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.

[0195] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC) that is configured to receive external audio signals when the device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals can be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, the audio component 810 further includes a speaker for outputting audio signals.

[0196] The I / O interface 812 provides an interface between the processing component 802 and a peripheral interface module, which can be a keyboard, a click wheel, buttons, etc. These buttons can include, but are not limited to: a home button, a volume button, a power button, and a lock button.

[0197] The sensor component 814 includes one or more sensors for providing an assessment of the various aspects of the state of the device 800. For example, the sensor component 814 can detect the on / off state of the device 800, the relative positioning of components, such as the display and the keypad of the device 800. The sensor component 814 can also detect a change in the position of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration / deceleration of the device 800, and the temperature change of the device 800. The sensor component 814 can include a proximity sensor that is configured to detect the presence of nearby objects without any physical contact. The sensor component 814 can also include a light sensor, such as a CMOS or a CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 814 can further include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0198] The communication component 816 is configured to facilitate communication, in a wired or wireless manner, between the device 800 and other devices. The device 800 may access a communication network based on communication standards, such as WiFi, 2G, 3G, 4G, 5G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0199] In an exemplary embodiment, the device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above method.

[0200] The embodiments of the present application also provide a computer-readable storage medium, on which computer-executable instructions are stored. When the computer-executable instructions are run by a processor, the steps of the configuration check method in the above method embodiments are performed. Among them, the storage medium may be a volatile or non-volatile computer-readable storage medium.

[0201] The embodiments of the present application also provide a computer program product, which carries computer-executable instructions. The instructions included in the computer-executable instructions can be used to perform the steps of the configuration check method in the above method embodiments. For details, please refer to the above method embodiments and will not be elaborated here.

[0202] Those skilled in the art will readily conceive of other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any variations, uses, or adaptations of the present application, which follow the general principles of the present application and include common general knowledge or conventional technical means in the technical field not disclosed in the present application. The specification and embodiments are only regarded as exemplary, and the true scope and spirit of the present application are pointed out by the following claims.

[0203] It should be understood that the present application is not limited to the exact structures already described and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present application is only limited by the appended claims.

Claims

1. A configuration checking method, characterized in that, The method includes: Determining configuration baseline information based on the description information of the server cluster; wherein, the description information indicates configuration check requirements and cluster configuration information in the server cluster in a first format; the configuration baseline information indicates configuration items to be checked that require configuration checks in a second format; the configuration items to be checked indicate configuration items that need to be coordinated with each other in the server cluster and / or in each server in the server cluster; Determining a configuration check script including configuration variables based on the configuration baseline information; wherein, the configuration variables indicate dynamic configuration items of the server cluster; the dynamic configuration items indicate configuration items that need to be configured separately for each server in the server cluster; Obtaining the configuration data of the server cluster, and performing a configuration check on the server cluster based on the configuration data and the configuration check script to obtain a configuration check result.

2. The method according to claim 1, characterized in that, The configuration items to be checked include multiple sub-configuration items; the determining a configuration check script including configuration variables based on the configuration baseline information includes: Determining a configuration check type corresponding to the configuration baseline information; wherein, the configuration check type indicates a check dimension for performing a configuration check on the server cluster; Determining configuration variables that match the configuration check type based on the configuration check type; Based on the configuration variables, determining execution scripts corresponding to the configuration item values of each of the sub-configuration items in the configuration items to be checked indicated by the configuration baseline information to obtain the configuration check script.

3. The method according to claim 2, wherein The check dimension for performing a configuration check indicated by the configuration check type is the server cluster dimension; the determining execution scripts corresponding to the configuration item values of each of the sub-configuration items in the configuration items to be checked indicated by the configuration baseline information based on the configuration variables to obtain the configuration check script includes: Determining the association relationship between the sub-configuration items based on the cluster configuration information in the server cluster; wherein, the association relationship indicates the dependency relationship between the sub-configuration items when the server cluster is running normally; Determining an execution rule of the execution scripts corresponding to the configuration item values of each of the sub-configuration items based on the association relationship; wherein, the execution rule corresponds to the association relationship; Determining the configuration check script based on the execution scripts corresponding to the configuration item values of each of the sub-configuration items in the configuration items to be checked indicated by the configuration baseline information and the execution rule.

4. The method according to claim 2, characterized in that The check dimension for performing a configuration check indicated by the configuration check type is the server dimension; the determining execution scripts corresponding to the configuration item values of each of the sub-configuration items in the configuration items to be checked indicated by the configuration baseline information based on the configuration variables to obtain the configuration check script includes: Determining the execution order of the execution scripts corresponding to the configuration item values of each of the sub-configuration items; wherein, the execution order corresponds to the configuration order when the server to be configured checks configures each of the sub-configuration items. Determine the configuration check script based on the execution scripts and the execution order corresponding to the configuration item values of each sub-configuration item in the to-be-checked configuration items indicated by the configuration baseline information.

5. The method according to claim 3, characterized in that, The obtaining the configuration data of the server cluster includes: Obtain the first configuration data corresponding to each server from each server included in the server cluster; wherein, the first configuration data is data for configuring the current server. Obtain the second configuration data from the configuration management database; wherein, the second configuration data indicates the dependency relationships between the configuration items included in the server cluster. Obtain the third configuration data from the cluster monitoring platform; wherein, the third configuration data indicates the cluster-related information of the server cluster. Summarize the first configuration data, the second configuration data, and the third configuration data to obtain the configuration data of the server cluster.

6. The method according to claim 3, wherein The obtaining the configuration data of the server cluster includes: In response to a configuration detection instruction for the server cluster, obtain the configuration data of the server cluster; wherein, the configuration detection instruction is used to request to obtain the configuration data corresponding to the server cluster.

7. The method according to claim 4, characterized in that, The obtaining the configuration data of the server cluster includes: Obtain the fourth configuration data corresponding to the to-be-checked configuration items indicated by the configuration baseline information from each server included in the server cluster to obtain the configuration data of the server cluster.

8. The method according to any one of claims 1 to 7, characterized in that The performing a configuration check on the server cluster based on the configuration data and the configuration check script to obtain a configuration check result includes: Based on the configuration data, parse the variable values of the configuration variables included in the configuration check script. Based on the variable values, execute the configuration check script to obtain the configuration check result.

9. A configuration checking device, characterized in that, Includes: A first determination unit, configured to determine configuration baseline information based on the description information of the server cluster; wherein, the description information indicates the configuration check requirements and the cluster configuration information in the server cluster in a first format; the configuration baseline information indicates the to-be-checked configuration items that need to be subject to configuration checks in a second format; the to-be-checked configuration items indicate the configuration items that need to be coordinated with each other in the server cluster and / or in each server in the server cluster. A second determination unit, configured to determine a configuration check script including configuration variables based on the configuration baseline information; wherein, the configuration variables indicate the dynamic configuration items of the server cluster; the dynamic configuration items indicate the configuration items that need to be configured separately for each server in the server cluster. A data acquisition unit, configured to acquire the configuration data of the server cluster. A configuration check unit, configured to perform a configuration check on the server cluster based on the configuration data and the configuration check script to obtain a configuration check result.

10. A computer device, characterized in that, Includes: A processor, and a memory communicatively connected to the processor; The memory stores computer execution instructions; The processor executes the computer execution instructions stored in the memory to implement the configuration check method according to any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions that, when executed by a processor, are used to implement the configuration check method according to any one of claims 1 to 8.