A method, device, equipment and storage medium for generating server deployment parameters
By obtaining the fact data of the server to be deployed and using the structured query language database to filter target rules, the problem of low efficiency and poor accuracy of server deployment configuration parameters in the financial technology field is solved, an efficient and accurate deployment process is achieved, and resource overhead is saved.
Patent Information
- Application Number
- CN202011451004.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-08
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2040-12-08
AI Technical Summary
In the existing technology, determining server deployment configuration parameters has the problems of low efficiency, poor accuracy, and high cost, especially under the high security and real-time requirements in the financial technology field.
By obtaining the factual data of the server to be deployed, the structured query language database is used to filter out the target rules associated with the attributes to be configured. If the matching conditions are met, the corresponding parameters are configured, which avoids file reading and loading and saves rule engine system resources.
It achieves accurate and efficient deployment of server configuration parameters, reduces resource overhead, and improves deployment efficiency and accuracy.
Smart Images

Figure 00000000_0000
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of data processing technology of financial technology (Fintech), and relate to but are not limited to a method, apparatus, device and storage medium for generating server deployment parameters. Background Art
[0002] With the development of computer computing, more and more technologies are applied in the financial field. The traditional financial industry is gradually transforming to financial technology (Fintech). However, due to the security and real-time requirements of the financial industry, Fintech also puts forward higher requirements for technology. In the field of Fintech, with the continuous enrichment and improvement of the banking and financial system, the demand for servers in the financial system has also increased dramatically. How to quickly and accurately determine the configuration parameters required for the server to be deployed to the system has become an urgent problem to be solved.
[0003] In the related art, determining the configuration parameters required for deploying a server to a system requires an operator to manually specify the configuration parameters. This deployment method has at least the problems of low efficiency, high deployment cost, and poor accuracy. Summary of the invention
[0004] Embodiments of the present application provide a method, apparatus, device, and storage medium for generating server deployment parameters to solve at least the problems of low efficiency, high deployment cost, and poor accuracy in the related art.
[0005] The technical solution of the embodiment of the present application is implemented as follows:
[0006] The embodiment of the present application provides a method, comprising: obtaining fact data of a server to be deployed; wherein the fact data comprises a first identifier having a reference attribute, a first attribute value corresponding to the first identifier, and a second identifier having an attribute to be configured;
[0007] Filtering out a target rule associated with the second identifier from a structured query language database of the server to be deployed;
[0008] If the first identifier is the same as the target identifier in the target rule, and the first attribute value and the target attribute value corresponding to the target identifier meet a matching condition, the target parameter corresponding to the second identifier in the target rule is configured as the configuration parameter corresponding to the second identifier.
[0009] The embodiment of the present application provides a device, comprising: an acquisition module, used to acquire fact data of a server to be deployed; wherein the fact data of the server to be deployed includes a first identifier with a reference attribute, a first attribute value corresponding to the first identifier, and a second identifier with an attribute to be configured;
[0010] A processing module is used to filter out a target rule associated with the second identifier from a structured query language database of the server to be deployed; if the first identifier is the same as the target identifier in the target rule, and the first attribute value and the target attribute value corresponding to the target identifier meet a matching condition, configure the target parameter corresponding to the second identifier in the target rule to be the configuration parameter corresponding to the second identifier.
[0011] The present application provides a device, including:
[0012] The memory is used to store executable instructions; the processor is used to implement the above method when executing the executable instructions stored in the memory.
[0013] An embodiment of the present application provides a storage medium storing executable instructions for causing a processor to execute and implement the above method.
[0014] The embodiments of the present application have the following beneficial effects:
[0015] By obtaining the fact data of the server to be deployed; wherein the fact data includes a first identifier with a baseline attribute, a first attribute value corresponding to the first identifier, and a second identifier with an attribute to be configured; from the structured query language database of the server to be deployed, filtering out the target rule associated with the second identifier; if the first identifier is the same as the target identifier in the target rule, and the first attribute value and the target attribute value corresponding to the target identifier satisfy a matching condition, configuring the target parameter corresponding to the second identifier in the target rule to be the configuration parameter corresponding to the second identifier; that is, the present application determines the data to be configured in the fact data of the current server to be deployed based on the data contained in the rules stored in the structured query language database, which not only realizes accurate and efficient deployment of the server's configuration parameters, but also because the rules are stored in the MySQL database, there is no need to read and load files, saving rule engine system components and resource overhead. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 It is a flowchart of a method for generating server deployment parameters provided in the related art;
[0017] Figure 2 This is an optional architecture diagram of a terminal provided in an embodiment of the present application;
[0018] Figure 3 It is an optional flow chart of the method for generating server deployment parameters provided in an embodiment of the present application;
[0019] Figure 4It is an optional flow chart of the method for generating server deployment parameters provided in an embodiment of the present application;
[0020] Figure 5 It is an optional flow chart of the method for generating server deployment parameters provided in an embodiment of the present application;
[0021] Figure 6 It is an optional flow chart of the method for generating server deployment parameters provided in an embodiment of the present application;
[0022] Figure 7 It is an optional flow chart of the method for generating server deployment parameters provided in an embodiment of the present application;
[0023] Figure 8 It is an optional flow chart of the method for generating server deployment parameters provided in an embodiment of the present application;
[0024] Fig. 9 It is an optional flowchart of the method for generating server deployment parameters provided in an embodiment of the present application. DETAILED DESCRIPTION
[0025] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.
[0026] In the following description, reference is made to "some embodiments", which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict. Unless otherwise defined, all technical and scientific terms used in the embodiments of the present application have the same meaning as those commonly understood by those skilled in the art of the technical field of the embodiments of the present application. The terms used in the embodiments of the present application are only for the purpose of describing the embodiments of the present application and are not intended to limit the present application.
[0027] 1) Drools is a widely used business rule engine written in Java.
[0028] 2) Redundant Arrays of Independent Disks (RAID) is a disk group with huge capacity, which is composed of many independent disks. The data provided by individual disks is used to improve the performance of the entire disk system. Using this technology, data is divided into many segments and stored on each hard disk.
[0029] 3) JavaScript Object Notation (JSON) is a lightweight data exchange format. It is based on a subset of ECMAScript (the JS specification developed by the European Computer Association) and uses a text format that is completely independent of the programming language to store and represent data. The simplicity and clear hierarchical structure make JSON an ideal data exchange language. It is easy for people to read and write, and it is also easy for machines to parse and generate, and it effectively improves network transmission efficiency.
[0030] In order to better understand the method for generating server deployment parameters provided in the embodiment of the present application, the method for generating server deployment parameters in the related art is first described:
[0031] In the related art, before deploying a server to a system, it is necessary to obtain the configuration parameters required for deployment, such as the operating system, network configuration, and RAID structure. The following two methods are often used to obtain the configuration parameters required for server deployment. The first method is as follows: Figure 1 As shown in the first example, operators specify configuration parameters such as operating system, RAID structure, and network configuration based on existing facts or needs; the second method is to add an open source rule engine such as Drools to the existing system and automatically generate configuration parameters through the rule engine.
[0032] However, when using the first method mentioned above, the operator specifies or hard codes it into the program according to the actual business scenario, which has problems such as low efficiency and poor accuracy. When using the second method mentioned above, firstly, the rules of Drools are stored in the form of files, which increases the resource overhead of the system for the generation, verification, storage and loading of rules; secondly, when adding the open source rule engine Drools to the existing system, Drools needs to be developed, adapted and transformed to realize the data interaction between the existing system and the rule engine Drools. As can be seen from the above, when determining the configuration parameters for server deployment, there are at least problems such as slow loading of rules, low efficiency, poor accuracy, high development cost, and increased complexity of the existing system.
[0033] The following describes an exemplary application of the device for generating server deployment parameters provided in an embodiment of the present application. The device for generating server deployment parameters provided in an embodiment of the present application can be implemented as any terminal with a screen display function, such as a laptop, a tablet computer, a desktop computer, an intelligent robot, etc., and can also be implemented as a server. The following describes an exemplary application when the device for generating server deployment parameters is implemented as a terminal.
[0034] See also Figure 2 , Figure 2is a schematic diagram of the structure of the terminal 100 provided in an embodiment of the present application, Figure 2 The terminal 100 shown includes: at least one processor 110, at least one network interface 120, a user interface 130 and a memory 150. The various components in the terminal 100 are coupled together via a bus system 140. It is understood that the bus system 140 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 140 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, Figure 2 Various buses are labeled as bus system 140 .
[0035] The processor 110 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., where the general-purpose processor can be a microprocessor or any conventional processor, etc.
[0036] The user interface 130 includes one or more output devices 131 that enable presentation of media content, including one or more speakers and / or one or more visual display screens. The user interface 130 also includes one or more input devices 132, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.
[0037] The memory 150 may be removable, non-removable or a combination thereof. Exemplarily, hardware devices include solid-state memory, hard disk drive, optical disk drive, etc. The memory 150 may optionally include one or more storage devices physically away from the processor 110. The memory 150 includes a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memory. The non-volatile memory may be a read-only memory (ROM), and the volatile memory may be a random access memory (RAM). The memory 150 described in the embodiments of the present application is intended to include any suitable type of memory. In some embodiments, the memory 150 is capable of storing data to support various operations, examples of which include programs, modules, and data structures or subsets or supersets thereof, as exemplarily described below.
[0038] Operating system 151, including system programs for processing various basic system services and performing hardware-related tasks, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and processing hardware-based tasks;
[0039] A network communication module 152, for reaching other computing devices via one or more (wired or wireless) network interfaces 120, exemplary network interfaces 120 include: Bluetooth, Wireless LAN (WiFi), and Universal Serial Bus (USB);
[0040] The input processing module 153 is used to detect one or more user inputs or interactions from one of the one or more input devices 132 and translate the detected inputs or interactions.
[0041] In some embodiments, the device provided in the embodiments of the present application can be implemented in software. Figure 2 A device 154 for generating server deployment parameters stored in the memory 150 is shown. The device 154 for generating server deployment parameters may be a device for generating server deployment parameters in the terminal 100, which may be software in the form of a program or a plug-in, and includes the following software modules: an acquisition module 1541, a processing module 1542, and these modules are logical, so they can be arbitrarily combined or further split according to the functions implemented. The functions of each module will be described below.
[0042] In other embodiments, the device provided in the embodiments of the present application can be implemented in hardware. As an example, the device provided in the embodiments of the present application can be a processor in the form of a hardware decoding processor, which is programmed to execute the method for generating server deployment parameters provided in the embodiments of the present application. For example, the processor in the form of a hardware decoding processor can adopt one or more application specific integrated circuits (Application Specific Integrated Circuit, ASIC), DSP, programmable logic device (Programmable Logic Device, PLD), complex programmable logic device (Complex Programmable Logic Device, CPLD), field programmable gate array (Field-Programmable Gate Array, FPGA) or other electronic components.
[0043] The method for generating server deployment parameters provided by the embodiment of the present application will be described below in conjunction with the exemplary application and implementation of the terminal 100 provided by the embodiment of the present application. Figure 3 , Figure 3 This is an optional flow chart of the method for generating server deployment parameters provided in the embodiment of the present application, which will be combined with Figure 3 The steps shown are explained,
[0044] Step 201: Obtain factual data of the server to be deployed.
[0045] The fact data of the server to be deployed includes a first identifier with a reference attribute, a first attribute value corresponding to the first identifier, and a second identifier with an attribute to be configured.
[0046] Among them, the server is a device that provides computing services, the baseline attributes include the hardware device, the network area to which the server belongs, the manufacturer of the server and the activation code of the server; the attributes to be configured include the attributes that need to be further deployed based on the baseline attributes, such as the network configuration of the hardware device included in the baseline attributes, the storage structure of the hardware device and the operating environment.
[0047] The first identifier is an identifier corresponding to the hardware device, the network area of the server, the manufacturer of the server, and the activation code of the server in the benchmark attributes; exemplarily, the first identifier can be the serial number, manufacturer model, and network area of the server to be deployed, and the first identifier can also be the CPU architecture; the first attribute value is a value corresponding to the first identifier, exemplarily, the first identifier is the CPU architecture, and the corresponding first attribute value is X86.
[0048] The second identifier is an identifier of a property to be configured, such as a network configuration of a hardware device, a storage structure of a hardware device, and an operating environment; illustratively, the second identifier may be an operating system and a network configuration of a server to be deployed, and the second identifier may also be a RAID structure.
[0049] In the embodiment of the present application, the terminal obtains the first identifier with the reference attribute, the first attribute value corresponding to the first identifier, and the second identifier with the attribute to be configured, which are included in the fact data in the server to be deployed.
[0050] Step 202: Filter out a target rule associated with the second identifier from a structured query language database of the server to be deployed.
[0051] The target rule is a pre-generated rule based on the target identifier and the target attribute value corresponding to the target identifier. Specifically, the target rule can be understood as a rule in which the first identifier is the same as the target identifier in the target rule, and the first attribute value satisfies the target attribute value corresponding to the target identifier. Here, the target rule is stored in the structured query language database of the server to be deployed.
[0052] In an embodiment of the present application, the terminal filters out the target rule associated with the second identifier from the structured query language (SQL) database of the server to be deployed based on the second identifier of the attribute to be configured; in this way, the terminal obtains the target rule associated with the second identifier from the local database of the server without the need to read and load the file, thereby saving rule engine system components and resource overhead.
[0053] Here, the target rule generally adopts the production knowledge representation method, which is one of the commonly used knowledge representation methods. The basic form of the production is P→Q or IF P THEN Q, where P is the premise of the production, also known as the rule antecedent (left-hand side, LHS). P is composed of a logical combination of facts and is used to determine whether the production can be used. The prerequisite; Q is a set of conclusions or operations, also known as the rule result (right-hand side, RHS). When the premise P is met, the conclusion or action Q that should be performed is obtained. For example,
[0054] When the server to be deployed is equipped with an array card, the server to be deployed can support array configuration. At this time, the rule represented by the production knowledge representation method is: IF the server to be deployed is equipped with an array card THEN the server to be deployed can support array configuration.
[0055] When the server to be deployed can support array configuration and the number of hard disks of the server to be deployed is equal to 4, the server to be deployed can be configured with RAID 5. At this time, the rule represented by the production knowledge representation method is: IF the server to be deployed can support array configuration AND the number of hard disks of the server to be deployed is equal to 4 THEN configure RAID 5.
[0056] When the CPU architecture of the server to be deployed is X86, the operating system of the server to be deployed can select Centos 7. At this time, the rule represented by the production knowledge representation method is: IF the CPU architecture of the server to be deployed is X86 THEN the operating system selects Centos7.
[0057] Step 203: If the first identifier is the same as the target identifier in the target rule, and the first attribute value and the target attribute value corresponding to the target identifier meet a matching condition, configure the target parameter corresponding to the second identifier in the target rule to be the configuration parameter corresponding to the second identifier.
[0058] The target identifier is an identifier pre-set in the target rule, and the target attribute value is a value corresponding to the target identifier.
[0059] Here, satisfying the matching condition between the first attribute value and the target attribute value corresponding to the target identifier can be understood as the degree of match between the target attribute value and the first attribute value being greater than a preset matching degree threshold. Satisfying the matching condition between the first attribute value and the target attribute value corresponding to the target identifier can also be understood as the target attribute value and the first attribute value being completely consistent. This application does not impose any specific restrictions.
[0060] In an embodiment of the present application, the terminal matches the first identifier in the server to be deployed with the target identifier in the target rule. If the first identifier is the same as the target identifier, and the first attribute value and the target attribute value corresponding to the target identifier satisfy the matching condition, the terminal configures the target parameter corresponding to the second identifier in the target rule, which is the configuration parameter corresponding to the second identifier. Here, the configuration parameter is the deployment parameter required to deploy the server.
[0061] The method for generating server deployment parameters provided in an embodiment of the present application is by obtaining fact data of the server to be deployed; wherein the fact data includes a first identifier with a reference attribute, a first attribute value corresponding to the first identifier, and a second identifier with an attribute to be configured; a target rule associated with the second identifier is screened out from a structured query language database of the server to be deployed; if the first identifier is the same as the target identifier in the target rule, and a matching condition is satisfied between the first attribute value and the target attribute value corresponding to the target identifier, the target parameter corresponding to the second identifier in the target rule is configured as the configuration parameter corresponding to the second identifier; that is, the present application determines the data to be configured in the fact data of the current server to be deployed based on the data contained in the rules stored in the structured query language database, which not only realizes accurate and efficient deployment of the configuration parameters of the server, but also because the rules are stored in the MySQL database, there is no need to read and load files, thereby saving rule engine system components and resource overhead.
[0062] See also Figure 4 , Figure 4 This is an optional flow chart of the method for generating server deployment parameters provided in the embodiment of the present application, which will be combined with Figure 4 The steps shown are explained,
[0063] Step 301: Obtain factual data of the server to be deployed.
[0064] The fact data includes a first identifier having a reference attribute, a first attribute value corresponding to the first identifier, and a second identifier having an attribute to be configured.
[0065] Step 302: Determine a plurality of rules associated with the second identifier from a structured query language database.
[0066] In an embodiment of the present application, multiple rules are stored in the server to be deployed, and the terminal obtains multiple rules associated with the second identifier from the SQL database based on the second identifier, so as to match the rule identifiers and attribute values corresponding to the rule identifiers in the multiple rules with the first identifier and the first attribute value having the benchmark attribute.
[0067] Step 303: Based on the priorities of the multiple rules, select a candidate rule with a first priority level that is associated with the second identifier from the multiple rules.
[0068] The first priority is the candidate rule with the highest priority among the multiple rules.
[0069] In the embodiment of the present application, the terminal obtains the priorities of multiple rules, and based on the priorities of multiple rules, selects the candidate rule with the highest priority associated with the second identifier from the multiple rules; that is, a second identifier is associated with multiple candidate rules, and different candidate rules have different priorities. The candidate rule with the highest priority is matched first. If the matching condition is not met, the candidate rule with the second priority is replaced for matching. In this way, it is ensured that the parameters of the server to be deployed are always deployed according to the optimal rules in the big data, and the optimal deployment is achieved while the deployment is fast.
[0070] Step 304: If the first identifier is the same as the candidate identifier in the candidate rule with the first priority, and the first attribute value does not satisfy the matching condition with the candidate attribute value corresponding to the candidate identifier, select the target rule with the second priority from the structured query language database.
[0071] The second priority is lower than the first priority.
[0072] Here, the failure to satisfy the matching condition between the first attribute value and the candidate attribute value corresponding to the candidate identifier can be understood as the degree of matching between the first attribute value and the candidate attribute value is less than a preset matching degree threshold; the failure to satisfy the matching condition between the first attribute value and the candidate attribute value corresponding to the candidate identifier can also be understood as the first attribute value and the candidate attribute value being inconsistent, and this application does not make any specific restrictions.
[0073] In an embodiment of the present application, after the terminal determines the candidate rule with the highest priority associated with the second identifier, the first identifier in the server to be deployed is matched with the candidate identifier in the candidate rule. If the first identifier is the same as the candidate identifier, and the first attribute value and the candidate attribute value corresponding to the candidate identifier do not meet the matching condition, the terminal further filters out the target rule with a second priority that is less than the first priority from the SQL database.
[0074] In an achievable application scenario, the priority of candidate rules can be set based on the factual data of multiple deployed servers. Specifically, the content of different candidate rules is matched with the content of the factual data of multiple deployed servers. If the match is successful, the matching frequency of each candidate rule being matched with the factual data of each deployed server is determined during the matching process. Then, the priority of different candidate rules is determined based on the matching frequency. In this way, it is ensured that during the rule matching process, the candidate rules are matched in descending order of priority, and the selection conflict is avoided when there are multiple candidate rules. The optimal deployment is achieved while the deployment is fast.
[0075] In the present application embodiment, Figure 5 As shown, in step 304, if the first identifier is the same as the candidate identifier in the candidate rule with the first priority, and the first attribute value does not satisfy the matching condition with the candidate attribute value corresponding to the candidate identifier, a target rule with the second priority is screened out from the structured query language database, which can be achieved by the following steps:
[0076] Step 3041: If the first identifier is the same as the candidate identifier in the candidate rule with the first priority, and the first attribute value and the candidate attribute value corresponding to the candidate identifier do not satisfy a matching condition, select a candidate rule with a third priority from the structured query language database.
[0077] The third priority is lower than the first priority, and the third priority is higher than the second priority.
[0078] In an embodiment of the present application, the terminal matches the first identifier with a candidate identifier in a candidate rule with a first priority. If the first identifier is the same as the candidate identifier, it further determines whether the first attribute value corresponding to the first identifier and the candidate attribute value corresponding to the candidate identifier satisfy a matching condition. If it is determined that the first attribute value and the candidate attribute value corresponding to the candidate identifier do not satisfy the matching condition, a candidate rule with a third priority is screened out from a structured query language database. In this way, the candidate rules are determined according to the priority order of the rules, and the data is matched with the candidate rules.
[0079] Step 3042: If the first identifier is the same as the candidate identifier in the candidate rule with the third priority, and the first attribute value and the candidate attribute value corresponding to the candidate identifier in the candidate rule with the third priority do not meet the matching condition, filter out the target rule with the second priority from the structured query language database.
[0080] In an embodiment of the present application, after the terminal filters out candidate rules with a third priority, the terminal matches the first identifier with the candidate identifier in the candidate rules with the third priority. If the first identifier is the same as the candidate identifier, it further determines whether the first attribute value corresponding to the first identifier and the candidate attribute value corresponding to the candidate identifier satisfy a matching condition. If it is determined that the first attribute value and the candidate attribute value corresponding to the candidate identifier do not satisfy the matching condition, the target rule with a second priority is filtered out from the structured query language database.
[0081] In a feasible scenario, when there are multiple candidate rules associated with the second identifier, they are matched in order from high to low priority until it is determined that the first identifier is the same as the candidate identifier, and the first attribute value and the attribute value corresponding to the candidate identifier meet the matching condition, and then the candidate rule is determined to be the target rule. In this way, not only is the selection conflict avoided when there are multiple candidate rules, but also the best target rule can be found according to the strategy of descending priority as a strong basis for deploying the configuration parameters of the current server, so as to achieve rapid deployment and optimal deployment.
[0082] Step 305: If the first identifier is the same as the target identifier in the target rule with the second priority, and the first attribute value and the target attribute value corresponding to the target identifier meet a matching condition, configure the target parameter corresponding to the second identifier in the target rule to be the configuration parameter corresponding to the second identifier.
[0083] In the embodiment of the present application, the target rule includes multiple meta-target rules, and the multiple meta-target rules are split by separators such as AND, so that the terminal matches multiple first identifiers with the meta-target identifiers in each meta-target rule. If the first identifier is the same as each meta-target identifier, and the first attribute value and the meta-target attribute value corresponding to each meta-target identifier meet the matching condition, the terminal configures the target parameter corresponding to the second identifier in the target rule as the configuration parameter corresponding to the second identifier. Here, the data structure of the meta-target rule MetaRuleInduction is the following structure, wherein the operator represents the relationship between the meta-target identifier and the meta-target attribute value, and here, the operator can be equal to, contain, and exist.
[0084]
[0085] In the embodiment of the present application, the fact data F1 of the server to be deployed is matched with the meta-target rule r1. Specifically, it can be achieved in the following way:
[0086] When the operator is equal, the implementation method of the fact data F1 of the server to be deployed and the meta-goal rule r1 is:
[0087]
[0088] When the operator is included, the implementation of the fact data F1 of the server to be deployed and the meta-goal rule r1 is as follows:
[0089]
[0090] When the operator is present, the implementation of the fact data F1 and meta-goal rule r1 of the server to be deployed is as follows:
[0091]
[0092] Here, the fact data F1 of the server to be deployed is matched with multiple meta-target rules r1. Specifically, it can be achieved in the following way:
[0093]
[0094] In an embodiment of the present application, the terminal matches the multiple first identifiers and multiple first identifier values with benchmark attributes included in the fact data of the server to be deployed with the meta-target identifiers and meta-target attribute values in each meta-target rule in the target rule one by one. In this way, the identifiers with benchmark attributes and the attribute values corresponding to the identifiers are matched one by one through the meta-target rules, so that the matching operation is concise and clear, and the matching efficiency is improved.
[0095] Here, combined Figure 6 The process of generating and storing rules in a structured query language database is further described.
[0096] Step 401: Obtain factual data of deployed servers.
[0097] The fact data of the deployed servers includes a plurality of sample identifiers with reference attributes, sample attribute values corresponding to the plurality of sample identifiers, a plurality of configuration identifiers with configuration attributes, and configuration values corresponding to the plurality of configuration identifiers.
[0098] In a feasible business scenario of generating server deployment parameters, the fact data of deployed servers can be obtained as a table as shown in Table 1. Among them, the multiple sample identifiers with benchmark attributes in the fact data of deployed servers include manufacturer, model, CPU architecture and network area, and the multiple configuration identifiers with configuration attributes include operating system, network configuration and RAID architecture.
[0099] Manufacturer model CPU Architecture Network Zone operating system Network Configuration RAID Structure HP X1 x86 DMZ centos7 la_wa raid5 DELL X1 x86 SF centos7 la raid50 HUAWEI X2 arm SF kylin7 la raid0 LENOVO X2 x86 DMZ centos7 la raid1
[0100] Table 1
[0101] Step 402: Based on the multiple sample attribute values and the multiple configuration values, determine at least one target sample identifier corresponding to any target configuration identifier in the multiple configuration identifiers from the multiple sample identifiers.
[0102] The target sample identifier includes a second identifier.
[0103] The target sample identifier is at least one sample identifier whose correlation with the target configuration identifier meets a correlation threshold, determined based on the correlation between each sample identifier and the target configuration identifier.
[0104] In the embodiment of the present application, first, the terminal determines any configuration identifier from multiple configuration identifiers as a target configuration identifier; second, based on multiple sample attribute values and configuration values corresponding to the target configuration identifier, the association degree between each sample identifier and the target configuration identifier is calculated; finally, based on the association degree between each sample identifier and the target configuration identifier, at least one target sample identifier whose association degree with the target configuration identifier meets the association degree threshold is determined from multiple sample identifiers. Here, calculating the association degree between each sample identifier and the target configuration identifier can be achieved by an information gain algorithm.
[0105] Exemplarily, the terminal selects any one configuration identifier such as the network configuration from multiple configuration identifiers including the operating system, the network configuration, and the RAID architecture as the target configuration identifier, and the multiple sample identifiers include the manufacturer, the model, the CPU architecture, and the network area. First, based on the network configuration attribute value corresponding to the network configuration identifier, the manufacturer attribute value corresponding to the manufacturer identifier, the CPU architecture attribute value corresponding to the CPU architecture identifier, and the network area attribute value corresponding to the network area identifier, the first correlation between the network configuration identifier and the manufacturer identifier is calculated, the second correlation between the network configuration identifier and the model identifier is calculated, the third correlation between the network configuration identifier and the CPU architecture identifier is calculated, and the fourth correlation between the network configuration identifier and the network area identifier is calculated; finally, based on the first correlation, the second correlation, the third correlation, and the fourth correlation, at least one target sample identifier whose correlation with the network configuration identifier meets the correlation threshold is determined from the multiple sample identifiers. In this way, in the process of generating rules, some target sample identifiers whose correlation with the target configuration identifier meets the correlation threshold are determined, so that rule learning can perform effective feature selection when facing a large number of sample identifiers.
[0106] In the present application embodiment, Figure 7As shown, step 402 determines at least one target sample identifier corresponding to any target configuration identifier among the multiple configuration identifiers from the multiple sample identifiers based on the multiple sample attribute values and the multiple configuration values, that is, determining the target sample identifier corresponding to any target configuration identifier based on the information gain algorithm, which can be implemented by the following steps:
[0107] Step 4021: Determine the information entropy of the target configuration identifier based on multiple configuration values.
[0108] Among them, information entropy is used to represent the uncertainty of the attribute value corresponding to the target configuration identifier that may be obtained.
[0109] In an embodiment of the present application, the terminal classifies multiple configuration values corresponding to the target configuration identifier to obtain the classified configuration values, and then determines the information entropy of the configuration values of each category, and accumulates the information entropy of the configuration values of each category to determine the information entropy of the target configuration identifier.
[0110] In a feasible business scenario of generating server deployment parameters, when the target configuration is identified as a network configuration, the network configuration is represented by C. The terminal classifies the network configuration value corresponding to the network configuration to obtain classified data C1, C2, ..., C i …C k , i is used to represent the category of network configuration, and i is a positive integer greater than 1 and less than K, K is the total number of categories of network configuration. Referring to Table 1, two different categories of network configurations C1 and C2 are taken as examples, where C1 is la_wa and C2 is la. First, determine the probability P(C1) that C1 is la_wa in the network configuration value, and determine the probability P(C2) that C2 is la in the network configuration value, and then substitute P(C1) and P(C2) into formula (1) to determine the information entropy H(C) of network configuration C.
[0111]
[0112] Step 4022: Based on multiple configuration values and multiple sample attribute values, determine the conditional entropy of the target configuration identifier when different target sample identifiers appear.
[0113] Among them, conditional entropy is used to represent the uncertainty of the target configuration identity when the sample identity is known.
[0114] In an embodiment of the present application, the terminal determines any sample identifier from multiple sample identifiers as the first sample identifier, and performs data classification on multiple sample attribute values corresponding to the first sample identifier to obtain the classified sample attribute values, and determines the information entropy of the target configuration identifier when there are sample attribute values of each category, and then determines the conditional entropy of the target configuration identifier when there are sample attribute values of each category, and accumulates the conditional entropy of the target configuration identifier when there are sample attribute values of each category, and further determines the conditional entropy of the target configuration identifier when the first target sample identifier appears. Here, the terminal determines the conditional entropy of the target configuration identifier when each sample identifier appears.
[0115] In a feasible business scenario of generating server deployment parameters, when the target configuration is identified as a network configuration, where the network configuration is represented by C, the terminal classifies the network configuration value corresponding to the network configuration to obtain the classified data C1, C2…C i …C k , i is used to represent the category of network configuration, and i is a positive integer greater than 1 and less than K, and K is the total number of categories of network configuration. Referring to Table 1, two different categories of network configurations C1 and C2 are taken as examples, where C1 is la_wa and C2 is la. The terminal determines any sample identifier from multiple sample identifiers as the first sample identifier, such as taking the network area as the first sample identifier, where the network area is represented by T. The terminal classifies the network area values corresponding to the network area to obtain classified data T1, T2…T j , j is used to represent the category of the network area, and j is a positive integer greater than 1. Referring to Table 1, two network areas T1 and T2 of different categories are taken as an example, where T1 is DMZ and T2 is SF. First, determine the probability P(C1|T1) that network configuration C1 is la_wa and the probability P(C2|T1) that network configuration C2 is la when network area T1 is DMZ, and then determine the information entropy H(C|T1) of network configuration C. At the same time, determine the probability P(C1|T2) that network configuration C1 is la_wa and the probability P(C2|T2) that network configuration C2 is la when network area T2 is SF, and then determine the information entropy H(C|T2) of network configuration C. Second, determine the probability P(T1) that T1 is DMZ in the network area value, and determine the probability P(T2) that T2 is SF in the network area value, and then substitute P(T1) and P(T2) into formula (2) to determine the conditional entropy H(C|T) of network configuration when the network area exists.
[0116]
[0117] Step 4023: Based on the information entropy of the target configuration identifier and each conditional entropy, determine the information gain of different target sample identifiers to the target configuration identifier.
[0118] Among them, information gain is used to indicate the degree of information gain of the target sample identifier to the target configuration identifier.
[0119] In the embodiment of the present application, the terminal determines the information gain of different target sample identifiers to the target configuration identifier based on the information entropy of the target configuration identifier and the conditional entropy of the target configuration identifier appearing when different target sample identifiers appear.
[0120] In a feasible business scenario for generating server deployment parameters, as shown in Table 2, when the target configuration identifier is a network configuration, where the network configuration is represented by C, and the network area is used as the first sample identifier, where the network area is represented by T, the terminal obtains the information entropy H(C) of the network configuration C, and when it is determined that the network area exists, the conditional entropy H(C|T) of the network configuration appears, and it is substituted into formula (3) to obtain the information gain IG(T) of the network area to the network configuration.
[0121] IG(T)=H(C)-H(C|T) (3)
[0122] Step 4024: Based on multiple information gains, determine at least one target sample identifier corresponding to any target configuration identifier in the multiple configuration identifiers from the multiple sample identifiers.
[0123] In an embodiment of the present application, the terminal obtains the information gain of different sample identifiers for each target configuration identifier, and determines at least one target sample identifier whose information gain with the target configuration identifier meets the information gain threshold. Exemplarily, when the target configuration identifier is a network configuration, two sample identifiers, namely the model and the network area, whose information gain with the network configuration meets the information gain threshold are determined as target sample identifiers, as shown in Table 2. It should be noted that the greater the information gain, the greater the change in information entropy and conditional entropy. The greater the change in information entropy and conditional entropy, the more conducive it is to determine at least one target sample identifier corresponding to any target configuration identifier among multiple configuration identifiers. In this way, in the process of generating rules, some target sample identifiers whose information gain with the target configuration identifier meets the information gain threshold are determined among multiple sample identifiers, so that rule learning can perform effective feature selection when facing a large number of sample identifiers.
[0124] model Network Zone Network Configuration X1 DMZ la_wa X2 DMZ la X1 SF la X2 SF la
[0125] Table 2
[0126] Step 403: Establish sample rules between different target sample identifiers and at least one target configuration identifier.
[0127] Among them, different rules in the multiple sample rules have different priorities, and the multiple sample rules include a target rule.
[0128] In the embodiment of the present application, the terminal establishes sample rules with each target configuration identifier based on the determined different target sample identifiers, thereby obtaining multiple sample rules. It should be noted that different rules of the multiple sample rules have different priorities, and the multiple sample rules include the target rule.
[0129] In the embodiment of the present application, after step 403 establishes sample rules between different target sample identifiers and at least one target configuration identifier, it can be implemented in the following manner:
[0130] Based on multiple sample identifiers, multiple sample attribute values, multiple configuration identifiers, multiple configuration values, and multiple sample rules of the fact data of the deployed server, a priority of each sample rule is set.
[0131] In the embodiment of the present application, the sample rule is obtained, and the sample identifier and sample attribute value in the sample rule are matched with each sample identifier and sample attribute value in the fact data of the deployed server. Each time a successful match is made, the priority of the sample rule is increased by 1, until the sample rule matches all the fact data of the deployed server, and the priority of the sample rule is determined, as shown in Table 3. In this way, the priority of the rule is set based on multiple factors, ensuring that the considerations in the priority setting process are comprehensive enough, and the obtained priority is more referenceable.
[0132] model Network Zone Network Configuration TF X1 DMZ la_wa 50 X2 DMZ la 90 X1 SF la 80 X2 SF la 70
[0133] Table 3
[0134] Step 404: Save the sample rules into a structured query language database.
[0135] In the embodiment of the present application, rule learning is performed based on the actual data of the deployed server, sample rules are established, and the sample rules are saved in the MySQL database. According to the deployment data in the real scene, a reliable deployment basis, i.e., the rules referenced in the deployment process, is formulated, providing strong data support for fast and accurate deployment.
[0136] In the embodiment of the present application, step 404 saves the sample rules into the structured query language database, which can be achieved in the following manner:
[0137] The target sample identifier in the rule antecedent in the matching rule is configured as an attribute in a JSON data structure; the target sample attribute value in the rule antecedent in the matching rule is configured as an attribute value in a JSON data structure; the relationship between the target sample identifier and the target sample attribute value is configured as an operator in the JSON data structure; and the configured JSON data structure is saved in a structured query language database.
[0138] Operators include symbols such as equality, inclusion, and existence.
[0139] In an achievable embodiment, the sample identifier and the sample attribute value corresponding to the sample identifier are converted into a JSON data structure as follows:
[0140]
[0141] In other embodiments of the present application, the rule antecedent in the matching rule includes multiple target sample identifiers and target sample attribute values corresponding to the multiple target sample identifiers; each target sample identifier is configured as an attribute in a JSON data structure, and each target sample attribute value is configured as an attribute value in a JSON data structure; the relationship between the target sample identifier and the target sample attribute value is configured as an operator in a JSON data structure; and multiple JSON data structures are connected by logical operators, such as multiple JSON data structures are connected by logical operators and; the configured multiple JSON data structures are saved in a structured query language database. It should be noted that the logical operator is also configured as a JSON data structure, as shown in Table 4.
[0142]
[0143] Table 4
[0144] In an implementable application scenario, the rule antecedent in the matching rule includes two sample identifiers and sample attribute values corresponding to the two sample identifiers. Each sample identifier and the sample attribute value corresponding to each sample identifier are specifically converted into a JSON data structure in the following format. The first array JSON data structure represents the CPU architecture attributes, attribute values, and the relationship between the attributes and attribute values of the server, that is, the CPU architecture is equal to X86; the third array JSON data structure represents the network area attributes, attribute values, and the relationship between the attributes and attribute values of the server, that is, the network area includes Tencent Public Network Gateway (Tencen t Gateway, TGW); the second array JSON data structure belongs to a special logical operator structure, which indicates that the logical operator is equal to and, that is, the first array JSON data structure and the third array JSON data structure are parallel structures.
[0145]
[0146] It should be noted that the JSON data structure of the rule antecedent is to connect multiple structures through a slice array. The sample identifier, sample attribute value and the relationship between the sample identifier and the sample attribute value are defined in a single structure. In this way, the rule antecedent is stored and format-checked through the JSON data structure, which improves the search efficiency and thus improves the efficiency of deploying the configuration parameters of the server.
[0147] See also Figure 8 , Figure 8 This is an optional flow chart of the method for generating server deployment parameters provided in the embodiment of the present application, which will be combined with Figure 8 The steps shown are explained,
[0148] Step 501: Obtain factual data of the server to be deployed.
[0149] The fact data includes a first identifier having a reference attribute, a first attribute value corresponding to the first identifier, and a second identifier having an attribute to be configured.
[0150] Step 502: There are multiple second identifiers, and target rules associated with each second identifier are screened out from the structured query language database of the server to be deployed.
[0151] Step 503: Perform parallel processing based on each target rule, the first identifier, the first attribute value and each second identifier.
[0152] In other embodiments of the present application, the terminal can also perform serial processing based on each target rule, the first identifier, the first attribute value and each second identifier. In this way, the terminal simplifies the entire reasoning process between each target rule and the first identifier and the first attribute value in generating the server deployment parameters by sacrificing the execution efficiency of the system.
[0153] Step 504: During the parallel processing, if the first identifier is the same as the target identifier in each target rule, and the first attribute value and the target attribute value corresponding to the target identifier meet the matching condition, configure the target parameters corresponding to the second identifier in each target rule to be the configuration parameters corresponding to the second identifier.
[0154] In an embodiment of the present application, the terminal processes in parallel the first identifier of the server to be deployed and the first attribute value corresponding to the first identifier, and multiple target rules associated with multiple second identifiers, so as to configure the target parameters corresponding to the second identifier in each target rule as the configuration parameters corresponding to the second identifier.
[0155] In a scenario where it is possible to generate server deployment parameters, such as Fig. 9 As shown, the terminal obtains the first identifier of the server to be deployed and the first attribute value corresponding to the first identifier, and obtains multiple second identifiers at the same time. Here, the multiple second identifiers are respectively an operating system, a RAID structure, and a network configuration. Based on the multiple second identifiers, multiple target rules R1, R2, and R3 associated with the operating system are obtained, multiple target rules R4, R5, and R6 associated with the RAID structure are obtained, and multiple target rules R7, R8, and R9 associated with the network configuration are obtained. The multiple target rules R1, R2, and R3, the multiple target rules R4, R5, and R6, and the multiple target rules R7, R8, and R9 are processed in parallel to determine the target parameters corresponding to the operating system, the RAID structure, and the network configuration in each target rule, which are the configuration parameters corresponding to the operating system, the RAID structure, and the network configuration. In this way, when there are multiple second identifiers, the multiple target rules associated with the multiple second identifiers are processed in parallel to obtain multiple configuration parameters corresponding to the multiple second identifiers, so as to improve the deployment efficiency.
[0156] In a business scenario where it is possible to generate server deployment parameters, such as Fig. 9As shown, the terminal determines that the first identifier of the server to be deployed is not the same as the target identifier in the target rule, and the first attribute value and the target attribute value corresponding to the target identifier do not meet the matching condition. The terminal receives the input target parameter corresponding to the second identifier, and adds the first identifier of the server to be deployed, the first attribute value corresponding to the first identifier, the second identifier, and the input target parameter corresponding to the second identifier to the fact data of the deployed server to obtain the updated fact data of the deployed server, and based on the updated fact data of the deployed server, the target rule set where the target rule is located is adjusted and updated. In this way, the automatic update of the rule set is realized based on the machine learning method. Compared with the manual update of the rule set, not only the efficiency of the rule set update is improved, but also the accuracy of the rule set is improved.
[0157] The following is an exemplary structure of the device 154 for generating server deployment parameters provided in the embodiment of the present application implemented as a software module. In some embodiments, for example Figure 2 As shown, the software module stored in the device 154 for generating server deployment parameters in the memory 150 may be a device for generating server deployment parameters in the terminal 100, including:
[0158] The acquisition module 1541 is used to acquire fact data of the server to be deployed; wherein the fact data includes a first identifier having a reference attribute, a first attribute value corresponding to the first identifier, and a second identifier having an attribute to be configured;
[0159] The processing module 1542 is used to filter out a target rule associated with the second identifier from a structured query language database of the server to be deployed;
[0160] Processing module 1542 is also used to configure the target parameter corresponding to the second identifier in the target rule to be the configuration parameter corresponding to the second identifier if the first identifier is the same as the target identifier in the target rule and the first attribute value and the target attribute value corresponding to the target identifier meet the matching condition.
[0161] In some embodiments, processing module 1542 is also used to determine multiple rules associated with the second identifier from a structured query language database; based on the priorities of the multiple rules, filter out candidate rules with a first priority associated with the second identifier from the multiple rules; if the first identifier is the same as the candidate identifier in the candidate rule, and the first attribute value and the candidate attribute value corresponding to the candidate identifier do not meet the matching condition, filter out a target rule with a second priority from the structured query language database; wherein the second priority is less than the first priority.
[0162] In some embodiments, the acquisition module 1541 is also used to obtain fact data of deployed servers; wherein the fact data of deployed servers includes multiple sample identifiers with baseline attributes, sample attribute values corresponding to multiple sample identifiers, multiple configuration identifiers with configuration attributes, and configuration values corresponding to multiple configuration identifiers; the processing module 1542 is also used to determine at least one target sample identifier corresponding to any target configuration identifier in the multiple configuration identifiers from the multiple sample identifiers based on the multiple sample attribute values and the multiple configuration values; wherein the target sample identifier includes the second identifier; establish sample rules between different target sample identifiers and at least one target configuration identifier; wherein different rules in the multiple sample rules have different priorities, and the multiple sample rules include the target rule; and save the sample rules in a structured query language database.
[0163] In some embodiments, the processing module 1542 is also used to determine the information entropy of the target configuration identifier based on multiple configuration values; determine the conditional entropy of the target configuration identifier when different target sample identifiers appear based on multiple configuration values and multiple sample attribute values; determine the information gain of different target sample identifiers to the target configuration identifier based on the information entropy of the target configuration identifier and each conditional entropy; and determine, from multiple sample identifiers, at least one target sample identifier corresponding to any target configuration identifier among the multiple configuration identifiers based on multiple information gains.
[0164] In some embodiments, the processing module 1542 is further used to save the rule antecedents in the matching rule into the structured query language database according to the storage strategy of the JSON data structure.
[0165] In some embodiments, the processing module 1542 is further used to set the priority of each sample rule based on multiple sample identifiers, multiple sample attribute values, multiple configuration identifiers, multiple configuration values and multiple sample rules of the fact data of the deployed server.
[0166] In some embodiments, the processing module 1542 is also used to filter out different target rules associated with each second identifier from the structured query language database of the server to be deployed; perform parallel processing based on each target rule, the first identifier, the first attribute value and each second identifier; during the parallel processing, if the first identifier is the same as the target identifier in each target rule, and the first attribute value and the target attribute value corresponding to the target identifier meet the matching condition, determine the target parameter corresponding to the second identifier in each target rule, which is the configuration parameter corresponding to the second identifier.
[0167] The device for generating server deployment parameters provided in an embodiment of the present application obtains fact data of the server to be deployed; wherein the fact data includes a first identifier with a baseline attribute, a first attribute value corresponding to the first identifier, and a second identifier with an attribute to be configured; a target rule associated with the second identifier is screened out from a structured query language database of the server to be deployed; if the first identifier is the same as the target identifier in the target rule, and the first attribute value satisfies a matching condition with the target attribute value corresponding to the target identifier, the target parameter corresponding to the second identifier in the target rule is configured as the configuration parameter corresponding to the second identifier; that is, the present application determines the data to be configured in the fact data of the current server to be deployed based on the data contained in the rules stored in the structured query language database, which not only realizes accurate and efficient deployment of the configuration parameters of the server, but also because the rules are stored in the MySQL database, there is no need to read and load files, saving rule engine system components and resource overhead.
[0168] The present application embodiment provides a storage medium storing executable instructions, wherein the executable instructions are stored. When the executable instructions are executed by a processor, the processor will execute the method provided by the present application embodiment, for example, Figure 3-8 The method shown.
[0169] The storage medium provided by the present application obtains the fact data of the server to be deployed; wherein the fact data includes a first identifier with a baseline attribute, a first attribute value corresponding to the first identifier, and a second identifier with an attribute to be configured; a target rule associated with the second identifier is screened out from a structured query language database of the server to be deployed; if the first identifier is the same as the target identifier in the target rule, and the first attribute value and the target attribute value corresponding to the target identifier satisfy a matching condition, the target parameter corresponding to the second identifier in the target rule is configured as the configuration parameter corresponding to the second identifier; that is, the present application determines the data to be configured in the fact data of the current server to be deployed based on the data contained in the rules stored in the structured query language database, which not only realizes accurate and efficient deployment of the configuration parameters of the server, but also because the rules are stored in the MySQL database, there is no need to read and load files, saving rule engine system components and resource overhead.
[0170] In some embodiments, the storage medium can be a computer-readable storage medium, for example, a ferroelectric random access memory (FRAM), a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a flash memory, a magnetic surface memory, an optical disk, or a compact disk read-only memory (CD-ROM), etc.; it can also be various devices including one or any combination of the above memories.
[0171] In some embodiments, executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.
[0172] As examples, executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file storing other programs or data, such as one or more scripts in a Hypertext Markup Language (Hypertext Markup Language) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines, or code portions). As examples, executable instructions may be deployed to be executed on one computing device, or on multiple computing devices located at one location, or on multiple computing devices distributed at multiple locations and interconnected by a communication network.
[0173] The above is only an embodiment of the present application and is not intended to limit the protection scope of the present application. Any modifications, equivalent substitutions and improvements made within the spirit and scope of the present application are included in the protection scope of the present application.
Claims
1. A method for generating server deployment parameters, It is characterized in that include: Acquire fact data of the server to be deployed; wherein the fact data of the server to be deployed includes a first identifier having a reference attribute, a first attribute value corresponding to the first identifier, and a second identifier having an attribute to be configured; Acquire fact data of deployed servers; wherein the fact data of deployed servers includes a plurality of sample identifiers having reference attributes, a plurality of sample attribute values corresponding to the sample identifiers, a plurality of configuration identifiers having configuration attributes, and a plurality of configuration values corresponding to the configuration identifiers; Based on the plurality of the sample attribute values and the plurality of the configuration values, determining at least one target sample identifier corresponding to any target configuration identifier among the plurality of the configuration identifiers from the plurality of the sample identifiers; wherein the target sample identifier includes the second identifier; Establishing sample rules between different target sample identifiers and at least one target configuration identifier; wherein different rules in the plurality of sample rules have different priorities, and the plurality of sample rules include a target rule; Saving the sample rules in a structured query language database of the server to be deployed; Filtering the target rule associated with the second identifier from a structured query language database of the server to be deployed; If the first identifier is the same as the target identifier in the target rule, and the first attribute value and the target attribute value corresponding to the target identifier meet a matching condition, the target parameter corresponding to the second identifier in the target rule is configured as the configuration parameter corresponding to the second identifier.
2. The method according to claim 1, It is characterized in that The step of filtering out a target rule associated with the second identifier from a structured query language database of the server to be deployed includes: Determining, from the structured query language database, a plurality of rules associated with the second identifier; Based on the priorities of the multiple rules, screening out a candidate rule with a first priority associated with the second identifier from the multiple rules; If the first identifier is the same as the candidate identifier in the candidate rule, and the first attribute value and the candidate attribute value corresponding to the candidate identifier do not satisfy the matching condition, filter out the target rule with a second priority from the structured query language database; wherein the second priority is less than the first priority.
3. The method according to claim 1, It is characterized in that The determining, based on the plurality of sample attribute values and the plurality of configuration values, at least one target sample identifier corresponding to any target configuration identifier among the plurality of configuration identifiers from the plurality of sample identifiers comprises: Determining the information entropy of the target configuration identifier based on the plurality of configuration values; Based on the plurality of configuration values and the plurality of sample attribute values, determining a conditional entropy of a target configuration identifier appearing when different target sample identifiers appear; Determining information gains of different target sample identifiers to the target configuration identifier based on the information entropy of the target configuration identifier and each of the conditional entropies; Based on the multiple information gains, at least one target sample identifier corresponding to any target configuration identifier among the multiple configuration identifiers is determined from the multiple sample identifiers.
4. The method according to claim 1, It is characterized in that The step of storing the matching rule in the structured query language database includes: Configure the target sample identifier in the rule antecedent in the matching rule as an attribute in a JSON data structure; Configure the target sample attribute value in the rule antecedent in the matching rule as the attribute value in the JSON data structure; Configuring the relationship between the target sample identifier and the target sample attribute value as an operator in the JSON data structure; The configured JSON data structure is saved in the structured query language database.
5. The method according to claim 1, It is characterized in that After the sample rules between different target sample identifiers and at least one target configuration identifier are established, the method includes: The priority of each of the sample rules is set based on the multiple sample identifiers, the multiple sample attribute values, the multiple configuration identifiers, the multiple configuration values, and the multiple sample rules of the fact data of the deployed server.
6. The method according to any one of claims 1 to 5, It is characterized in that There are multiple second identifiers, and filtering out target rules associated with the second identifiers from the structured query language database of the server to be deployed includes: Filtering different target rules associated with each of the second identifiers from a structured query language database of the server to be deployed; If the first identifier is the same as the target identifier in the target rule, and the first attribute value satisfies a matching condition with the target attribute value corresponding to the target identifier, determining the target parameter corresponding to the second identifier in the target rule as a configuration parameter corresponding to the second identifier, including: Performing parallel processing based on each of the target rules, the first identifier, the first attribute value, and each of the second identifiers; During the parallel processing process, if the first identifier is the same as the target identifier in each of the target rules, and the first attribute value and the target attribute value corresponding to the target identifier meet the matching condition, the target parameter corresponding to the second identifier in each of the target rules is determined to be the configuration parameter corresponding to the second identifier.
7. A device for generating server deployment parameters, It is characterized in that The device comprises: An acquisition module, used to acquire fact data of the server to be deployed; wherein the fact data of the server to be deployed includes a first identifier with a reference attribute, a first attribute value corresponding to the first identifier, and a second identifier with an attribute to be configured; a processing module, configured to filter out a target rule associated with the second identifier from a structured query language database of the server to be deployed; if the first identifier is the same as the target identifier in the target rule, and the first attribute value and the target attribute value corresponding to the target identifier meet a matching condition, configure the target parameter corresponding to the second identifier in the target rule to be a configuration parameter corresponding to the second identifier; The acquisition module is further used to acquire fact data of deployed servers; wherein the fact data of deployed servers includes a plurality of sample identifiers having benchmark attributes, sample attribute values corresponding to the plurality of sample identifiers, a plurality of configuration identifiers having configuration attributes, and configuration values corresponding to the plurality of configuration identifiers; The processing module is also used to determine at least one target sample identifier corresponding to any target configuration identifier in the multiple configuration identifiers from the multiple sample identifiers based on the multiple sample attribute values and the multiple configuration values; wherein the target sample identifier includes the second identifier; establish sample rules between different target sample identifiers and at least one target configuration identifier; wherein different rules in the multiple sample rules have different priorities, and the multiple sample rules include the target rule; and save the sample rules to the structured query language database of the server to be deployed.
8. A device for generating server deployment parameters, It is characterized in that include: A memory for storing executable instructions; A processor, configured to implement the method according to any one of claims 1 to 6 when executing the executable instructions stored in the memory.
9. A storage medium, It is characterized in that Executable instructions are stored, which are used to cause a processor to execute and implement the method described in any one of claims 1 to 6.
