CN114064385A - Information processing method, equipment, terminal and storage medium - Google Patents

Information processing method, equipment, terminal and storage medium Download PDF

Info

Publication number
CN114064385A
CN114064385A CN202010763537.9A CN202010763537A CN114064385A CN 114064385 A CN114064385 A CN 114064385A CN 202010763537 A CN202010763537 A CN 202010763537A CN 114064385 A CN114064385 A CN 114064385A
Authority
CN
China
Prior art keywords
service
monitoring component
information data
data
current
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
CN202010763537.9A
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.)
China Mobile Communications Group Co Ltd
China Mobile Suzhou Software Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Suzhou Software 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 China Mobile Communications Group Co Ltd, China Mobile Suzhou Software Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202010763537.9A priority Critical patent/CN114064385A/en
Publication of CN114064385A publication Critical patent/CN114064385A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3006Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3089Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/323Visualisation of programs or trace data

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Data Mining & Analysis (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application provides an information processing method, equipment, a terminal and a storage medium, wherein the method comprises the following steps: acquiring service data sent by a plurality of service services to a current layer monitoring component; the service data is sorted to obtain service information data; sending the service information data to an upper monitoring component of the current monitoring component, so that the upper monitoring component displays the service information data in a display page; therefore, the platform with the plurality of monitoring components can be maintained and managed timely according to the service information data on the display page, and the working efficiency is improved.

Description

Information processing method, equipment, terminal and storage medium
Technical Field
The present application relates to network communication technology, and relates to, but is not limited to, an information processing method, device, terminal, and storage medium.
Background
The micro service platform is upgraded, deployed and checked by the problem reason depending on manpower. Particularly, when a group and provincial two-stage deployment mode is involved, 30 nodes including the group and the province need to be operated simultaneously every time the system is upgraded and problem is repaired. When the system has problems, the physical environment, the network environment and the application environment need to be checked layer by layer, the time cost is uncontrollable, the operation complexity is increased, and the requirements on operation and maintenance personnel and developers are high. Moreover, the whole operation platform has high risk when the problem is waited for and then processed, and the processing personnel are all in passive positions. The micro service platform monitoring technology in the related art has the following problems: the monitoring of the state of the multi-stage deployment platform and the monitoring of hardware and networks cannot be realized.
Disclosure of Invention
In order to solve the above technical problem, embodiments of the present invention provide an information processing method, device, terminal, and storage medium, which at least solve the problem that the state of a multi-stage deployment platform cannot be monitored.
The technical scheme of the embodiment of the application is realized as follows:
the embodiment of the application provides an information processing method, which comprises the following steps:
acquiring service data sent by a plurality of service services to a current layer monitoring component;
the service data is sorted to obtain service information data;
and sending the service information data to an upper monitoring component of the current monitoring component, so that the upper monitoring component displays the service information data in a display page.
An embodiment of the present application provides an information processing apparatus, including:
the acquisition module is used for acquiring the business data sent by a plurality of business services to the current layer monitoring component;
the arrangement module is used for arranging the service data to obtain service information data;
and the sending module is used for sending the service information data to an upper monitoring component of the current monitoring component so that the upper monitoring component can display the service information data in a display page.
An embodiment of the present application provides a terminal, where the terminal at least includes: a controller and a storage medium configured to store executable instructions, wherein:
the controller is configured to execute stored executable instructions configured to perform the information processing method provided above.
An embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored, and the computer-executable instructions are stored in the computer-readable storage medium, and are configured to execute the information processing method provided above.
The embodiment of the application provides an information processing method, an information processing device, a terminal and a storage medium, wherein by acquiring service data sent by a plurality of service services to a current-layer monitoring component, the current-layer monitoring component can acquire various service data of the plurality of service services, such as: the service data is arranged to obtain service information data, and then the service information data is sent to an upper layer monitoring component of the current layer monitoring component, so that the upper layer monitoring component displays the service information data in a display page, and a user can monitor and manage a platform with a plurality of layers of monitoring components according to the service information data of the display page.
Drawings
FIG. 1 is a schematic diagram illustrating an exemplary micro-service development management data source according to an embodiment of the present disclosure;
FIG. 2 is a schematic workflow diagram of an automation server jenkins according to an embodiment of the present application;
fig. 3 is a schematic diagram of a technical chain of a software delivery method DevOps according to an embodiment of the application;
FIG. 4 is a flowchart illustrating an information processing method according to an embodiment of the present application;
FIG. 5 is a schematic flowchart of an information processing method according to an embodiment of the present application;
fig. 6 is a schematic diagram of a data reporting architecture of a multi-layer monitoring component according to an embodiment of the present application;
FIG. 7 is a diagram illustrating an upgrade method for a monitoring component according to an embodiment of the present application;
FIG. 8 is a schematic structural diagram of an information processing apparatus according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
In order to facilitate understanding of the technical solutions of the embodiments of the present application, the following description is made of related art of the embodiments of the present application.
The solutions for monitoring and managing micro-service architecture application in the related art mainly include the following methods: a micro service framework (spring closed) technology stack, wherein a spring closed admin component can provide state monitoring of each service instance; an open source automation server (jenkins) can realize automatic construction and deployment; there are also software delivery Operations (DevOps) automated integration and deployment tools.
The working principle of Spring closed admin is as follows: the web application Spring Boot Admin is an open source application framework (Spring Boot) program that monitors and manages on a micro service platform monitor (Spring Boot actor) endpoint, with a good interface design UI. The actor is a microservice framework (Spring Boot) module that adds a representational state transfer (REST) endpoint/management extension (JMX) endpoint to an application so that it can be easily monitored and managed in production.
Fig. 1 is a schematic diagram of a data source of micro service development management (Spring closed admin) according to an embodiment of the present application, as shown in fig. 1: the service registration client 101 obtains the registration service from the service registration server 102, and the service registration client 101 sends a heartbeat to the event distribution node 103 when updating the registration information. The event monitoring node 104 monitors the event from the event issuing node 103, and the event monitoring node 103 acquires the updated registration information and updates the data cache 105 of itself. The interface caller 106 monitors the access proxy interface 107, where the latest registration information is sent to the foreground 108.
Jenkins is an open source software project, is a continuous integration tool developed based on Java, is used for monitoring continuous and repeated work, and aims to provide an open and easy-to-use software platform to enable continuous integration of software. Fig. 2 is a schematic work flow diagram of automation server jenkins according to the embodiment of the present application, as shown in fig. 2:
step S201: the operation is started.
Step S202: the code is invoked.
Step S203: communicating with the node.
Step S204: it is determined whether the node is idle.
Here, step S206 is performed when the node is idle; when the node is not idle, step 205 is performed.
Step S205: waiting for the node to be idle.
Here, when the node is not idle, waiting for a set time length, and re-determining whether the node is idle until the node is idle.
Step S206: an automated test is performed on the node simulator.
Step S207: and finishing the operation.
DevOps is a collective term for a set of processes, methods and systems for facilitating communication, collaboration and integration between development (application/software engineering), technical operations and Quality Assurance (QA) departments. It is a culture, exercise or practice that attaches importance to the communication and cooperation between "software developers (Dev)" and "information technology operation and maintenance technicians (Ops)". Through the automatic software delivery and architecture change processes, the software can be built, tested and released more quickly, frequently and reliably. It appears because the software industry is increasingly aware that: in order to deliver software products and services on time, development and operation must work in close cooperation. Fig. 3 is a schematic diagram of a technical chain of a software delivery method DevOps according to an embodiment of the present application, and as shown in fig. 3, the technical chain of the DevOps has the following processes:
in the DevOps process, the following flow exists: build 301, test 302, package management 303, deploy 304, and evaluate 305. The construction process 301 corresponds to the fully-open source tool chain 31 and the tool set 35, and the test process 302 corresponds to the construction, test, package management and deployment technology chain 32 and the tool set 36; the package management flow 303 corresponds to the custom persistent integration/persistent deployment pipeline 33 and the toolset 37; the deployment flow 304 corresponds to the custom CI/CD pipeline 33 and the toolset 38; the evaluation process 305 corresponds to the DevOps data analysis and reporting 34 and the tool set 39.
The above scheme has the following problems: the method comprises the steps that the Spring boot admin obtains the class or thread condition of the running environment of the java of the computer programming language, only aims at the application level and does not relate to hardware and network environments; jekins needs to compile and pack source codes, is more biased to research and development tests and is not suitable for deployment and operation and maintenance; the DevOps is relatively comprehensive, but is too large, and can only provide service information under the current deployment environment, and cannot monitor the state of the multistage deployment platform.
Therefore, the following technical solutions of the embodiments of the present application are proposed, and in order to more thoroughly understand the features and technical contents of the embodiments of the present application, the embodiments of the present application will be described in detail below with reference to the accompanying drawings, which are provided for reference and are not intended to limit the embodiments of the present application.
An information processing method is provided in an embodiment of the present application, fig. 4 is a schematic flow chart of the information processing method in the embodiment of the present application, and as shown in fig. 4, the information processing method includes the following steps:
step S401: and acquiring service data sent by a plurality of service services to the current layer monitoring component.
Here, the plurality of business services are different functional modules running on the micro service platform, such as different business services of a user service, a promotion service, an order service or a data analysis service on one micro service platform. The service data comprises: hardware use information data corresponding to each business service, service operation data, network state data corresponding to the service, database information of the service or information data of a third-party component connected with the service and the like. The current layer monitoring component is a service monitoring and management service of business service, and the service can be operated as a monitoring management component and separated from the platform for monitoring the service of the platform. However, the service monitored by using the component has requirements on development framework and deployment environment, and the main realization points are as follows: spring bound activator dependent; and a container cluster management system (kubernets, k8s) deployment mode is used for mapping the physical machine disk and the container directory, and a custom data processing package is relied on to prepare for centralizing data of all sources.
In some implementations, the service-sent service data further includes database information data obtained from the micro service platform database by executing a query statement in the custom data processing packet, such as: database size, tablespace usage, and slow Structured Query Language (SQL) lists, among others. The custom data processing packet encapsulates the database information data, converts the database information data into object notation (json) object data of a programming language which can be read by a health monitoring interface (health interface) of each business service, and then correspondingly sends the data to each business service. And each business service sends the database information to the current layer monitoring component.
Step S402: and arranging the service data to obtain service information data.
Here, the service data includes at least application information data transmitted by each service and hardware information data of a physical machine to which each service belongs. The application information data of each business service is sent to the supervision component of the current layer by each business service, and the physical machine information data of each business service is acquired through an interface of a container cluster management system; wherein the container cluster management system provides a network environment for the operation of the current supervision component. And combining the business data with different sources corresponding to each business service to obtain the service information data of each business service, wherein the service information data of a plurality of business services form the service information data corresponding to the monitoring component.
In some implementation embodiments, the service information data may be obtained by sorting the service data in the following manner:
and combining the application information data of each business service and the hardware information data of the physical machine into the service information data of each business service according to a first address corresponding to the application information data sent by each business service and a second address corresponding to the hardware information data of the physical machine to which each business service belongs.
Here, each business service transmits application information data of a plurality of instances, such as information data stored in a database or a configuration center, and the application information data of each instance has a private internet protocol address (IP) of the business service, i.e., a first address; the hardware information data of each instance of the business service, such as a disk, a central processing unit, and the like, can be acquired by an interface of the container cluster management system, and the hardware information data of each instance of the business service also has a private IP of the business service, i.e., a second address. When the current-layer monitoring component receives the two kinds of information of the multiple instances of the same business service, the two kinds of information can be combined into the service information data of the same instance of the same business service according to the first address and the second address of the two kinds of information, and thus, the service information data of each business service is obtained.
Step S403: and sending the service information data to an upper monitoring component of the current monitoring component, so that the upper monitoring component displays the service information data in a display page.
Here, the current-layer supervisor component sends service information data to the upper-layer supervisor component at preset time intervals, for example, periodically, in a specific example, once every minute, and the upper-layer supervisor component caches the service information data and displays the service information data in a display page to provide a web page for maintenance personnel. Therefore, maintenance personnel can maintain and manage the corresponding service according to various service data corresponding to the service displayed on the display page.
In the embodiment of the present application, by acquiring service data sent by a plurality of service services, the current monitoring component may acquire various service data of the plurality of service services, such as: the service data is arranged to obtain service information data, and then the service information data is sent to an upper layer monitoring component of the current layer monitoring component, so that the upper layer monitoring component displays the service information data in a display page, and a user can monitor and manage a platform with a plurality of layers of monitoring components according to the service information data of the display page.
In some embodiments, in order to effectively monitor the platform to which the service belongs and not waste communication resources, the step S401 may further be implemented by:
and acquiring the service data sent by a plurality of service services to the current-layer monitoring component through the first interface according to a preset time interval.
Here, the first interface encapsulates the traffic data at the second interface of the current policing component. The current-layer monitoring component obtains the service data sent by a plurality of service services to the current-layer monitoring component through a monitoring interface (an activator interface) according to a preset time interval. In some implementation embodiments, the custom data packet encapsulates, converts, and sends the database information obtained from the database to each service, and then the service encapsulates, for example, data such as database information data, application information data of the service, and network state data of the service, and sends the encapsulated data to the second interface of the current-layer supervisor component through the first interface. Therefore, the current-layer monitoring component can acquire the service data which can be read by the corresponding second interface and is sent by each service.
In some embodiments, an upper-layer monitoring component may be configured at the current-layer monitoring component according to the requirement of the micro service platform business service, so that the upper-layer monitoring component collects and manages service information data corresponding to a lower-layer monitoring component. The method can be realized by the following steps:
and responding to the received configuration instruction, and configuring an upper-layer monitoring component by using a file corresponding to the current-layer monitoring component so that the current-layer monitoring component reports the service information data to the upper-layer monitoring component.
Here, the upper layer supervisor component is configured on the basis of the current layer supervisor component according to the number of business services in the micro service platform and the needs of the business services. When a configuration instruction is received, configuring an upper-layer monitoring component by using a mirror image file corresponding to the current-layer monitoring component, so that the current-layer monitoring component reports the service information data to the upper-layer monitoring component according to a preset time interval. The upper monitoring component can collect and analyze the service information data acquired by the current monitoring component and display the service information data on a display page. Therefore, the deployment of multi-layer monitoring components on the platform can be realized, and further point-to-point data reporting among multiple levels is realized.
In some embodiments, after the business information data of each business service is displayed on the display page, the platform for deploying the multi-layer monitoring component can be monitored, maintained and managed according to the business information data. The method can be realized by the following steps:
and responding to the maintenance instruction received on the display page, and performing maintenance management on the business service according to the business service corresponding to the maintenance instruction.
Here, when some data in the service information data corresponding to the service does not satisfy the preset condition, a maintenance instruction is sent in a prompt form or an email form on a display page, and after the maintenance instruction is responded, the service information data corresponding to the maintenance instruction is determined according to the service information data, and the service is maintained and managed. Therefore, maintenance personnel can be facilitated to effectively monitor and maintain each service of the platform in time.
In some embodiments, the step of performing maintenance management on the business service may be further implemented by:
the method comprises the following steps: and if the service information data in the display page does not meet the preset condition, controlling an upper monitoring component of the current monitoring component to send maintenance information.
Here, when the service information data in the display page does not satisfy the preset condition, the upper layer monitoring component of the current layer monitoring component is controlled to send the maintenance information of the service corresponding to the service information data in an email mode or an information mode. In some embodiments, the predetermined condition of the utilization rate of the central processing unit of a business service is a normal use state when the utilization rate of the central processing unit is lower than 75%. When the utilization rate of the central processing unit in the service information data list of a service is displayed as 80%, it is indicated that the utilization rate does not meet the preset condition, and at this time, the upper layer assembly of the current layer monitoring assembly is controlled to send maintenance information to the maintenance personnel, so that the maintenance personnel can know that the utilization rate of the central processing unit of the service is too high, and need to maintain the central processing unit, so that the maintenance personnel can monitor and maintain the central processing unit of the service.
Step two: and responding to the maintenance instruction corresponding to the maintenance information, and maintaining and managing the service corresponding to the maintenance information.
Here, after receiving the maintenance information, the service corresponding to the maintenance information is maintained, for example, the operation state of the service corresponding to the maintenance information is checked and adaptively adjusted. And the terminal responds to the received maintenance instruction corresponding to the maintenance information and carries out maintenance management on the business service corresponding to the maintenance information according to the operation of the maintainer.
Therefore, maintenance personnel can timely maintain the service of the platform according to the maintenance information sent by the upper monitoring component of the current-layer monitoring component, the working efficiency of the maintenance personnel is improved, and the operation risk of the platform is reduced.
An information processing method is provided in the embodiments of the present application, and fig. 5 is a schematic flowchart of the information processing method in the embodiments of the present application, which is described with reference to the steps shown in fig. 5:
step S501: and the current layer monitoring component regularly acquires service data sent by each service of the platform.
Here, the current-layer supervisor component obtains the business data sent by each business service of the platform through the actor interface. The monitoring component also obtains the hardware information data of the physical machine to which the service belongs in K8S through an interface of the container cluster management system (K8S).
In some implementations, the implementation of the monitoring component requires preparation for obtaining various source data through the following components: spring closed activator, container cluster management system (K8S), disk mount and custom data processing package.
In some implementations, the monitoring interface Actuator may provide a service information interface and custom interface support for the monitoring component. The container cluster management system (K8S) provides cluster network environment management for the monitoring component; the disk mounting is that the monitoring component executes the script to obtain the use condition of each data of the physical machine; the user-defined data processing package provides an Application Programming Interface (API) for the monitoring component, and the size of the database, the use condition of the table space and the slow SQL list are obtained through Structured Query Language (SQL), so that data optimization is facilitated. The basic API is used as a data complement to the information of each service enabler interface, and needs to be adapted to each service. The database connection of the monitoring component comes from each service, a query statement needs to be executed on a system library, the size and the tablespace information of the database of each service are obtained, and the obtained related information of the database is supplemented to a json object returned by a health interface of each service.
The data information includes:
Figure BDA0002613737460000101
thus, the monitoring component acquires the service data of the service, such as: and the service data is composed of data such as hardware information data, network state data, application information data and the like.
Step S502: and merging and sorting the service data to obtain service information data.
Here, the supervision component transmits application information data according to each service, such as: the information of the database, the configuration center and the like is obtained through a third-party interface, and the hardware information data of the physical machine to which the service belongs, such as: and the service conditions of a magnetic disk, a central processing unit, a memory and the like correspond and combine the two parts of data through the private IP of the service contained in the two types of information to form complete service information data. In a specific example, the service information data of a service complete includes at least: service name, service physical machine IP, service private IP, service memory, central processing unit, disk usage, service database connection, configuration center connection, message component connection, and the like.
Step S503: and sending the service information data to an upper layer monitoring component.
Here, the supervisor component periodically sends the service information data to the upper supervisor component.
Step S504: and the topmost monitoring component in the monitoring component system displays the service information data on a page.
Here, the uppermost service supervisor in the supervisor component system is responsible for caching the deployment environment information of each level of supervisor component in the system, presenting the deployment environment information in a centralized manner, and providing a web page for web operation. And after the monitoring components at all levels send the service information data, presenting the service information data on a web operation page for an administrator to operate. In some realizable embodiments, a one-key operation button can be further arranged on the web operation page to perform one-key starting, stopping, upgrading, degrading, expanding and contracting.
For the above steps of the information processing method, the embodiments of the present application provide a corresponding peer-to-peer information reporting architecture diagram among multiple layers of monitoring components. Fig. 6 is a schematic diagram of a data reporting architecture of a multi-layer monitoring component according to an embodiment of the present application, and the following description is made with reference to fig. 6: the custom data processing packet 61 acquires database information data from the database 62, and the custom data processing packet 61 converts and encapsulates the database information data and then sends the data to corresponding different business services: business service 63, business service 64 and business service 65, and then different business services send their own application information data and database information data to current-layer supervisor component 66 through supervisory interfaces 601, 602 and 603, respectively; the current-layer supervisor 66 also obtains the hardware information data of the physical machine to which each service belongs in the container cluster management system through the interface 604 of the container cluster management system 67, the current-layer supervisor 66 sends the service information data composed of the service data sent by each service and the hardware information data obtained in the container cluster management system to the upper-layer supervisor 68, and the upper-layer supervisor 68 displays the service information data in the web page monitor page 69.
In the embodiment of the application, the monitoring component can monitor the whole amount of monitoring information including the hardware use condition, the network use condition, the service running state, the component running state, the database use condition and the SQL list with low execution efficiency of each service in the platform, so that operation and maintenance or research and development personnel can actively analyze the possible problems of the platform according to the display of abnormal information on a web operation page.
An embodiment of the present application provides a method for upgrading a monitoring component, fig. 7 is a schematic diagram of the method for upgrading a monitoring component according to the embodiment of the present application, and as shown in fig. 7, the method for upgrading a monitoring component includes the following steps:
step S701: and selecting an upgrade service and a version.
Here, the service and version of the supervisory component to be upgraded are selected in response to the received upgrade instructions for the supervisory component.
Step S702: a service location is determined.
Here, the hierarchical location of the deployment supervisor component upgrade is determined. If the deployment is the first-level deployment, executing the steps S703 to S707; if the deployment is the first-level deployment, steps S708 to S716 are performed.
Step S703: it is determined whether an image version file exists.
Here, it is determined whether an image version file corresponding to the upgraded version exists. And determining whether an image version file corresponding to the version file which needs to be upgraded by the monitoring component exists in a container library of the current monitoring component. If so, perform step S704; absent, step S707 is executed.
Step S704: the configuration version is modified.
Here, if the version of the image version file is not the version corresponding to the current upgrade, the configuration file corresponding to the image version file of the upgrade version file of the monitoring component is modified, and the upgrade of the monitoring component is completed when the configuration file is started.
Step S705: an interface of the container cluster management system requests data.
Here, data is requested through an interface of the container cluster management system to fix the upgraded monitoring component at the master node of the container cluster management system.
Step S706: and (4) finishing.
And calling an interface of the container cluster management system, fixing the upgraded monitoring component at a main node of the container cluster management system, operating a new version monitoring component, and completing the upgrading of the primary monitoring component.
Step S707: and returning the information of upgrading failure.
Here, when the image file does not exist, information of upgrade failure is returned.
Step S708: and generating a secondary task.
Here, according to the selected service location, a secondary task is generated, and operations such as upgrading are performed on the secondary monitoring component.
Step S709: and pulling the task by the secondary monitoring component.
Here, the secondary monitoring component pulls the task from the primary monitoring component when receiving the secondary task, and the task may be a task such as upgrading, downgrading, restarting, or stopping the monitoring component.
Step S710: it is determined whether an image file exists.
Here, if the local container warehouse corresponding to the secondary monitoring component has the image version file of the current upgrade version, steps S711 to S713 are executed; if not, steps S714 to S716 are performed.
Step S711: the configuration version is modified.
Here, when the image version file of the current upgrade version exists in the local container warehouse corresponding to the secondary monitoring component, the file of the configuration version is modified according to the image version file of the current upgrade version.
Step S712: an interface of the container cluster management system requests data.
Step S713: and (4) finishing.
Here, the upgrade of the secondary supervisory component is completed.
Step S714: and pulling the mirror image file.
Here, the image file corresponding to the file which needs to be upgraded of the secondary monitoring component is pulled from the container warehouse of the primary monitoring component.
Step S715: it is determined whether pulling the image file was successful.
Here, when the image file is successfully pulled, steps S711 to S713 are executed; if the image file is not pulled, step S716 is executed.
Step S716: reporting the superior service.
Here, upgrade failure information is reported to the upper level supervisor component.
In some implementations, the principle of operation of the component is monitored as follows:
1. configuring the level and the level name of the monitoring component, and configuring the address of the upper monitoring component and the address of the mirror image warehouse.
2. The monitoring component is fixedly started on the main node, namely the k8s cluster main node.
3. And mapping the container operating system directory of the monitoring component with a physical disk, and reading each service starting file to be monitored.
4. The task for the pull operation instruction is loaded.
5. And loading a timer, and collecting data every 10 seconds for reporting. And calling a management admin interface to obtain all service lists of the current deployment environment, circularly calling each service interface, and obtaining info, health (an interface after the user-defined supplementary data) and metrics interface information of the service interface. Calling interfaces of k8s pods and nodes to obtain service-related physical machine information, executing cpuinfo, meminfo and top instructions through services to obtain physical machine details, analyzing the physical machine details through a service health interface, calling a docker api images/json interface to obtain all images in the current image warehouse, and performing regular analysis on image labels through a monitoring component. And packaging the analyzed result into complete platform information for reporting, and updating the platform information maintained by the upper level.
In the embodiment of the application, the level of the monitoring component to be upgraded is determined, whether the image file of the upgrade version file exists or not is determined in the container warehouse of the monitoring component, the configuration file corresponding to the image file is modified or the image file corresponding to the upgrade version file is pulled from an upper container, and then the configuration file is modified, so that the upgrading of the monitoring components of different levels can be completed by selecting the upgraded level.
An information processing apparatus according to an embodiment of the present application is provided, and fig. 8 is a schematic structural diagram of the information processing apparatus according to the embodiment of the present application, and as shown in fig. 8, the information processing apparatus 800 includes: an obtaining module 801, a sorting module 802, and a sending module 803, wherein:
the obtaining module 801 is configured to obtain service data sent by a plurality of service services to a current-layer monitoring component;
the sorting module 802 is configured to sort the service data to obtain service information data;
the sending module 803 is configured to send the service information data to an upper monitor component of the current monitor component, so that the upper monitor component displays the service information data in a display page.
In the above apparatus, the obtaining module 801 is further configured to obtain, according to a preset time interval, service data sent by a plurality of service services to the current-layer monitoring component through the first interface.
In the above apparatus, the service data at least includes: and the application information data sent by the business service and the hardware information data of the physical machine to which the service belongs.
In the above apparatus, the sorting module 802 is further configured to merge the application information data of each service and the hardware information data of the physical machine into the service information data of each service according to a first address corresponding to the application information data sent by each service and a second address corresponding to the hardware information data of the physical machine to which each service belongs.
In the above apparatus, the apparatus further comprises:
and the configuration module is used for responding to the received configuration instruction, and configuring an upper-layer monitoring component by using a file corresponding to the current-layer monitoring component so that the current-layer monitoring component reports the service information data to the upper-layer monitoring component.
In the above apparatus, the apparatus further comprises:
and the maintenance management module is used for responding to the maintenance instruction received on the display page and carrying out maintenance management on the business service according to the business service corresponding to the maintenance instruction.
In the above apparatus, the maintenance management module includes:
the sending submodule is used for controlling an upper monitoring component of the current monitoring component to send maintenance information if the service information data in the display page does not meet the preset condition;
and the maintenance management submodule is used for responding to the maintenance instruction corresponding to the maintenance information and carrying out maintenance management on the business service corresponding to the maintenance information.
An embodiment of the present application further provides an information processing apparatus, where the apparatus includes modules, and sub-modules and units included in the modules, and may be implemented by a processor in a terminal; of course, the implementation can also be realized through a specific logic circuit; in implementation, the processor may be a Central Processing Unit (CPU), a Microprocessor (MPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), or the like.
Correspondingly, an embodiment of the present application provides a terminal, fig. 9 is a schematic view of a composition structure of the terminal according to the embodiment of the present application, and as shown in fig. 9, the terminal 900 at least includes: a controller 901 and a storage medium 902 configured to store executable instructions, wherein:
the controller 901 is configured to execute stored executable instructions for implementing the provided information processing method.
It should be noted that the above description of the terminal embodiment is similar to the description of the method embodiment, and has similar beneficial effects to the method embodiment. For technical details not disclosed in the embodiments of the terminal of the present application, reference is made to the description of the embodiments of the method of the present application for understanding.
Correspondingly, the embodiment of the present application provides a computer storage medium, in which computer-executable instructions are stored, and the computer-executable instructions are configured to execute the information processing method provided in the other embodiments of the present application.
It should be noted that, in this document, 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 like elements in a process, method, article, or apparatus that comprises the element.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units; can be located in one place or distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media that can store program codes, such as a removable Memory device, a Read Only Memory (ROM), a magnetic disk, or an optical disk.
Alternatively, the integrated units described above in the present application may be stored in a computer-readable storage medium if they are implemented in the form of software functional modules and sold or used as independent products. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially implemented or portions thereof contributing to the related art may be embodied in the form of a software product stored in a storage medium, and including several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a removable storage device, a ROM, a magnetic or optical disk, or other various media that can store program code.
The above description is only for the embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. An information processing method, characterized in that the method comprises:
acquiring service data sent by a plurality of service services to a current layer monitoring component;
the service data is sorted to obtain service information data;
and sending the service information data to an upper monitoring component of the current monitoring component, so that the upper monitoring component displays the service information data in a display page.
2. The method of claim 1, wherein obtaining traffic data sent by a plurality of traffic services to a current supervisors component comprises:
acquiring service data sent by a plurality of service services to a current-layer monitoring component through a first interface according to a preset time interval; wherein the first interface encapsulates the traffic data at the second interface of the current supervisors component.
3. The method of claim 2, wherein the traffic data comprises at least: and the application information data sent by the business service and the hardware information data of the physical machine to which the service belongs.
4. The method according to claim 3, wherein the sorting the service data to obtain the service information data comprises:
and combining the application information data of each business service and the hardware information data of the physical machine into the service information data of each business service according to a first address corresponding to the application information data sent by each business service and a second address corresponding to the hardware information data of the physical machine to which each business service belongs.
5. The method of claim 1, further comprising:
and responding to the received configuration instruction, and configuring an upper-layer monitoring component by using a file corresponding to the current-layer monitoring component so that the current-layer monitoring component reports the service information data to the upper-layer monitoring component.
6. The method of claim 1, wherein after the sending the service information data to an upper supervisor component of the current supervisor component to cause the upper supervisor component to present the service information data in a display page, the method further comprises:
and responding to the maintenance instruction received on the display page, and performing maintenance management on the business service according to the business service corresponding to the maintenance instruction.
7. The method according to claim 6, wherein the performing maintenance management on the business service according to the business service corresponding to the maintenance instruction in response to the maintenance instruction received on the display page includes:
if the service information data in the display page does not meet the preset condition, controlling an upper monitoring component of the current monitoring component to send maintenance information;
and responding to the maintenance instruction corresponding to the maintenance information, and maintaining and managing the service corresponding to the maintenance information.
8. An information processing apparatus characterized by comprising:
the acquisition module is used for acquiring the business data sent by a plurality of business services to the current layer monitoring component;
the arrangement module is used for arranging the service data to obtain service information data;
and the sending module is used for sending the service information data to an upper monitoring component of the current monitoring component so that the upper monitoring component can display the service information data in a display page.
9. An information management terminal characterized in that the terminal comprises at least: a controller and a storage medium configured to store executable instructions, wherein:
the controller is configured to execute stored executable instructions configured to perform the information processing method provided in any one of the preceding claims 1 to 7.
10. A computer-readable storage medium having computer-executable instructions stored therein, the computer-executable instructions being configured to perform the information processing method provided by any one of claims 1 to 7 above.
CN202010763537.9A 2020-07-31 2020-07-31 Information processing method, equipment, terminal and storage medium Pending CN114064385A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010763537.9A CN114064385A (en) 2020-07-31 2020-07-31 Information processing method, equipment, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010763537.9A CN114064385A (en) 2020-07-31 2020-07-31 Information processing method, equipment, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN114064385A true CN114064385A (en) 2022-02-18

Family

ID=80227905

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010763537.9A Pending CN114064385A (en) 2020-07-31 2020-07-31 Information processing method, equipment, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN114064385A (en)

Similar Documents

Publication Publication Date Title
US10212055B2 (en) System and method for dynamically grouping devices based on present device conditions
EP2510653B1 (en) Cloud computing monitoring and management system
CN109714192A (en) Monitoring method and system for monitoring cloud platform
US11418392B2 (en) Network resource management devices methods and systems
CN1934538B (en) Anomaly management scheme for a multi-agent system
WO2023142054A1 (en) Container microservice-oriented performance monitoring and alarm method and alarm system
CN114253569A (en) Updating operational technical equipment using a container orchestration system
CN111552556B (en) GPU cluster service management system and method
US20130297748A1 (en) Message management facility for an industrial process control environment
CN104021078B (en) Software supervision device and method
CN104731580A (en) Automation operation and maintenance system based on Karaf and ActiveMQ and implement method thereof
CN109450693B (en) Hybrid cloud monitoring system and monitoring method using same
CN111190794A (en) Operation and maintenance monitoring and management system
CN110134518A (en) A kind of method and system improving big data cluster multinode high application availability
CN110445662A (en) OpenStack control node is adaptively switched to the method and device of calculate node
CN111464601A (en) Node service scheduling system and method
CN117492944A (en) Task scheduling method and device, electronic equipment and readable storage medium
CN110971439A (en) Policy decision method and device, system, storage medium, policy decision unit and cluster
US7552215B2 (en) Method, system, and computer program product for supporting a large number of intermittently used application clusters
CN115248826A (en) Method and system for large-scale distributed graph database cluster operation and maintenance management
US12035156B2 (en) Communication method and apparatus for plurality of administrative domains
CN107943665A (en) A kind of system host monitoring method and device
CN113570347A (en) RPA operation and maintenance method for micro-service architecture system
CN114064385A (en) Information processing method, equipment, terminal and storage medium
CN113824801B (en) Intelligent integration terminal unified access management component system

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