CN109995612B - Service inspection method and device and electronic equipment - Google Patents

Service inspection method and device and electronic equipment Download PDF

Info

Publication number
CN109995612B
CN109995612B CN201910217167.6A CN201910217167A CN109995612B CN 109995612 B CN109995612 B CN 109995612B CN 201910217167 A CN201910217167 A CN 201910217167A CN 109995612 B CN109995612 B CN 109995612B
Authority
CN
China
Prior art keywords
server
inspection
inspected
state
cluster
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
CN201910217167.6A
Other languages
Chinese (zh)
Other versions
CN109995612A (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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology 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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201910217167.6A priority Critical patent/CN109995612B/en
Publication of CN109995612A publication Critical patent/CN109995612A/en
Application granted granted Critical
Publication of CN109995612B publication Critical patent/CN109995612B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/06Generation of reports
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network

Abstract

The embodiment of the invention provides a service inspection method, a service inspection device and electronic equipment, relates to the technical field of inspection, and can flexibly set the performance inspection items and inspection time of service inspection. The embodiment of the application comprises the following steps: and receiving a patrol instruction, wherein the patrol instruction comprises a specified performance patrol item. And then acquiring a state parameter corresponding to the designated performance inspection item of the server to be inspected, wherein the state parameter is used for reflecting the designated performance state of the server to be inspected. And generating a polling result according to the state parameters.

Description

Service inspection method and device and electronic equipment
Technical Field
The invention relates to the technical field of routing inspection, in particular to a service routing inspection method, a service routing inspection device and electronic equipment.
Background
The service inspection is a tool for inspecting the health state of the online server cluster, and can generate an inspection report according to the health state of the server to be inspected, so that the stability of the cluster state is ensured. The existing service inspection is to set inspection time and performance inspection items in an inspection script by creating the inspection script in advance. If the inspection time or the performance inspection items are required to be changed, the service inspection can only be finished, then the script is created again, and the service inspection is restarted after the script is created again. Therefore, in the prior art, the performance inspection item and the inspection time of service inspection are fixed, and the requirements of various scenes cannot be flexibly met.
Disclosure of Invention
The embodiment of the invention aims to provide a service inspection method, a service inspection device and electronic equipment so as to flexibly set a performance inspection item and inspection time of service inspection. The specific technical scheme is as follows:
in a first aspect, a service inspection method is provided, and the method includes:
receiving a routing inspection instruction, wherein the routing inspection instruction comprises a specified performance routing inspection item;
acquiring a state parameter corresponding to the specified performance inspection item of the server to be inspected, wherein the state parameter is used for reflecting the specified performance state of the server to be inspected;
and generating a polling result according to the state parameters.
Optionally, before obtaining the state parameter corresponding to the specified performance inspection item of the server to be inspected, the method further includes:
determining each server in the server cluster as a server to be patrolled; alternatively, the first and second electrodes may be,
if the inspection instruction further comprises a service type, determining a server matched with the service type in the server cluster as a server to be inspected; alternatively, the first and second electrodes may be,
if the routing inspection instruction further comprises a cluster state, determining a server matched with the cluster state in the server cluster as a server to be routed; alternatively, the first and second electrodes may be,
and if the routing inspection instruction further comprises a service type and a cluster state, determining a server which is matched with the service type and the cluster state in the server cluster as a server to be routed.
Optionally, obtaining the state parameter corresponding to the specified performance inspection item of the server to be inspected includes:
and acquiring the state parameters corresponding to the specified performance inspection items of the server to be inspected from a data source, wherein the state parameters corresponding to the performance inspection items of each server in the server cluster are stored in the data source.
Optionally, generating a polling result according to the state parameter includes:
generating a polling result according to the identifier of the server to be polled and the state parameter corresponding to the appointed performance polling item of the server to be polled; alternatively, the first and second electrodes may be,
if the routing inspection instruction further comprises a preset condition corresponding to the specified performance routing inspection item, screening the server to be routed of which the state parameter of the specified performance routing inspection item meets the preset condition, and generating a routing inspection result according to the screened identifier of the server to be routed and the screened state parameter corresponding to the specified performance routing inspection item of the server to be routed.
Optionally, the specifying the performance inspection item includes: any one or more of central processor load, application configuration, and memory occupancy.
In a second aspect, a service inspection device is provided, the device comprising:
the system comprises a receiving module, a judging module and a judging module, wherein the receiving module is used for receiving an inspection instruction, and the inspection instruction comprises a specified performance inspection item;
the acquisition module is used for acquiring the state parameters corresponding to the specified performance inspection items of the server to be inspected, and the state parameters are used for reflecting the specified performance state of the server to be inspected;
and the generating module is used for generating a polling result according to the state parameters acquired by the acquiring module.
Optionally, the apparatus further comprises: a determination module;
the determining module is used for determining each server in the server cluster as a server to be inspected before acquiring the state parameters corresponding to the specified performance inspection items of the servers to be inspected; alternatively, the first and second electrodes may be,
the determining module is further configured to determine, before obtaining the state parameter corresponding to the specified performance inspection item of the server to be inspected, the server in the server cluster that matches the service category as the server to be inspected when the inspection instruction further includes the service category; alternatively, the first and second electrodes may be,
the determining module is further configured to determine, before obtaining the state parameter corresponding to the specified performance inspection item of the server to be inspected, a server in the server cluster that matches the cluster state as the server to be inspected when the inspection instruction further includes the cluster state; alternatively, the first and second electrodes may be,
the determining module is further configured to determine, before obtaining the state parameter corresponding to the specified performance inspection item of the server to be inspected, a server in the server cluster that is matched with both the service type and the cluster state as the server to be inspected when the inspection instruction further includes the service type and the cluster state.
Optionally, the obtaining module is specifically configured to:
and acquiring the state parameters corresponding to the specified performance inspection items of the server to be inspected from a data source, wherein the state parameters corresponding to the performance inspection items of each server in the server cluster are stored in the data source.
Optionally, the generating module is specifically configured to:
generating a polling result according to the identifier of the server to be polled and the state parameter corresponding to the appointed performance polling item of the server to be polled; alternatively, the first and second electrodes may be,
and screening out the state parameters of the appointed performance inspection items to meet the preset conditions of the servers to be inspected according to the screened identifiers of the servers to be inspected and the screened states parameters of the servers to be inspected, which correspond to the appointed performance inspection items, to generate an inspection result.
Optionally, the specifying the performance inspection item includes: any one or more of central processor load, application configuration, and memory occupancy.
In a third aspect, an electronic device is provided, which includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing any one of the service inspection method steps when executing the program stored in the memory.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the method implements any of the above service inspection method steps.
In a fifth aspect, embodiments of the present invention further provide a computer program product containing instructions that, when executed on a computer, cause the computer to perform any of the service patrol method steps described above.
The service inspection method, the service inspection device and the electronic equipment provided by the embodiment of the invention can obtain the state parameters corresponding to the specified performance inspection items of the server to be inspected after receiving the inspection instruction comprising the specified performance inspection items, and then generate the inspection result according to the state parameters. Therefore, when the performance inspection items of the service inspection are modified, the embodiment of the invention only needs to configure the specified performance inspection items in the inspection instruction, and does not need to stop the service inspection and then create the script again. In addition, when the polling time of the service polling is modified, the embodiment of the invention can receive the polling instruction at any time to trigger the service polling, and does not need to stop the service polling first and then recreate the script. Therefore, the embodiment of the invention can flexibly set the performance polling item and polling time of the service polling.
Of course, not all of the advantages described above need to be achieved at the same time in the practice of any one product or method of the invention.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
Fig. 1 is a schematic structural diagram of a service inspection system according to an embodiment of the present invention;
fig. 2 is a flowchart of a service inspection method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a service inspection device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention.
The service inspection method provided by the embodiment of the invention can be applied to the service inspection system shown in figure 1, and the system comprises the following steps: an interaction layer, an application layer, and a data layer. The service inspection system is used for inspecting each performance state of each server in the server cluster.
In one embodiment, the interaction layer, the application layer and the data layer may be deployed in a tour inspection server.
The interaction layer is used for configuring the specified performance inspection items (the cluster state, the service type and the preset conditions corresponding to the specified performance inspection items can also be configured), and sending inspection instructions to the application layer.
The application layer is used for acquiring the state parameters corresponding to the specified performance inspection items of the server to be inspected from the data layer according to the inspection instruction sent by the interaction layer.
The data layer includes a data source (for example, a monitoring system (such as zabbix) or a Configuration Management Database (CMDB), and is configured to store state parameters corresponding to performance inspection items of each server in the server cluster.
In another embodiment, in order to increase the operation speed, the interaction layer, the application layer, and the data layer may be respectively deployed in different servers (wherein, the interaction layer may also be deployed in the terminal). The server with the application layer deployed is a routing inspection server.
Referring to fig. 1, an embodiment of the present invention provides a message processing method, which is applied to an inspection server of the service inspection system shown in fig. 1, and as shown in fig. 2, the method includes:
step 201, receiving a polling instruction.
In this embodiment, the polling instruction may be a HyperText Transfer Protocol (HTTP) instruction sent by the terminal to the polling server.
Or, when the timing task in the routing inspection server reaches the preset time, a computer programming language (JAVA) instruction can be sent to the application layer by the interaction layer of the routing inspection server. For example: setting 8:00 a.m. every day, the interactive layer of the inspection server sends an inspection instruction to the application layer. Or, the interactive layer of the inspection server sends an inspection instruction to the application layer once every 2 hours.
Optionally, the routing inspection instruction includes a specified performance routing inspection item.
The inspection instruction can also comprise: any one or more of the preset conditions corresponding to the service category, the cluster state and the designated performance inspection item.
Optionally, the specified performance patrol items include, but are not limited to, any one or more of central processing unit LOAD (CPU LOAD), application configuration, and memory occupancy.
The appointed performance inspection item can be set according to actual requirements, for example: the LOAD condition of a central processing unit of the server to be patrolled and examined needs to be obtained, and a specified performance patrol item can be set as a CPU LOAD.
The application configuration may be a type of service or a configuration file of an application program. For example: log storage path, content save time or application name, etc.
The service classes may be: open source message bus (ActiveMQ), distributed publish-subscribe messaging system (Kafka), distributed application coordination service (Zookeeper), or relational database management system (MySQL), among others.
The cluster state may be: online (online) or test (test).
The preset condition corresponding to the specified performance inspection item may be that the CPU LOAD is greater than (or equal to, or less than, or greater than or equal to, or less than or equal to) a preset threshold, or a specified application configuration is set, or a specified application configuration is not set, or the memory occupancy is greater than (or equal to, or less than, or greater than or equal to, or less than or equal to) a preset threshold.
The preset threshold value can be set according to actual requirements. For example, when the preset condition corresponding to the specified performance inspection item is that the CPU LOAD is greater than a preset threshold, the preset threshold may be set to 3.
For example, when the preset condition corresponding to the specified performance inspection item is that the memory occupancy rate is less than a preset threshold, the preset threshold may be set to 30%.
If the designated performance inspection item is the application configuration A, the corresponding preset condition can be that the application configuration A is not set, or the preset condition is that the application configuration A is set.
Step 202, obtaining a state parameter corresponding to the designated performance inspection item of the server to be inspected.
The state parameters are used for reflecting the designated performance state of the server to be patrolled and examined.
In the embodiment of the invention, before the state parameters are obtained, the server to be inspected needs to be determined, and the method for determining the server to be inspected includes four conditions, and the method for obtaining the state parameters corresponding to the specified performance inspection item of the server to be inspected from the data source under the four conditions is as follows.
In the first situation, if the routing inspection instruction comprises the specified performance routing inspection item, determining each server in the server cluster as a server to be routed, and then acquiring the state parameter corresponding to the specified performance routing inspection item of the server to be routed from the data source.
For example: the inspection instruction comprises the following steps: and acquiring the state parameters corresponding to the CPU LOAD of each server in the server cluster from the data source.
And in case II, if the inspection instruction comprises: and determining a server matched with the service type in the server cluster as a server to be patrolled, and then acquiring a state parameter corresponding to the specified performance patrol item of the server to be patrolled from the data source.
For example: the inspection instruction comprises the following steps: ActiveMQ and CPU LOAD. And determining the server running the ActiveMQ service in the server cluster as a server to be inspected, and then acquiring the state parameter corresponding to the CPU LOAD of the server to be inspected from the data source.
And in case of the third condition, if the inspection instruction comprises: and if the cluster state and the designated performance inspection item are the same, determining a server matched with the cluster state in the server cluster as a server to be inspected, and then acquiring a state parameter corresponding to the designated performance inspection item of the server to be inspected from the data source.
For example: the inspection instruction comprises the following steps: and determining the server in the test state in the server cluster as a server to be inspected, and then acquiring the state parameter corresponding to the memory occupancy rate of the server to be inspected from the data source.
And fourthly, if the routing inspection instruction comprises the service type, the cluster state and the specified performance routing inspection item, determining the server which is matched with the service type and the cluster state in the server cluster as the server to be routed, and then acquiring the state parameter corresponding to the specified performance routing inspection item of the server to be routed from the data source.
For example: the inspection instruction comprises the following steps: determining the server which runs the Kafka service and is in the test state in the server cluster as a server to be inspected, and then acquiring the state parameter corresponding to the memory occupancy rate of the server to be inspected from the data source.
Therefore, in the embodiment of the invention, the data source stores the state parameters corresponding to the performance polling items of the servers to be polled in the server cluster, all the servers in the server cluster can be polled by the polling server, and all the servers in the server cluster can run different service types, so that the embodiment of the invention can poll the servers of different service types. Compared with the prior art, the embodiment of the invention has the advantage that the utilization rate of the service inspection method can be improved compared with the prior art that different service inspection methods are arranged for each service type.
And step 203, generating a polling result according to the state parameters.
In one implementation mode, the routing inspection result can be generated according to the identification of the server to be routed and the state parameters corresponding to the designated performance routing inspection items of the server to be routed. Wherein, the identifier of the server to be patrolled and examined can be: identity (ID) of the server to be patrolled.
For example: the inspection results may be in the form of a table, as in table 1:
TABLE 1
Identification of a server Specifying state parameters corresponding to performance inspection items
1 85%
2 75%
3 65%
In another embodiment, if the routing inspection instruction further comprises a preset condition corresponding to the specified performance routing inspection item, screening the to-be-routed server of which the state parameter of the specified performance routing inspection item meets the preset condition, and generating a routing inspection result according to the identification of the screened to-be-routed server and the state parameter corresponding to the specified performance routing inspection item of the screened to-be-routed server.
For example: the server to be patrolled and examined is: server 1, server 2 and server 3, the appointed performance is patrolled and examined the item and is: CPU LOAD, the predetermined condition that the appointed performance patrols and examines the corresponding of item is: the CPU LOAD is greater than 50. If the CPU LOAD of the server 1 is 90, the CPU LOAD of the server 2 is 20, and the CPU LOAD of the server 3 is 40, then the servers selected are: a server 1. And then generating a polling result according to the identifier '1' of the server 1 and the state parameter '90' corresponding to the CPU LOAD of the server 1.
In the embodiment of the invention, the inspection result can be in the form of an inspection report, and the inspection report can be displayed in the inspection server after being generated. After the inspection result is generated, corresponding alarm operation can be triggered. For example: if the screened CPU LOAD of the server 1 meets the preset condition, the routing inspection server sends alarm messages (including routing inspection results) to the terminal for monitoring each performance state of the server to be routed, so that the staff can process the server 1 according to the alarm messages received by the terminal.
The service inspection method provided by the embodiment of the invention can obtain the state parameter corresponding to the specified performance inspection item of the server to be inspected after receiving the inspection instruction comprising the specified performance inspection item, and then generate the inspection result according to the state parameter. Therefore, when the performance inspection items of the service inspection are modified, the embodiment of the invention only needs to configure the specified performance inspection items in the inspection instruction, and does not need to stop the service inspection and then create the script again. In addition, when the polling time of the service polling is modified, the embodiment of the invention can receive the polling instruction at any time to trigger the service polling, and does not need to stop the service polling first and then recreate the script. Therefore, the embodiment of the invention can flexibly set the performance polling item and polling time of the service polling.
Furthermore, the embodiment of the invention can flexibly set the performance polling item and the polling time of the service polling, so that the configuration of the performance polling item and the addition of the performance polling item are more convenient, and the flexibility and the expandability of the service polling are enhanced.
In addition, in the prior art, the inspection script needs to be created in advance before the service inspection is started, and the inspection script is modified more complexly, so all performance inspection items are generally set in the inspection script, and all performance inspection items need to be inspected every time the service inspection is performed. In the embodiment of the invention, the performance inspection items of the service inspection can be configured according to actual requirements, and all the performance inspection items are not required to be inspected every time the service inspection is carried out. For example: the performance polling item of service polling comprises: the performance inspection item A, the performance inspection item B and the performance inspection item C can be configured only according to actual requirements in the service inspection. Therefore, the embodiment of the invention also reduces the routing inspection time consumption and routing inspection resource consumption of service routing inspection.
Similarly, in the service inspection method in the prior art, all the servers in the server cluster need to be inspected every inspection. In the embodiment of the invention, the servers to be inspected for service inspection can be configured according to actual requirements, and all the servers in the server cluster are not required to be inspected for service inspection each time. For example: the servers in the server cluster include: server 1, server 2, and server 3. The service class of the server 1 is ActiveMQ, the service class of the server 2 is ActiveMQ, and the service class of the server 3 is Kafka. According to actual requirements, a server which only inspects the Kafka service type is configured in the service inspection, namely the server 3 only inspects the service inspection at the time. Therefore, the embodiment of the invention reduces the routing inspection time consumption and routing inspection resource consumption of service routing inspection.
Corresponding to the above method embodiment, as shown in fig. 3, an embodiment of the present invention provides a service inspection apparatus, which is applied to an inspection server, and includes: a receiving module 301, an obtaining module 302 and a generating module 303.
The receiving module 301 is configured to receive an inspection instruction, where the inspection instruction includes a specified performance inspection item;
an obtaining module 302, configured to obtain a state parameter corresponding to a specified performance inspection item of a server to be inspected, where the state parameter is used to reflect a specified performance state of the server to be inspected;
the generating module 303 is configured to generate a polling result according to the state parameter acquired by the acquiring module 302.
Optionally, the apparatus may further include: a determination module;
the determining module is used for determining each server in the server cluster as a server to be patrolled before acquiring the state parameters corresponding to the specified performance patrolling items of the server to be patrolled; alternatively, the first and second electrodes may be,
the determining module is further used for determining a server matched with the service type in the server cluster as the server to be inspected when the inspection instruction further comprises the service type before the state parameter corresponding to the specified performance inspection item of the server to be inspected is obtained; alternatively, the first and second electrodes may be,
the determining module is further used for determining a server matched with the cluster state in the server cluster as the server to be inspected when the inspection instruction further comprises the cluster state before the state parameter corresponding to the designated performance inspection item of the server to be inspected is obtained; alternatively, the first and second electrodes may be,
and the determining module is further used for determining the server which is matched with the service type and the cluster state in the server cluster as the server to be inspected when the inspection instruction further comprises the service type and the cluster state before the state parameter corresponding to the designated performance inspection item of the server to be inspected is obtained.
Optionally, the obtaining module 302 may be specifically configured to:
the method comprises the steps of obtaining state parameters corresponding to designated performance inspection items of a server to be inspected from a data source, wherein the state parameters corresponding to the performance inspection items of all servers in a server cluster are stored in the data source.
Optionally, the generating module 303 may be specifically configured to:
generating a polling result according to the identification of the server to be polled and the state parameter corresponding to the appointed performance polling item of the server to be polled; alternatively, the first and second electrodes may be,
and when the routing inspection instruction further comprises a preset condition corresponding to the specified performance routing inspection item, screening the to-be-routed server of which the state parameter of the specified performance routing inspection item meets the preset condition, and generating a routing inspection result according to the identification of the screened to-be-routed server and the state parameter corresponding to the specified performance routing inspection item of the screened to-be-routed server.
Optionally, the specifying the performance inspection item includes: any one or more of central processor load, application configuration, and memory occupancy.
The service inspection device provided by the embodiment of the invention can obtain the state parameters corresponding to the specified performance inspection items of the server to be inspected after receiving the inspection instruction comprising the specified performance inspection items, and then generate the inspection result according to the state parameters. Therefore, when the performance inspection items of the service inspection are modified, the embodiment of the invention only needs to configure the specified performance inspection items in the inspection instruction, and does not need to stop the service inspection and then create the script again. In addition, when the polling time of the service polling is modified, the embodiment of the invention can receive the polling instruction at any time to trigger the service polling, and does not need to stop the service polling first and then recreate the script. Therefore, the embodiment of the invention can flexibly set the performance polling item and polling time of the service polling.
An embodiment of the present invention further provides an electronic device, as shown in fig. 4, including a processor 401, a communication interface 402, a memory 403, and a communication bus 404, where the processor 401, the communication interface 402, and the memory 403 complete mutual communication through the communication bus 404,
a memory 403 for storing a computer program;
the processor 401 is configured to implement the steps executed by the patrol server in the foregoing method embodiment when executing the program stored in the memory 403.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In yet another embodiment of the present invention, a computer-readable storage medium is further provided, in which a computer program is stored, which, when executed by a processor, implements the steps of any of the service inspection methods described above.
In yet another embodiment, a computer program product containing instructions is also provided, which when run on a computer, causes the computer to perform any of the service inspection methods of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (9)

1. A service inspection method, the method comprising:
receiving a routing inspection instruction, wherein the routing inspection instruction comprises a specified performance routing inspection item;
acquiring a state parameter corresponding to the specified performance inspection item of the server to be inspected, wherein the state parameter is used for reflecting the specified performance state of the server to be inspected;
generating a routing inspection result according to the state parameters;
acquiring state parameters corresponding to the specified performance inspection items of the server to be inspected, wherein the state parameters comprise:
and acquiring the state parameters corresponding to the specified performance inspection items of the server to be inspected from a data source, wherein the state parameters corresponding to the performance inspection items of each server in the server cluster are stored in the data source.
2. The method according to claim 1, before obtaining the state parameter corresponding to the specified performance inspection item of the server to be inspected, further comprising:
determining each server in the server cluster as a server to be patrolled; alternatively, the first and second electrodes may be,
if the inspection instruction further comprises a service type, determining a server matched with the service type in the server cluster as a server to be inspected; alternatively, the first and second electrodes may be,
if the routing inspection instruction further comprises a cluster state, determining a server matched with the cluster state in the server cluster as a server to be routed; alternatively, the first and second electrodes may be,
and if the routing inspection instruction further comprises a service type and a cluster state, determining a server which is matched with the service type and the cluster state in the server cluster as a server to be routed.
3. The method of claim 2, wherein generating the inspection result according to the state parameter comprises:
generating a polling result according to the identifier of the server to be polled and the state parameter corresponding to the appointed performance polling item of the server to be polled; alternatively, the first and second electrodes may be,
if the routing inspection instruction further comprises a preset condition corresponding to the specified performance routing inspection item, screening the server to be routed of which the state parameter of the specified performance routing inspection item meets the preset condition, and generating a routing inspection result according to the screened identifier of the server to be routed and the screened state parameter corresponding to the specified performance routing inspection item of the server to be routed.
4. The method according to claim 1 or 2,
the specified performance routing inspection item comprises: any one or more of central processor load, application configuration, and memory occupancy.
5. A service inspection device, the device comprising:
the system comprises a receiving module, a judging module and a judging module, wherein the receiving module is used for receiving an inspection instruction, and the inspection instruction comprises a specified performance inspection item;
the acquisition module is used for acquiring the state parameters corresponding to the specified performance inspection items of the server to be inspected, and the state parameters are used for reflecting the specified performance state of the server to be inspected;
the generating module is used for generating a routing inspection result according to the state parameters acquired by the acquiring module;
the acquisition module is specifically configured to:
and acquiring the state parameters corresponding to the specified performance inspection items of the server to be inspected from a data source, wherein the state parameters corresponding to the performance inspection items of each server in the server cluster are stored in the data source.
6. The apparatus of claim 5, further comprising: a determination module;
the determining module is used for determining each server in the server cluster as a server to be inspected before acquiring the state parameters corresponding to the specified performance inspection items of the servers to be inspected; alternatively, the first and second electrodes may be,
the determining module is further configured to determine, before obtaining the state parameter corresponding to the specified performance inspection item of the server to be inspected, the server in the server cluster that matches the service category as the server to be inspected when the inspection instruction further includes the service category; alternatively, the first and second electrodes may be,
the determining module is further configured to determine, before obtaining the state parameter corresponding to the specified performance inspection item of the server to be inspected, a server in the server cluster that matches the cluster state as the server to be inspected when the inspection instruction further includes the cluster state; alternatively, the first and second electrodes may be,
the determining module is further configured to determine, before obtaining the state parameter corresponding to the specified performance inspection item of the server to be inspected, a server in the server cluster that is matched with both the service type and the cluster state as the server to be inspected when the inspection instruction further includes the service type and the cluster state.
7. The apparatus of claim 6, wherein the generating module is specifically configured to:
generating a polling result according to the identifier of the server to be polled and the state parameter corresponding to the appointed performance polling item of the server to be polled; alternatively, the first and second electrodes may be,
and screening out the state parameters of the appointed performance inspection items to meet the preset conditions of the servers to be inspected according to the screened identifiers of the servers to be inspected and the screened states parameters of the servers to be inspected, which correspond to the appointed performance inspection items, to generate an inspection result.
8. The apparatus of claim 5 or 6,
the specified performance routing inspection item comprises: any one or more of central processor load, application configuration, and memory occupancy.
9. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1 to 4 when executing a program stored in the memory.
CN201910217167.6A 2019-03-21 2019-03-21 Service inspection method and device and electronic equipment Active CN109995612B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910217167.6A CN109995612B (en) 2019-03-21 2019-03-21 Service inspection method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910217167.6A CN109995612B (en) 2019-03-21 2019-03-21 Service inspection method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN109995612A CN109995612A (en) 2019-07-09
CN109995612B true CN109995612B (en) 2020-12-25

Family

ID=67129884

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910217167.6A Active CN109995612B (en) 2019-03-21 2019-03-21 Service inspection method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN109995612B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110888779B (en) * 2019-11-18 2023-07-07 上海新炬网络信息技术股份有限公司 File system read-only judging method based on analog writing
CN111061610B (en) * 2019-12-09 2020-10-20 广州鼎甲计算机科技有限公司 Generation method and device of cluster system performance test report and computer equipment
CN112181786B (en) * 2020-10-30 2022-11-04 杭州海康威视系统技术有限公司 Configuration method, device and equipment for inspection application
CN113031969B (en) * 2021-03-24 2023-09-19 建信金融科技有限责任公司 Equipment deployment inspection method and device, computer equipment and storage medium
CN115083030A (en) * 2022-05-18 2022-09-20 中诚信征信有限公司 Service inspection method and device and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101043692A (en) * 2007-04-30 2007-09-26 华为技术有限公司 Patrol checking method and patrol checking server
CN102638838A (en) * 2011-03-23 2012-08-15 中兴通讯股份有限公司 Method, subscriber terminals, servers, inspection update terminals and system for intelligent inspection
KR101413848B1 (en) * 2014-04-17 2014-07-01 조양주 System for vessel inspection service based on terminal
CN106056281A (en) * 2016-05-31 2016-10-26 青岛市西海岸轨道交通有限公司 Polling management system and method based on Internet of things
CN106713001A (en) * 2015-11-18 2017-05-24 中兴通讯股份有限公司 Network inspection method and apparatus
CN107248934A (en) * 2017-06-14 2017-10-13 郑州云海信息技术有限公司 A kind of automatic detecting method and device
WO2018029361A1 (en) * 2016-08-11 2018-02-15 Jec Capital Partners, Llc Improving the quality and power of baggage inspection systems

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101043692A (en) * 2007-04-30 2007-09-26 华为技术有限公司 Patrol checking method and patrol checking server
CN102638838A (en) * 2011-03-23 2012-08-15 中兴通讯股份有限公司 Method, subscriber terminals, servers, inspection update terminals and system for intelligent inspection
KR101413848B1 (en) * 2014-04-17 2014-07-01 조양주 System for vessel inspection service based on terminal
CN106713001A (en) * 2015-11-18 2017-05-24 中兴通讯股份有限公司 Network inspection method and apparatus
CN106056281A (en) * 2016-05-31 2016-10-26 青岛市西海岸轨道交通有限公司 Polling management system and method based on Internet of things
WO2018029361A1 (en) * 2016-08-11 2018-02-15 Jec Capital Partners, Llc Improving the quality and power of baggage inspection systems
CN107248934A (en) * 2017-06-14 2017-10-13 郑州云海信息技术有限公司 A kind of automatic detecting method and device

Also Published As

Publication number Publication date
CN109995612A (en) 2019-07-09

Similar Documents

Publication Publication Date Title
CN109995612B (en) Service inspection method and device and electronic equipment
CN108153670B (en) Interface testing method and device and electronic equipment
CN109062809B (en) Online test case generation method and device and electronic equipment
CN109426510B (en) Software processing method and device, electronic equipment and computer readable storage medium
CN108156141B (en) Real-time data identification method and device and electronic equipment
CN110209700B (en) Data stream association method and device, electronic equipment and storage medium
CN110851471A (en) Distributed log data processing method, device and system
CN112035344A (en) Multi-scenario test method, device, equipment and computer readable storage medium
CN113342689A (en) Automatic testing method and device for interface, electronic equipment and storage medium
CN110430070B (en) Service state analysis method, device, server, data analysis equipment and medium
CN114756328A (en) Container cloud platform inspection method and device
CN113918438A (en) Method and device for detecting server abnormality, server and storage medium
CN108390770B (en) Information generation method and device and server
CN109150587B (en) Maintenance method and device
CN114090268B (en) Container management method and container management system
CN111291127B (en) Data synchronization method, device, server and storage medium
CN115580522A (en) Method and device for monitoring running state of container cloud platform
CN113238901B (en) Multi-device automatic testing method and device, storage medium and computer device
CN114356713A (en) Thread pool monitoring method and device, electronic equipment and storage medium
CN115203178A (en) Data quality inspection method and device, electronic equipment and storage medium
CN114153668A (en) Automatic testing method and device, electronic equipment and storage medium
CN113076112A (en) Database deployment method and device and electronic equipment
CN112882948A (en) Stability testing method, device and system for application and storage medium
CN112988589A (en) Interface testing method, device and system
CN113778800B (en) Error information processing method, device, system, 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