Middleware deployment method, system and equipment based on hardware parameter weight and medium
By obtaining server hardware configuration parameters and using linear interpolation and performance evaluation algorithms, the most suitable middleware version is automatically determined and deployed, and the problem of middleware deployment in the existing technology relies on manual operations, achieving efficient, intelligent and automated intermediates Part deployment improves system stability and performance.
Patent Information
- Application Number
- CN202411106892.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-13
- Publication Date
- 2024-11-08
AI Technical Summary
The existing middleware deployment methods rely on manual operations and lack intelligence and automation mechanisms, resulting in inefficient deployment, error-prone, and difficult to ensure the best match between middleware version and hardware performance.
By obtaining server hardware configuration parameters, using linear interpolation algorithm and performance evaluation normalization algorithm, the middleware score on the server is calculated, and the most suitable middleware version is automatically determined and deployed based on the score.
It realizes efficient, intelligent and automated middleware deployment, significantly improves the stability and performance of system operation, and reduces the cost and error rate of manual intervention.
Smart Images

Figure CN118916045A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent deployment technology, and in particular to a middleware deployment method, system, device and medium based on hardware parameter weights. Background Art
[0002] In current middleware deployment practices, the commonly used approach is to rely on engineers to manually identify hardware performance and select the appropriate middleware version for deployment based on these performance indicators. Although this approach is widely used, it obviously lacks intelligent and automated processing mechanisms.
[0003] Since this deployment method is highly dependent on manual operations, there are some significant problems. First, engineers need to manually analyze and judge the performance parameters of the hardware, which is not only time-consuming but also easily influenced by personal experience, knowledge, and judgment, leading to selection errors. This error may manifest as selecting a middleware version that does not match the hardware performance, which in turn affects the overall performance and stability of the system.
[0004] In addition, due to the diversity of hardware performance, manually selecting the middleware version is often difficult to ensure the best match, and performance degradation or system instability may occur due to version mismatch. This not only affects the operating efficiency of the system, but also increases the complexity of subsequent maintenance and debugging.
[0005] Finally, this traditional deployment method is cumbersome and requires a lot of manual intervention, which is not only complicated to operate but also inefficient. This obviously does not meet the current demand for intelligent and automated deployment, nor can it fully utilize the advantages of modern computing technology.
[0006] Therefore, the existing middleware deployment methods have many shortcomings and need to be improved to achieve a more efficient and intelligent deployment process. Summary of the invention
[0007] 1. Technical issues to be resolved
[0008] In view of the above-mentioned shortcomings and deficiencies of the prior art, the present invention provides a middleware deployment method, system, device and medium based on hardware parameter weights, which solves the technical problems that traditional middleware deployment methods rely on manual operations, lack of intelligent and automated mechanisms, resulting in low deployment efficiency and prone to errors, and difficulty in ensuring the optimal match between middleware versions and hardware performance.
[0009] (II) Technical solution
[0010] In order to achieve the above object, the main technical solutions adopted by the present invention include:
[0011] In a first aspect, an embodiment of the present invention provides a middleware deployment method based on hardware parameter weights, comprising:
[0012] Obtain various hardware configuration parameters on the server, and sort and combine the various hardware configuration parameters to form a first list and a second list; wherein the first list contains hardware configuration parameters arranged in a certain order, and the second list contains hardware configuration parameters corresponding to the first list but in a different order;
[0013] Based on the hardware configuration parameters in the first list, the corresponding hardware configuration parameters in the second list are found to form at least one parameter pair, and a linear interpolation algorithm is used for each parameter pair to obtain the weight of each hardware configuration parameter;
[0014] The performance evaluation normalization algorithm is used to combine the weights of various hardware configuration parameters, the recommended configuration of the middleware, and the current basic information or business information of the server to calculate the score of each middleware for the server;
[0015] The scores of each middleware for the server are compared with the preset threshold, the middleware version to be deployed is automatically determined according to the comparison result, and the middleware is intelligently deployed according to the determined middleware version to be deployed.
[0016] Optionally, before obtaining various hardware configuration parameters on the server and sorting and combining the various hardware configuration parameters to form the first list and the second list, the method further includes:
[0017] Use specialized hardware detection software or tools to perform preliminary hardware detection on the server according to the initial detection strategy;
[0018] According to the preliminary detection results of the hardware, at least one of the detection depth, accuracy and speed included in the initial detection strategy is dynamically adjusted by means of pre-set rules or machine learning models;
[0019] Based on the adjusted initial detection strategy, the hardware configuration parameters are detected to obtain secondary detection results;
[0020] Obtain and analyze historical performance data of middleware running on different hardware configurations, and develop a pre-screening list based on historical performance data and middleware operating characteristics;
[0021] According to the pre-screening list, pre-screen the secondary detection results and output various hardware configuration parameters;
[0022] Build a test environment that can simulate the middleware running under a specific hardware configuration, deploy the middleware in the simulation environment, and set different hardware configuration parameters;
[0023] Use automated testing scripts or tools to perform performance testing on the middleware and output simulation test results.
[0024] Optionally, obtaining various hardware configuration parameters on the server, and sorting and combining the various hardware configuration parameters to form the first list and the second list includes:
[0025] Based on the simulation test results, the importance of each hardware configuration parameter obtained through pre-screening is evaluated;
[0026] According to the evaluation result, various hardware configuration parameters are sorted from high to low or from low to high, and the sorted hardware configuration parameters are formed into a first list;
[0027] Create an empty second list for storing the rearranged order of hardware configuration parameters;
[0028] Starting from the first element of the first list, add the first element to the second list, then skip n-1 elements, select the n+1th element and add it to the second list;
[0029] Repeat skipping n-1 elements multiple times, taking the n+1th element and adding it to the second list until the end of the first list is reached;
[0030] If an element has been selected before the end of the first list, continue selecting from the unselected elements until all elements have been selected into the second list;
[0031] If there are elements remaining in the first list that have not been added to the second list, then add the remaining elements to the end of the second list in the order they appear in the first list;
[0032] Check that the second list contains all the parameters in the first list, and each parameter appears only once, and check that the length of the second list is the same as the first list;
[0033] If the second list contains all the parameters in the first list, and each parameter appears only once, and the length of the second list is the same as the first list, then output the second list;
[0034] The first list and the second list are output as readable files or database records to ensure that the first list and the second list can be accessed and used.
[0035] Optionally, based on finding the hardware configuration parameters in the first list to the corresponding hardware configuration parameters in the second list to form at least one parameter pair, a linear interpolation algorithm is used for each parameter pair to obtain the weights of each hardware configuration parameter, including:
[0036] For each hardware configuration parameter in the first list, find the corresponding parameter in the second list to form a parameter pair;
[0037] Based on the range of values of each parameter pair, a linear interpolation interval is formed;
[0038] Calculate the difference between each parameter pair in the two lists and establish a linear interpolation model based on the difference;
[0039] In the determined linear interpolation interval, one or more interpolation points are selected, and the parameter estimation values of the selected interpolation points are calculated using the established linear interpolation model;
[0040] Calculate the change in the sorting position of each hardware configuration parameter in the two lists;
[0041] Assign a weight to each hardware configuration parameter based on the change in the interpolation point and the parameter estimate obtained by linear interpolation from the difference point and the change in the sorting position, and normalize the weights of all hardware configuration parameters so that their sum is 1;
[0042] in,
[0043] The parameter pair is; (p i ,p' i ), p i is the i-th hardware configuration parameter in the first list, p' i For the second list with p i Corresponding hardware configuration parameters;
[0044] The interval of linear interpolation is: {min(p i ,p' i ), max(p i ,p' i )};
[0045] The linear interpolation model is:
[0046]
[0047] In the formula, p i is the i-th hardware configuration parameter in the first list, p' i is the corresponding p in the second list i Hardware configuration parameters, forming parameter pairs (p i ,p' i ), x is the difference point, x i 、x' i They are p i 、p' i The corresponding sorting position;
[0048] The change in the sorting position of each hardware configuration parameter in the two lists is:
[0049] Δr=r' i -r i ;
[0050] In the formula, r i 、r' i are the sorting positions of the hardware configuration parameters in the first list and the second list respectively;
[0051] The formula for weight distribution is:
[0052] w i =a·|Δr|+(1+a)·|Δp|;
[0053] In the formula, w i is the weight of the hardware configuration parameter, a is a coefficient between [0,1], which is used to balance the importance of ranking changes and parameter value changes in weight distribution, and Δp is the value at the interpolation point x. i and x' i The change in the estimated parameter value obtained by linear interpolation at .
[0054] Optionally, using a performance evaluation normalization algorithm in combination with the weights of various hardware configuration parameters, the recommended configuration of the middleware, and the current server basic information or business information, the score of each middleware for the server is calculated, including:
[0055] Get basic information or business information of the current server;
[0056] Obtain the recommended middleware configuration information and server sample data, and calculate the average value;
[0057] For each hardware configuration parameter, the adaptation score is calculated using the adaptation score formula;
[0058] According to the adaptation score and weight of each hardware configuration parameter, the final score of the middleware for the current server is calculated through the final score formula;
[0059] in,
[0060] The adaptation score formula is:
[0061]
[0062] In the formula, X is the current server basic information or business information, μ is the recommended configuration of the middleware, σ is the average value calculated by the server sample data, adjust is the multiplier adjustment value, offset is the offset, and Xsinglej represents the adaptation score of the middleware to the jth hardware configuration parameter;
[0063] The final scoring formula is:
[0064] Xn=X single1 ×M single1 +X single2 ×M single2 +X single3 ×M single3 ...+X singlej ×M singlej ;
[0065] Where Msinglej represents the weight of the middleware for the jth hardware configuration parameter, and Xn is the final score of the middleware for the current server.
[0066] Optionally, comparing the scores of each middleware to the server with a preset threshold, automatically determining the middleware version to be deployed according to the comparison result, and performing intelligent deployment of the middleware according to the determined middleware version to be deployed includes:
[0067] Dynamically set one or more performance score thresholds based on middleware historical data, current business needs, and server resource conditions;
[0068] Compare each middleware's score with a performance score threshold;
[0069] Automatically select the middleware version that best suits the current server environment based on the comparison between the score and the threshold;
[0070] According to the determined middleware version, the deployment script or configuration file is automatically generated, and the automated deployment process is executed.
[0071] Optionally include:
[0072] When a new server is added, the hardware configuration parameters of the new service are collected again;
[0073] In the existing server cluster, select one or more servers with similar configurations as references;
[0074] For each hardware configuration, calculate the performance difference ratio between the new server and the reference server;
[0075] The weights of various hardware configuration parameters of the reference server are adjusted according to the performance difference ratio to obtain the weights of various hardware configuration parameters of the new server;
[0076] After adjusting the weights of the new server's hardware configurations, all weights are normalized to ensure that their sum is 1 or 100%.
[0077] In a second aspect, an embodiment of the present invention provides a middleware deployment system based on hardware parameter weights, including:
[0078] A parameter combination module, used to obtain various hardware configuration parameters on the server, and sort and combine the various hardware configuration parameters to form a first list and a second list; wherein the first list contains hardware configuration parameters arranged in a certain order, and the second list contains hardware configuration parameters corresponding to the first list but in a different order;
[0079] A weight determination module, configured to form at least one parameter pair based on finding the corresponding hardware configuration parameters in the second list based on the hardware configuration parameters in the first list, and to obtain the weight of each hardware configuration parameter by using a linear interpolation algorithm for each parameter pair;
[0080] The score output module is used to calculate the score of each middleware for the server by using the performance evaluation normalization algorithm combined with the weights of various hardware configuration parameters, the recommended configuration of the middleware, and the current server basic information or business information;
[0081] The middleware deployment module is used to compare the scores of each middleware to the server with a preset threshold, automatically determine the middleware version to be deployed according to the comparison result, and perform intelligent deployment of the middleware according to the determined middleware version to be deployed.
[0082] In a third aspect, an embodiment of the present invention provides a middleware deployment device based on hardware parameter weights, comprising: at least one database; and a memory communicatively connected to the at least one database; wherein the memory stores instructions executable by the at least one database, and the instructions are executed by the at least one database so that the at least one database can execute the middleware deployment method based on hardware parameter weights as described above.
[0083] In a fourth aspect, an embodiment of the present invention provides a computer-readable medium having computer-executable instructions stored thereon, and when the executable instructions are executed by a processor, the middleware deployment method based on hardware parameter weights as described above is implemented.
[0084] (III) Beneficial effects
[0085] The beneficial effects of the present invention are:
[0086] The present invention obtains server hardware configuration parameters and forms two lists in different orders, which provides a comprehensive and flexible way to analyze and process the server hardware configuration. By sorting and combining the parameters in different ways, the relationship and influence of each configuration can be examined in more detail.
[0087] Furthermore, the linear interpolation algorithm is used to determine the weights of the hardware configuration parameters using these two lists as reference points. The benefit of this method lies in its scientificity and accuracy. Through algorithm calculation, weights can be objectively assigned based on the differences and rankings of the hardware configuration parameters, avoiding the bias of subjective judgment, making subsequent performance evaluation and middleware selection more accurate and reliable.
[0088] Next, the performance evaluation normalization algorithm is used to combine the weight, the recommended middleware configuration, and the server basic or business information to calculate the middleware score. The advantage of this step is its comprehensiveness and practicality. It not only takes into account the weight of the hardware configuration, but also combines the recommended configuration of the middleware and the actual situation of the server to obtain a score that fully reflects the performance of the middleware in a specific server environment.
[0089] Finally, the middleware score is compared with the preset threshold, and the middleware version to be deployed is automatically determined based on the comparison result, and intelligent deployment is performed. The benefit of this step lies in its automation and intelligence. By setting the preset threshold, the middleware version that best suits the server environment can be automatically selected for deployment, which greatly improves the efficiency and accuracy of deployment, while also reducing the cost and error rate of manual intervention. In general, this method achieves efficient, intelligent and automated middleware deployment, significantly improving the stability and performance of system operation. BRIEF DESCRIPTION OF THE DRAWINGS
[0090] Figure 1 A schematic diagram of a flow chart of a middleware deployment method based on hardware parameter weights provided in an embodiment of the present invention;
[0091] Figure 2 A schematic diagram of a specific flow chart before step S1 of a middleware deployment method based on hardware parameter weights provided in an embodiment of the present invention;
[0092] Figure 3 A specific flow chart of step S1 of a middleware deployment method based on hardware parameter weights provided in an embodiment of the present invention;
[0093] Figure 4 A specific flow chart of step S2 of a middleware deployment method based on hardware parameter weights provided in an embodiment of the present invention;
[0094] Figure 5 A specific flow chart of step S3 of a middleware deployment method based on hardware parameter weights provided in an embodiment of the present invention;
[0095] Figure 6 A specific flow chart of step S4 of a middleware deployment method based on hardware parameter weights provided in an embodiment of the present invention;
[0096] Figure 7 A schematic diagram of a specific flow chart after step S4 of a middleware deployment method based on hardware parameter weights provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0097] In order to better explain the present invention and facilitate understanding, the present invention is described in detail below through specific implementation modes in conjunction with the accompanying drawings.
[0098] like Figure 1 As shown, a middleware deployment method based on hardware parameter weights proposed in an embodiment of the present invention includes: obtaining various hardware configuration parameters on the server, and sorting and combining the various hardware configuration parameters to form a first list and a second list; wherein the first list contains hardware configuration parameters arranged in a certain order, and the second list contains hardware configuration parameters corresponding to the first list but in a different order; based on the hardware configuration parameters in the first list, finding the corresponding hardware configuration parameters in the second list to form at least one parameter pair, using a linear interpolation algorithm for each parameter pair to obtain the weights of various hardware configuration parameters; using a performance evaluation normalization algorithm combined with the weights of various hardware configuration parameters, the recommended configuration of the middleware, and the current server basic information or business information to calculate the score of each middleware to the server; comparing the score of each middleware to the server with a preset threshold, automatically determining the middleware version to be deployed according to the comparison result, and performing intelligent deployment of the middleware according to the determined middleware version to be deployed.
[0099] The present invention obtains server hardware configuration parameters and forms two lists in different orders, which provides a comprehensive and flexible way to analyze and process the server hardware configuration. By sorting and combining the parameters in different ways, the relationship and influence of each configuration can be examined in more detail.
[0100] Furthermore, the linear interpolation algorithm is used to determine the weights of the hardware configuration parameters using these two lists as reference points. The benefit of this method lies in its scientificity and accuracy. Through algorithm calculation, weights can be objectively assigned based on the differences and rankings of the hardware configuration parameters, avoiding the bias of subjective judgment, making subsequent performance evaluation and middleware selection more accurate and reliable.
[0101] Next, the performance evaluation normalization algorithm is used to combine the weight, the recommended middleware configuration, and the server basic or business information to calculate the middleware score. The advantage of this step is its comprehensiveness and practicality. It not only takes into account the weight of the hardware configuration, but also combines the recommended configuration of the middleware and the actual situation of the server to obtain a score that fully reflects the performance of the middleware in a specific server environment.
[0102] Finally, the middleware score is compared with the preset threshold, and the middleware version to be deployed is automatically determined based on the comparison result, and intelligent deployment is performed. The benefit of this step lies in its automation and intelligence. By setting the preset threshold, the middleware version that best suits the server environment can be automatically selected for deployment, which greatly improves the efficiency and accuracy of deployment, while also reducing the cost and error rate of manual intervention. In general, this method achieves efficient, intelligent and automated middleware deployment, significantly improving the stability and performance of system operation.
[0103] In order to better understand the above technical solution, exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to enable a clearer and more thorough understanding of the present invention and to fully convey the scope of the present invention to those skilled in the art.
[0104] Specifically, an embodiment of the present invention provides a middleware deployment method based on hardware parameter weights, including:
[0105] S1. Obtain various hardware configuration parameters on the server, and sort and combine the various hardware configuration parameters to form a first list and a second list.
[0106] It is important to understand that the first list contains hardware configuration parameters arranged in a certain order, and the second list contains hardware configuration parameters corresponding to the first list but in a different order. The first list is a list of hardware configuration parameters sorted according to some clear criteria (such as importance), while the second list is a differently sorted version of these same parameters. The main difference between the two lists is how they are sorted: the first list is a direct sort based on the evaluation results, while the second list is a re-sorted after being processed by specific rules. In this way, different combinations and orders of hardware configuration parameters can be compared and analyzed, which helps to more fully understand and evaluate the impact and effect of hardware configuration parameters.
[0107] Furthermore, if Figure 2 As shown, before step S1, it also includes:
[0108] P11. Use specialized hardware detection software or tools to perform preliminary hardware detection on the server according to the initial detection strategy.
[0109] Utilize specialized hardware detection software or tools, which are usually able to scan various parts of the server, including but not limited to CPU type and number of cores, memory capacity and type, hard disk capacity and type, network interface card, etc. These tools obtain detailed configuration data by reading system information, querying hardware interfaces, or communicating directly with the hardware.
[0110] P12. Based on the preliminary detection results of the hardware, with the help of pre-set rules or machine learning models, dynamically adjust at least one of the detection depth, accuracy and speed included in the initial detection strategy.
[0111] In the embodiment of the present invention, with the help of pre-set rules or machine learning models, the detection strategy can be dynamically adjusted according to the hardware environment information detected initially, and it can be determined how deep the detection should be performed under what hardware environment, and how to balance the accuracy and speed of the detection. For example, if the initial detection finds that the server is equipped with a high-performance SSD, the algorithm may increase the detection depth of the storage system performance to obtain more detailed I / O performance data.
[0112] P13. Based on the adjusted initial detection strategy, the hardware configuration parameters are detected to obtain secondary detection results.
[0113] P14. Obtain and analyze historical performance data of middleware running on different hardware configurations, and develop a pre-screening list based on the historical performance data and middleware operating characteristics.
[0114] Collect and analyze historical data on past middleware deployment and operation, especially those data that are closely related to performance. Through data analysis and mining technology, identify which hardware configuration parameters have had a significant impact on middleware performance in history, and combine historical data analysis with middleware characteristics to develop a set of screening criteria to form a pre-screening list to determine which hardware configuration parameters are critical, that is, those that have a significant impact on middleware performance.
[0115] P15. Pre-screen the secondary detection results according to the pre-screening list and output various hardware configuration parameters.
[0116] P16. Build a test environment that can simulate the middleware running under a specific hardware configuration, deploy the middleware in the simulation environment, and set different hardware configuration parameters.
[0117] Build a test environment that can simulate the middleware running under a specific hardware configuration, and can simulate the performance characteristics of various hardware components, such as CPU computing power, memory access latency, disk I / O speed, etc. Deploy the middleware in the simulation environment and set different hardware configuration parameters.
[0118] P17. Use automated testing scripts or tools to perform performance testing on the middleware and output simulation test results.
[0119] Furthermore, if Figure 3 As shown, step S1 includes:
[0120] S11. Based on the simulation test results, the importance of each hardware configuration parameter obtained through pre-screening is evaluated.
[0121] S12. Sort the hardware configuration parameters from high to low or from low to high according to the evaluation result, and form the sorted hardware configuration parameters into a first list.
[0122] S13. Create an empty second list for storing the rearranged order of hardware configuration parameters.
[0123] S14. Starting from the first element of the first list, add the first element to the second list, then skip n-1 elements, select the n+1th element and add it to the second list; repeat skipping n-1 elements multiple times, taking the n+1th element and adding it to the second list, until the end of the first list is reached. The value of n can be set according to requirements.
[0124] S15. If an element has been selected before the end of the first list, continue selecting from the unselected elements until all elements are selected into the second list.
[0125] S16. If there are elements remaining in the first list that have not been added to the second list, add the remaining elements to the end of the second list in the order in which they are in the first list.
[0126] S17. Check whether the second list contains all the parameters in the first list and each parameter appears only once, and check whether the length of the second list is the same as that of the first list.
[0127] S18. If the second list contains all the parameters in the first list, and each parameter appears only once, and the length of the second list is the same as that of the first list, then output the second list.
[0128] S19. Output the first list and the second list as readable files or database records to ensure that the first list and the second list can be accessed and used.
[0129] S2. Based on the hardware configuration parameters in the first list, find the corresponding hardware configuration parameters in the second list to form at least one parameter pair, and use a linear interpolation algorithm for each parameter pair to obtain the weights of each hardware configuration parameter.
[0130] Furthermore, if Figure 4 As shown, step S2 includes:
[0131] S21. For each hardware configuration parameter in the first list, find the corresponding parameter in the second list to form a parameter pair.
[0132] S22. Based on the variation range of the values of each parameter pair, a linear interpolation interval is formed.
[0133] S23. Calculate the difference between each parameter pair in the two lists, and establish a linear interpolation model based on the difference.
[0134] S24. Select one or more interpolation points within the determined linear interpolation interval, and use the established linear interpolation model to calculate parameter estimates of the selected interpolation points.
[0135] S25. Calculate the change in the sort position of each hardware configuration parameter in the two lists.
[0136] S26. Assign a weight to each hardware configuration parameter according to the change in the interpolation point and the parameter estimate obtained by linear interpolation from the difference point and the change in the sorting position, and normalize the weights of all hardware configuration parameters so that their sum is 1.
[0137] In a specific implementation, the following specific steps are implemented:
[0138] (1) First select the parameter pair: p i For the i-th hardware configuration parameter p in the first list i , for the second list with p i Corresponding hardware configuration parameter p' i , forming a parameter pair (p i ,p' i ).
[0139] (2) Determine the interval of linear interpolation: Determine the parameter p i and p' i The value range between is used as the interpolation range, {min(p i ,p' i ), max(p i ,p' i )}.
[0140] (3) Establish a linear interpolation model: Corresponding parameter pair (p i ,p' i ), the linear interpolation model is expressed as:
[0141]
[0142] In the formula, p i is the i-th hardware configuration parameter in the first list, p' i is the corresponding p in the second list i Hardware configuration parameters, forming parameter pairs (p i ,p' i ), x is the difference point, x i、x' i They are p i 、p' i The corresponding sort position.
[0143] (4) Perform linear interpolation: In the interpolation range {min(p i ,p' i ), max(p i ,p' i )}, select one or more points x as interpolation points, and use the linear interpolation model to calculate the value f(x) at the interpolation point x.
[0144] (5) Analyze parameter changes: Calculate the change in the ranking position of each hardware configuration parameter in the two lists:
[0145] Δr=r' i -r i ;
[0146] In the formula, r i 、r' i are the sorting positions of the hardware configuration parameters in the first list and the second list respectively;
[0147] (6) Determine weight allocation: According to the change in the estimated parameter value obtained by linear interpolation of the interpolation point and the difference point and the change in the sorting position, a weight is allocated to each hardware configuration parameter. The weight allocation formula is:
[0148] w i =a·|Δr|+(1+a)·|Δp|;
[0149] In the formula, w i is the weight of the hardware configuration parameter, a is a coefficient between [0,1], which is used to balance the importance of ranking changes and parameter value changes in weight distribution, and Δp is the value at the interpolation point x. i and x' i The change in the estimated parameter value obtained by linear interpolation at .
[0150] If the weights of certain parameters are found to be abnormal (such as too high or too low), they can be adjusted appropriately based on the actual situation.
[0151] (7) Normalized weights: Normalize the weights of all parameters so that their sum is 1.
[0152] S3. Calculate the score of each middleware for the server by using a performance evaluation normalization algorithm combined with the weights of various hardware configuration parameters, the recommended configuration of the middleware, and the current basic information or business information of the server.
[0153] Furthermore, if Figure 5 As shown, step S3 includes:
[0154] S31. Obtain basic information or business information of the current server, including but not limited to key performance indicators such as CPU usage, memory usage, disk space, network bandwidth, latency, disk capacity, and message throughput.
[0155] S32: Obtain middleware recommended configuration information and server sample data, and calculate the average value.
[0156] S33. For each hardware configuration parameter, calculate an adaptation score using an adaptation score formula.
[0157] For each hardware configuration (such as CPU, memory, disk, etc.), the current server performance indicator (X) is converted into an adaptation score (Xsingle) using the adaptation score formula. During the normalization process, the multiplier adjustment value (adjust) and offset (offset) are applied to adjust the score to reflect the impact of business volume and specific needs.
[0158] S34. Calculate the final score of the middleware for the current server through a final score formula according to the adaptation score and weight of each hardware configuration parameter.
[0159] Determine the weight of the middleware for each hardware configuration (Msingle). These weights reflect the importance of each configuration to the performance of the middleware. Make sure the sum of all weights is 100% to maintain the accuracy and fairness of the evaluation.
[0160] in,
[0161] The adaptation score formula is:
[0162]
[0163] Where X is the current server basic information or business information, μ is the recommended configuration of the middleware, σ is the average value calculated through server sample data, adjust is the multiplier adjustment value, offset is the offset, and Xsinglej represents the adaptation score of the middleware to the jth hardware configuration parameter.
[0164] The final scoring formula is:
[0165] Xn=X single1 ×M single1 +X single2 ×M single2 +X single3 ×M single3 ...+X singlej ×M singlej ;
[0166] Where Msinglej represents the weight of the middleware for the jth hardware configuration parameter, and Xn is the final score of the middleware for the current server.
[0167] S4. Compare the scores of each middleware to the server with a preset threshold, automatically determine the middleware version to be deployed according to the comparison result, and perform intelligent deployment of the middleware according to the determined middleware version to be deployed.
[0168] Furthermore, if Figure 6 As shown, step S4 includes:
[0169] S41. Dynamically set one or more performance score thresholds based on middleware historical data, current business requirements, and server resource conditions. The thresholds can be dynamically adjusted based on multiple dimensions such as time, load, and system resource utilization to ensure the rationality and real-time nature of the thresholds.
[0170] S42: Compare the score of each middleware with the performance score threshold.
[0171] S43. Based on the comparison result between the score and the threshold, automatically select the middleware version that best suits the current server environment.
[0172] If the score is above a certain high threshold, you can choose a middleware version with better performance and richer features; if the score is below a certain low threshold, you may need to choose a lighter-weight version that consumes less resources.
[0173] S44. Automatically generate a deployment script or configuration file based on the determined middleware version, and execute an automated deployment process.
[0174] The above steps together constitute a complete middleware intelligent deployment process. By introducing the dynamic threshold setting method, deployment decisions are made more flexible and intelligent, and can better adapt to changes in different server configurations and business needs. At the same time, automated execution and post-deployment verification also improve the efficiency and accuracy of deployment.
[0175] Furthermore, if Figure 7 As shown, the method also includes:
[0176] A51. When a new server is added, the hardware configuration parameters of the new service are collected again.
[0177] A52. In the existing server cluster, select one or more servers with similar configurations as reference.
[0178] A53. For each hardware configuration, calculate the performance difference ratio between the new server and the reference server. This can be achieved by dividing the performance index value of the new server by the performance index value of the reference server.
[0179] A54. Adjust the weights of various hardware configuration parameters of the reference server according to the performance difference ratio to obtain the weights of various hardware configuration parameters of the new server.
[0180] For example, if the new server's CPU performance is 1.2 times that of the reference server, you can multiply the reference server's CPU weight by 1.2 to get the new server's CPU weight.
[0181] A55. After adjusting the weights of the various hardware configurations of the new server, all weights are normalized to ensure that their sum is 1 or 100%.
[0182] After adjusting the weights of each hardware configuration, the weights need to be normalized so that they sum to 1 or 100%. This can be done by dividing the weight of each configuration by the sum of all configuration weights.
[0183] In addition, an embodiment of the present invention provides a middleware deployment system based on hardware parameter weights, including:
[0184] The parameter combination module is used to obtain various hardware configuration parameters on the server, and sort and combine the various hardware configuration parameters to form a first list and a second list; wherein the first list contains hardware configuration parameters arranged in a certain order, and the second list contains hardware configuration parameters corresponding to the first list but in a different order.
[0185] The weight determination module is used to find the corresponding hardware configuration parameters in the second list based on the hardware configuration parameters in the first list to form at least one parameter pair, and use a linear interpolation algorithm for each parameter pair to obtain the weight of each hardware configuration parameter.
[0186] The score output module is used to calculate the score of each middleware for the server by using the performance evaluation normalization algorithm combined with the weights of various hardware configuration parameters, the recommended configuration of the middleware, and the current server basic information or business information.
[0187] The middleware deployment module is used to compare the scores of each middleware to the server with a preset threshold, automatically determine the middleware version to be deployed according to the comparison result, and perform intelligent deployment of the middleware according to the determined middleware version to be deployed.
[0188] In addition, an embodiment of the present invention provides a middleware deployment device based on hardware parameter weights, comprising: at least one database; and a memory communicatively connected to the at least one database; wherein the memory stores instructions executable by the at least one database, and the instructions are executed by the at least one database so that the at least one database can execute the middleware deployment method based on hardware parameter weights as described above.
[0189] When the database executes these instructions, it can automatically collect the hardware configuration parameters on the server, sort and combine these parameters to form a first list and a second list. Then, using the linear interpolation algorithm and the performance evaluation normalization algorithm, the weights of each hardware configuration parameter are calculated, and the middleware is scored based on these weights. Finally, by comparing the middleware score with the preset threshold, the database can automatically determine the most suitable middleware version for deployment and intelligently deploy it according to the determined version.
[0190] This device not only greatly improves the efficiency and accuracy of middleware deployment, but also reduces the reliance on manual operations, thereby saving manpower and time costs for enterprises. At the same time, since the deployment process is based on hardware parameter weights, it can ensure the best match between the middleware and the server hardware, thereby improving the overall performance and stability of the system. In general, the middleware deployment device based on hardware parameter weights provided by the embodiment of the present invention is an ideal choice for achieving efficient and intelligent middleware deployment.
[0191] Furthermore, an embodiment of the present invention provides a computer-readable medium having computer-executable instructions stored thereon, and when the executable instructions are executed by a processor, the middleware deployment method based on hardware parameter weights as described above is implemented.
[0192] Specifically, these instructions will guide the processor to complete the following tasks: First, obtain the hardware configuration parameters on the server, sort and combine these parameters to form a first list and a second list. Then, use a linear interpolation algorithm to calculate the weight of each parameter based on the difference and sorting of the hardware configuration parameters in the two lists. Then, combine these weights, the recommended configuration of the middleware, and the basic or business information of the server, and calculate the score of each middleware for the server through a performance evaluation normalization algorithm. Finally, compare these scores with the preset thresholds, automatically determine the most suitable middleware version for deployment based on the comparison results, and perform intelligent deployment.
[0193] Through this computer-readable medium and the executable instructions stored thereon, the embodiments of the present invention enable the middleware deployment method based on hardware parameter weights to be automatically and intelligently implemented in an actual computing environment, thereby greatly improving the efficiency and accuracy of middleware deployment, reducing the complexity and error rate of manual operations, and providing strong technical support for the construction of enterprise information systems.
[0194] In summary, the embodiments of the present invention provide a middleware deployment method, system, device, and medium based on hardware parameter weights. The method of the present invention obtains the hardware configuration parameters on the server, sorts and combines these parameters, calculates the weight of each parameter using a linear interpolation algorithm, and then combines the performance evaluation normalization algorithm and the recommended configuration of the middleware to calculate a score for each middleware, thereby automatically determining and deploying the most suitable middleware version. In addition, the present invention also constructs a system that can automatically execute the above-mentioned deployment method to ensure the accuracy and efficiency of the deployment. At the same time, the devices involved, such as servers and processors, provide hardware support for the implementation of this method. Finally, by providing a computer-readable medium that stores executable instructions for implementing the method, this method can be widely used in various computing environments.
[0195] The present invention distributes the weights of hardware parameters to different middleware versions, and realizes the intelligent selection of middleware versions by constructing a reasonable weight distribution. Compared with the traditional single configuration mode, it increases more flexibility, reduces the requirements for developers, and improves the research and development efficiency. For different types of software projects, by introducing hardware information to carry out intelligent deployment of middleware, the latest hardware resources and performance parameters can be obtained in real time, and the entire deployment process can be continuously optimized based on the dynamic feedback of these latest data, ensuring that each deployment can achieve the most ideal effect, thereby improving the quality of the software project. Through this deployment method, not only can the performance of the middleware under different hardware configurations be accurately evaluated, but also the most suitable middleware version can be automatically selected and deployed, greatly improving the efficiency and accuracy of middleware deployment.
[0196] Since the system / device described in the above embodiments of the present invention is a system / device used to implement the method of the above embodiments of the present invention, a person skilled in the art can understand the specific structure and deformation of the system / device based on the method described in the above embodiments of the present invention, and thus will not be described in detail here. All systems / devices used in the method of the above embodiments of the present invention belong to the scope of protection of the present invention.
[0197] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0198] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems) and computer program products according to embodiments of the present invention. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions.
[0199] It should be noted that in the scheme of the present invention, any figure mark between brackets should not be understood as limiting the scheme of the present invention. The word "comprising" does not exclude the existence of components or steps not listed in the scheme of the present invention. The word "one" or "an" preceding a component does not exclude the existence of multiple such components. The present invention can be implemented with the aid of hardware including several different components and with the aid of appropriately programmed computers. In the scheme of the present invention that lists several devices, several of these devices can be embodied by the same hardware. The use of the words first, second, third, etc. is only for convenience of expression and does not indicate any order. These words can be understood as part of the name of the component.
[0200] In addition, it should be noted that, in the description of this specification, the description of the terms "one embodiment", "some embodiments", "embodiment", "example", "specific example" or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.
[0201] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments after knowing the basic creative concept. Therefore, the present invention should be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present invention.
[0202] Obviously, those skilled in the art can make various modifications and variations to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention belong to the scope of the present invention and its equivalent technology, the present invention should also include these modifications and variations.
Claims
1. A middleware deployment method based on hardware parameter weights, characterized in that: include: Obtain various hardware configuration parameters on the server, and sort and combine the various hardware configuration parameters to form a first list and a second list; wherein the first list contains hardware configuration parameters arranged in a certain order, and the second list contains hardware configuration parameters corresponding to the first list but in a different order; Based on the hardware configuration parameters in the first list, the corresponding hardware configuration parameters in the second list are found to form at least one parameter pair, and a linear interpolation algorithm is used for each parameter pair to obtain the weight of each hardware configuration parameter; The performance evaluation normalization algorithm is used to combine the weights of various hardware configuration parameters, the recommended configuration of the middleware, and the current basic information or business information of the server to calculate the score of each middleware for the server; The scores of each middleware for the server are compared with the preset threshold, the middleware version to be deployed is automatically determined according to the comparison result, and the middleware is intelligently deployed according to the determined middleware version to be deployed.
2. The middleware deployment method based on hardware parameter weights according to claim 1, characterized in that: Before obtaining various hardware configuration parameters on the server and sorting and combining the various hardware configuration parameters to form the first list and the second list, the method further includes: Use specialized hardware detection software or tools to perform preliminary hardware detection on the server according to the initial detection strategy; According to the preliminary detection results of the hardware, at least one of the detection depth, accuracy and speed included in the initial detection strategy is dynamically adjusted by means of pre-set rules or machine learning models; Based on the adjusted initial detection strategy, the hardware configuration parameters are detected to obtain secondary detection results; Obtain and analyze historical performance data of middleware running on different hardware configurations, and develop a pre-screening list based on historical performance data and middleware operating characteristics; According to the pre-screening list, pre-screen the secondary detection results and output various hardware configuration parameters; Build a test environment that can simulate the middleware running under a specific hardware configuration, deploy the middleware in the simulation environment, and set different hardware configuration parameters; Use automated testing scripts or tools to perform performance testing on the middleware and output simulation test results.
3. The middleware deployment method based on hardware parameter weights according to claim 2, characterized in that: Acquiring various hardware configuration parameters on the server, and sorting and combining the various hardware configuration parameters to form a first list and a second list includes: Based on the simulation test results, the importance of each hardware configuration parameter obtained through pre-screening is evaluated; According to the evaluation result, various hardware configuration parameters are sorted from high to low or from low to high, and the sorted hardware configuration parameters are formed into a first list; Create an empty second list for storing the rearranged order of hardware configuration parameters; Starting from the first element of the first list, add the first element to the second list, then skip n-1 elements, select the n+1th element and add it to the second list; Repeat skipping n-1 elements multiple times, taking the n+1th element and adding it to the second list until the end of the first list is reached; If an element has been selected before the end of the first list, continue selecting from the unselected elements until all elements have been selected into the second list; If there are elements remaining in the first list that have not been added to the second list, then add the remaining elements to the end of the second list in the order they appear in the first list; Check that the second list contains all the parameters in the first list, and each parameter appears only once, and check that the length of the second list is the same as the first list; If the second list contains all the parameters in the first list, and each parameter appears only once, and the length of the second list is the same as the first list, then output the second list; The first list and the second list are output as readable files or database records to ensure that the first list and the second list can be accessed and used.
4. The middleware deployment method based on hardware parameter weights according to claim 1, characterized in that: Based on finding the hardware configuration parameters in the first list and the corresponding hardware configuration parameters in the second list to form at least one parameter pair, a linear interpolation algorithm is used for each parameter pair to obtain the weights of each hardware configuration parameter, including: For each hardware configuration parameter in the first list, find the corresponding parameter in the second list to form a parameter pair; Based on the range of values of each parameter pair, a linear interpolation interval is formed; Calculate the difference between each parameter pair in the two lists and establish a linear interpolation model based on the difference; In the determined linear interpolation interval, one or more interpolation points are selected, and the parameter estimation values of the selected interpolation points are calculated using the established linear interpolation model; Calculate the change in the sorting position of each hardware configuration parameter in the two lists; Assign a weight to each hardware configuration parameter based on the change in the interpolation point and the parameter estimate obtained by linear interpolation from the difference point and the change in the sorting position, and normalize the weights of all hardware configuration parameters so that their sum is 1; in, The parameter pair is; (p i ,p' i ), p i is the i-th hardware configuration parameter in the first list, p' i For the second list with p i Corresponding hardware configuration parameters; The interval of linear interpolation is: {min(p i ,p' i ), max(p i ,p' i )}; The linear interpolation model is: In the formula, p i is the i-th hardware configuration parameter in the first list, p' i is the corresponding p in the second list i Hardware configuration parameters, forming parameter pairs (p i ,p' i ), x is the difference point, x i 、x' i They are p i 、p' i The corresponding sort position; The change in the sorting position of each hardware configuration parameter in the two lists is: Δr=r’ i -r i ; In the formula, r i 、r' i are the sorting positions of the hardware configuration parameters in the first list and the second list respectively; The formula for weight distribution is: w i =a·|Δr|+(1+a)·|Δp|; In the formula, w i is the weight of the hardware configuration parameter, a is a coefficient between [0,1], which is used to balance the importance of ranking changes and parameter value changes in weight distribution, and Δp is the value at the interpolation point x. i and x i 'The change in the estimated parameter value obtained by linear interpolation.
5. The middleware deployment method based on hardware parameter weights according to claim 1, characterized in that: The performance evaluation normalization algorithm is used to combine the weights of various hardware configuration parameters, the recommended configuration of the middleware, and the current basic information or business information of the server to calculate the scores of each middleware for the server, including: Get basic information or business information of the current server; Obtain the recommended middleware configuration information and server sample data, and calculate the average value; For each hardware configuration parameter, the adaptation score is calculated using the adaptation score formula; According to the adaptation score and weight of each hardware configuration parameter, the final score of the middleware for the current server is calculated through the final score formula; in, The adaptation score formula is: In the formula, X is the current server basic information or business information, μ is the recommended configuration of the middleware, σ is the average value calculated by the server sample data, adjust is the multiplier adjustment value, offset is the offset, and Xsinglej represents the adaptation score of the middleware to the jth hardware configuration parameter; The final scoring formula is: Xn=X single1 ×M single1 +X single2 ×M single2 +X single3 ×M single3 ...+X singlej ×M singlej ; Where Msinglej represents the weight of the middleware for the jth hardware configuration parameter, and Xn is the final score of the middleware for the current server.
6. The middleware deployment method based on hardware parameter weights according to claim 1, characterized in that: Comparing the scores of each middleware to the server with a preset threshold, automatically determining the middleware version to be deployed according to the comparison result, and performing intelligent deployment of the middleware according to the determined middleware version to be deployed includes: Dynamically set one or more performance score thresholds based on middleware historical data, current business needs, and server resource conditions; Compare each middleware's score with a performance score threshold; Automatically select the middleware version that best suits the current server environment based on the comparison between the score and the threshold; According to the determined middleware version, the deployment script or configuration file is automatically generated, and the automated deployment process is executed.
7. The middleware deployment method based on hardware parameter weights according to any one of claims 1 to 6, characterized in that: include: When a new server is added, the hardware configuration parameters of the new service are collected again; In the existing server cluster, select one or more servers with similar configurations as references; For each hardware configuration, calculate the performance difference ratio between the new server and the reference server; The weights of various hardware configuration parameters of the reference server are adjusted according to the performance difference ratio to obtain the weights of various hardware configuration parameters of the new server; After adjusting the weights of the new server's hardware configurations, all weights are normalized to ensure that their sum is 1 or 100%.
8. A middleware deployment system based on hardware parameter weights, characterized in that: include: A parameter combination module, used to obtain various hardware configuration parameters on the server, and sort and combine the various hardware configuration parameters to form a first list and a second list; wherein the first list contains hardware configuration parameters arranged in a certain order, and the second list contains hardware configuration parameters corresponding to the first list but in a different order; A weight determination module, configured to form at least one parameter pair based on finding the corresponding hardware configuration parameters in the second list based on the hardware configuration parameters in the first list, and to obtain the weight of each hardware configuration parameter by using a linear interpolation algorithm for each parameter pair; The score output module is used to calculate the score of each middleware for the server by using the performance evaluation normalization algorithm combined with the weights of various hardware configuration parameters, the recommended configuration of the middleware, and the current server basic information or business information; The middleware deployment module is used to compare the scores of each middleware to the server with a preset threshold, automatically determine the middleware version to be deployed according to the comparison result, and perform intelligent deployment of the middleware according to the determined middleware version to be deployed.
9. A middleware deployment device based on hardware parameter weights, characterized in that: include: at least one database; And a memory communicatively connected to the at least one database; wherein the memory stores instructions executable by the at least one database, and the instructions are executed by the at least one database so that the at least one database can execute the middleware deployment method based on hardware parameter weights as described in any one of claims 1-7.
10. A computer-readable medium having computer-executable instructions stored thereon, characterized in that: When the executable instructions are executed by the processor, the middleware deployment method based on hardware parameter weights as described in any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Database deployment method, user equipment, storage medium and device
CN109977099A
Application program updating method and device, equipment and storage medium
CN115328515A
Resource selection method and device for constructing software version and electronic equipment
CN116225692A
Dynamic tensor compiling optimization method and device, electronic equipment and medium
CN117076098A
Deployment method and system
US20090132683A1
Cited By
Basic input and output system firmware upgrading method and electronic equipment
CN120704718A
Basic input output system firmware upgrade method and electronic device
CN120704718B
