A server compatibility management method, device, equipment and medium
By receiving the firmware version interface document of the server model, extracting feature sets and using clustering and machine learning algorithms to generate recommended interface implementation classes, it solves the problems caused by server management software compatibility and firmware version changes, and achieves intelligent compatibility. The solution improves software reliability and user experience.
Patent Information
- Application Number
- CN202210637365.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-07
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-06-07
AI Technical Summary
Existing server management software has compatibility issues caused by interface differences and firmware version changes when it is compatible with different types of servers, resulting in heavy manpower investment and the lack of an automatic discovery mechanism, affecting the reliability and user experience of the software.
By receiving the firmware version interface document of the server model, using regular expression matching to extract feature sets, clustering processing to generate interface implementation class data sets, and using the GBDT+LR algorithm model to generate recommended interface implementation classes and matching rates, an intelligent compatibility solution is realized. Reduce labor investment and monitor firmware changes in a timely manner.
It effectively reduces the human investment in server management software, improves compatibility and reliability, avoids problems and delays during use, and improves user experience.
Smart Images

Figure CN115080107B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a server compatibility management method, device, equipment and medium. Background Art
[0002] At present, servers play a vital role in today's era of massive data. The problems that come with it are how to quickly put servers on the shelves and how to ensure the healthy operation of servers. Server management software has emerged to solve the above problems. At present, there are two main pain points in the development and maintenance of server management software in out-of-band implementation: First, there are differences in interfaces between different models of servers. Each compatible model requires manual analysis, which not only takes up a lot of manpower but also lacks standardization; second, the software is restricted by the changes in server firmware versions. If there are changes in interfaces or parameters in the version change, the software needs to be re-compatible with the server model, and this situation is often discovered only after the user encounters problems, which not only affects the reliability of the software but also reduces the user experience of the software. It is impossible to manually check the changes in each version of the firmware, and there is a lack of automatic discovery mechanism.
[0003] The server management software lacks a set of intelligent compatibility measures when it comes to compatible models. For software that manages servers based on machine models, each model has interfaces for related functions such as firmware upgrades, firmware configuration, asset acquisition, and system log acquisition. When compatible with a model, it is necessary not only to check the interfaces of each function one by one but also to check the input and output parameters of each interface, resulting in a large amount of manpower investment. In addition, the management software is greatly constrained by changes in firmware versions and lacks a mechanism for timely perception of changes. The firmware version of each model is constantly changing, some changes will affect the server management software, and some will not. How to detect which change in a timely manner and synchronize the compatibility adaptation of the new server is a problem to be solved to enhance the user experience of the server management software. Summary of the invention
[0004] In order to overcome the above technical defects, the purpose of the present invention is to provide a server compatibility management method, device, equipment and medium. The method of the present invention is applied to server management software, and the method includes: receiving an interface document of a firmware version of a server model to be compatible; extracting a feature set of the server model to be compatible from the interface document by a regular expression matching method; clustering the model through a model sample set and a feature set to generate an interface implementation class data set, wherein the interface implementation class is used to execute an interface specification; generating a recommended interface implementation class and a matching rate of the server model to be compatible according to the feature set and the interface implementation class data set. The present invention can intelligently provide a server compatibility solution, effectively reduce the manpower input of the server management software, and can timely report changes to compatible server models, avoiding the delay phenomenon of exposing problems during use, and improving the reliability of the server management software.
[0005] The specific technical solutions provided by the embodiments of the present invention are as follows:
[0006] In a first aspect, a server compatibility management method is provided, the method being applied to server management software, the method comprising:
[0007] Receive the interface document of the firmware version of the server model to be compatible;
[0008] Extracting the feature set of the to-be-compatible server model from the interface document by regular expression matching;
[0009] Clustering the models through the model sample set and the feature set to generate an interface implementation class data set, wherein the interface implementation class is used to execute the interface specification;
[0010] The recommended interface implementation class and matching rate of the to-be-compatible server model are generated according to the feature set and the interface implementation class data set.
[0011] Furthermore, before receiving the interface document of the firmware version of the server model to be compatible, the method includes:
[0012] Monitor the connection status of the interface document path address of the firmware version of the server model to be compatible in the system;
[0013] The monitoring of the interface document path address connection status of the firmware version of the server model to be compatible in the system includes:
[0014] Determine whether the interface document path address of the server model firmware version to be compatible is connected to the system;
[0015] If yes, then receive the interface document of the firmware version of the server model to be compatible; if no, continue to monitor the connection status of the interface document path address of the firmware version of the server model to be compatible in the system.
[0016] Furthermore, clustering the models through the model sample set and the feature set to generate an interface implementation class data set includes:
[0017] Receive model sample data and generate a model sample set;
[0018] Clustering the models using a bi-kmeans algorithm according to the model sample set and the feature set to generate an interface implementation class data set;
[0019] The mapping relationship between storage models and interface implementation class categories.
[0020] Furthermore, generating the recommended interface implementation class and matching rate of the to-be-compatible server model according to the feature set and the interface implementation class data set includes:
[0021] The feature set is screened and combined by a gradient boosting iterative decision tree model to generate a discrete feature vector;
[0022] Train the logistic regression algorithm model.
[0023] Furthermore, the training of the logistic regression algorithm model includes:
[0024] Get the discrete feature vector c;
[0025] The weight vector μ of the discrete feature vector and the offset a of the linear regression function are generated by training based on the gradient descent method and the model sample data;
[0026] Combine the linear regression function x = μc + a with the sigmoid function f(x) = 1 / (1 + e^(-x)) to generate a logistic regression algorithm;
[0027] The matching rate f of the server model relative to the recommended interface implementation class is calculated by the logistic regression algorithm f(c)=1 / (1+e^(-μc+a)).
[0028] Furthermore, after the logistic regression algorithm model is trained, the following steps are included:
[0029] A recommendation analysis is performed by combining the discrete feature vector and the interface implementation class data set through a logistic regression algorithm model to generate a recommended interface implementation class and a matching rate for the server model to be compatible.
[0030] Further, after generating the recommended interface implementation class and matching rate of the to-be-compatible server model according to the feature set and the interface implementation class data set, the method further comprises:
[0031] Determine whether the recommended interface implementation class of the server model to be compatible is consistent with the originally stored interface implementation class;
[0032] If yes, the compatibility is successful; if no, the reporting mechanism is triggered to remind the compatible adaptation of the server to be compatible.
[0033] In a second aspect, a server compatibility management device is provided, the device comprising:
[0034] An acquisition module is used to receive the interface document of the firmware version of the server model to be compatible;
[0035] A data preprocessing module, used for extracting a feature set of the to-be-compatible server model from the interface document by regular expression matching;
[0036] The clustering processing module is used to perform clustering processing on the models through the model sample set and feature set, and generate an interface implementation class data set;
[0037] The compatibility management module is used to generate the recommended interface implementation class and matching rate of the server model to be compatible according to the feature set and the interface implementation class data set.
[0038] According to a third aspect, a computer device is provided, the device comprising:
[0039] A memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the server compatibility management method as described in any one of the first aspects.
[0040] In a fourth aspect, a computer storage medium is provided, the medium comprising:
[0041] A computer program is stored thereon, and when the computer program is executed by the memory, the steps of the server compatibility management method described in any one of the first aspects are implemented.
[0042] Compared with the prior art, the method of the technical solution provided by the embodiment of the present invention is applied to server management software, and the method includes: receiving the interface document of the firmware version of the server model to be compatible; extracting the feature set of the server model to be compatible from the interface document by regular expression matching; clustering the model by the model sample set and the feature set to generate an interface implementation class data set, wherein the interface implementation class is used to execute the interface specification; generating the recommended interface implementation class and matching rate of the server model to be compatible according to the feature set and the interface implementation class data set. The present invention can intelligently provide a server compatibility solution, effectively reduce the manpower investment of the server management software, and can timely report changes to compatible server models, avoiding the delay phenomenon of exposing problems during use, and improving the reliability of the server management software.
[0043] The technical solution provided by the embodiment of the present invention makes full use of the standard interface documents in the server firmware version release, uses regular expressions to extract interface, parameter and other data from the interface documents, and then uses bi-kmeans clustering processing to obtain the interface implementation class data set to be compatible in the server management software. The GBDT+LR algorithm model then outputs the recommended interface implementation class and the corresponding matching rate for the compatible server models, which can effectively reduce labor costs and improve the reliability of the server management software.
[0044] The technical solution provided by the embodiment of the present invention can optimize server management software, taking into account the compatibility of new server models and the effective intelligent maintenance of updating old models, and can bring practical guiding significance to the development and maintenance of server management software.
[0045] The technical solution provided by the embodiment of the present invention not only makes the server model compatibility in the server management software more reasonable, but also adopts a change reporting mechanism to make the server management software more reliable. At the same time, it can effectively improve the efficiency of server software development and operation and maintenance, and add an interface change monitoring mechanism for compatible server models. If an interface change is detected, the change information will be reported in time to remind the compatible adaptation of the changed model. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0047] Figure 1 A first flow chart of a server compatibility management method provided in Embodiment 1 of the present invention;
[0048] Figure 2 A second flow chart of the server compatibility management method provided in the second embodiment of the present invention;
[0049] Figure 3 A server model clustering diagram provided in Embodiment 2 of the present invention;
[0050] Figure 4 A specific flow chart of the server compatibility management method provided in Embodiment 2 of the present invention;
[0051] Figure 5 A structural diagram of a server compatibility management device provided in Embodiment 3 of the present invention;
[0052] Figure 6 The exemplary system provided for the fifth embodiment of the present invention can be used to implement the various embodiments described in this application. DETAILED DESCRIPTION
[0053] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution in the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiment of the present invention. Obviously, the described embodiment is only a part of the embodiment of the present invention, not all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0054] It should be noted that, unless the context clearly requires otherwise, words such as “include”, “including” and similar words throughout the specification and claims should be interpreted as including rather than exclusive or exhaustive; that is, the meaning is “including but not limited to”.
[0055] Furthermore, in the description of the present invention, unless otherwise specified, “plurality” means two or more.
[0056] Embodiment 1
[0057] The embodiment of the present invention provides a server compatibility management method, such as Figure 1 As shown, the method is applied to server management software, and the method includes:
[0058] Receive the interface document of the firmware version of the server model to be compatible;
[0059] Extracting the feature set of the to-be-compatible server model from the interface document by regular expression matching;
[0060] Clustering the models through the model sample set and the feature set to generate an interface implementation class data set, wherein the interface implementation class is used to execute the interface specification;
[0061] The recommended interface implementation class and matching rate of the to-be-compatible server model are generated according to the feature set and the interface implementation class data set.
[0062] Specifically, the purpose of the present invention is to optimize the server management software, and propose an intelligent server compatibility recommendation and change automatic reporting system implementation scheme, which makes full use of the firmware standardized interface documents stored in the folder named by the model under the specified path, uses the regular expression matching method, obtains the feature set with the model label after data preprocessing, and obtains the server data set to be developed in the server management software through bi-kmeans algorithm training: server1, server2,,,, servern, and stores the mapping relationship between the model model and the server at the same time. Based on the server data set and the model interface related feature set, the GBDT+LR algorithm model is used to provide the recommended serverx and the corresponding matching probability for the specific model modelx of the compatible server. When the interface document path of the new model is added to the system, the GBDT+LR algorithm recommendation module is triggered to provide the developer with the recommended serverx compatible with the new model based on the server data set and the feature set. The system regularly monitors the document updates of the stored, i.e. compatible models, and detects that if the recommended serverx of the server model calculated by the algorithm module is different from the original stored server match, the reporting mechanism is triggered to remind the compatible adaptation of the compatible server and recommend a new server. The present invention takes into account both compatibility with new server models and effective intelligent maintenance of old server models, and can bring practical guiding significance to the development and maintenance of server management software.
[0063] Among them, the interface implementation class (serve) is used to implement the content agreed in the interface. The interface defines the specifications, and the implementation class determines how the specifications run; the server is an interface implementation class corresponding to a server compatibility. The interface implementation class is named server1, server2, etc. The interface implementation class includes the specifications or methods on how to achieve compatibility in the server interface to be compatible.
[0064] The technical solution provided by the embodiment of the present invention can intelligently provide server compatibility solutions, effectively reduce the manpower investment in server management software, and can timely report changes to compatible server models, avoiding delays in exposing problems during use, and improving the reliability of server management software.
[0065] The technical solution provided by the embodiment of the present invention makes full use of the standard interface documents in the server firmware version release, uses regular expressions to extract interface, parameter and other data from the interface documents, and then uses bi-kmeans clustering processing to obtain the server data set to be compatible in the server management software. The GBDT+LR algorithm model then outputs the recommended server and the corresponding matching rate for the compatible server models, which can effectively reduce labor costs and improve the reliability of the server management software.
[0066] Embodiment 2
[0067] The embodiment of the present invention provides a server compatibility management method, such as Figure 2 As shown, the method is applied to server management software, making full use of the interface documents released by the firmware version in the folders named after the models model1, model2, and modeln managed under the specified path. The system supports obtaining recommended servers for new models to be compatible, server verification for old models, and updating of server data sets. The method includes:
[0068] Step S01, monitoring the connection status of the interface document path address of the firmware version of the server model to be compatible in the system;
[0069] The monitoring of the interface document path address connection status of the firmware version of the server model to be compatible in the system includes:
[0070] Determine whether the interface document path address of the server model firmware version to be compatible is connected to the system;
[0071] If yes, then receive the interface document of the firmware version of the server model to be compatible; if no, continue to monitor the connection status of the interface document path address of the firmware version of the server model to be compatible in the system.
[0072] Specifically, the monitoring module here mainly monitors three scenarios: one is that the interface document address connection of a new model is added to the system; the second is that the interface document of the compatible model that the system has recorded has been added; and the third is that there is a need to update the server data set. When one of the above scenarios occurs, the monitoring module will receive the interface document of the firmware version of the server model to be compatible and trigger the data preprocessing module to work.
[0073] Step S02, receiving the interface document of the firmware version of the server model to be compatible.
[0074] Step S03: extracting the feature set of the server model to be compatible from the interface document by regular expression matching.
[0075] Specifically, a regular expression matching method is used to extract information such as interfaces and parameters in the interface document as a feature set.
[0076] The feature set is, for example: T{t1:q1,t2:q2,…,ti:qi,…,tn:qn}, where ti is the name of feature i, and qi is the parameter value of feature i.
[0077] Step S04, clustering the models using the model sample set and the feature set to generate an interface implementation class data set, wherein the interface implementation class is used to execute the interface specification.
[0078] Step S04 also includes:
[0079] Step S041, receiving model sample data and generating a model sample set;
[0080] Clustering the models using a bi-kmeans algorithm according to the model sample set and the feature set to generate an interface implementation class data set;
[0081] The mapping relationship between storage models and interface implementation class categories.
[0082] Specifically, Figure 3 As shown, the first use of the system needs to trigger the establishment of a model clustering model. First, enter the model sample data model1, model2, modeli, modelm in the folder path of the interface document to form a model sample set; train the model clustering model, perform clustering based on the bi-kmeans algorithm according to the model and feature set in the model sample set, regard all model sample points as a cluster, and then divide the cluster, select the cluster that can minimize the SSE (Sum of Squared Error, the smaller the SSE, the better the clustering effect) value, and then divide it again, repeat until the number of clusters reaches the specified K value, name each category serveri, i ranges from 1 to K, store the mapping relationship between each model and its server category, as well as the compatible model modeli and its feature set v_i;
[0083] Or when there is a need to update server data, bi-kmeans clustering is performed to obtain server1, server2,, servern, and update the mapping relationship between the model and the server.
[0084] Step S05: generating a recommended interface implementation class and a matching rate of the to-be-compatible server model according to the feature set and the interface implementation class data set.
[0085] Specifically, when it is monitored that a new model's firmware interface document path is added to the system, the data preprocessing module extracts information from the interface document in the new path to obtain a feature set, and combines the server data set to obtain the recommended server and the corresponding matching rate through the GBDT+LR algorithm model.
[0086] Step S05 also includes:
[0087] Step S051, screening and combining the feature set through a gradient boosting iterative decision tree model to generate a discrete feature vector;
[0088] Train the logistic regression algorithm model.
[0089] Step S052, obtaining a discrete feature vector c;
[0090] The weight vector μ of the discrete feature vector and the offset a of the linear regression function are generated by training based on the gradient descent method and the model sample data;
[0091] Combine the linear regression function x = μc + a with the sigmoid function f(x) = 1 / (1 + e^(-x)) to generate a logistic regression algorithm;
[0092] The matching rate f of the server model relative to the recommended interface implementation class is calculated by the logistic regression algorithm f(c)=1 / (1+e^(-μc+a)).
[0093] Step S053, performing recommendation analysis by combining the discrete feature vector and the interface implementation class data set through a logistic regression algorithm model, and generating a recommended interface implementation class and a matching rate for the server model to be compatible.
[0094] Specifically, when the path of the interface document of the new model server firmware version to be compatible is input into the system, the monitoring module will trigger the new model compatibility recommendation program; the interface document under the specified path is preprocessed to obtain the feature set F; the feature set F is automatically screened and combined through the GBDT (Gradient Boosting Decision Tree) algorithm model to obtain a new discrete feature vector C; the discrete feature vector c and the server data set are recommended and analyzed based on the LR algorithm model (Logistic Regression). The mathematical form of LR is f(c) = 1 / (1+e^(-μc+a)), where μ is the weight vector of the discrete feature vector c, calculated by the gradient descent method; a is the offset of the linear regression function. The matching rate f is a continuous variable between [0, 1], and finally the recommendation result is output, which includes the recommended server and the corresponding matching rate.
[0095] It can be understood that according to the sample data model1, model2, modeli, modelm and their respective interface documents are processed by the data preprocessing module to obtain the feature set T{t1:q1, t2:q2, …, ti:qi, …, tn:qn}, where ti is the name of feature i and qi is the parameter value of feature i, and the GBDT algorithm model is trained; the trained GBDT algorithm model is used to convert the original model-related feature set T into a discrete feature vector set C(c1, c2, …, cn) As input, and train the LR algorithm model. The theoretical formula of the LR algorithm is a combination of the linear regression function x = μc + a and the sigmoid function f(x) = 1 / (1 + e^(-x)). The specific mathematical form is f(c) = 1 / (1 + e^(-(μc + a))), where μ is the weight vector of the discrete feature vector c, and a is the offset of the linear regression function. When training the LR algorithm model, initialize the parameters μ and a, and continuously train the model through the gradient descent method and sample data to obtain the final values of the parameters μ and a. The GBDT model and the LR model are combined to obtain the GBDT+LR combined model, which can avoid the problem of high computational complexity of high-dimensional feature sets by automatically combining and screening the original feature sets. When the path of the firmware version interface document of the new model model_new is entered into the system, the monitoring module triggers the new model compatibility recommendation program; the interface document under the specified path is subjected to data preprocessing to obtain a feature set F; the feature set F is automatically screened and combined through the GBDT algorithm model to obtain a new discrete feature vector c; the discrete feature vector c and the server data set are recommended and analyzed based on the LR algorithm model; the feature set is optimized through the GBDT algorithm model, and the discrete feature vector c and the server data set are recommended and analyzed based on the LR algorithm (Logistic Regression), and then the matching rate f is sorted to generate the recommended server and matching rate of the server model to be compatible.
[0096] Step S06, determining whether the recommended interface implementation class of the to-be-compatible server model is consistent with the originally stored interface implementation class;
[0097] If yes, the compatibility is successful; if no, the reporting mechanism is triggered to remind the compatible adaptation of the server to be compatible.
[0098] Specifically, compatible models, that is, models that have been recommended servers through the GBDT+LR algorithm model, will be stored in the system. Change reporting is a regular monitoring of the models that are compatible with this system. If there are new documents in the interface document path, the GBDT+LR algorithm model will be triggered to recommend a server for this model again. The comparison is whether the newly recommended server is consistent with the original server stored for this model.
[0099] When monitoring the addition of documents of compatible models, the data preprocessing module will preprocess the new documents under the corresponding model to obtain a feature set, and then combine the server data set to obtain the recommended server and the corresponding matching rate through the GBDT+LR algorithm model, and map and compare the recommended server with the original stored server. If there is a difference, the reporting mechanism will be triggered to prompt compatible adaptation of the new model.
[0100] like Figure 4 The figure shows a specific flow chart of the server compatibility management method. The present invention makes full use of the interface documents released by the firmware versions in the folders named after the models model1, model2, and modeln under the specified path. The system supports obtaining recommended servers for new models, server verification for old models, and updating of server data sets; the interface, parameter, and other matching information in the interface document are extracted and processed as feature sets using a regular expression matching method; the clustering processing module obtains server data sets of server1, server2, servern through bi-kmeans algorithm clustering processing based on the existing model sample set and the feature set; when it is monitored that the firmware interface document path of a new model is added to the system, the recommended server and the corresponding matching rate of the server to be compatible are obtained by combining the feature set and the server data set through the GBDT+LR algorithm model; or when it is monitored that the interface document of an already compatible model is newly added, the recommended server of the new model of the server to be compatible is obtained by combining the server data set and the feature set through the GBDT+LR algorithm model, and the recommended server is compared with the original stored server mapping. If there is a difference, a change reminder is reported.
[0101] The server compatibility management method provided in the embodiment of the present invention may be improved and optimized without departing from the technical solution of the present invention, and these improvements and optimizations should also be regarded as within the protection scope of the present invention.
[0102] The embodiment of the present invention provides a method for server compatibility management, the method comprising: receiving an interface document of a firmware version of a server model to be compatible; extracting a feature set of the server model to be compatible from the interface document by regular expression matching; clustering the model by a model sample set and a feature set to generate an interface implementation class data set, wherein the interface implementation class is used to execute an interface specification; and generating a recommended interface implementation class and a matching rate of the server model to be compatible according to the feature set and the interface implementation class data set. The present invention can intelligently provide a server compatibility solution, effectively reduce the manpower input of server management software, and can timely report changes to compatible server models, avoiding the delay phenomenon of problems being exposed during use, and improving the reliability of server management software.
[0103] The technical solution provided by the embodiment of the present invention can optimize server management software, taking into account the compatibility of new server models and the effective intelligent maintenance of updating old models, and can bring practical guiding significance to the development and maintenance of server management software.
[0104] The technical solution provided by the embodiment of the present invention not only makes the server model compatibility in the server management software more reasonable, but also adopts a change reporting mechanism to make the server management software more reliable. At the same time, it can effectively improve the efficiency of server software development and operation and maintenance, and add an interface change monitoring mechanism for compatible server models. If an interface change is detected, the change information will be reported in time to remind the compatible adaptation of the changed model.
[0105] Embodiment 3
[0106] The present invention provides a server compatibility management device, such as Figure 5 As shown, the device includes a monitoring module, an acquisition module, a data preprocessing module, a clustering processing module, a compatibility management module, and a reporting module.
[0107] In this embodiment, an acquisition module is used to receive an interface document of a firmware version of a server model to be compatible; a data preprocessing module is used to extract a feature set of the server model to be compatible from the interface document by regular expression matching; a clustering processing module is used to cluster the models by using a model sample set and a feature set to generate an interface implementation class data set; and a compatibility management module is used to generate a recommended interface implementation class and a matching rate of the server model to be compatible based on the feature set and the interface implementation class data set.
[0108] Furthermore, the monitoring module is used to monitor the connection status of the interface document path address of the firmware version of the server model to be compatible in the system;
[0109] Determine whether the interface document path address of the server model firmware version to be compatible is connected to the system;
[0110] If yes, then receive the interface document of the firmware version of the server model to be compatible; if no, continue to monitor the connection status of the interface document path address of the firmware version of the server model to be compatible in the system.
[0111] Furthermore, the cluster processing module is also used to receive model sample data and generate a model sample set;
[0112] Clustering the models using a bi-kmeans algorithm according to the model sample set and the feature set to generate an interface implementation class data set;
[0113] The mapping relationship between storage models and interface implementation class categories.
[0114] Furthermore, the compatibility management module is also used to screen and combine the feature set through a gradient boosting iterative decision tree model to generate a discrete feature vector;
[0115] Train the logistic regression algorithm model.
[0116] Furthermore, the compatibility management module is also used to obtain a discrete feature vector c;
[0117] The weight vector μ of the discrete feature vector and the offset a of the linear regression function are generated by training based on the gradient descent method and the model sample data;
[0118] Combine the linear regression function x = μc + a with the sigmoid function f(x) = 1 / (1 + e^(-x)) to generate a logistic regression algorithm;
[0119] The matching rate f of the server model relative to the recommended interface implementation class is calculated by the logistic regression algorithm f(c)=1 / (1+e^(-μc+a)).
[0120] Furthermore, the compatibility management module is also used to perform recommendation analysis by combining the discrete feature vector and the interface implementation class data set through a logistic regression algorithm model to generate a recommended interface implementation class and a matching rate for the server model to be compatible.
[0121] Furthermore, the reporting module is used to determine whether the recommended interface implementation class of the server model to be compatible is consistent with the originally stored interface implementation class;
[0122] If yes, the compatibility is successful; if no, the reporting mechanism is triggered to remind the compatible adaptation of the server to be compatible.
[0123] Specifically, the server compatibility management device of the present invention includes a monitoring module, an acquisition module, a data preprocessing module, a clustering processing module, a compatibility management module, and a reporting module.
[0124] The monitoring module mainly monitors three scenarios: one is that the new model interface document address connection is added to the system; the second is that the system has recorded the interface document of the compatible model with new additions; the third is that there is a need to update the interface implementation class data set. When one of the above scenarios occurs, the monitoring module will trigger the acquisition module and the data preprocessing module to work; the data preprocessing module matches the newly added firmware version interface document in a regular expression manner, extracts the interface, parameters and other data to obtain a new feature set, and saves it to the database with the model and version as the label; the clustering processing module clusters the model model based on the existing model sample set with the feature set provided by the data preprocessing module through the bi-kmeans algorithm, and each class is named after the server to obtain the server data set; the compatible management module is responsible for obtaining the recommended server and the corresponding matching rate of the specific compatible server model through the GBDT+LR algorithm model recommendation analysis based on the feature set and the server data set; the reporting module is used to trigger the change reporting mechanism to remind if there is a difference between the recommended server obtained by the compatible model and the original stored server. The present invention not only makes the server model compatibility in the server management software more reasonable, but also adopts the change reporting mechanism to make the server management software more reliable.
[0125] The technical solution provided by the embodiment of the present invention has the following beneficial effects:
[0126] The technical solution provided by the embodiment of the present invention makes full use of the standard interface documents in the server firmware version release, uses regular expressions to extract interface, parameter and other data from the interface documents, and then uses bi-kmeans clustering processing to obtain the server data set to be compatible in the server management software. The GBDT+LR algorithm model then outputs the recommended server and the corresponding matching rate for the compatible server models, which can effectively reduce labor costs and improve the reliability of the server management software.
[0127] The technical solution provided by the embodiment of the present invention not only makes the server model compatibility in the server management software more reasonable, but also adopts a change reporting mechanism to make the server management software more reliable. At the same time, it can effectively improve the efficiency of server software development and operation and maintenance, and add an interface change monitoring mechanism for compatible server models. If an interface change is detected, the change information will be reported in time to remind the compatible adaptation of the changed model.
[0128] Embodiment 4
[0129] The present invention provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the following server compatibility management method can be executed:
[0130] Receive the interface document of the firmware version of the server model to be compatible;
[0131] Extracting the feature set of the to-be-compatible server model from the interface document by regular expression matching;
[0132] Clustering the models through the model sample set and the feature set to generate an interface implementation class data set, wherein the interface implementation class is used to execute the interface specification;
[0133] The recommended interface implementation class and matching rate of the to-be-compatible server model are generated according to the feature set and the interface implementation class data set.
[0134] The technical solution provided by the embodiment of the present invention has the following beneficial effects:
[0135] The technical solution provided by the embodiment of the present invention can intelligently provide server compatibility solutions, effectively reduce the manpower investment in server management software, and can timely report changes to compatible server models, avoiding delays in exposing problems during use, and improving the reliability of server management software.
[0136] Embodiment 5
[0137] The present invention provides a computer storage medium, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the following steps are implemented:
[0138] Receive the interface document of the firmware version of the server model to be compatible;
[0139] Extracting the feature set of the to-be-compatible server model from the interface document by regular expression matching;
[0140] Clustering the models through the model sample set and the feature set to generate an interface implementation class data set, wherein the interface implementation class is used to execute the interface specification;
[0141] The recommended interface implementation class and matching rate of the to-be-compatible server model are generated according to the feature set and the interface implementation class data set.
[0142] Furthermore, before receiving the interface document of the firmware version of the server model to be compatible, the method includes:
[0143] Monitor the connection status of the interface document path address of the firmware version of the server model to be compatible in the system;
[0144] The monitoring of the interface document path address connection status of the firmware version of the server model to be compatible in the system includes:
[0145] Determine whether the interface document path address of the server model firmware version to be compatible is connected to the system;
[0146] If yes, then receive the interface document of the firmware version of the server model to be compatible; if no, continue to monitor the connection status of the interface document path address of the firmware version of the server model to be compatible in the system.
[0147] Furthermore, clustering the models through the model sample set and the feature set to generate an interface implementation class data set includes:
[0148] Receive model sample data and generate a model sample set;
[0149] Clustering the models using a bi-kmeans algorithm according to the model sample set and the feature set to generate an interface implementation class data set;
[0150] The mapping relationship between storage models and interface implementation class categories.
[0151] Furthermore, generating the recommended interface implementation class and matching rate of the to-be-compatible server model according to the feature set and the interface implementation class data set includes:
[0152] The feature set is screened and combined by a gradient boosting iterative decision tree model to generate a discrete feature vector;
[0153] Train the logistic regression algorithm model.
[0154] Furthermore, the training of the logistic regression algorithm model includes:
[0155] Get the discrete feature vector c;
[0156] The weight vector μ of the discrete feature vector and the offset a of the linear regression function are generated by training based on the gradient descent method and the model sample data;
[0157] Combine the linear regression function x = μc + a with the sigmoid function f(x) = 1 / (1 + e^(-x)) to generate a logistic regression algorithm;
[0158] The matching rate f of the server model relative to the recommended interface implementation class is calculated by the logistic regression algorithm f(c)=1 / (1+e^(-μc+a)).
[0159] Furthermore, after the logistic regression algorithm model is trained, the following steps are included:
[0160] A recommendation analysis is performed by combining the discrete feature vector and the interface implementation class data set through a logistic regression algorithm model to generate a recommended interface implementation class and a matching rate for the server model to be compatible.
[0161] Further, after generating the recommended interface implementation class and matching rate of the to-be-compatible server model according to the feature set and the interface implementation class data set, the method further comprises:
[0162] Determine whether the recommended interface implementation class of the server model to be compatible is consistent with the originally stored interface implementation class;
[0163] If yes, the compatibility is successful; if no, the reporting mechanism is triggered to remind the compatible adaptation of the server to be compatible.
[0164] Figure 6 An exemplary system provided for Embodiment 5 of the present invention that can be used to implement various embodiments described in this application;
[0165] like Figure 6 As shown, in some embodiments, the system can be used as any of the above-mentioned devices for server compatibility management in each of the described embodiments. In some embodiments, the system may include one or more computer-readable media (e.g., system memory or NVM / storage device) having results and one or more processors (e.g., (one or more) processors) coupled to the one or more computer-readable media and configured to execute the results to implement the module to perform the actions described in this application.
[0166] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by computer programs and related hardware. The above-mentioned computer programs can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided by the present invention can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0167] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0168] The above-mentioned embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.
Claims
1. A server compatibility management method, characterized in that: The method is applied to server management software, and the method comprises: Receive the interface document of the firmware version of the server model to be compatible; Extracting the feature set of the to-be-compatible server model from the interface document by regular expression matching; Clustering the models through the model sample set and the feature set to generate an interface implementation class data set, wherein the interface implementation class is used to execute the interface specification; Generate the recommended interface implementation class and matching rate of the to-be-compatible server model according to the feature set and the interface implementation class data set; The clustering process of the models is performed through the model sample set and the feature set to generate the interface implementation class data set, including: Receive model sample data and generate a model sample set; Clustering the models using a bi-kmeans algorithm according to the model sample set and the feature set to generate an interface implementation class data set; The mapping relationship between storage models and interface implementation class categories; The generating the recommended interface implementation class and matching rate of the to-be-compatible server model according to the feature set and the interface implementation class data set includes: The feature set is screened and combined by a gradient boosting iterative decision tree model to generate a discrete feature vector; Train the logistic regression algorithm model; The training of the logistic regression algorithm model includes: Get the discrete feature vector c; The weight vector μ of the discrete feature vector and the offset a of the linear regression function are generated by training based on the gradient descent method and the model sample data; Combine the linear regression function x=μc+a with the sigmoid function f(x)=1 / (1+e^(-x)) to generate a logistic regression algorithm; The matching rate f of the server model relative to the recommended interface implementation class is calculated through the logistic regression algorithm f(c)=1 / (1+e^(-μc+a)).
2. The server compatibility management method according to claim 1, characterized in that: Before receiving the interface document of the firmware version of the server model to be compatible, the method includes: Monitor the connection status of the interface document path address of the firmware version of the server model to be compatible in the system; The monitoring of the interface document path address connection status of the firmware version of the server model to be compatible in the system includes: Determine whether the interface document path address of the server model firmware version to be compatible is connected to the system; If yes, then receive the interface document of the firmware version of the server model to be compatible; if no, continue to monitor the connection status of the interface document path address of the firmware version of the server model to be compatible in the system.
3. The server compatibility management method according to claim 1, characterized in that: After the logistic regression algorithm model is trained, it includes: A recommendation analysis is performed by combining the discrete feature vector and the interface implementation class data set through a logistic regression algorithm model to generate a recommended interface implementation class and a matching rate for the server model to be compatible.
4. The server compatibility management method according to claim 1, characterized in that: After generating the recommended interface implementation class and matching rate of the to-be-compatible server model according to the feature set and the interface implementation class data set, the method includes: Determine whether the recommended interface implementation class of the server model to be compatible is consistent with the originally stored interface implementation class; If yes, the compatibility is successful; if no, the reporting mechanism is triggered to remind the compatible adaptation of the server to be compatible.
5. A server compatibility management device, characterized in that: The device comprises: An acquisition module is used to receive the interface document of the firmware version of the server model to be compatible; A data preprocessing module, used for extracting a feature set of the server model to be compatible from the interface document by regular expression matching; The clustering processing module is used to perform clustering processing on the models through the model sample set and feature set, and generate an interface implementation class data set; A compatibility management module, used to generate a recommended interface implementation class and a matching rate of the server model to be compatible according to the feature set and the interface implementation class data set; The clustering process of the models is performed through the model sample set and the feature set to generate the interface implementation class data set, including: Receive model sample data and generate a model sample set; Clustering the models using a bi-kmeans algorithm according to the model sample set and the feature set to generate an interface implementation class data set; The mapping relationship between storage models and interface implementation class categories; The generating the recommended interface implementation class and matching rate of the to-be-compatible server model according to the feature set and the interface implementation class data set includes: The feature set is screened and combined by a gradient boosting iterative decision tree model to generate a discrete feature vector; Train the logistic regression algorithm model; The training of the logistic regression algorithm model includes: Get the discrete feature vector c; The weight vector μ of the discrete feature vector and the offset a of the linear regression function are generated by training based on the gradient descent method and the model sample data; Combine the linear regression function x=μc+a with the sigmoid function f(x)=1 / (1+e^(-x)) to generate a logistic regression algorithm; The matching rate f of the server model relative to the recommended interface implementation class is calculated through the logistic regression algorithm f(c)=1 / (1+e^(-μc+a)).
6. A computer device comprising a memory, a processor and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the steps of the method according to any one of claims 1 to 4.
7. A computer storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
Server connection method and device and related equipment thereof
CN111399903A
Server interface compatible method and system based on neural network
CN111752870A
