CN115967650A - Data processing method and device - Google Patents

Data processing method and device Download PDF

Info

Publication number
CN115967650A
CN115967650A CN202211634454.5A CN202211634454A CN115967650A CN 115967650 A CN115967650 A CN 115967650A CN 202211634454 A CN202211634454 A CN 202211634454A CN 115967650 A CN115967650 A CN 115967650A
Authority
CN
China
Prior art keywords
application server
client
use information
application
address
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.)
Pending
Application number
CN202211634454.5A
Other languages
Chinese (zh)
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.)
United Life Insurance Co ltd
Original Assignee
United Life Insurance 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 United Life Insurance Co ltd filed Critical United Life Insurance Co ltd
Priority to CN202211634454.5A priority Critical patent/CN115967650A/en
Publication of CN115967650A publication Critical patent/CN115967650A/en
Pending legal-status Critical Current

Links

Images

Abstract

The embodiment of the application provides a data processing method and a data processing device, wherein the method comprises the following steps: receiving a data request which is sent by a client and used for acquiring a performance statistical result of an application server, wherein the data request comprises an IP address of the application server; acquiring application server use information corresponding to the IP address of the application server in a database; analyzing the application server use information to obtain a performance statistical result; and sending the performance statistical result to the client. According to the method and the device, the service condition of each application server can be checked at the client, the performance statistical result of the application servers can be queried remotely, real-time monitoring of each application server is facilitated, risk points are avoided in advance, and operation and maintenance efficiency is improved.

Description

Data processing method and device
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a data processing method and apparatus.
Background
The application server can generate the service condition of the application server when providing the application service, and system operation and development personnel can know the software and hardware information of the application server and check the fault and the fault reason in the application service process through the service condition of the application server. The load and the performance safety of the application server can be known by frequently analyzing the service condition of the application server, so that measures can be taken in time to solve the fault.
Along with the increase of various systems of companies, the resource use condition of each application server changes greatly, and the traditional manual inspection cannot efficiently and timely integrate various monitoring data to a monitoring platform, so that the use condition of the application server cannot be acquired in real time, and faults cannot be timely processed.
Disclosure of Invention
In view of this, an object of the present application is to provide a data processing method and apparatus, which can check the use condition of each application server at a client, facilitate monitoring each application server at any time, avoid a risk point in advance, and improve operation and maintenance efficiency, and the specific technical scheme is as follows:
in a first aspect, the present application provides a data processing method, including:
receiving a data request which is sent by a client and used for acquiring a performance statistical result of an application server, wherein the data request comprises an IP address of the application server;
acquiring application server use information corresponding to the IP address of the application server in a database;
analyzing the application server use information to obtain a performance statistical result;
and sending the performance statistical result to the client.
In a possible implementation manner, the analyzing the application server usage information to obtain a performance statistic result includes:
calculating the percentage of the application server use information to obtain the current server use rate;
and comparing the current server utilization rate with a preset threshold value to obtain the performance statistical result.
In a possible implementation manner, before the receiving a data request sent by the client for obtaining the performance statistics of the application server, the method further includes:
acquiring application server use information of different application servers from the database;
monitoring the application server use information;
and if the application server use information is monitored to be abnormal, sending alarm information to the client, wherein the alarm information comprises the IP address of the application server of the abnormal application server.
In a possible implementation manner, before the receiving a data request sent by the client for obtaining the performance statistics of the application server, the method further includes:
acquiring application server resource information and application server use information of different application servers through a Zabbix monitoring center;
and storing the resource information and the use information of the application servers of the different application servers to the database.
In a possible implementation manner, after the sending the performance statistic result to the client, the method further includes:
receiving a control instruction sent by the client, wherein the control instruction comprises an IP address of an application server;
and controlling the application server corresponding to the IP address of the application server according to the control instruction.
In a second aspect, the present application further provides a data processing apparatus, comprising:
the system comprises a receiving module, a sending module and a receiving module, wherein the receiving module is used for receiving a data request which is sent by a client and used for acquiring a performance statistical result of an application server, and the data request comprises an IP address of the application server;
the acquisition module is used for acquiring application server use information corresponding to the IP address of the application server in a database;
the analysis module is used for analyzing the application server use information to obtain a performance statistical result;
and the sending module is used for sending the performance statistical result to the client.
In one possible implementation, the analysis module includes:
the computing unit is used for carrying out percentage computation on the application server use information to obtain the current server use rate;
and the comparison unit is used for comparing the current server utilization rate with a preset threshold value to obtain the performance statistical result.
In one possible implementation, the apparatus further includes: a monitoring module;
the acquisition module is also used for acquiring the application server use information of different application servers from the database;
the monitoring module is used for monitoring the use information of the application server;
and the sending module is further configured to send alarm information to the client if it is monitored that the application server use information is abnormal, where the alarm information includes an application server IP address of the application server in which the abnormality exists.
In one possible implementation, the apparatus further includes:
the Zabbix acquisition module is used for acquiring application server resource information and application server use information of different application servers through a Zabbix monitoring center;
and the storage module is used for storing the application server resource information and the application server use information of different application servers to the database.
In one possible implementation, the apparatus further includes: a control module;
the receiving module is further configured to receive a control instruction sent by the client, where the control instruction includes an IP address of an application server;
and the control module is used for controlling the application server corresponding to the IP address of the application server according to the control instruction.
In the embodiment of the application, a data request sent by a client and used for acquiring a performance statistic result of an application server is received, wherein the data request comprises an IP address of the application server; acquiring application server use information corresponding to the IP address of the application server in a database; analyzing the use information of the application server to obtain a performance statistical result; and sending the performance statistical result to the client. According to the method and the device, the service condition of each application server can be checked at the client, the performance statistical result of the application servers can be queried remotely, real-time monitoring of each application server is facilitated, risk points are avoided in advance, and operation and maintenance efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flow chart illustrating an embodiment of a data processing method provided herein;
fig. 2 is a schematic structural diagram of a data processing apparatus provided in the present application;
fig. 3 shows a schematic structural diagram of a data processing system provided in the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The application server can generate the service condition of the application server when providing the application service, and system operation and development personnel can know the software and hardware information of the application server and check the fault and the fault reason in the application service process through the service condition of the application server. The load and the performance safety of the application server can be known by frequently analyzing the service condition of the server, so that measures are taken in time to solve the fault.
Currently, zabbix monitoring service is generally deployed in an application server for obtaining resource information and usage of the application server. When the use of the resources is abnormal, the login server restarts or performs other operations on the application server to solve the fault. The abnormal data processing method comprises the steps of manually executing SQL sentences to query abnormal data, sending the abnormal data to a system administrator through a mail system, and timely carrying out operations such as increasing, deleting, modifying, checking and the like on the abnormal data. However, the Zabbix monitoring data cannot realize real-time query and real-time alarm, and operation and maintenance personnel cannot log in the server in time after work or when no computer is carried on the weekend, so that faults cannot be handled in time. Abnormal data must be updated after being manually inquired, and remote processing cannot be carried out.
Therefore, the data processing method and device provided by the application can check the use condition of each application server at the client, facilitate real-time monitoring of each application server, avoid risk points in advance and improve operation and maintenance efficiency.
First, some nouns that may appear in the embodiments of the present application are explained.
Internet protocol address (IP address): the IP protocol provides a unified address format. It allocates a logical address to each network and each host on the internet to mask the physical address differences.
Central Processing Unit (CPU): one of the major devices of an electronic computer is a core accessory in the computer. Its functions are mainly to interpret computer instructions and to process data in computer software. The CPU is responsible for reading the instructions, decoding the instructions and executing the core components of the instructions in all operations in the computer.
Zabbix: an enterprise-level open source solution based on a WEB interface that provides distributed system monitoring and network monitoring functions. It can monitor various network parameters, ensure the safe operation of the server system, and provide a flexible notification mechanism to allow the system administrator to quickly locate/resolve various problems.
Structured Query Language (SQL): a computer language. Which is used to store, retrieve and modify data stored in a relational database.
Application Programming Interface (API): some predefined function. The purpose is to provide applications and developers the ability to access a set of routines based on some software or hardware without accessing source code or understanding the details of the internal working mechanisms.
Enterprise office automation software (MOA): an application office product which is based on an enterprise WeChat client and is self-developed by a company and serves for remote office work, self-help inquiry and examination and approval of an internal work.
Referring to fig. 1, a flowchart of an embodiment of a data processing method provided in an embodiment of the present application is shown, where the embodiment of the present application at least includes the following steps:
s1, receiving a data request sent by a client for obtaining a performance statistical result of an application server.
When a user needs to obtain the use condition of the application server, a data request for obtaining the performance statistical result of the application server is sent to the server through the client, and the data request comprises an IP address of the application server.
The client is a program providing local services for the client, such as an application program APP, a browser, an applet, and the like, the client can be carried in a terminal, and the terminal is a device capable of installing and operating the client, such as a smart phone, a tablet computer, a laptop personal computer, a desktop personal computer, a small computer, a medium computer, a large computer, and the like; the server is a service device which can communicate with the client and provide data support for the client, and the server can provide service for one client or a plurality of clients at the same time.
The client in the embodiment of the present application may be a mobile operation and maintenance platform embedded in the enterprise wechat MOA, and it should be noted that the client may be set by a technician according to a requirement of an actual scene, which is not limited in the embodiment of the present application.
And S2, acquiring application server use information corresponding to the IP address of the application server in the database.
After receiving a data request sent by a client, the server acquires application server use information corresponding to an IP address of the application server from a database.
And S3, analyzing the use information of the application server to obtain a performance statistical result.
After the server obtains the application server use information, the application server use information is analyzed to obtain a performance statistical result, namely, the data is analyzed so as to display the resource use condition.
In the embodiment of the present application, one implementation manner of analyzing the application server usage information to obtain the performance statistics result includes:
s31, calculating the percentage of the application server use information to obtain the current server use rate;
and S32, comparing the current utilization rate of the server with a preset threshold value to obtain a performance statistical result.
And performing percentage calculation on the use information of the application server, namely performing percentage calculation on the use amount of the CPU and performing percentage calculation on the use amount of the memory to respectively obtain the use rate of the CPU and the use rate of the memory. The current server usage includes at least one of CPU usage and memory usage.
And comparing the current server utilization rate with a preset threshold, and if the current server utilization rate is greater than the preset threshold, indicating that the application server may be overloaded. The performance statistical result is used for indicating whether the application server is overloaded or not, and the performance statistical result comprises the current server utilization rate.
It should be noted that the preset threshold may be set by a technician according to the actual scene needs, and the embodiment of the present application is not limited.
And S4, sending the performance statistical result to the client.
And after the server obtains the performance statistical result, the performance statistical result is sent to the client so that the client can visualize the performance statistical result, and a user can check the performance statistical result of the application server through the client.
S5, receiving a control instruction sent by the client, wherein the control instruction comprises an IP address of the application server;
and S6, controlling the application server corresponding to the IP address of the application server according to the control instruction.
And after receiving the control instruction sent by the client, the server controls the application server corresponding to the IP address of the application server according to the control instruction.
And when the control instruction is a closing instruction, the server calls an automatic API (application program interface) interface and remotely controls the application server to close.
And when the control instruction is a restart instruction, the server calls an automatic API interface to remotely control the restart of the application server.
By the method and the device, the application server can be remotely controlled, and operation and maintenance efficiency is improved.
Before S1 receiving a data request for obtaining a performance statistic result of an application server sent by a client, an embodiment of the present application further includes:
s7, acquiring resource information and use information of application servers of different application servers through a Zabbix monitoring center;
and S8, storing the resource information of the application servers of different application servers and the use information of the application servers to a database.
According to the embodiment of the application, the Zabbix service is deployed on the application server, the resource information and the use information of the application server of different application servers are obtained through the Zabbix monitoring center, and the resource information and the use information of the application server of different application servers are stored in the database, so that the data are locally deployed and stored.
The resource information of the application server comprises an IP address of the application server, an application service name, the size of a distributed CPU (Central processing Unit), the size of a memory and the like; the application server usage information includes CPU usage amount and memory usage amount.
S9, acquiring application server use information of different application servers from a database;
s10, monitoring the use information of the application server;
and S11, if the application server use information is monitored to be abnormal, sending alarm information to the client, wherein the alarm information comprises the IP address of the application server of the abnormal application server.
The server obtains the application server use information from the database when receiving the data request, obtains the application server use information of different application servers from the database in real time, monitors the application server use information of different application servers, and sends the alarm information to the client side if the application server use information is monitored to be abnormal so as to control the application server with the abnormality.
The server regularly executes the monitoring sentences to monitor the use information of the application servers of different application servers, compares the execution results with preset monitoring rules, judges whether the use information of the application servers is abnormal or not, namely judges whether an alarm task is generated or not, and sends the alarm information to the client if the alarm task is generated. The embodiment of the application can realize monitoring automation and improve operation and maintenance efficiency.
In the embodiment of the application, a data request which is sent by a client and used for acquiring a performance statistical result of an application server is received, wherein the data request comprises an IP address of the application server; acquiring application server use information corresponding to the IP address of the application server in a database; analyzing the use information of the application server to obtain a performance statistical result; and sending the performance statistical result to the client. According to the method and the device, the service condition of each application server can be checked at the client, the performance statistical result of the application servers can be queried remotely, real-time monitoring of each application server is facilitated, risk points are avoided in advance, and operation and maintenance efficiency is improved.
Next, a data processing apparatus provided in the present application will be described, and a data processing apparatus described below and a data processing method described above may be referred to correspondingly.
Referring to fig. 2, a schematic structural diagram of a data processing apparatus provided in the present application is shown, where the apparatus includes:
a receiving module 201, configured to receive a data request sent by a client and used to obtain a performance statistics result of an application server, where the data request includes an IP address of the application server;
an obtaining module 202, configured to obtain, in a database, application server usage information corresponding to the IP address of the application server;
the analysis module 203 is configured to analyze the application server usage information to obtain a performance statistic result;
a sending module 204, configured to send the performance statistics result to the client.
In an embodiment of the present application, the analysis module 203 includes:
the computing unit is used for carrying out percentage computation on the application server use information to obtain the current server use rate;
and the comparison unit is used for comparing the current server utilization rate with a preset threshold value to obtain the performance statistical result.
In an embodiment of the present application, the apparatus further includes: a monitoring module;
the obtaining module 202 is further configured to obtain application server use information of different application servers from the database;
the monitoring module is used for monitoring the use information of the application server;
the sending module 204 is further configured to send alarm information to the client if it is monitored that the application server usage information is abnormal, where the alarm information includes an application server IP address of the application server in which the abnormality exists.
In an embodiment of the present application, the apparatus further includes:
the Zabbix acquisition module is used for acquiring application server resource information and application server use information of different application servers through a Zabbix monitoring center;
and the storage module is used for storing the application server resource information and the application server use information of different application servers to the database.
In an embodiment of the present application, the apparatus further includes: a control module;
the receiving module 201 is further configured to receive a control instruction sent by the client, where the control instruction includes an IP address of an application server;
and the control module is used for controlling the application server corresponding to the IP address of the application server according to the control instruction.
Referring to fig. 3, a schematic structural diagram of a data processing system provided in the present application is shown, where the system includes: a server 31 and a client 32.
A server 31 for executing the method of the above method embodiment;
a client 32 for:
sending a data request for obtaining a performance statistic result of an application server to the server, wherein the data request comprises an IP address of the application server;
and receiving the performance statistical result sent by the server.
In the embodiment of the application, a data request sent by a client and used for acquiring a performance statistic result of an application server is received, wherein the data request comprises an IP address of the application server; acquiring application server use information corresponding to the IP address of the application server in a database; analyzing the use information of the application server to obtain a performance statistical result; and sending the performance statistical result to the client. According to the method and the device, the service condition of each application server can be checked at the client, the performance statistical result of the application servers can be queried remotely, real-time monitoring of each application server is facilitated, risk points are avoided in advance, and operation and maintenance efficiency is improved.
It should be noted that the same and similar parts in the respective embodiments are referred to each other. For the device-like embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
While, for purposes of simplicity of explanation, the foregoing embodiments have been presented as a series of acts or combinations, it will be appreciated by those of ordinary skill in the art that the present application is not limited by the illustrated ordering of acts, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art will recognize that the embodiments described in this specification are preferred embodiments and that acts or modules referred to are not necessarily required for this application.
Finally, it should also be noted that, in this document, relational terms such as first and second, and the like are 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 phrases "comprising one of 8230; \8230;" 8230; "does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

Claims (10)

1. A method of data processing, the method comprising:
receiving a data request which is sent by a client and used for acquiring a performance statistical result of an application server, wherein the data request comprises an IP address of the application server;
acquiring application server use information corresponding to the IP address of the application server in a database;
analyzing the application server use information to obtain a performance statistical result;
and sending the performance statistical result to the client.
2. The method of claim 1, wherein analyzing the application server usage information to obtain performance statistics comprises:
calculating the percentage of the application server use information to obtain the current server use rate;
and comparing the current server utilization rate with a preset threshold value to obtain the performance statistical result.
3. The method according to any one of claims 1 to 2, wherein before receiving the data request sent by the client for obtaining the performance statistics of the application server, the method further comprises:
acquiring application server use information of different application servers from the database;
monitoring the application server use information;
and if the application server use information is monitored to be abnormal, sending alarm information to the client, wherein the alarm information comprises the IP address of the application server of the abnormal application server.
4. The method according to any one of claims 1 to 2, wherein before receiving the data request sent by the client for obtaining the performance statistics of the application server, the method further comprises:
acquiring application server resource information and application server use information of different application servers through a Zabbix monitoring center;
and storing the resource information and the use information of the application servers of the different application servers to the database.
5. The method of any of claims 1-2, wherein after the sending the performance statistics to the client, the method further comprises:
receiving a control instruction sent by the client, wherein the control instruction comprises an IP address of an application server;
and controlling the application server corresponding to the IP address of the application server according to the control instruction.
6. A data processing apparatus, characterized in that the apparatus comprises:
the system comprises a receiving module, a sending module and a receiving module, wherein the receiving module is used for receiving a data request which is sent by a client and used for acquiring a performance statistical result of an application server, and the data request comprises an IP address of the application server;
the acquisition module is used for acquiring the application server use information corresponding to the IP address of the application server in a database;
the analysis module is used for analyzing the application server use information to obtain a performance statistical result;
and the sending module is used for sending the performance statistical result to the client.
7. The apparatus of claim 6, wherein the analysis module comprises:
the computing unit is used for carrying out percentage computation on the application server use information to obtain the current server use rate;
and the comparison unit is used for comparing the current server utilization rate with a preset threshold value to obtain the performance statistical result.
8. The apparatus of any one of claims 6 to 7, further comprising: a monitoring module;
the acquisition module is also used for acquiring the application server use information of different application servers from the database;
the monitoring module is used for monitoring the use information of the application server;
and the sending module is further configured to send alarm information to the client if it is monitored that the application server use information is abnormal, where the alarm information includes an application server IP address of the application server in which the abnormality exists.
9. The apparatus of any one of claims 6 to 7, further comprising:
the Zabbix acquisition module is used for acquiring the resource information and the use information of the application servers of different application servers through the Zabbix monitoring center;
and the storage module is used for storing the application server resource information and the application server use information of different application servers to the database.
10. The apparatus of any one of claims 6 to 7, further comprising: a control module;
the receiving module is further configured to receive a control instruction sent by the client, where the control instruction includes an IP address of an application server;
and the control module is used for controlling the application server corresponding to the IP address of the application server according to the control instruction.
CN202211634454.5A 2022-12-19 2022-12-19 Data processing method and device Pending CN115967650A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211634454.5A CN115967650A (en) 2022-12-19 2022-12-19 Data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211634454.5A CN115967650A (en) 2022-12-19 2022-12-19 Data processing method and device

Publications (1)

Publication Number Publication Date
CN115967650A true CN115967650A (en) 2023-04-14

Family

ID=87357164

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211634454.5A Pending CN115967650A (en) 2022-12-19 2022-12-19 Data processing method and device

Country Status (1)

Country Link
CN (1) CN115967650A (en)

Similar Documents

Publication Publication Date Title
US10158541B2 (en) Group server performance correction via actions to server subset
US11329869B2 (en) Self-monitoring
US20160224400A1 (en) Automatic root cause analysis for distributed business transaction
CN111193609B (en) Application abnormity feedback method and device and application abnormity monitoring system
CN113157545A (en) Method, device and equipment for processing service log and storage medium
CN114064196A (en) System and method for predictive assurance
US10372572B1 (en) Prediction model testing framework
CN111954240A (en) Network fault processing method and device and electronic equipment
CN114661319A (en) Software upgrade stability recommendation
CN115629933A (en) Business system monitoring method, device, equipment and storage medium
CN113835921A (en) Method, device, equipment and storage medium for processing interface service exception
US9563485B2 (en) Business transaction context for call graph
CN114238036A (en) Method and device for monitoring abnormity of SAAS (software as a service) platform in real time
CN113760634A (en) Data processing method and device
CN110069382B (en) Software monitoring method, server, terminal device, computer device and medium
CN114090268B (en) Container management method and container management system
CN115967650A (en) Data processing method and device
US20230237366A1 (en) Scalable and adaptive self-healing based architecture for automated observability of machine learning models
CN115525392A (en) Container monitoring method and device, electronic equipment and storage medium
CN115202973A (en) Application running state determining method and device, electronic equipment and medium
CN115098326A (en) System anomaly detection method and device, storage medium and electronic equipment
CN113138772B (en) Construction method and device of data processing platform, electronic equipment and storage medium
CN114385498A (en) Performance test method, system, computer equipment and readable storage medium
CN114385457A (en) Application program data acquisition method, device, equipment and storage medium
US9858549B2 (en) Business transaction resource usage tracking

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