Greenplum database health status monitoring method and related device
By obtaining and analyzing the hardware and database indicator information of each physical host of the Greenplum Database cluster, the problem of low health status monitoring accuracy in the existing technology is solved, and accurate health status monitoring and fault location of the Greenplum Database cluster are achieved.
Patent Information
- Application Number
- CN202111332675.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-11
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2041-11-11
AI Technical Summary
The existing Greenplum Database health status monitoring method has low accuracy and cannot accurately reflect the database health status in a timely manner, making it difficult for operation and maintenance personnel to quickly locate the root cause of the fault.
By obtaining the hardware fault information, host system indicator information and database operation indicator information of each physical host of the target Greenplum Database cluster, they are stored and analyzed respectively to determine the indicator curve group of faulty and non-faulty hosts, thereby determining the current health status of the database cluster.
It achieves timely and accurate monitoring of the health status of Greenplum Database clusters, can quickly identify faulty hosts and locate root causes, and improves operation and maintenance efficiency.
Smart Images

Figure CN114036026B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of operation and maintenance, and in particular to a Greenplum database health status monitoring method and related devices. Background Art
[0002] The core of the entire data line of the data warehouse is the only integration point for enterprise-level management decision-making data, and Greenplum database is a frequently used data management and analysis platform. In recent years, as the number of Greenplum database devices continues to increase, the number of alarms is also increasing, but the accuracy of the alarms is very low, and it is unable to accurately reflect the health status of the Greenplum database in a timely manner. Summary of the invention
[0003] In view of the above problems, the present invention provides a Greenplum database health status monitoring method and related devices that overcome the above problems or at least partially solve the above problems.
[0004] In a first aspect, a Greenplum database health status monitoring method includes:
[0005] Obtaining a variety of information of each physical host of the target Greenplum database cluster within a first time range, wherein the information of each physical host includes: hardware fault information, each host system indicator information at the host system level, and each database operation indicator information at the database operation level;
[0006] The hardware fault information, the host system indicator information and the database operation indicator information are stored in a data table corresponding to the MySQL database in chronological order, wherein the same information of multiple physical hosts corresponds to one data table;
[0007] Determine, according to the hardware fault information, a faulty physical host that has experienced a fault within a second time range and a non-faulty physical host that has not experienced a fault within the second time range, wherein the second time range is within the first time range;
[0008] According to the host system indicator information and the database operation indicator information of each of the faulty physical hosts, respectively determine a first indicator curve group corresponding to the host system indicator information of each of the faulty physical hosts and a second indicator curve group corresponding to the database operation indicator information of each of the faulty physical hosts;
[0009] According to the host system indicator information and the database operation indicator information of each of the fault-free physical hosts, respectively determine a third indicator curve group corresponding to the host system indicator information of each of the fault-free physical hosts and a fourth indicator curve group corresponding to the database operation indicator information of each of the fault-free physical hosts;
[0010] According to the first indicator curve group, the second indicator curve group, the third indicator curve group, and the fourth indicator curve group, the current health status of each of the physical hosts of the target Greenplum database cluster is determined respectively.
[0011] In combination with the first aspect, in some optional implementations, the method further includes:
[0012] If the target Greenplum database cluster is not a newly created Greenplum database cluster, directly obtain the hardware fault information, host system indicator information and database operation indicator information of each physical host;
[0013] If the target Greenplum database cluster is a newly built Greenplum database cluster, the hardware configuration information of the target Greenplum database cluster is obtained from the configuration library, and based on the hardware configuration information, the hardware fault information, host system indicator information and database operation indicator information of other Greenplum database clusters are obtained as the hardware fault information, host system indicator information and database operation indicator information of the target Greenplum database cluster, wherein the hardware configuration information of the other Greenplum database clusters is consistent with that of the target Greenplum database cluster.
[0014] In combination with the previous embodiment, in some optional embodiments, directly obtaining the hardware fault information, host system indicator information and database operation indicator information of each physical host includes:
[0015] Obtaining each trap message trap sent by each of the physical hosts through the SNMPTRAP protocol, and obtaining hardware fault information of each of the physical hosts within the first time range according to each of the trap message traps;
[0016] The patrol process deployed on each of the physical hosts collects the host system indicator information corresponding to each of the physical hosts within the first time range according to a preset period, wherein the host system indicator information includes at least one of: CPU utilization, system CPU occupancy, CPU waiting IO time, memory utilization, available memory rate, memory page swap in and out, SWAP utilization, number of user-opened processes, number of zombie processes, disk busy percentage, and disk IO read and write speed;
[0017] By running the corresponding scripts respectively, according to the preset period, the corresponding database operation index information of each physical host within the first time range is obtained from the corresponding log file, wherein the database operation index information includes: at least one of the number of user connections of the physical host, the execution time of SQL and the number of SQL completed within the preset period, the script corresponds to the log file, and the log file corresponds to the database operation index information.
[0018] In combination with the previous embodiment, in some optional embodiments, the determining, according to each of the host system indicator information and each of the database operation indicator information of each of the faulty physical hosts, respectively a first indicator curve group corresponding to each of the host system indicator information of the faulty physical hosts and a second indicator curve group corresponding to each of the database operation indicator information of the faulty physical hosts includes:
[0019] For any host system indicator information of each of the faulty physical hosts, method 1 is executed to determine the first indicator curve group;
[0020] Method 1: determining an index curve corresponding to the host system index information corresponding to the faulty physical host according to the host system index information corresponding to each of the faulty physical hosts;
[0021] For any database operation indicator information of each of the faulty physical hosts, the second method is executed to determine the second indicator curve group;
[0022] Method 2: determining an index curve corresponding to the database operation index information corresponding to the faulty physical host according to the database operation index information corresponding to each faulty physical host;
[0023] The method of determining, according to the host system indicator information and the database operation indicator information of each of the fault-free physical hosts, a third indicator curve group corresponding to the host system indicator information of each of the fault-free physical hosts and a fourth indicator curve group corresponding to the database operation indicator information of each of the fault-free physical hosts, respectively, comprises:
[0024] For any host system indicator information of each of the non-faulty physical hosts, method three is executed to determine the third indicator curve group;
[0025] Method three, determining an index curve corresponding to the host system index information corresponding to the fault-free physical host according to the host system index information corresponding to each fault-free physical host;
[0026] For any database operation indicator information of each of the non-faulty physical hosts, method 4 is executed to determine the fourth indicator curve group;
[0027] Method 4: determining an index curve corresponding to the database operation index information corresponding to each of the non-faulty physical hosts according to the database operation index information corresponding to each of the non-faulty physical hosts;
[0028] The first indicator curve group, the second indicator curve group, the third indicator curve group and the fourth indicator curve group each include at least one indicator curve, and one indicator curve corresponds to one indicator information.
[0029] In combination with the previous embodiment, in some optional embodiments, determining the current health status of each physical host of the target Greenplum database cluster according to the first indicator curve group, the second indicator curve group, the third indicator curve group, and the fourth indicator curve group respectively includes:
[0030] Obtaining hardware fault information of each of the physical hosts of the target Greenplum database cluster, current system indicator information of each of the hosts, and current operation indicator information of each of the databases;
[0031] For any physical host, the following steps are performed: determining, according to the hardware fault information, whether the physical host is the non-faulty physical host or the faulty physical host;
[0032] If the physical host is the faulty physical host, determining the health status of the host system indicator of the physical host according to the current host system indicator information and the first indicator curve group, and determining the health status of the database operation indicator of the physical host according to the current database operation indicator information and the second indicator curve group;
[0033] In the case where the physical host is the faulty physical host, determining the health status of the physical host according to the health status of the host system indicator of the physical host and the health status of the database operation indicator of the physical host;
[0034] If the physical host is the fault-free physical host, determining the health status of the host system indicator of the physical host according to the current host system indicator information and the third indicator curve group, and determining the health status of the database operation indicator of the physical host according to the current database operation indicator information and the fourth indicator curve group;
[0035] In the case that the physical host is the fault-free physical host, the health status of the physical host is determined according to the health status of the host system indicator of the physical host and the health status of the database operation indicator of the physical host.
[0036] In combination with the previous embodiment, in some optional embodiments, determining the health status of the host system indicator of the physical host according to the current host system indicator information and the first indicator curve group includes:
[0037] Fitting each of the current host system indicator information and the corresponding curve in the first indicator curve group, thereby respectively determining a first distance between each of the current host system indicator information and the corresponding curve in the first indicator curve group;
[0038] determining a health status of a host system indicator of the physical host according to each of the first distances;
[0039] Determining the health status of the database operation indicator of the physical host according to the current database operation indicator information and the second indicator curve group includes:
[0040] Fitting each of the current database operation indicator information and the corresponding curve in the second indicator curve group, thereby respectively determining a second distance between each of the database operation indicator information and the corresponding curve in the second indicator curve group;
[0041] The health status of the database operation indicator of the physical host is determined according to each of the second distances.
[0042] Optionally, in some optional implementations, determining the health status of the host system indicator of the physical host according to the current host system indicator information and the third indicator curve group includes:
[0043] Fitting each of the current host system indicator information and a corresponding curve in the third indicator curve group, thereby respectively determining a third distance between each of the current host system indicator information and a corresponding curve in the third indicator curve group;
[0044] Determining a health status of a host system indicator of the physical host according to each of the third distances;
[0045] Determining the health status of the database operation indicator of the physical host according to the current database operation indicator information and the fourth indicator curve group includes:
[0046] Fitting each of the current database operation indicator information and the corresponding curve in the fourth indicator curve group, thereby respectively obtaining a fourth distance between each of the current database operation indicator information and the corresponding curve in the fourth indicator curve group;
[0047] The health status of the host system indicator of the physical host is determined according to each of the fourth distances.
[0048] In a second aspect, a Greenplum database health status monitoring device includes: a plurality of information obtaining units, an information storage unit, a hardware fault determination unit, a fault curve unit, a non-fault curve unit, and a health status determination unit;
[0049] The multiple information obtaining unit is used to obtain multiple information of each physical host of the target Greenplum database cluster within a first time range, wherein the information of each physical host includes: hardware fault information, each host system indicator information at the host system level, and each database operation indicator information at the database operation level;
[0050] The information storage unit is used to store the hardware fault information, the host system indicator information and the database operation indicator information in a data table corresponding to the MySQL database in chronological order, wherein the same information of multiple physical hosts corresponds to one data table;
[0051] The hardware fault determination unit is used to determine, according to the hardware fault information, a faulty physical host that has experienced a fault within a second time range and a non-faulty physical host that has not experienced a fault within the second time range, wherein the second time range is within the first time range;
[0052] The faulty curve unit is used to determine, according to each of the host system indicator information and each of the database operation indicator information of each of the faulty physical hosts, a first indicator curve group corresponding to each of the host system indicator information of the faulty physical hosts and a second indicator curve group corresponding to each of the database operation indicator information of the faulty physical hosts;
[0053] The fault-free curve unit is used to determine, according to the host system indicator information and the database operation indicator information of each of the fault-free physical hosts, a third indicator curve group corresponding to each of the host system indicator information of the fault-free physical hosts and a fourth indicator curve group corresponding to each of the database operation indicator information of the fault-free physical hosts;
[0054] The health status determination unit is used to determine the current health status of each of the physical hosts of the target Greenplum database cluster according to the first indicator curve group, the second indicator curve group, the third indicator curve group, and the fourth indicator curve group.
[0055] In a third aspect, a computer-readable storage medium stores a program, and when the program is executed by a processor, the Greenplum database health status monitoring method described in any one of the above items is implemented.
[0056] In a fourth aspect, an electronic device includes at least one processor, and at least one memory and a bus connected to the processor; wherein the processor and the memory communicate with each other through the bus; and the processor is used to call program instructions in the memory to execute any one of the above-mentioned Greenplum database health status monitoring methods.
[0057] By means of the above technical scheme, the Greenplum database health status monitoring method and related devices provided by the present invention can obtain a variety of information of each physical host of the target Greenplum database cluster within a first time range, wherein the information of each physical host includes: hardware fault information, each host system indicator information at the host system level and each database operation indicator information at the database operation level; the hardware fault information, the host system indicator information and the database operation indicator information are stored in a data table corresponding to the MySQL database in chronological order, wherein the same information of multiple physical hosts corresponds to one data table; according to the hardware fault information, a faulty physical host that has had a fault within a second time range and a fault-free physical host that has not had a fault within the second time range are determined, wherein the second time range is within Within the first time range; according to the host system indicator information and the database operation indicator information of each of the faulty physical hosts, respectively determine the first indicator curve group corresponding to the host system indicator information of the faulty physical hosts and the second indicator curve group corresponding to the database operation indicator information of the faulty physical hosts; according to the host system indicator information and the database operation indicator information of each of the non-faulty physical hosts, respectively determine the third indicator curve group corresponding to the host system indicator information of the non-faulty physical hosts and the fourth indicator curve group corresponding to the database operation indicator information of the non-faulty physical hosts; according to the first indicator curve group, the second indicator curve group, the third indicator curve group and the fourth indicator curve group, respectively determine the current health status of each of the physical hosts of the target Greenplum database cluster. It can be seen from this that the present invention can timely and accurately determine the health status of the Greenplum database cluster based on the hardware information, host system indicator information and database operation indicator information of the physical hosts.
[0058] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0060] Figure 1A flow chart of a Greenplum database health status monitoring method provided by the present invention is shown;
[0061] Figure 2 A schematic diagram of the structure of a Greenplum database health status monitoring device provided by the present invention is shown;
[0062] Figure 3 A structural schematic diagram of an electronic device provided by the present invention is shown. DETAILED DESCRIPTION
[0063] As a distributed parallel processing database, Greenplum Database is widely used in large-scale data warehouse analysis and business intelligence mining scenarios. Greenplum Database includes multiple nodes, which are mainly divided into two categories: control node master and data node segment. The master node does not store any user data, but only controls access to the client and stores metadata of table distribution logic; the segment node is responsible for data storage and calculation.
[0064] A Greenplum database cluster can have dozens to hundreds of machines. During daily operation and maintenance, there are many areas that need attention. The host level includes CPU, memory, disk, network traffic, and system parameters; the database level includes configuration parameters, connection parameters, statistics, error logs, lock blocking, table data distribution, SQL execution performance (query quantity and time), and resource queue waiting.
[0065] The inventors have found through research that the existing Greenplum database monitoring method only collects part of the operating data of the host system layer and the database layer, resulting in low accuracy in analyzing the health status of the Greenplum database, further making it impossible for operation and maintenance personnel to quickly and accurately locate the root cause of the fault.
[0066] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0067] like Figure 1 As shown, the present invention provides a Greenplum database health status monitoring method, including: S100, S200, S300, S400, S500 and S600;
[0068] S100, obtaining a variety of information of each physical host of the target Greenplum database cluster within a first time range, wherein the information of each physical host includes: hardware fault information, system indicator information of each host at the host system level, and operation indicator information of each database at the database operation level;
[0069] Optionally, the present invention does not impose any restriction on the scale of the target Greenplum database cluster, and the present invention can be applied to target Greenplum database clusters of any scale, that is, the present invention does not impose any specific restriction on the number of physical hosts (physical servers).
[0070] Optionally, the present invention does not impose any specific restrictions on the method of collecting hardware fault information, host system indicator information, and database operation indicator information, and any feasible method belongs to the protection scope of the present invention. Figure 1 In the embodiment shown, in some optional embodiments, the S100 includes: step 1.1 and step 1.2;
[0071] Step 1.1, if the target Greenplum database cluster is not a newly created Greenplum database cluster, directly obtain the hardware fault information, host system indicator information and database operation indicator information of each physical host;
[0072] Step 1.2: If the target Greenplum database cluster is a newly built Greenplum database cluster, obtain the hardware configuration information of the target Greenplum database cluster from the configuration library, and based on the hardware configuration information, obtain the hardware fault information, host system indicator information and database operation indicator information of other Greenplum database clusters as the hardware fault information, host system indicator information and database operation indicator information of the target Greenplum database cluster, wherein the hardware configuration information of the other Greenplum database clusters is consistent with that of the target Greenplum database cluster.
[0073] Optionally, the hardware fault information refers to information indicating whether the physical host has a fault. Furthermore, if the physical host has a fault, the hardware fault information may further indicate which specific faults the physical host has, which is not limited in the present invention.
[0074] Optionally, hardware fault information can be collected by a hardware fault information collection module. The hardware fault information collection module uses the SNMPTRAP protocol to communicate with the server, through which multiple devices can be centrally managed. When a physical host has a hardware fault, the server will actively send a trap message to the hardware fault information collection module. The trap message includes the alarm time, the physical server host name, the faulty hardware type, and the faulty hardware location. After receiving the information, the hardware fault information collection module determines the Greenplum database cluster to which it belongs based on the host name and records it in the storage module.
[0075] Optionally, if the target Greenplum database cluster is a newly created Greenplum database cluster, it means that the cluster has not yet generated corresponding information. Therefore, the information of the same type of database cluster can be obtained as the information of the database cluster, that is, the hardware fault information, host system indicator information and database operation indicator information of other Greenplum database clusters with the same hardware configuration information are obtained as the hardware fault information, host system indicator information and database operation indicator information of the target Greenplum database cluster.
[0076] Optionally, for the collection of hardware configuration information: the present invention can divide the hardware configuration of the physical host where the Greenplum database deploys the segment node into three levels: gold, silver and bronze. The highest gold package is used for important operations such as bank president's reports and regulatory reporting requirements; the silver package is used for operations such as T+1 (yesterday's data, requiring data processing and data report generation today) and branch opening batches (some reports need to be reviewed before the branch opens for business to understand the bank's customers and capital dynamics); the bronze package is used for operations that do not affect production, such as experimental models and test environments. The corresponding hardware cost range is specified for the three different packages, and can be adjusted within the range according to different actual conditions.
[0077] The specific workflow of the hardware configuration information collection module is as follows: (1) Use the get_host_name() method to read the contents of the corresponding log file on the master node to obtain the host name and IP address of all segment node physical servers in the cluster; (2) According to the return result of (1), call the get_hardware_conf() method to obtain the hardware configuration information of each segment node physical server and save it to the storage module.
[0078] For another example, in combination with the previous embodiment, in some optional embodiments, the step 1.1 of directly obtaining the hardware fault information, host system index information and database operation index information of each physical host includes: step 2.1, step 2.2 and step 2.3;
[0079] Step 2.1, obtaining each trap message sent by each physical host through the SNMPTRAP protocol, and obtaining hardware fault information of each physical host within the first time range according to each trap message trap;
[0080] Step 2.2, respectively, through the patrol process deployed on each of the physical hosts, according to a preset period, collect the host system indicator information corresponding to each of the physical hosts within the first time range, wherein the host system indicator information includes: at least one of CPU utilization, system CPU occupancy, CPU waiting IO time, memory utilization, available memory rate, memory page swap in and out, SWAP utilization, number of user-opened processes, number of zombie processes, disk busy percentage, and disk IO read and write speed;
[0081] Step 2.3, by running the corresponding scripts respectively, according to the preset period, obtain the corresponding database operation index information of each physical host within the first time range from the corresponding log file, wherein the database operation index information includes: at least one of the number of user connections of the physical host, the execution time of SQL and the number of SQL completed within the preset period, the script corresponds to the log file, and the log file corresponds to the database operation index information.
[0082] Optionally, the present invention does not impose any specific limitation on the first time range, and any feasible manner belongs to the protection scope of the present invention. For example, the first time range may be: the latest 30 days.
[0083] Optionally, the present invention can obtain hardware failure information, host system index information and database operation index information of each physical server in the past 30 days respectively.
[0084] Optionally, the host system indicator information can be managed by the patrol process deployed on each database physical host. The process uses process number 3181, collects system parameters of the physical host once a minute, and transmits them to the collection module of the host system indicator information. The collection module summarizes the data by cluster and then sends it to the storage module.
[0085] Optionally, a corresponding connection count check script can be deployed on the master node of each Greenplum database cluster. The script can execute the select count(*)frompg_stat_activity command in the Greenplum database every 5 minutes to query the number of connections in the current database, and record the returned number of user connections in the pre-established log file 1 to record the number of user connections.
[0086] Optionally, before each business SQL is executed, the Greenplum database can record the SQL command content and start time in the pre-established log file 2. When the business SQL ends, the SQL command content and end time can also be recorded in the log file 2. Therefore, a pre-established script is used to search the log every 5 minutes, and SQL that has not ended after running for more than 2 hours is recorded in the log file 2.
[0087] Optionally, for the indicator of the number of SQL completed within 15 minutes, a pre-established script may be used to process log file 2, count the number of SQL completed in the past 15 minutes, and record it in pre-established log file 3.
[0088] Optionally, the database operation index information collection module can periodically read the above three log files on the master node to obtain the database operation index information, and then transmit it to the storage module.
[0089] S200, storing the hardware fault information, the host system indicator information and the database operation indicator information in a data table corresponding to the MySQL database in chronological order, wherein the same information of multiple physical hosts corresponds to one data table;
[0090] Optionally, the present invention can store the same information of multiple physical hosts in the same data table, that is, hardware fault information is stored in one data table, host system index information is stored in another data table, and database operation index information is stored in another data table, so as to facilitate the subsequent determination of the corresponding index curve, and the present invention does not limit this.
[0091] Optionally, as mentioned above, the present invention can collect information within the past 30 days, and then can store the information in a corresponding data table in sequence according to the generation time of each piece of information.
[0092] S300, determining, according to the hardware fault information, a faulty physical host that has experienced a fault within a second time range and a non-faulty physical host that has not experienced a fault within the second time range, wherein the second time range is within the first time range;
[0093] Optionally, the present invention does not specifically limit the second time range, and any feasible manner belongs to the protection scope of the present invention. The second time range can be equal to the first time range, or can be within the first time range. For example, the second time range can be the last 30 days, or the last 15 days, and the present invention does not limit this.
[0094] Optionally, as mentioned above, hardware fault information can indicate whether a physical host has a fault. Therefore, based on the fault information obtained above, physical hosts that have experienced hardware faults within a recent time range and physical hosts that have not experienced hardware faults within a recent time range can be determined. The present invention does not impose any restrictions on this.
[0095] Optionally, the physical hosts of the target Greenplum database cluster are divided into physical hosts that have experienced hardware failures and physical hosts that have not experienced hardware failures, so as to facilitate the subsequent establishment of different curve groups to distinguish and determine the health status of each physical host. The present invention is not limited to this.
[0096] S400, according to each of the host system indicator information and each of the database operation indicator information of each of the faulty physical hosts, respectively determine a first indicator curve group corresponding to each of the host system indicator information of the faulty physical hosts and a second indicator curve group corresponding to each of the database operation indicator information of the faulty physical hosts;
[0097] Optionally, the host system indicator information of each of the faulty physical hosts can be understood as: historical host system indicator information of the faulty physical hosts. That is, a corresponding curve can be established based on the historically recorded host system indicator information, thereby establishing a corresponding first indicator curve group. The second curve group, the third curve group, and the fourth curve group can also be understood in the same way, and the present invention will not elaborate on this.
[0098] Optionally, as mentioned above, the host system index information includes: CPU utilization, system CPU occupancy, CPU waiting IO time, memory utilization, available memory rate, memory page swap in and out, SWAP utilization, number of user-opened processes, number of zombie processes, disk busy percentage, disk IO read and write speed, etc., and the number of faulty physical hosts can also be multiple. Therefore, for any type of host system index information, the average value of all faulty physical hosts can be calculated to obtain an average value curve, which can reflect the average value of the host system index information of the faulty physical host at each historical time node. For example, there are 3 faulty physical hosts. For the memory utilization of these 3 faulty physical hosts, the average value of the memory utilization of these 3 faulty physical hosts in the last 30 days can be calculated, thereby obtaining an average value curve with time as the horizontal axis and the average value of memory utilization as the vertical axis. The second curve group, the third curve group and the fourth curve group can also be understood in the same way, and the present invention will not go into details.
[0099] S500, according to the host system indicator information and the database operation indicator information of each of the fault-free physical hosts, respectively determine a third indicator curve group corresponding to the host system indicator information of each of the fault-free physical hosts and a fourth indicator curve group corresponding to the database operation indicator information of each of the fault-free physical hosts;
[0100] Optionally, the explanation of S500 may refer to the relevant explanation in S400, which will not be described in detail in this article.
[0101] Optionally, in combination with the previous embodiment, in some optional embodiments, the S400 includes: step 3.1 and step 3.2;
[0102] Step 3.1: for any host system indicator information of each of the faulty physical hosts, execute method 1 to determine the first indicator curve group;
[0103] Method 1: determining an index curve corresponding to the host system index information corresponding to the faulty physical host according to the host system index information corresponding to each of the faulty physical hosts;
[0104] Step 3.2: for any database operation index information of each of the faulty physical hosts, execute the second method to determine the second index curve group;
[0105] Method 2: determining an index curve corresponding to the database operation index information corresponding to the faulty physical host according to the database operation index information corresponding to each faulty physical host;
[0106] The S500 includes: step 3.3 and step 3.4;
[0107] Step 3.3: for any host system indicator information of each of the non-faulty physical hosts, execute method 3 to determine the third indicator curve group;
[0108] Method three, determining an index curve corresponding to the host system index information corresponding to the fault-free physical host according to the host system index information corresponding to each fault-free physical host;
[0109] Step 3.4: for any database operation indicator information of each of the non-faulty physical hosts, execute method 4 to determine the fourth indicator curve group;
[0110] Method 4: determining an index curve corresponding to the database operation index information corresponding to each of the non-faulty physical hosts according to the database operation index information corresponding to each of the non-faulty physical hosts;
[0111] The first indicator curve group, the second indicator curve group, the third indicator curve group and the fourth indicator curve group each include at least one indicator curve, and one indicator curve corresponds to one indicator information.
[0112] S600. Determine the current health status of each of the physical hosts of the target Greenplum database cluster according to the first indicator curve group, the second indicator curve group, the third indicator curve group, and the fourth indicator curve group.
[0113] Optionally, as described above, the first indicator curve group, the second indicator curve group, the third indicator curve group and the fourth indicator curve group can be used as historical values for reference to determine the current health status of each of the physical hosts of the target Greenplum database cluster, and the present invention is not limited to this.
[0114] For example, in combination with the previous embodiment, in some optional embodiments, the S600 includes: step 4.1, step 4.2, step 4.3, step 4.4, step 4.5 and step 4.6;
[0115] Step 4.1, obtaining hardware fault information of each physical host of the target Greenplum database cluster, current system indicator information of each host, and current operation indicator information of each database;
[0116] Optionally, the information obtained in step 4.1 is the current information of each of the physical hosts, and the current health status of the physical host can be determined by comparing the current information with the corresponding historical values.
[0117] Optionally, the hardware failure information in step 4.1 may reflect whether a hardware failure has occurred recently in the hardware failure information of each of the physical hosts, and the present invention does not impose any limitation on this.
[0118] Step 4.2: For any physical host, the following steps are performed: determining, according to the hardware fault information, whether the physical host is the non-faulty physical host or the faulty physical host;
[0119] Step 4.3: If the physical host is the faulty physical host, determine the health status of the host system indicator of the physical host according to the current host system indicator information and the first indicator curve group, and determine the health status of the database operation indicator of the physical host according to the current database operation indicator information and the second indicator curve group;
[0120] Optionally, taking a curve in the first indicator curve group as an example, the curve may correspond to the memory utilization of the faulty physical host. Multiply the curve by the floating factor to obtain the upper limit curve corresponding to the curve; multiply the curve by the sinking factor to obtain the lower limit curve corresponding to the curve. Determine the current health status of the faulty physical host in terms of memory utilization based on whether the current memory utilization of the faulty physical host is greater than the upper limit curve or lower than the lower limit curve, thereby determining the health status of the faulty physical host in terms of host system indicators based on the health status of various host system indicators, and further determine the health status of the faulty physical host based on the health status of various indicators of the faulty physical host. The second curve group, the third curve group and the fourth curve group may also be understood in the same way, and the present invention will not elaborate on this.
[0121] Step 4.4: when the physical host is the faulty physical host, determine the health status of the physical host according to the health status of the host system indicator of the physical host and the health status of the database operation indicator of the physical host;
[0122] Step 4.5: If the physical host is the fault-free physical host, determine the health status of the host system indicator of the physical host according to the current host system indicator information and the third indicator curve group, and determine the health status of the database operation indicator of the physical host according to the current database operation indicator information and the fourth indicator curve group;
[0123] Step 4.6: When the physical host is the fault-free physical host, determine the health status of the physical host according to the health status of the host system indicators of the physical host and the health status of the database operation indicators of the physical host.
[0124] Optionally, after determining the health status of each physical host, the overall health status of the target Greenplum database cluster may be determined based on the health status of each physical host, and the present invention is not limited to this.
[0125] Optionally, the present invention does not impose any specific restrictions on the manner of determining the health status of the host system indicator of the physical host based on the current host system indicator information and the first indicator curve group. Similarly, the manner of determining the health status of the database operation indicator of the physical host based on the current database operation indicator information and the second indicator curve group is also not specifically restricted, and any feasible manner falls within the protection scope of the present invention.
[0126] For example, in combination with the previous embodiment, in some optional embodiments, step 4.3 includes: step 5.1, step 5.2, step 5.3 and step 5.4;
[0127] Step 5.1, fitting each of the current host system indicator information and the corresponding curve in the first indicator curve group, thereby respectively determining a first distance between each of the current host system indicator information and the corresponding curve in the first indicator curve group;
[0128] Step 5.2: Determine the health status of the host system indicator of the physical host according to each of the first distances.
[0129] Optionally, each curve may have a corresponding current value, and the distance between the current value and the curve may be calculated, thereby reflecting the gap between the current value and the historical value through the distance, which is not limited in the present invention.
[0130] Step 5.3, fitting each of the current database operation indicator information and the corresponding curve in the second indicator curve group, thereby respectively determining the second distance between each of the database operation indicator information and the corresponding curve in the second indicator curve group;
[0131] Step 5.4: Determine the health status of the database operation indicator of the physical host according to each of the second distances.
[0132] Optionally, in some optional embodiments, the step 4.5 includes: step 6.1, step 6.2, step 6.3 and step 6.4;
[0133] Step 6.1, fitting each of the current host system indicator information and the corresponding curve in the third indicator curve group, thereby respectively determining the third distance between each of the current host system indicator information and the corresponding curve in the third indicator curve group;
[0134] Step 6.2: Determine the health status of the host system indicator of the physical host according to each of the third distances.
[0135] Step 6.3, fitting each of the current database operation indicator information and the corresponding curve in the fourth indicator curve group, thereby respectively obtaining a fourth distance between each of the current database operation indicator information and the corresponding curve in the fourth indicator curve group;
[0136] Step 6.4: Determine the health status of the host system indicator of the physical host according to each of the fourth distances.
[0137] like Figure 2 As shown, the present invention provides a Greenplum database health status monitoring device, including: a plurality of information obtaining units 100, an information storage unit 200, a hardware fault determination unit 300, a fault curve unit 400, a non-fault curve unit 500 and a health status determination unit 600;
[0138] The multiple information obtaining unit 100 is used to obtain multiple information of each physical host of the target Greenplum database cluster within a first time range, wherein the information of each physical host includes: hardware fault information, each host system indicator information at the host system level, and each database operation indicator information at the database operation level;
[0139] The information storage unit 200 is used to store the hardware fault information, the host system indicator information and the database operation indicator information in a data table corresponding to the MySQL database in chronological order, wherein the same information of multiple physical hosts corresponds to one data table;
[0140] The hardware fault determination unit 300 is used to determine, according to the hardware fault information, a faulty physical host that has experienced a fault within a second time range and a non-faulty physical host that has not experienced a fault within the second time range, wherein the second time range is within the first time range;
[0141] The faulty curve unit 400 is used to determine, according to the host system indicator information and the database operation indicator information of each of the faulty physical hosts, a first indicator curve group corresponding to each of the host system indicator information of the faulty physical hosts and a second indicator curve group corresponding to each of the database operation indicator information of the faulty physical hosts;
[0142] The fault-free curve unit 500 is used to determine, according to the host system indicator information and the database operation indicator information of each of the fault-free physical hosts, a third indicator curve group corresponding to the host system indicator information of each of the fault-free physical hosts and a fourth indicator curve group corresponding to the database operation indicator information of each of the fault-free physical hosts;
[0143] The health status determination unit 600 is used to determine the current health status of each physical host of the target Greenplum database cluster according to the first indicator curve group, the second indicator curve group, the third indicator curve group, and the fourth indicator curve group.
[0144] Combination Figure 2 In the illustrated embodiment, in certain optional embodiments, the various information obtaining unit 100 includes: a first hardware information obtaining unit and a second hardware information obtaining unit;
[0145] A first hardware information obtaining unit, configured to obtain hardware configuration information of the target Greenplum database cluster from a configuration library if the target Greenplum database cluster is not a newly created Greenplum database cluster;
[0146] The second hardware information obtaining unit is used to obtain, if the target Greenplum database cluster is a newly created Greenplum database cluster, hardware configuration information of each physical host of other Greenplum database clusters within the first time range according to the hardware configuration information as the hardware configuration information of each physical host of the target Greenplum database cluster within the first time range.
[0147] In combination with the previous embodiment, in some optional embodiments, the multiple information obtaining unit 100 further includes: a system indicator obtaining unit and a database operation indicator obtaining unit;
[0148] The system indicator acquisition unit is used to perform, for each of the host system indicator information, the following steps: respectively collecting the host system indicator information corresponding to each physical host of the target Greenplum database cluster within a first time range according to a preset period through a patrol process deployed on each physical host, wherein the host system indicator information includes at least one of: CPU utilization, system CPU occupancy, CPU waiting IO time, memory utilization, available memory rate, memory page swap in and out, SWAP utilization, number of user-opened processes, number of zombie processes, disk busy percentage, and disk IO read and write speed;
[0149] The database operation indicator obtaining unit is used to execute, for each of the database operation indicator information, the following steps: respectively obtain the corresponding database operation indicator information of each physical host of the target Greenplum database cluster within a first time range from the corresponding log file according to a preset period by running the corresponding script, wherein the database operation indicator information includes at least one of the number of user connections of the physical host, the execution time of SQL, and the number of SQL completed within each preset period, the script corresponds to the log file, and the log file corresponds to the database operation indicator information.
[0150] In combination with the previous embodiment, in some optional embodiments, the faulty curve unit 400 includes: a first curve group unit and a second curve group unit;
[0151] A first curve group unit, configured to execute method 1 for any host system indicator information of each of the faulty physical hosts, thereby determining the first indicator curve group;
[0152] Method 1: determining an index curve corresponding to the host system index information corresponding to the faulty physical host according to the host system index information corresponding to each of the faulty physical hosts;
[0153] A second curve group unit, configured to execute mode 2 for any database operation indicator information of each of the faulty physical hosts, thereby determining the second indicator curve group;
[0154] Method 2: determining an index curve corresponding to the database operation index information corresponding to the faulty physical host according to the database operation index information corresponding to each faulty physical host;
[0155] The fault-free curve unit 500 includes: a third curve group unit and a fourth curve group unit;
[0156] A third curve group unit, configured to execute mode 3 for any host system indicator information of each of the non-faulty physical hosts, thereby determining the third indicator curve group;
[0157] Method three, determining an index curve corresponding to the host system index information corresponding to the fault-free physical host according to the host system index information corresponding to each fault-free physical host;
[0158] A fourth curve group unit, configured to execute mode 4 for any database operation indicator information of each of the non-faulty physical hosts, thereby determining the fourth indicator curve group;
[0159] Method 4: determining an index curve corresponding to the database operation index information corresponding to each of the non-faulty physical hosts according to the database operation index information corresponding to each of the non-faulty physical hosts;
[0160] The first indicator curve group, the second indicator curve group, the third indicator curve group and the fourth indicator curve group each include at least one indicator curve, and one indicator curve corresponds to one indicator information.
[0161] In combination with the previous embodiment, in some optional embodiments, the health status determination unit 600 includes: a current information acquisition unit, a host determination unit, a first health status determination unit, a second health status determination unit, a third health status determination unit, and a fourth health status determination unit;
[0162] A current information obtaining unit, used to obtain hardware fault information of each of the physical hosts of the target Greenplum database cluster, current system indicator information of each of the hosts, and current operation indicator information of each of the databases;
[0163] A host determination unit, configured to perform, for any physical host: determining, according to the hardware fault information, whether the physical host is the non-faulty physical host or the faulty physical host;
[0164] a first health status determination unit, configured to determine, if the physical host is the faulty physical host, a health status of a host system indicator of the physical host according to the current host system indicator information and the first indicator curve group, and determine a health status of a database operation indicator of the physical host according to the current database operation indicator information and the second indicator curve group;
[0165] a second health status determination unit, configured to determine the health status of the physical host according to the health status of the host system indicator of the physical host and the health status of the database operation indicator of the physical host when the physical host is the faulty physical host;
[0166] a third health status determination unit, configured to determine the health status of the host system indicator of the physical host according to the current host system indicator information and the third indicator curve group, and determine the health status of the database operation indicator of the physical host according to the current database operation indicator information and the fourth indicator curve group, if the physical host is the fault-free physical host;
[0167] The fourth health status determination unit is used to determine the health status of the physical host according to the health status of the host system indicators of the physical host and the health status of the database operation indicators of the physical host when the physical host is the fault-free physical host.
[0168] In combination with the previous embodiment, in some optional embodiments, the first health status determination unit includes: a first distance calculation unit, a first health determination unit, a second distance calculation unit, and a second health determination unit;
[0169] a first distance calculation unit, configured to fit each of the current host system indicator information and a corresponding curve in the first indicator curve group, thereby respectively determining a first distance between each of the current host system indicator information and a corresponding curve in the first indicator curve group;
[0170] The first health determination unit is used to determine the health status of the host system indicator of the physical host according to each of the first distances.
[0171] a second distance calculation unit, used for fitting each of the current database operation index information and a corresponding curve in the second index curve group, so as to respectively determine a second distance between each of the database operation index information and a corresponding curve in the second index curve group;
[0172] The second health determination unit is used to determine the health status of the database operation indicator of the physical host according to each of the second distances.
[0173] Optionally, in certain optional embodiments, the third health status determination unit includes: a third distance calculation unit, a third health determination unit, a fourth distance calculation unit, and a fourth health determination unit;
[0174] a third distance calculation unit, used for fitting each of the current host system indicator information and a corresponding curve in the third indicator curve group, so as to respectively determine a third distance between each of the current host system indicator information and a corresponding curve in the third indicator curve group;
[0175] The third health determination unit is used to determine the health status of the host system indicator of the physical host according to each of the third distances.
[0176] a fourth distance calculation unit, used for fitting each of the current database operation index information and a corresponding curve in the fourth index curve group, so as to respectively calculate a fourth distance between each of the current database operation index information and a corresponding curve in the fourth index curve group;
[0177] The fourth health determination unit is used to determine the health status of the host system indicator of the physical host according to each of the fourth distances.
[0178] The present invention provides a computer-readable storage medium having a program stored thereon, wherein when the program is executed by a processor, the Greenplum database health status monitoring method described in any one of the above items is implemented.
[0179] like Figure 3 As shown, the present invention provides an electronic device 70, which includes at least one processor 701, and at least one memory 702 and a bus 703 connected to the processor 701; wherein the processor 701 and the memory 702 communicate with each other through the bus 703; the processor 701 is used to call the program instructions in the memory 702 to execute any of the above-mentioned Greenplum database health status monitoring methods.
[0180] In this application, relational terms such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0181] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0182] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
[0183] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims
1. A Greenplum database health status monitoring method, characterized in that: include: Obtaining a variety of information of each physical host of the target Greenplum database cluster within a first time range, wherein the information of each physical host includes: hardware fault information, each host system indicator information at the host system level, and each database operation indicator information at the database operation level; The hardware fault information, the host system indicator information and the database operation indicator information are stored in a data table corresponding to the MySQL database in chronological order, wherein the same information of multiple physical hosts corresponds to one data table; Determine, according to the hardware fault information, a faulty physical host that has experienced a fault within a second time range and a non-faulty physical host that has not experienced a fault within the second time range, wherein the second time range is within the first time range; According to the host system indicator information and the database operation indicator information of each of the faulty physical hosts, respectively determine a first indicator curve group corresponding to the host system indicator information of each of the faulty physical hosts and a second indicator curve group corresponding to the database operation indicator information of each of the faulty physical hosts; According to the host system indicator information and the database operation indicator information of each of the fault-free physical hosts, respectively determine a third indicator curve group corresponding to the host system indicator information of each of the fault-free physical hosts and a fourth indicator curve group corresponding to the database operation indicator information of each of the fault-free physical hosts; According to the first indicator curve group, the second indicator curve group, the third indicator curve group, and the fourth indicator curve group, the current health status of each of the physical hosts of the target Greenplum database cluster is determined respectively.
2. The method according to claim 1, characterized in that: The method further comprises: If the target Greenplum database cluster is not a newly created Greenplum database cluster, directly obtain the hardware fault information, host system indicator information and database operation indicator information of each physical host; If the target Greenplum database cluster is a newly built Greenplum database cluster, the hardware configuration information of the target Greenplum database cluster is obtained from the configuration library, and based on the hardware configuration information, the hardware fault information, host system indicator information and database operation indicator information of other Greenplum database clusters are obtained as the hardware fault information, host system indicator information and database operation indicator information of the target Greenplum database cluster, wherein the hardware configuration information of the other Greenplum database clusters is consistent with that of the target Greenplum database cluster.
3. The method according to claim 2, characterized in that The directly obtaining the hardware fault information, host system index information and database operation index information of each physical host includes: Obtaining each trap message trap sent by each of the physical hosts through the SNMPTRAP protocol, and obtaining hardware fault information of each of the physical hosts within the first time range according to each of the trap message traps; The patrol process deployed on each of the physical hosts collects the host system indicator information corresponding to each of the physical hosts within the first time range according to a preset period, wherein the host system indicator information includes at least one of: CPU utilization, system CPU occupancy, CPU waiting IO time, memory utilization, available memory rate, memory page swap in and out, SWAP utilization, number of user-opened processes, number of zombie processes, disk busy percentage, and disk IO read and write speed; By running the corresponding scripts respectively, according to the preset period, the corresponding database operation index information of each physical host within the first time range is obtained from the corresponding log file, wherein the database operation index information includes: at least one of the number of user connections of the physical host, the execution time of SQL and the number of SQL completed within the preset period, the script corresponds to the log file, and the log file corresponds to the database operation index information.
4. The method according to claim 3, characterized in that The determining, according to each of the host system indicator information and each of the database operation indicator information of each of the faulty physical hosts, respectively a first indicator curve group corresponding to each of the host system indicator information of the faulty physical hosts and a second indicator curve group corresponding to each of the database operation indicator information of the faulty physical hosts, comprises: For any host system indicator information of each of the faulty physical hosts, method 1 is executed to determine the first indicator curve group; Method 1: determining an index curve corresponding to the host system index information corresponding to the faulty physical host according to the host system index information corresponding to each of the faulty physical hosts; For any database operation indicator information of each of the faulty physical hosts, the second method is executed to determine the second indicator curve group; Method 2: determining an index curve corresponding to the database operation index information corresponding to the faulty physical host according to the database operation index information corresponding to each faulty physical host; The method of determining, according to the host system indicator information and the database operation indicator information of each of the fault-free physical hosts, a third indicator curve group corresponding to the host system indicator information of each of the fault-free physical hosts and a fourth indicator curve group corresponding to the database operation indicator information of each of the fault-free physical hosts, respectively, comprises: For any host system indicator information of each of the non-faulty physical hosts, method three is executed to determine the third indicator curve group; Method three, determining an index curve corresponding to the host system index information corresponding to the fault-free physical host according to the host system index information corresponding to each fault-free physical host; For any database operation indicator information of each of the non-faulty physical hosts, method 4 is executed to determine the fourth indicator curve group; Method 4: determining an index curve corresponding to the database operation index information corresponding to each of the non-faulty physical hosts according to the database operation index information corresponding to each of the non-faulty physical hosts; The first indicator curve group, the second indicator curve group, the third indicator curve group and the fourth indicator curve group each include at least one indicator curve, and one indicator curve corresponds to one indicator information.
5. The method according to claim 4, characterized in that Determining the current health status of each of the physical hosts of the target Greenplum database cluster according to the first indicator curve group, the second indicator curve group, the third indicator curve group, and the fourth indicator curve group, respectively, includes: Obtaining hardware fault information of each of the physical hosts, current system indicator information of each of the hosts, and current operation indicator information of each of the databases; For any of the physical hosts, the following steps are performed: determining, according to the hardware fault information, whether the physical host is the non-faulty physical host or the faulty physical host; If the physical host is the faulty physical host, determining the health status of the host system indicator of the physical host according to the current host system indicator information and the first indicator curve group, and determining the health status of the database operation indicator of the physical host according to the current database operation indicator information and the second indicator curve group; In the case where the physical host is the faulty physical host, determining the health status of the physical host according to the health status of the host system indicator of the physical host and the health status of the database operation indicator of the physical host; If the physical host is the fault-free physical host, determining the health status of the host system indicator of the physical host according to the current host system indicator information and the third indicator curve group, and determining the health status of the database operation indicator of the physical host according to the current database operation indicator information and the fourth indicator curve group; In the case that the physical host is the fault-free physical host, the health status of the physical host is determined according to the health status of the host system indicator of the physical host and the health status of the database operation indicator of the physical host.
6. The method according to claim 5, characterized in that The determining the health status of the host system indicator of the physical host according to the current host system indicator information and the first indicator curve group includes: Fitting each of the current host system indicator information and the corresponding curve in the first indicator curve group, thereby respectively determining a first distance between each of the current host system indicator information and the corresponding curve in the first indicator curve group; determining a health status of a host system indicator of the physical host according to each of the first distances; Determining the health status of the database operation indicator of the physical host according to the current database operation indicator information and the second indicator curve group includes: Fitting each of the current database operation indicator information and the corresponding curve in the second indicator curve group, thereby respectively determining a second distance between each of the database operation indicator information and the corresponding curve in the second indicator curve group; The health status of the database operation indicator of the physical host is determined according to each of the second distances.
7. The method according to claim 5, characterized in that The determining the health status of the host system indicator of the physical host according to the current host system indicator information and the third indicator curve group includes: Fitting each of the current host system indicator information and a corresponding curve in the third indicator curve group, thereby respectively determining a third distance between each of the current host system indicator information and a corresponding curve in the third indicator curve group; Determining a health status of a host system indicator of the physical host according to each of the third distances; Determining the health status of the database operation indicator of the physical host according to the current database operation indicator information and the fourth indicator curve group includes: Fitting each of the current database operation indicator information and the corresponding curve in the fourth indicator curve group, thereby respectively obtaining a fourth distance between each of the current database operation indicator information and the corresponding curve in the fourth indicator curve group; The health status of the host system indicator of the physical host is determined according to each of the fourth distances.
8. A Greenplum database health status monitoring device, characterized in that: include: Various information acquisition units, information storage units, hardware fault determination units, fault curve units, non-fault curve units and health status determination units; The multiple information obtaining unit is used to obtain multiple information of each physical host of the target Greenplum database cluster within a first time range, wherein the information of each physical host includes: hardware fault information, each host system indicator information at the host system level, and each database operation indicator information at the database operation level; The information storage unit is used to store the hardware fault information, the host system indicator information and the database operation indicator information in a data table corresponding to the MySQL database in chronological order, wherein the same information of multiple physical hosts corresponds to one data table; The hardware fault determination unit is used to determine, according to the hardware fault information, a faulty physical host that has experienced a fault within a second time range and a non-faulty physical host that has not experienced a fault within the second time range, wherein the second time range is within the first time range; The faulty curve unit is used to determine, according to each of the host system indicator information and each of the database operation indicator information of each of the faulty physical hosts, a first indicator curve group corresponding to each of the host system indicator information of the faulty physical hosts and a second indicator curve group corresponding to each of the database operation indicator information of the faulty physical hosts; The fault-free curve unit is used to determine, according to the host system indicator information and the database operation indicator information of each of the fault-free physical hosts, a third indicator curve group corresponding to each of the host system indicator information of the fault-free physical hosts and a fourth indicator curve group corresponding to each of the database operation indicator information of the fault-free physical hosts; The health status determination unit is used to determine the current health status of each of the physical hosts of the target Greenplum database cluster according to the first indicator curve group, the second indicator curve group, the third indicator curve group, and the fourth indicator curve group.
9. A computer-readable storage medium having a program stored thereon, characterized in that: When the program is executed by a processor, the Greenplum database health status monitoring method according to any one of claims 1 to 7 is implemented.
10. An electronic device, characterized in that: The electronic device includes at least one processor, and at least one memory and a bus connected to the processor; wherein the processor and the memory communicate with each other through the bus; the processor is used to call program instructions in the memory to execute the Greenplum database health status monitoring method according to any one of claims 1 to 7.
