Cluster fault tolerance judgment method, cloud operating system cluster and computing platform
By building automated testing tools and performing stress testing and fault simulation in the OpenStack cluster, the problem of inaccurate assessment of cloud operating system cluster fault tolerance in the existing technology has been solved, and a comprehensive assessment and improvement of cloud operating system cluster fault tolerance has been achieved. .
Patent Information
- Application Number
- CN202410722564.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-05
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-06-05
AI Technical Summary
When evaluating the fault tolerance of cloud operating system clusters, the existing technology lacks performance analysis under abnormal and extreme circumstances, making it difficult to conduct real-time monitoring and data collection when failures occur, resulting in inaccurate evaluation.
By building an OpenStack cluster, installing and configuring the CNQual automated testing tool, Prometheus and Grafana, conducting stress testing and fault simulation, collecting performance indicators and calculating the rate of change, and using the fault tolerance scoring model for quantitative evaluation.
It achieves a comprehensive performance evaluation of the cloud operating system cluster under normal, stress and failure conditions, provides more accurate fault tolerance evaluation results, and helps administrators understand and improve the cluster's fault tolerance.
Smart Images

Figure CN118312397B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of cloud computing, and in particular to a cluster fault tolerance capability judgment method, a cloud operating system cluster and a computing platform. Background Art
[0002] A cloud operating system cluster usually refers to a group of cloud servers running a specific operating system, working together through cluster technology to provide services and resources. These clusters can be used to build cloud computing platforms with high availability, high performance and scalability. These clusters usually consist of multiple physical or virtual servers connected together through a network and equipped with some special software to coordinate their work. Each node in the cluster can communicate and collaborate with each other to achieve functions such as load balancing, fault tolerance and resource sharing.
[0003] At present, traditional cluster evaluation methods usually focus on performance under normal working conditions. However, this evaluation method often ignores the performance of clusters under abnormal and extreme conditions. In real environments, clusters may suffer from various types of failures due to factors such as network failures, hardware failures, or malicious attacks. These failures may cause a sharp drop in performance or even system crashes, seriously affecting the normal operation of the business. Current evaluation methods often lack a detailed analysis of performance changes when failures occur. Even when performing fault simulations, there is a lack of real-time monitoring and data collection of performance indicators during the fault period. Therefore, it is not easy to have an in-depth understanding of the behavior and performance changes of the cluster during failures, and it is difficult to provide accurate evaluation and scoring for the fault tolerance of the cluster. Summary of the invention
[0004] In view of the deficiencies in the prior art, the present invention provides a cluster fault tolerance determination method, a cloud operating system cluster and a computing platform, which solve the problems mentioned in the background technology.
[0005] To achieve the above objectives, the present invention is implemented through the following technical solutions: A cluster fault tolerance capability determination method comprises the following steps:
[0006] S1. First, build an OpenStack cluster according to the official OpenStack documentation or guide, install and configure the CNQual automated testing tool in the cluster, interact with the OpenStack cluster, configure Prometheus and Grafana, collect various performance indicators of the OpenStack cluster, and display and analyze them in real time through Grafana;
[0007] S2. Use Apache JMeter to write a detailed stress test plan. According to the pre-defined test plan, start JMeter to perform stress testing, and regularly collect and save performance data during the stress test.
[0008] S3. Configure ChaosMonkey rules in the OpenStack cluster, select the fault type and trigger conditions, start ChaosMonkey, inject faults, observe the performance of the OpenStack cluster, record the performance indicators and behaviors when the fault occurs, and then observe the system recovery process.
[0009] S4. Use Grafana to monitor the performance indicators of the OpenStack cluster in real time, continuously collect performance data during stress testing and fault simulation, and save it to the database. Calculate the change rate of each performance indicator, and then substitute the change rate into the fault tolerance scoring algorithm model to obtain the system's fault tolerance score FTS.
[0010] S5. Finally, the output result of the fault tolerance score FTS is set to the fault tolerance score interval [0,1], and the output result of the fault tolerance FTS is brought into the score interval [0,1] to judge the cluster fault tolerance.
[0011] Preferably, S11, select a cloud server to support the deployment and operation of OpenStack, install and configure Mesos as the kernel of the operating system, and gradually install various components of OpenStack, including control nodes, computing nodes, and storage nodes, according to the instructions of the OpenStack official documentation guide, and use the tool DevStack to simplify the installation process, and then configure the OpenStack network, including the management network, external network, and instance network, so that the control node, computing node, and storage node can communicate normally;
[0012] S12. Install CNQual through the package management tool pip, enable CNQual to interact with the OpenStack cluster, perform test tasks, and configure the CNQual tool, including specifying the address and authentication information of the OpenStack cluster;
[0013] S13. Use apt to install and configure Prometheus and Grafana. Configure the collector in Prometheus and define the performance indicators to be collected, including CPU utilization, memory usage, network traffic, response time, throughput, and error rate. Configure Prometheus as the data source in Grafana to ensure that Grafana can obtain data from Prometheus. Use Grafana to create a dashboard, add charts, and configure the display of performance indicators.
[0014] Preferably, S21, installing Apache JMete in the cloud operating system cluster, starting Apache JMete, and configuring the parameters of Apache JMete, including the number of threads and time, creating a new test plan in Apache JMete, adding a thread group to the test plan, for simulating concurrent users to set the properties of the thread group, including the number of threads, time, and number of loops;
[0015] S22. Add Samplers under the thread group to send different types of requests, including HTTP requests and database requests, and configure the target URL, method, and parameters of the request. Configure each Sampler appropriately, including adding request parameters, HTTP request headers, and authentication information.
[0016] S23. Add a Listener to the test plan and configure the Listener, including setting the save file path, report output format, and chart type, to collect and display performance data during the stress test.
[0017] Preferably, S211, save the stress test plan in Apache JMete, click the "Start" button in the Apache JMete toolbar to start the stress test, and simulate a specified number of users and send requests to the target system through Apache JMete.
[0018] S212. During the test execution, use Prometheus and Grafana to monitor the performance indicators of the OpenStack cluster in real time and mark them as a pressure performance indicator set, which includes CPU utilization CPU before , memory usage MEM before 、Network traffic NET before , Response time RT before ,Thr before and error rate ER before ;
[0019] S213. Then, during the execution of the stress test, a set of stress performance indicators is collected and saved in a database according to the configuration.
[0020] Preferably, S31, ChaosMonkey is installed and configured in the OpenStack cluster, and the fault types are defined, wherein the fault types include performance bottlenecks existing in the cloud operating system cluster such as abnormal CPU load, abnormal memory usage, network delay, abnormal response time, abnormal throughput, and abnormal error rate, and then trigger condition rules are defined, and a time is randomly selected to trigger under specific load conditions;
[0021] S32. Start ChaosMonkey and inject faults. During the fault injection, use Prometheus and Grafana to monitor the performance indicators of the OpenStack cluster in real time and mark them as fault performance indicator sets. The fault performance indicator set includes CPU utilization CPU after , memory usage MEM after 、Network traffic NET after , Response time RT after ,Thr after and error rate ER after ;
[0022] S33. After the fault injection, observe the automatic recovery capability of the cloud operating system cluster, including the restart of instances and the redistribution of loads, record the performance changes during the recovery process, and analyze the collected fault performance indicator set and save it to the database according to the configuration.
[0023] Preferably, S41, extracting data from the database of the cloud operating system cluster, the pressure performance indicator set and the fault performance indicator set continuously collected from the performance data during the stress test and the fault simulation, analyzing the performance indicators of the OpenStack cluster during the stress test and after the fault is injected, and processing the data of each performance indicator, analyzing the change rate of each performance indicator, and the specific data processing method is as follows;
[0024] ;
[0025] ;
[0026] ;
[0027] ;
[0028] ;
[0029] ;
[0030] In the formula, Indicates the amount of change.
[0031] Preferably, S42, construct a fault tolerance scoring model, substitute the change rate into the fault tolerance scoring model, quantitatively evaluate the fault tolerance of the cloud operating system cluster through the fault tolerance scoring model, and calculate and obtain the fault tolerance score FTS; the fault tolerance score FTS is obtained through the output of the fault tolerance scoring model, and the specific fault tolerance scoring model is as follows;
[0032] +A;
[0033] Wherein, a1, a2, a3, a4, a5 and a6 represent CPU, MEM, NET, RT, THR and The weight value of ER is the weight value set by the administrator in the system configuration file, which is between 0.0 and 1.0, and a1+a2+a3+a4+a5+a6=1.0. n represents the calculation end position, which means that the calculation ends at weight a6. i represents the calculation start position, i=1 means that the calculation starts from weight a1, and A represents the correction coefficient.
[0034] Preferably, S51, construct a fault tolerance score interval [0,1], and bring the result output by the fault tolerance score FTS into the fault tolerance score interval [0,1] to perform fault tolerance evaluation on the cluster system; the specific evaluation scheme is as follows;
[0035] When the fault tolerance score FTS ≥ 1, it means that the cloud operating system cluster has excellent performance in various performance indicators under fault simulation conditions, and it is judged as a "first-level fault-tolerant cluster";
[0036] When 0<fault tolerance score FTS<1, it means that the performance indicators of the cloud operating system cluster are average under fault simulation conditions, and it is judged as a "secondary fault tolerance cluster";
[0037] When the fault tolerance score FTS ≤ 0, it means that the performance indicators of the cloud operating system cluster are low under the fault simulation conditions. In this case, it is judged as a "level 3 fault tolerance cluster";
[0038] Among them, the fault tolerance capability of "first-level fault-tolerant cluster" > "second-level fault-tolerant cluster" > "third-level fault-tolerant cluster".
[0039] Cluster fault tolerance capability judgment cloud operating system cluster, including environment deployment module, stress test module, fault simulation module, fault tolerance capability quantification module and fault tolerance capability judgment module;
[0040] The environment deployment module is used to build an OpenStack cluster, install and configure the CNQual automated testing tool in the cluster, configure Prometheus and Grafana to collect and display the performance indicators of the OpenStack cluster, and perform real-time display and analysis through Grafana;
[0041] The stress test module is used to write a detailed stress test plan using Apache JMeter, perform stress testing on the constructed OpenStack cluster, and collect stress performance indicator sets in real time;
[0042] The fault simulation module is used to configure ChaosMonkey rules in the OpenStack cluster, perform fault simulation, and collect fault performance indicator sets in real time;
[0043] The fault tolerance quantification module is used to correlate the obtained pressure performance indicator set and fault performance indicator set to calculate the change rate of each performance indicator of the cloud operating system cluster, and then construct a fault tolerance scoring algorithm model based on the change rate to quantify the fault tolerance of the cloud operating system cluster;
[0044] The fault tolerance judgment module is used to construct a fault tolerance score interval [0, 1], and bring the result output by the fault tolerance score FTS into the fault tolerance score interval [0, 1] to judge the fault tolerance of the cloud operating system cluster.
[0045] A cluster fault tolerance capability judgment computing platform includes: at least one processor, a memory, and an input and output unit;
[0046] The memory is used to store a computer program, and the processor is used to call the computer program stored in the memory to execute the cluster fault tolerance capability determination method. Beneficial Effects
[0047] The present invention provides a cluster fault tolerance determination method, a cloud operating system cluster and a computing platform, which have the following beneficial effects:
[0048] (1) Combined with the performance under normal working conditions, the administrator can have a comprehensive understanding of the performance of the cluster under normal operating conditions. Through the Grafana and Prometheus monitoring and analysis tools, the administrator can collect and analyze various performance indicators to comprehensively evaluate the basic performance of the cloud operating system cluster. Secondly, through stress testing, the administrator can simulate the performance of the cluster under high load. Tools such as Apache JMeter can simulate a large number of users and send requests to the target system to evaluate the performance stability and throughput of the cluster under stress. This comprehensive performance evaluation can help administrators find performance bottlenecks and problems that may occur in the cluster under high load and take optimization measures in time. Finally, through fault simulation, the administrator can evaluate the performance of the cluster in the face of various faults and abnormal situations. By configuring tools such as ChaosMonkey, the administrator can inject various types of faults to evaluate the self-healing ability and fault tolerance of the cluster. This comprehensive performance evaluation can help administrators better understand the fault tolerance of the cloud operating system cluster, be more calm in the face of faults and abnormal situations, and take corresponding repair and improvement measures in time to ensure the normal operation of the cluster.
[0049] (2) By constructing a fault tolerance scoring model, administrators can specify and quantify the fault tolerance of cloud computing clusters. This method can not only substitute the change rate of performance indicators into the model for calculation, but also map the evaluation results to the fault tolerance score interval [0,1], thereby providing administrators with more intuitive evaluation results. When constructing a fault tolerance scoring model, administrators need to consider the importance of each performance indicator and their impact on the overall fault tolerance of the cluster. By setting the weight value of each performance indicator, administrators can adjust the evaluation model according to actual conditions to ensure that the evaluation results are more objective and accurate. After substituting the change rate of performance indicators into the model for quantitative evaluation, administrators can obtain the fault tolerance score FTS. This score reflects the performance of the cluster when facing different pressures and abnormal situations, helping administrators to have a more comprehensive understanding of the fault tolerance level of the cluster. By mapping the fault tolerance score to the fault tolerance score interval [0,1], administrators can intuitively understand the fault tolerance level of the cluster and then formulate corresponding management strategies. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 A schematic diagram of the steps of the cluster fault tolerance determination method of the present invention;
[0051] Figure 2 A schematic diagram of the process of judging the cluster fault tolerance capability of a cloud operating system cluster according to the present invention; DETAILED DESCRIPTION
[0052] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. Example 1
[0053] See also Figure 1 The present invention provides a cluster fault tolerance determination method, comprising the following steps:
[0054] S1. First, build an OpenStack cluster according to the official OpenStack documentation or guide, install and configure the CNQual automated testing tool in the cluster, interact with the OpenStack cluster, configure Prometheus and Grafana, collect various performance indicators of the OpenStack cluster, and display and analyze them in real time through Grafana;
[0055] S2. Use Apache JMeter to write a detailed stress test plan. According to the pre-defined test plan, start JMeter to perform stress testing, and regularly collect and save performance data during the stress test.
[0056] S3. Configure ChaosMonkey rules in the OpenStack cluster, select the fault type and trigger conditions, start ChaosMonkey, inject faults, observe the performance of the OpenStack cluster, record the performance indicators and behaviors when the fault occurs, and then observe the system recovery process.
[0057] S4. Use Grafana to monitor the performance indicators of the OpenStack cluster in real time, continuously collect performance data during stress testing and fault simulation, and save it to the database. Calculate the change rate of each performance indicator, and then substitute the change rate into the fault tolerance scoring algorithm model to obtain the system's fault tolerance score FTS.
[0058] S5. Finally, the output result of the fault tolerance score FTS is set to the fault tolerance score interval [0,1], and the output result of the fault tolerance FTS is brought into the score interval [0,1] to judge the cluster fault tolerance.
[0059] In this embodiment, by combining the construction of an OpenStack cluster, stress testing, and fault simulation, the performance of the cluster under various circumstances can be comprehensively evaluated. Such a comprehensive evaluation can help administrators understand the performance of the cluster when it is working normally, under pressure, and responding to faults, so as to better evaluate its stability and reliability. By configuring Prometheus and Grafana to monitor the various performance indicators of the OpenStack cluster in real time, the administrator can promptly discover performance anomalies or faults and analyze the performance of the cluster in real time. This helps to adjust the cluster configuration or respond to faults in a timely manner, and improve the availability and stability of the cluster. By calculating the rate of change of the performance indicator and substituting it into the fault tolerance scoring algorithm model, the fault tolerance of the cluster can be quantitatively evaluated. This quantitative evaluation method enables administrators to more intuitively understand the performance of the cluster in different situations and make corresponding management decisions accordingly. Mapping the fault tolerance score to the interval [0,1] makes it easier for administrators to understand the fault tolerance level of the cluster. This standardized scoring method helps administrators compare the evaluation results with the preset fault tolerance level and determine the fault tolerance performance of the cluster accordingly. Based on the above evaluation results, administrators can more accurately judge the fault tolerance of the cluster and adopt corresponding management strategies as needed. This beneficial effect enables administrators to manage and maintain the OpenStack cluster more scientifically, ensuring that it is always in a highly available and stable state. Example 2
[0060] Please refer to Figure 1 , specifically:
[0061] S11. Select a cloud server to support the deployment and operation of OpenStack, and install and configure Mesos as the kernel of the operating system. Follow the instructions in the official OpenStack documentation guide to gradually install the various components of OpenStack, including the control node, computing node, and storage node. Use the DevStack tool to simplify the installation process, and then configure the OpenStack network, including the management network, external network, and instance network, so that the control node, computing node, and storage node can communicate normally.
[0062] S12. Install CNQual through the package management tool pip, enable CNQual to interact with the OpenStack cluster, perform test tasks, and configure the CNQual tool, including specifying the address and authentication information of the OpenStack cluster;
[0063] S13. Use apt to install and configure Prometheus and Grafana. Configure the collector in Prometheus and define the performance indicators that need to be collected. The performance indicators include CPU utilization, memory usage, network traffic, response time, throughput, and error rate. At the same time, configure Prometheus as the data source in Grafana to ensure that Grafana can obtain data from Prometheus. Use Grafana to create a dashboard, add charts, and configure the display of performance indicators.
[0064] In this embodiment, a cloud server is used to support OpenStack deployment, and Mesos is installed and configured as the cloud operating system kernel. In combination with the tool DevStack, the deployment process of the OpenStack cluster is greatly simplified. This can save administrators time and energy and reduce the risk of configuration errors. By gradually following the instructions of the OpenStack official documentation guide, installing each component and configuring the network, an OpenStack cluster with control nodes, computing nodes, and storage nodes can be quickly deployed. At the same time, the use of tools such as DevStack simplifies the installation process, making it easier to expand and update the cluster. Install and configure CNQual so that it can interact with the OpenStack cluster and perform test tasks. In this way, administrators can use CNQual to perform various tests, including performance testing, fault tolerance testing, etc., so as to more comprehensively evaluate the performance and reliability of the cluster. By installing and configuring Prometheus and Grafana, administrators can achieve real-time monitoring and analysis of OpenStack cluster performance indicators. By defining the performance indicators that need to be collected and creating a dashboard through Grafana, the performance of the cluster can be intuitively displayed, and performance problems can be discovered and solved in a timely manner. Configuring the management network, external network, and instance network to ensure normal communication between control nodes, computing nodes, and storage nodes helps improve the stability and reliability of the cluster. By carefully designing the network architecture, you can effectively manage traffic and avoid network congestion and single points of failure. This deployment and configuration method can help administrators quickly build and manage OpenStack clusters, while providing a wealth of testing and monitoring tools to help improve the performance, reliability, and stability of the cluster. Example 3
[0065] Please refer to Figure 1 , specifically:
[0066] S21. Install Apache JMete in the cloud operating system cluster, start Apache JMete, and configure the parameters of Apache JMete, including the number of threads and time. Create a new test plan in Apache JMete, and add a thread group to the test plan to simulate concurrent users setting the properties of the thread group, including the number of threads, time, and number of loops.
[0067] S22. Add Samplers under the thread group to send different types of requests, including HTTP requests and database requests, and configure the target URL, method, and parameters of the request. Configure each Sampler appropriately, including adding request parameters, HTTP request headers, and authentication information.
[0068] S23. Add a Listener to the test plan and configure the Listener, including setting the save file path, report output format, and chart type, to collect and display performance data during the stress test.
[0069] In this embodiment, by setting properties such as the number of threads, time, and number of loops, a new test plan can be created in Apache JMeter to simulate the behavior of concurrent users. This simulation can be closer to the actual user's usage and help evaluate the performance of the system under different loads. Adding Samplers under the thread group can send different types of requests, including HTTP requests and database requests. The administrator can configure the target URL, method, and parameters of the request as needed, as well as add request parameters, HTTP request headers, and authentication information to achieve stress testing of various functions and services of the system. After adding Listener and configuring it, performance data can be collected and displayed during the stress test. Setting parameters such as save file path, report output format, and chart type can help administrators monitor the performance of the system in real time, discover potential performance problems in a timely manner, and analyze and optimize. Apache JMeter provides a wealth of configuration options and plug-in support, and administrators can flexibly configure and expand as needed. This flexibility allows customized stress testing for different test scenarios and requirements, thereby more comprehensively evaluating the performance and stability of the system.
[0070] Apache JMeter provides intuitive charts and reports to visualize the performance data collected during stress testing. This visual result analysis helps administrators understand the system's performance more intuitively, identify performance bottlenecks, and take corresponding optimization measures. Example 4
[0071] Please refer to Figure 1 , specifically:
[0072] S211. Save the stress test plan in Apache JMete, click the "Start" button in the Apache JMete toolbar to start the stress test. Apache JMete will simulate the specified number of users and send requests to the target system.
[0073] S212. During the test execution, use Prometheus and Grafana to monitor the performance indicators of the OpenStack cluster in real time and mark them as stress performance indicator sets. The stress performance indicator set includes CPU utilization CPU before , memory usage MEM before 、Network traffic NET before , Response time RTbefore ,Thr before and error rate ER before ;
[0074] S213. Then, during the execution of the stress test, a set of stress performance indicators is collected and saved in a database according to the configuration.
[0075] S31. Install and configure ChaosMonkey in the OpenStack cluster, define fault types, including abnormal CPU load, abnormal memory usage, network delay, abnormal response time, abnormal throughput, and abnormal error rate. The cloud operating system cluster has performance bottlenecks, and then define trigger condition rules to randomly select time to trigger under specific load conditions;
[0076] S32. Start ChaosMonkey and inject faults. During the fault injection, use Prometheus and Grafana to monitor the performance indicators of the OpenStack cluster in real time and mark them as fault performance indicator sets. The fault performance indicator set includes CPU utilization CPU after , memory usage MEM after 、Network traffic NET after , Response time RT after ,Thr after and error rate ER after ;
[0077] S33. After the fault injection, observe the automatic recovery capability of the cloud operating system cluster, including the restart of instances and the redistribution of loads, record the performance changes during the recovery process, and analyze the collected fault performance indicator set and save it to the database according to the configuration.
[0078] In this embodiment, during the execution of the stress test, by monitoring the performance indicators of the OpenStack cluster in real time, the administrator can fully understand the performance of the cluster under different loads. By marking it as a stress performance indicator set, performance bottlenecks and potential problems can be discovered in time, providing data support for system optimization. During fault injection, using Prometheus and Grafana to monitor the performance indicators of the OpenStack cluster in real time can capture the situation when the fault occurs in time. Marking the performance indicators as a fault performance indicator set helps administrators evaluate the system's response capabilities to different types of faults. After the fault is injected, observe the automatic recovery capabilities of the cloud operating system cluster, including instance restarts, load redistribution, etc. Recording performance changes during the recovery process and analyzing the collected fault performance indicator set helps administrators evaluate the system's elasticity and judgment of the cluster's fault tolerance, providing reference and improvement direction for subsequent fault handling. The performance data collected during the stress test and fault simulation is saved to the database according to the configuration to provide support for subsequent data analysis and report generation. Example 5
[0079] Please refer to Figure 1 , specifically:
[0080] S41, extracting data from the database of the cloud operating system cluster, the pressure performance indicator set and the fault performance indicator set that are continuously collected from the performance data during the pressure test and the fault simulation, analyzing the performance indicators of the OpenStack cluster during the pressure test and after the fault is injected, and processing the data of each performance indicator, analyzing the change rate of each performance indicator, the specific data processing method is as follows;
[0081] ;
[0082] ;
[0083] ;
[0084] ;
[0085] ;
[0086] ;
[0087] In the formula, Indicates the amount of change.
[0088] S42, construct a fault tolerance scoring model, substitute the change rate into the fault tolerance scoring model, quantitatively evaluate the fault tolerance of the cloud operating system cluster through the fault tolerance scoring model, and calculate and obtain the fault tolerance score FTS; the fault tolerance score FTS is obtained through the output of the fault tolerance scoring model, and the specific fault tolerance scoring model is as follows; +A;
[0089] Wherein, a1, a2, a3, a4, a5 and a6 represent CPU, MEM, NET, RT, THR and The weight value of ER is the weight value set by the administrator in the system configuration file, which is between 0.0 and 1.0, and a1+a2+a3+a4+a5+a6=1.0. n represents the calculation end position, which means that the calculation ends at weight a6. i represents the calculation start position, i=1 means that the calculation starts from weight a1, and A represents the correction coefficient.
[0090] In this embodiment, by extracting the performance data stress performance indicator set and fault performance indicator set during stress testing and fault simulation from the database of the cloud operating system cluster, subsequent data processing and analysis can be performed. This method of continuously collecting performance data helps the administrator to fully understand the performance of the system and provide sufficient data basis for fault tolerance evaluation. Data processing is performed on the performance indicators during stress testing and fault simulation, and the change rate of each performance indicator is analyzed. By comparing the changes in performance indicators before and after stress testing and before and after fault simulation, the performance of the system under different loads and fault conditions can be more accurately evaluated, providing an important basis for fault tolerance evaluation. A fault tolerance scoring model is constructed based on the change rate of performance indicators, and the change rate of each performance indicator is substituted into the scoring model for quantitative evaluation. Through the fault tolerance scoring model, the administrator can convert the change amount of the performance indicator into the fault tolerance score FTS, so as to intuitively understand the fault tolerance level of the system. After substituting the change rate into the fault tolerance scoring model, the fault tolerance of the cloud operating system cluster can be quantitatively evaluated through the fault tolerance scoring model. By calculating the fault tolerance score FTS, the administrator can intuitively understand the system's ability to cope with stress and faults, providing guidance for subsequent optimization and improvement. Example 6
[0091] Please refer to Figure 1 , specifically:
[0092] S51, construct a fault tolerance score interval [0,1], and bring the result output by the fault tolerance score FTS into the fault tolerance score interval [0,1] to perform fault tolerance evaluation on the cluster system; the specific evaluation scheme is as follows;
[0093] When the fault tolerance score FTS ≥ 1, it means that the cloud operating system cluster has excellent performance in various performance indicators under fault simulation conditions, and it is judged as a "first-level fault-tolerant cluster";
[0094] When 0<fault tolerance score FTS<1, it means that the performance indicators of the cloud operating system cluster are average under fault simulation conditions, and it is judged as a "secondary fault tolerance cluster";
[0095] When the fault tolerance score FTS ≤ 0, it means that the performance indicators of the cloud operating system cluster are low under the fault simulation conditions. In this case, it is judged as a "level 3 fault tolerance cluster";
[0096] Among them, the fault tolerance capability of "first-level fault-tolerant cluster" > "second-level fault-tolerant cluster" > "third-level fault-tolerant cluster".
[0097] In this embodiment, the fault tolerance score FTS is mapped to the fault tolerance score interval [0,1], and divided according to a certain evaluation scheme, so that the fault tolerance level of the cluster system under fault simulation conditions can be intuitively understood. By dividing the scores into "first-level fault-tolerant cluster", "second-level fault-tolerant cluster" and "third-level fault-tolerant cluster", the administrator can quickly understand the fault tolerance performance of the system without having to deeply analyze the original data. The fault tolerance is divided into three levels and arranged in the order of "first-level fault-tolerant cluster" > "second-level fault-tolerant cluster" > "third-level fault-tolerant cluster", which helps the administrator to accurately evaluate the fault tolerance of the system and quickly identify the cluster with the best performance. Through the classification of fault tolerance levels, the administrator can adopt corresponding management strategies according to the actual performance of the system. For example, for the "first-level fault-tolerant cluster", the stability and reliability of the system can be further enhanced, while for the "third-level fault-tolerant cluster", it is necessary to pay closer attention to system performance issues and take targeted optimization measures. This evaluation scheme provides administrators with quantitative indicators for evaluating the fault tolerance of the system, which helps to make better decisions and planning. Administrators can reasonably arrange resources and optimize system configuration according to the system's fault tolerance level to improve system stability and reliability, thereby better meeting business needs. Example 7
[0098] Please refer to Figure 1 and Figure 2 ,Specifically: Cluster fault tolerance capability judgment of cloud operating system cluster, ,including environment deployment module, stress testing module, fault simulation module, fault tolerance ,quantification module and fault tolerance capability judgment module;
[0099] The environment deployment module is used to build an OpenStack cluster, install and configure the CNQual automated testing tool in the cluster, configure Prometheus and Grafana to collect and display the performance indicators of the OpenStack cluster, and perform real-time display and analysis through Grafana;
[0100] The stress test module is used to write a detailed stress test plan using Apache JMeter, perform stress testing on the constructed OpenStack cluster, and collect stress performance indicator sets in real time;
[0101] The fault simulation module is used to configure ChaosMonkey rules in the OpenStack cluster, perform fault simulation, and collect fault performance indicator sets in real time;
[0102] The fault tolerance quantification module is used to correlate the obtained pressure performance indicator set and fault performance indicator set to calculate the change rate of each performance indicator of the cloud operating system cluster, and then construct a fault tolerance scoring algorithm model based on the change rate to quantify the fault tolerance of the cloud operating system cluster;
[0103] The fault tolerance judgment module is used to construct a fault tolerance score interval [0, 1], and bring the result output by the fault tolerance score FTS into the fault tolerance score interval [0, 1] to judge the fault tolerance of the cloud operating system cluster.
[0104] A cluster fault tolerance capability judgment computing platform includes: at least one processor, a memory, and an input and output unit;
[0105] The memory is used to store a computer program, and the processor is used to call the computer program stored in the memory to execute the cluster fault tolerance capability determination method.
[0106] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A cluster fault tolerance determination method, characterized in that: The following steps are involved: S1. First, build an OpenStack cluster according to the official OpenStack documentation or guide, install and configure the CNQual automated testing tool in the cluster, interact with the OpenStack cluster, configure Prometheus and Grafana, collect various performance indicators of the OpenStack cluster, and display and analyze them in real time through Grafana; S2. Use Apache JMeter to write a detailed stress test plan. According to the pre-defined test plan, start JMeter to perform stress testing, and regularly collect and save performance data during the stress test. S3. Configure ChaosMonkey rules in the OpenStack cluster, select the fault type and trigger conditions, start ChaosMonkey, inject faults, observe the performance of the OpenStack cluster, record the performance indicators and behaviors when the fault occurs, and then observe the system recovery process. S31. Install and configure ChaosMonkey in the OpenStack cluster, define fault types, including performance bottlenecks in the cloud operating system cluster such as abnormal CPU load, abnormal memory usage, network delay, abnormal response time, abnormal throughput, and abnormal error rate, and then define trigger condition rules to randomly select a time to trigger under specific load conditions; S32. Start ChaosMonkey and inject faults. During the fault injection, use Prometheus and Grafana to monitor the performance indicators of the OpenStack cluster in real time and mark them as fault performance indicator sets. The fault performance indicator set includes CPU utilization CPU after , memory usage MEM after 、Network traffic NET after , Response time RT after ,Thr after and error rate ER after ; S33. After the fault is injected, observe the automatic recovery capability of the cloud operating system cluster, including the restart of the instance and the redistribution of the load, record the performance changes during the recovery process, and analyze the collected fault performance indicator set and save it to the database according to the configuration; S4. Use Grafana to monitor the performance indicators of the OpenStack cluster in real time, continuously collect performance data during stress testing and fault simulation, and save it to the database. Calculate the change rate of each performance indicator, and then substitute the change rate into the fault tolerance scoring algorithm model to obtain the system's fault tolerance score FTS. S42, construct a fault tolerance scoring model, substitute the change rate into the fault tolerance scoring model, quantitatively evaluate the fault tolerance of the cloud operating system cluster through the fault tolerance scoring model, and calculate and obtain the fault tolerance score FTS; the fault tolerance score FTS is obtained through the output of the fault tolerance scoring model, and the specific fault tolerance scoring model is as follows; Wherein, a1, a2, a3, a4, a5 and a6 represent the weight values of ΔCPU, ΔMEM, ΔNET, ΔRT, ΔTHR and ΔER respectively. The specific values are the weight values set by the administrator in the system configuration file, which are between 0.0 and 1.0, and a1+a2+a3+a4+a5+a6=1.0, n represents the calculation end position, i represents the calculation start position, A represents the correction coefficient, ΔCPU, ΔMEM, ΔNET, ΔRT, ΔTHR and ΔER represent the change in CPU utilization, the change in memory utilization, the change in network traffic, the change in response time, the change in throughput and the change in error rate respectively; S5. Finally, the output result of the fault tolerance score FTS is set to the fault tolerance score interval [0,1], and the output result of the fault tolerance FTS is brought into the score interval [0,1] to judge the cluster fault tolerance.
2. The cluster fault tolerance determination method according to claim 1, characterized in that: S11. Select a cloud server to support the deployment and operation of OpenStack, and install and configure Mesos as the kernel of the operating system. Follow the instructions of the OpenStack official documentation guide to gradually install the various components of OpenStack, including the control node, computing node, and storage node. Use the tool DevStack to simplify the installation process, and then configure the OpenStack network, including the management network, external network, and instance network, so that the control node, computing node, and storage node can communicate normally. S12. Install CNQual through the package management tool pip, enable CNQual to interact with the OpenStack cluster, perform test tasks, and configure the CNQual tool, including specifying the address and authentication information of the OpenStack cluster; S13. Use apt to install and configure Prometheus and Grafana. Configure the collector in Prometheus and define the performance indicators to be collected, including CPU utilization, memory usage, network traffic, response time, throughput, and error rate. Configure Prometheus as the data source in Grafana to ensure that Grafana can obtain data from Prometheus. Use Grafana to create a dashboard, add charts, and configure the display of performance indicators.
3. The cluster fault tolerance determination method according to claim 2, characterized in that: S21. Install Apache JMete in the cloud operating system cluster, start Apache JMete, and configure the parameters of Apache JMete, including the number of threads and time. Create a new test plan in Apache JMete, and add a thread group to the test plan to simulate concurrent users setting the properties of the thread group, including the number of threads, time, and number of loops. S22. Add Samplers under the thread group to send different types of requests, including HTTP requests and database requests, and configure the target URL, method, and parameters of the request. Configure each Sampler appropriately, including adding request parameters, HTTP request headers, and authentication information. S23. Add a Listener to the test plan and configure the Listener, including setting the save file path, report output format, and chart type, to collect and display performance data during the stress test.
4. The cluster fault tolerance determination method according to claim 3, characterized in that: S211. Save the stress test plan in Apache JMete, click the "Start" button in the Apache JMete toolbar to start the stress test. Apache JMete will simulate the specified number of users and send requests to the target system. S212. During the test execution, use Prometheus and Grafana to monitor the performance indicators of the OpenStack cluster in real time and mark them as a pressure performance indicator set, which includes CPU utilization CPU before , memory usage MEM before , network traffic NET before , Response time RT before ,Thr before and error rate ER before ; S213. Then, during the execution of the stress test, a set of stress performance indicators is collected and saved in a database according to the configuration.
5. The cluster fault tolerance determination method according to claim 4, characterized in that: S41, extracting data from the database of the cloud operating system cluster, the pressure performance indicator set and the fault performance indicator set that are continuously collected from the performance data during the pressure test and the fault simulation, analyzing the performance indicators of the OpenStack cluster during the pressure test and after the fault is injected, and processing the data of each performance indicator, analyzing the change rate of each performance indicator, the specific data processing method is as follows; In the formula, Δ represents the amount of change.
6. The cluster fault tolerance determination method according to claim 1, characterized in that: S51, construct a fault tolerance score interval [0,1], and bring the result output by the fault tolerance score FTS into the fault tolerance score interval [0,1] to perform fault tolerance evaluation on the cluster system; the specific evaluation scheme is as follows; When the fault tolerance score FTS ≥ 1, it means that the cloud operating system cluster has excellent performance in various performance indicators under fault simulation conditions, and it is judged as a "first-level fault-tolerant cluster"; When 0<fault tolerance score FTS<1, it means that the performance indicators of the cloud operating system cluster are average under fault simulation conditions, and it is judged as a "secondary fault tolerance cluster"; When the fault tolerance score FTS ≤ 0, it means that the performance indicators of the cloud operating system cluster are low under the fault simulation conditions. In this case, it is judged as a "level 3 fault tolerance cluster"; Among them, the fault tolerance capability of "first-level fault-tolerant cluster" > "second-level fault-tolerant cluster" > "third-level fault-tolerant cluster".
7. Cluster fault tolerance judgment cloud operating system cluster, including the cluster fault tolerance judgment method according to any one of claims 1 to 6 above, characterized in that: It includes environment deployment module, stress test module, fault simulation module, fault tolerance quantification module and fault tolerance judgment module; The environment deployment module is used to build an OpenStack cluster, install and configure the CNQual automated testing tool in the cluster, configure Prometheus and Grafana to collect and display the performance indicators of the OpenStack cluster, and perform real-time display and analysis through Grafana; The stress test module is used to write a detailed stress test plan using Apache JMeter, perform stress testing on the constructed OpenStack cluster, and collect stress performance indicator sets in real time; The fault simulation module is used to configure ChaosMonkey rules in the OpenStack cluster, perform fault simulation, and collect fault performance indicator sets in real time; The fault tolerance quantification module is used to correlate the obtained pressure performance indicator set and fault performance indicator set to calculate the change rate of each performance indicator of the cloud operating system cluster, and then construct a fault tolerance scoring algorithm model based on the change rate to quantify the fault tolerance of the cloud operating system cluster; The fault tolerance judgment module is used to construct a fault tolerance score interval [0, 1], and bring the result output by the fault tolerance score FTS into the fault tolerance score interval [0, 1] to judge the fault tolerance of the cloud operating system cluster.
8. Cluster fault tolerance capability judgment computing platform, characterized by: The cluster fault tolerance capability judgment computing platform includes: at least one processor, a memory and an input and output unit; The memory is used to store a computer program, and the processor is used to call the computer program stored in the memory to execute the cluster fault tolerance capability determination method according to any one of claims 1 to 6.
