CN114598624B - Cluster monitoring method and device, electronic equipment and readable storage medium - Google Patents

Cluster monitoring method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN114598624B
CN114598624B CN202210253792.8A CN202210253792A CN114598624B CN 114598624 B CN114598624 B CN 114598624B CN 202210253792 A CN202210253792 A CN 202210253792A CN 114598624 B CN114598624 B CN 114598624B
Authority
CN
China
Prior art keywords
index
cluster
target
return code
node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210253792.8A
Other languages
Chinese (zh)
Other versions
CN114598624A (en
Inventor
冯洋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN202210253792.8A priority Critical patent/CN114598624B/en
Publication of CN114598624A publication Critical patent/CN114598624A/en
Application granted granted Critical
Publication of CN114598624B publication Critical patent/CN114598624B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/04Processing captured monitoring data, e.g. for logfile generation
    • H04L43/045Processing captured monitoring data, e.g. for logfile generation for graphical visualisation of monitoring data

Abstract

The application relates to artificial intelligence technology, and discloses a cluster monitoring method, which comprises the following steps: the method comprises the steps of collecting hardware resource indexes of a target cluster, collecting operation service indexes of the target cluster, detecting the availability of the target cluster to obtain an availability detection result, constructing an index change graph set of the hardware resource indexes and the operation service indexes according to the availability detection result, and monitoring index change of the target cluster according to the index change graph set to obtain a cluster monitoring result. Furthermore, the application relates to a blockchain technology, and the cluster monitoring result can be stored in a node of the blockchain. The application also provides a cluster monitoring method device, electronic equipment and a computer readable storage medium. The application can solve the problem of low cluster monitoring efficiency.

Description

Cluster monitoring method and device, electronic equipment and readable storage medium
Technical Field
The present application relates to the field of artificial intelligence technologies, and in particular, to a cluster monitoring method, a cluster monitoring device, an electronic device, and a computer readable storage medium.
Background
The cluster comprises a large amount of working data, for example, a large amount of important data is stored in the Clickhouse cluster, and the Clickhouse cluster provides data query and statistics service for external users or systems.
The existing cluster monitoring method is low in efficiency because the monitoring is carried out through manual statistics data. There is therefore a need for a method that can efficiently monitor clusters.
Disclosure of Invention
The application provides a cluster monitoring method, a cluster monitoring device, electronic equipment and a readable storage medium, and mainly aims to solve the problem of low cluster monitoring efficiency.
In order to achieve the above object, the present application provides a cluster monitoring method, including:
collecting hardware resource indexes of a target cluster and collecting operation service indexes of the target cluster;
carrying out availability detection on the target cluster to obtain an availability detection result;
constructing an index change graph set of the hardware resource index and the operation service index according to the availability detection result;
and monitoring the index change of the target cluster according to the index change graph set to obtain a cluster monitoring result.
Optionally, the collecting the hardware resource index of the target cluster includes:
constructing an index collector in each node of the target cluster;
and acquiring the hardware resource index of each node in the target cluster by using the index collector.
Optionally, the collecting the operation service index of the target cluster includes:
acquiring a system table of each node in the target cluster;
traversing the operation service index in the system table by using a preset interface, and collecting the traversed operation service index.
Optionally, the performing availability detection on the target cluster includes:
sending a monitoring request to each node of the target cluster by using a preset time interval;
receiving a return code fed back by each node in the target cluster based on the monitoring request, and judging whether the return code is a preset target return code or not;
if the return code is not the target return code, the availability detection result of the node feeding back the return code is detection abnormality, and a preset alarm mode is utilized to alarm a preset receiving end;
and if the return code is the target return code, detecting the feedback time of the node with the return code being the target return code according to the feedback time of the return code.
Optionally, the detecting the feedback time of the node with the return code as the target return code according to the feedback time of the return code includes:
judging whether the feedback time of the return code exceeds a preset time threshold value or not;
if the feedback time of the return code exceeds the time threshold, the availability detection result of the node feeding back the target return code is abnormal detection, and a preset alarm mode is utilized to alarm a preset receiving end;
and if the time fed back by the return code does not exceed the time threshold, the availability detection result of the node feeding back the target return code is that the detection is normal.
Optionally, the constructing the index change graph set of the hardware resource index and the operation service index according to the availability detection result includes:
acquiring a preset visualization tool, and extracting an availability detection result from the index database as a hardware resource index and an operation service index corresponding to a node with normal detection as display indexes;
binding the display index into a template chart in the visualization tool, and generating an index change chart of the display index by utilizing the visualization tool;
and summarizing index change graphs of all the nodes with normal detection to obtain the index change graph set.
Optionally, the monitoring the index change of the target cluster according to the index change graph set includes:
judging whether the variation amplitude of the display index of each index variation graph in the index variation graph set exceeds a preset alarm value or not;
if the change amplitude of the display index of the index change chart in the index change chart set does not exceed the preset alarm value, no alarm is carried out;
and if the change amplitude of the display index of the index change chart in the index change chart set exceeds the preset alarm value, alarming to a preset receiving end by using a preset alarm mode.
In order to solve the above problem, the present application further provides a cluster monitoring device, where the device includes:
the index collection module is used for collecting hardware resource indexes of the target cluster and collecting operation service indexes of the target cluster;
the availability detection module is used for carrying out availability detection on the target cluster to obtain an availability detection result;
the index diagram construction module is used for constructing an index variation diagram set of the hardware resource index and the operation service index according to the availability detection result;
and the cluster monitoring module is used for monitoring the index change of the target cluster according to the index change graph set to obtain a cluster monitoring result.
In order to solve the above-mentioned problems, the present application also provides an electronic apparatus including:
a memory storing at least one computer program; a kind of electronic device with high-pressure air-conditioning system
And the processor executes the computer program stored in the memory to realize the cluster monitoring method.
In order to solve the above-mentioned problems, the present application also provides a computer-readable storage medium having stored therein at least one computer program that is executed by a processor in an electronic device to implement the cluster monitoring method described above.
According to the application, all index data of each node of the target cluster can be obtained by collecting the hardware resource index and the operation service index of the target cluster, so that the accuracy of cluster monitoring is improved, and the hardware resource index and the operation service index of different nodes are visualized through the availability detection result, so that an index change graph set with more accurate index change can be obtained, the index change of the target cluster is monitored according to the index change graph set, and the efficiency and accuracy of cluster monitoring can be improved. Therefore, the cluster monitoring method, the cluster monitoring device, the electronic equipment and the computer readable storage medium can solve the problem of low cluster monitoring efficiency.
Drawings
Fig. 1 is a flow chart of a cluster monitoring method according to an embodiment of the application;
FIG. 2 is a functional block diagram of a cluster monitoring device according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an electronic device implementing the cluster monitoring method according to an embodiment of the present application.
The achievement of the objects, functional features and advantages of the present application will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The embodiment of the application provides a cluster monitoring method. The execution subject of the cluster monitoring method includes, but is not limited to, at least one of a server, a terminal, and the like, which can be configured to execute the method provided by the embodiment of the application. In other words, the cluster monitoring method may be performed by software or hardware installed in a terminal device or a server device, and the software may be a blockchain platform. The service end includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, and the like. The server may be an independent server, or may be a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (ContentDelivery Network, CDN), and basic cloud computing services such as big data and artificial intelligence platforms.
Referring to fig. 1, a flow chart of a cluster monitoring method according to an embodiment of the application is shown.
In this embodiment, the cluster monitoring method includes:
s1, acquiring a hardware resource index of a target cluster and acquiring an operation service index of the target cluster.
In the embodiment of the application, the target cluster can be a clickhouse cluster, and the hardware resource index refers to the index state of hardware resources of each node of the clickhouse cluster, including the load and the temperature of a processor, the use condition percentages of a disk storage, a memory and a network, and the like. The operation service index refers to an operation process index of each node of the clickhouse cluster, and the operation process index comprises inquiry time consumption and the like in a process.
In detail, the collecting the hardware resource index of the target cluster includes:
constructing an index collector in each node of the target cluster;
and acquiring the hardware resource index of each node in the target cluster by using the index collector.
In the embodiment of the application, the index collector can be a metric collector, and the status of collecting hardware resources in each node of the clickhouse cluster is collected through the metric collector, including the load and the temperature of a processor, the use condition percentages of a disk storage, a memory and a network.
In an optional embodiment of the present application, after the acquiring, by using the index acquirer, a hardware resource index of each node in the target cluster, the method further includes: and storing the hardware resource index into a pre-constructed index database.
The index database can be a relational database Oracle, DB2, mySQL and the like.
Specifically, the collecting the operation service index of the target cluster includes:
acquiring a system table of each node in the target cluster;
traversing the operation service index in the system table by using a preset interface, and collecting the traversed operation service index.
In the embodiment of the application, taking a clickhouse cluster as an example, 4 system tables for recording the running indexes in the process can be obtained from each node through a clickhouse-server, wherein the system tables are respectively systems, systems_metrics, systems, components, and the 4 system tables are accessed through a Restful API interface preset on the node in the clickhouse cluster to obtain various running service indexes such as query time consumption in the current process. Meanwhile, the collected operation service indexes are stored in the index database, so that the diversity of index collection is improved.
In the embodiment of the application, all index data of each node of the target cluster can be obtained by collecting the hardware resource index and the operation service index of the target cluster, thereby improving the accuracy of cluster monitoring.
S2, carrying out availability detection on the target cluster to obtain an availability detection result.
In the embodiment of the application, the availability detection refers to judging whether each node of the target cluster normally operates.
Specifically, the performing availability detection on the target cluster includes:
sending a monitoring request to each node of the target cluster by using a preset time interval;
receiving a return code fed back by each node in the target cluster based on the monitoring request, and judging whether the return code is a preset target return code or not;
if the return code is not the target return code, the availability detection result of the node feeding back the return code is detection abnormality, and a preset alarm mode is utilized to alarm a preset receiving end;
and if the return code is the target return code, detecting the feedback time of the node with the return code being the target return code according to the feedback time of the return code.
In an alternative embodiment of the application, the availability of the cluster may be monitored by sending HTTP GET requests to/ping to each working node of the clickhouse cluster, for example once every 1 second, if a service is available, the node feeds back the return code 200 to respond, and if a service is not available, the node responds with other return codes.
Further, the detecting the feedback time of the node with the return code as the target return code according to the feedback time of the return code includes:
judging whether the feedback time of the return code exceeds a preset time threshold value or not;
if the feedback time of the return code exceeds the time threshold, the availability detection result of the node feeding back the target return code is abnormal detection, and a preset alarm mode is utilized to alarm a preset receiving end;
and if the time fed back by the return code does not exceed the time threshold, the availability detection result of the node feeding back the target return code is that the detection is normal.
In an alternative embodiment of the present application, for example, the time is sent once every 1 second, the time threshold is set to 5 seconds, that is, when the response time of the node does not exceed 5 seconds, the detection is determined to be normal, and when the response time of the node exceeds 5 seconds, an alarm is performed, where the alarm mode includes a telephone alarm, a mail alarm, and the like, and the preset receiving end may be a terminal such as a mobile phone, a computer, and the like.
And S3, constructing an index change graph set of the hardware resource index and the operation service index according to the availability detection result.
In detail, the constructing the index change graph set of the hardware resource index and the operation service index according to the availability detection result includes:
acquiring a preset visualization tool, and extracting an availability detection result from the index database as a hardware resource index and an operation service index corresponding to a node with normal detection as display indexes;
binding the display index into a template chart in the visualization tool, and generating an index change chart of the display index by utilizing the visualization tool;
and summarizing index change graphs of all the nodes with normal detection to obtain the index change graph set.
In the embodiment of the application, the preset visualization tool can be a Grafana tool, the Grafana tool has a quick and flexible client chart, and comprises a plurality of visualization indexes and logs in different modes, and the official library is provided with rich instrument panel plug-ins, such as a heat map, a line graph, a chart and other various display modes.
In an alternative embodiment of the application, the hardware resource indexes and the operation service indexes of different nodes are visualized through the availability detection result, and for the abnormal node detection, the visualization is not needed, and only the normal node detection is visualized, so that the use of resources is greatly saved, and the cluster monitoring efficiency is improved.
And S4, monitoring the index change of the target cluster according to the index change graph set to obtain a cluster monitoring result.
In the embodiment of the application, the index change set comprises index change conditions of the nodes in normal operation, and the change of the clusters can be accurately monitored through the change conditions of the indexes in the index change graph set. The cluster monitoring result comprises alarm reasons, alarm modes, alarm time and the like of all nodes, and can accurately monitor all the nodes of the whole target cluster.
Specifically, the monitoring, according to the index change graph set, the index change of the target cluster includes:
judging whether the variation amplitude of the display index of each index variation graph in the index variation graph set exceeds a preset alarm value or not;
if the change amplitude of the display index of the index change chart in the index change chart set does not exceed the preset alarm value, no alarm is carried out;
and if the change amplitude of the display index of the index change chart in the index change chart set exceeds the preset alarm value, alarming to a preset receiving end by using a preset alarm mode.
In an alternative embodiment of the present application, different display indexes have different preset alarm values, for example, if the query time of all nodes exceeds the preset 30S, the operation state of the click house cluster is considered to be abnormal, and corresponding telephone or mail alarm is performed in a preset alarm mode; if the load, temperature and disk storage of the node exceed the preset alarm values, the running state of the clickhouse cluster is considered to be abnormal, and corresponding telephone or mail alarm is carried out in a preset alarm mode.
In the embodiment of the present application, the cluster monitoring result includes alarm information of all nodes, for example, "node 1: the alarm reasons are as follows: responding to timeout, alarming: mail alarm, alarm time: 2021/11/30".
According to the application, all index data of each node of the target cluster can be obtained by collecting the hardware resource index and the operation service index of the target cluster, so that the accuracy of cluster monitoring is improved, and the hardware resource index and the operation service index of different nodes are visualized through the availability detection result, so that an index change graph set with more accurate index change can be obtained, the index change of the target cluster is monitored according to the index change graph set, and the efficiency and accuracy of cluster monitoring can be improved. Therefore, the cluster monitoring method provided by the application can solve the problem of low cluster monitoring efficiency.
Fig. 2 is a functional block diagram of a cluster monitoring device according to an embodiment of the present application.
The cluster monitoring device 100 of the present application may be installed in an electronic apparatus. Depending on the implemented functions, the cluster monitoring device 100 may include an index collection module 101, an availability detection module 102, an index map construction module 103, and a cluster monitoring module 104. The module of the application, which may also be referred to as a unit, refers to a series of computer program segments, which are stored in the memory of the electronic device, capable of being executed by the processor of the electronic device and of performing a fixed function.
In the present embodiment, the functions concerning the respective modules/units are as follows:
the index collection module 101 is configured to collect a hardware resource index of a target cluster, and collect an operation service index of the target cluster;
the availability detection module 102 is configured to perform availability detection on the target cluster to obtain an availability detection result;
the index map construction module 103 is configured to construct an index change map set of the hardware resource index and the operation service index according to the availability detection result;
the cluster monitoring module 104 is configured to monitor, according to the index change graph set, an index change of the target cluster, and obtain a cluster monitoring result.
In detail, each module in the cluster monitoring device 100 in the embodiment of the present application adopts the same technical means as the cluster monitoring method described in fig. 1 and can produce the same technical effects when in use, and will not be described herein.
Fig. 3 is a schematic structural diagram of an electronic device for implementing a cluster monitoring method according to an embodiment of the present application.
The electronic device may comprise a processor 10, a memory 11, a communication interface 12 and a bus 13, and may further comprise a computer program, such as a cluster monitor, stored in the memory 11 and executable on the processor 10.
The memory 11 includes at least one type of readable storage medium, including flash memory, a mobile hard disk, a multimedia card, a card memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, etc. The memory 11 may in some embodiments be an internal storage unit of the electronic device, such as a mobile hard disk of the electronic device. The memory 11 may in other embodiments also be an external storage device of the electronic device, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the electronic device. Further, the memory 11 may also include both an internal storage unit and an external storage device of the electronic device. The memory 11 may be used not only for storing application software installed in an electronic device and various types of data, such as code of a cluster monitor, but also for temporarily storing data that has been output or is to be output.
The processor 10 may be comprised of integrated circuits in some embodiments, for example, a single packaged integrated circuit, or may be comprised of multiple integrated circuits packaged with the same or different functions, including one or more central processing units (Central Processing unit, CPU), microprocessors, digital processing chips, graphics processors, combinations of various control chips, and the like. The processor 10 is a Control Unit (Control Unit) of the electronic device, connects various components of the entire electronic device using various interfaces and lines, and executes various functions of the electronic device and processes data by running or executing programs or modules (e.g., a cluster monitor program, etc.) stored in the memory 11, and calling data stored in the memory 11.
The communication interface 12 is used for communication between the electronic device and other devices, including network interfaces and user interfaces. Optionally, the network interface may include a wired interface and/or a wireless interface (e.g., WI-FI interface, bluetooth interface, etc.), typically used to establish a communication connection between the electronic device and other electronic devices. The user interface may be a Display (Display), an input unit such as a Keyboard (Keyboard), or alternatively a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch, or the like. The display may also be referred to as a display screen or display unit, as appropriate, for displaying information processed in the electronic device and for displaying a visual user interface.
The bus 13 may be a peripheral component interconnect standard (peripheral component interconnect, PCI) bus, or an extended industry standard architecture (extended industry standard architecture, EISA) bus, among others. The bus 13 may be classified into an address bus, a data bus, a control bus, and the like. The bus 13 is arranged to enable a connection communication between the memory 11 and at least one processor 10 etc.
Fig. 3 shows only an electronic device with components, and it will be understood by those skilled in the art that the structure shown in fig. 3 is not limiting of the electronic device and may include fewer or more components than shown, or may combine certain components, or a different arrangement of components.
For example, although not shown, the electronic device may further include a power source (such as a battery) for supplying power to the respective components, and preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that functions of charge management, discharge management, power consumption management, and the like are implemented through the power management device. The power supply may also include one or more of any of a direct current or alternating current power supply, recharging device, power failure detection circuit, power converter or inverter, power status indicator, etc. The electronic device may further include various sensors, bluetooth modules, wi-Fi modules, etc., which are not described herein.
Further, the electronic device may also include a network interface, optionally, the network interface may include a wired interface and/or a wireless interface (e.g., WI-FI interface, bluetooth interface, etc.), typically used to establish a communication connection between the electronic device and other electronic devices.
Optionally, the electronic device may further comprise a user interface, which may be a Display, an input unit, such as a Keyboard (Keyboard), or a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch, or the like. The display may also be referred to as a display screen or display unit, as appropriate, for displaying information processed in the electronic device and for displaying a visual user interface.
It should be understood that the embodiments described are for illustrative purposes only and are not limited to this configuration in the scope of the patent application.
The cluster monitoring program stored in the memory 11 in the electronic device is a combination of instructions that, when executed in the processor 10, may implement:
collecting hardware resource indexes of a target cluster and collecting operation service indexes of the target cluster;
carrying out availability detection on the target cluster to obtain an availability detection result;
constructing an index change graph set of the hardware resource index and the operation service index according to the availability detection result;
and monitoring the index change of the target cluster according to the index change graph set to obtain a cluster monitoring result.
In particular, the specific implementation method of the above instructions by the processor 10 may refer to the description of the relevant steps in the corresponding embodiment of the drawings, which is not repeated herein.
Further, the electronic device integrated modules/units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. The computer readable storage medium may be volatile or nonvolatile. For example, the computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM).
The present application also provides a computer readable storage medium storing a computer program which, when executed by a processor of an electronic device, can implement:
collecting hardware resource indexes of a target cluster and collecting operation service indexes of the target cluster;
carrying out availability detection on the target cluster to obtain an availability detection result;
constructing an index change graph set of the hardware resource index and the operation service index according to the availability detection result;
and monitoring the index change of the target cluster according to the index change graph set to obtain a cluster monitoring result.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus, device and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical function division, and there may be other manners of division when actually implemented.
The modules described as separate components may or may not be physically separate, and components shown as modules may or may not be physical units, may be located in one place, or may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional module in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units can be realized in a form of hardware or a form of hardware and a form of software functional modules.
It will be evident to those skilled in the art that the application is not limited to the details of the foregoing illustrative embodiments, and that the present application may be embodied in other specific forms without departing from the spirit or essential characteristics thereof.
The present embodiments are, therefore, to be considered in all respects as illustrative and not restrictive, the scope of the application being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
The embodiment of the application can acquire and process the related data based on the artificial intelligence technology. Among these, artificial intelligence (Artificial Intelligence, AI) is the theory, method, technique and application system that uses a digital computer or a digital computer-controlled machine to simulate, extend and extend human intelligence, sense the environment, acquire knowledge and use knowledge to obtain optimal results.
Artificial intelligence infrastructure technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technologies, operation/interaction systems, mechatronics, and the like. The artificial intelligence software technology mainly comprises a computer vision technology, a robot technology, a biological recognition technology, a voice processing technology, a natural language processing technology, machine learning/deep learning and other directions.
The blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm and the like. The Blockchain (Blockchain), which is essentially a decentralised database, is a string of data blocks that are generated by cryptographic means in association, each data block containing a batch of information of network transactions for verifying the validity of the information (anti-counterfeiting) and generating the next block. The blockchain may include a blockchain underlying platform, a platform product services layer, an application services layer, and the like.
Furthermore, it is evident that the word "comprising" does not exclude other elements or steps, and that the singular does not exclude a plurality. A plurality of units or means recited in the system claims can also be implemented by means of software or hardware by means of one unit or means. The terms second, etc. are used to denote a name, but not any particular order.
Finally, it should be noted that the above-mentioned embodiments are merely for illustrating the technical solution of the present application and not for limiting the same, and although the present application has been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications and equivalents may be made to the technical solution of the present application without departing from the spirit and scope of the technical solution of the present application.

Claims (9)

1. A method of cluster monitoring, the method comprising:
collecting a hardware resource index of a target cluster, collecting an operation service index of the target cluster, and storing the hardware resource index and the operation service index into a pre-constructed index database, wherein the index database is a relational database;
carrying out availability detection on the target cluster to obtain an availability detection result;
constructing an index change graph set of the hardware resource index and the operation service index according to the availability detection result, wherein the index change graph set comprises the following components: acquiring a preset visual tool, extracting an availability detection result from the index database as a hardware resource index and an operation service index corresponding to a node with normal detection as a display index, binding the display index into a template chart in the visual tool, generating an index change chart of the display index by using the visual tool, and summarizing index change charts of all the nodes with normal detection to obtain an index change chart set;
and monitoring the index change of the target cluster according to the index change graph set to obtain a cluster monitoring result, wherein the cluster monitoring result comprises alarm reasons, alarm modes and alarm time of all nodes, and different display indexes correspond to different preset alarm values.
2. The cluster monitoring method as set forth in claim 1, wherein the collecting the hardware resource index of the target cluster includes:
constructing an index collector in each node of the target cluster;
and acquiring the hardware resource index of each node in the target cluster by using the index collector.
3. The cluster monitoring method as set forth in claim 1, wherein the collecting the operation service index of the target cluster includes:
acquiring a system table of each node in the target cluster;
traversing the operation service index in the system table by using a preset interface, and collecting the traversed operation service index.
4. The cluster monitoring method as claimed in claim 1, wherein said performing availability detection on the target cluster includes:
sending a monitoring request to each node of the target cluster by using a preset time interval;
receiving a return code fed back by each node in the target cluster based on the monitoring request, and judging whether the return code is a preset target return code or not;
if the return code is not the target return code, the availability detection result of the node feeding back the return code is detection abnormality, and a preset alarm mode is utilized to alarm a preset receiving end;
and if the return code is the target return code, detecting the feedback time of the node with the return code being the target return code according to the feedback time of the return code.
5. The cluster monitoring method according to claim 4, wherein the performing feedback time detection on the node with the return code as the target return code according to the feedback time of the return code includes:
judging whether the feedback time of the return code exceeds a preset time threshold value or not;
if the feedback time of the return code exceeds the time threshold, the availability detection result of the node feeding back the target return code is abnormal detection, and a preset alarm mode is utilized to alarm a preset receiving end;
and if the time fed back by the return code does not exceed the time threshold, the availability detection result of the node feeding back the target return code is that the detection is normal.
6. The cluster monitoring method according to claim 1, wherein the monitoring the target cluster for index changes according to the index change map set includes:
judging whether the change amplitude of the display index of each index change chart in the index change chart set exceeds a preset alarm value or not;
and if the change amplitude of the display index of the index change chart in the index change chart set exceeds the preset alarm value, alarming to a preset receiving end by using a preset alarm mode.
7. A cluster monitoring device, the device comprising:
the system comprises an index collection module, a relation database and a control module, wherein the index collection module is used for collecting hardware resource indexes of a target cluster and collecting operation service indexes of the target cluster, and storing the hardware resource indexes and the operation service indexes into the pre-constructed index database, wherein the index database is the relation database;
the availability detection module is used for carrying out availability detection on the target cluster to obtain an availability detection result;
the index map construction module is configured to construct an index change map set of the hardware resource index and the operation service index according to the availability detection result, and includes: acquiring a preset visual tool, extracting an availability detection result from the index database as a hardware resource index and an operation service index corresponding to a node with normal detection as a display index, binding the display index into a template chart in the visual tool, generating an index change chart of the display index by using the visual tool, and summarizing index change charts of all the nodes with normal detection to obtain an index change chart set;
the cluster monitoring module is used for monitoring the index change of the target cluster according to the index change graph set to obtain a cluster monitoring result, wherein the cluster monitoring result comprises alarm reasons, alarm modes and alarm time of all nodes, and different display indexes correspond to different preset alarm values.
8. An electronic device, the electronic device comprising:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the cluster monitoring method of any one of claims 1 to 6.
9. A computer readable storage medium storing a computer program, wherein the computer program when executed by a processor implements a cluster monitoring method according to any one of claims 1 to 6.
CN202210253792.8A 2022-03-15 2022-03-15 Cluster monitoring method and device, electronic equipment and readable storage medium Active CN114598624B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210253792.8A CN114598624B (en) 2022-03-15 2022-03-15 Cluster monitoring method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210253792.8A CN114598624B (en) 2022-03-15 2022-03-15 Cluster monitoring method and device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN114598624A CN114598624A (en) 2022-06-07
CN114598624B true CN114598624B (en) 2023-11-07

Family

ID=81808530

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210253792.8A Active CN114598624B (en) 2022-03-15 2022-03-15 Cluster monitoring method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN114598624B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109660426A (en) * 2018-12-14 2019-04-19 泰康保险集团股份有限公司 Monitoring method and system, computer-readable medium and electronic equipment
CN111190888A (en) * 2020-01-03 2020-05-22 中国建设银行股份有限公司 Method and device for managing graph database cluster
CN112162821A (en) * 2020-09-25 2021-01-01 中国电力科学研究院有限公司 Container cluster resource monitoring method, device and system
CN112291112A (en) * 2020-10-27 2021-01-29 中国光大银行股份有限公司 Cloud computing service monitoring system and method
CN113051147A (en) * 2021-04-25 2021-06-29 中国建设银行股份有限公司 Database cluster monitoring method, device, system and equipment
CN113608964A (en) * 2021-08-09 2021-11-05 宁畅信息产业(北京)有限公司 Cluster automation monitoring method and device, electronic equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006015441A1 (en) * 2004-08-13 2006-02-16 Remasys Pty Ltd Monitoring and management of distributed information systems

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109660426A (en) * 2018-12-14 2019-04-19 泰康保险集团股份有限公司 Monitoring method and system, computer-readable medium and electronic equipment
CN111190888A (en) * 2020-01-03 2020-05-22 中国建设银行股份有限公司 Method and device for managing graph database cluster
CN112162821A (en) * 2020-09-25 2021-01-01 中国电力科学研究院有限公司 Container cluster resource monitoring method, device and system
CN112291112A (en) * 2020-10-27 2021-01-29 中国光大银行股份有限公司 Cloud computing service monitoring system and method
CN113051147A (en) * 2021-04-25 2021-06-29 中国建设银行股份有限公司 Database cluster monitoring method, device, system and equipment
CN113608964A (en) * 2021-08-09 2021-11-05 宁畅信息产业(北京)有限公司 Cluster automation monitoring method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN114598624A (en) 2022-06-07

Similar Documents

Publication Publication Date Title
WO2023056943A1 (en) Internet of things rule engine-based terminal control method and apparatus, and device and medium
CN112702228B (en) Service flow limit response method, device, electronic equipment and readable storage medium
CN112733023A (en) Information pushing method and device, electronic equipment and computer readable storage medium
CN112256783A (en) Data export method and device, electronic equipment and storage medium
CN115129753A (en) Data blood relationship analysis method and device, electronic equipment and storage medium
CN112148566B (en) Method and device for monitoring computing engine, electronic equipment and storage medium
CN114841165B (en) User data analysis and display method and device, electronic equipment and storage medium
CN114598624B (en) Cluster monitoring method and device, electronic equipment and readable storage medium
CN110737655A (en) Method and device for reporting data
CN113051171B (en) Interface testing method, device, equipment and storage medium
CN114385453A (en) Database cluster exception handling method, device, equipment and medium
CN112667244A (en) Data verification method and device, electronic equipment and computer readable storage medium
CN115001945B (en) Log collection monitoring method, device, equipment and computer readable medium
CN112000945B (en) Authorization method, device, equipment and medium based on artificial intelligence
CN113704616B (en) Information pushing method and device, electronic equipment and readable storage medium
CN113360375B (en) Transaction testing method, device, electronic equipment and storage medium
CN111444172A (en) Data monitoring method, device, medium and equipment
CN117455613B (en) Intelligent hotel data information management system and method
CN115225489B (en) Dynamic control method for queue service flow threshold, electronic equipment and storage medium
CN113032168B (en) Data transmission rate dynamic adjustment method and device, electronic equipment and storage medium
CN114640618B (en) Cluster route scheduling method and device, electronic equipment and readable storage medium
CN116991689A (en) Front-end error monitoring method, device, equipment and storage medium
CN117170585A (en) Memory optimization method, device, equipment and storage medium based on Spark program
CN116205735A (en) Transaction polling method, device, equipment and medium based on blockchain
CN116841737A (en) Batch task distribution method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant