CN111654553B - Middleware-based management and control operation method and device, computer equipment and medium - Google Patents

Middleware-based management and control operation method and device, computer equipment and medium Download PDF

Info

Publication number
CN111654553B
CN111654553B CN202010613794.4A CN202010613794A CN111654553B CN 111654553 B CN111654553 B CN 111654553B CN 202010613794 A CN202010613794 A CN 202010613794A CN 111654553 B CN111654553 B CN 111654553B
Authority
CN
China
Prior art keywords
middleware
module
management
login
control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010613794.4A
Other languages
Chinese (zh)
Other versions
CN111654553A (en
Inventor
邓丰池
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Bank Co Ltd
Original Assignee
Ping An Bank Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Bank Co Ltd filed Critical Ping An Bank Co Ltd
Priority to CN202010613794.4A priority Critical patent/CN111654553B/en
Publication of CN111654553A publication Critical patent/CN111654553A/en
Application granted granted Critical
Publication of CN111654553B publication Critical patent/CN111654553B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/562Brokering proxy services
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The present invention relates to the field of research and development management, and in particular, to a middleware-based management and control operation method, apparatus, computer device, and medium. The method comprises the following steps: receiving a multi-layer operation instruction of a middleware instance sent by a management and control platform, and determining login information associated with the middleware instance: capturing at least one piece of target middleware instance information corresponding to the middleware instance; comparing the health index corresponding to the middleware with a preset health threshold value, and obtaining a comparison result after comparison; running an acquisition script corresponding to the middleware, and acquiring JVM parameters acquired by the acquisition script and abnormal information of the JVM parameters; acquiring IP data corresponding to the middleware instance through grafana; and sending the target middleware instance information, the comparison result, the JVM parameters, the abnormal information of the JVM parameters and the IP data to the management and control platform and displaying the abnormal information and the IP data to a front-end page of the management and control platform in a dimension mode. The invention can simplify the butt joint flow in the middle part management and control operation process and save the debugging working time.

Description

Middleware-based management and control operation method and device, computer equipment and medium
Technical Field
The present invention relates to the field of development in the field of development and management, and in particular, to a middleware-based management and control operation method, apparatus, computer device, and medium.
Background
Most traditional middleware management and control needs to be based on a manual operation method, wherein the manual operation comprises manual maintenance of the states of all components, manual recording of account password information, manual checking of cluster health and manual logging of all monitoring platforms to check monitoring information such as JVM information, data sources and instance information, so that the manual operation method has the problems of low effectiveness and inconvenience in maintenance. The existing agent based on the operating system captures the dynamic middleware instance information on the server, captures the information such as the starting path, the log path, the version, the jdk version and the like of the middleware instance through the process started by the operating system, and has the following defects: the method has strong dependence on standardization, for example, the bottom layer needs to rely on a unified agent for collection work, and the upper layer resource information collection also needs to rely on standardized specifications, so that the scheme has the problems of poor popularization and poor direct applicability of multiple platforms, and is easy to cause the problems of complex butt joint process and long debugging working time in a non-standard environment.
Disclosure of Invention
Based on the above, it is necessary to provide a middleware-based management and control operation method, device, computer equipment and medium, which are used for solving the problems of low effectiveness and unfavorable maintenance in the middleware management and control operation, complex docking process and long debugging working time.
A middleware-based management and control operation method, comprising:
receiving a multi-layer operation instruction of a middleware instance sent by a management and control platform, determining login information of a login control console associated with the middleware instance from a login form associated with a login control console module, and realizing password-free login of the login control console associated with the middleware instance according to the determined login information; the multi-layer operation instruction comprises a plurality of sub-layer operation instructions, and one sub-layer operation instruction is used for indicating a management and control module to execute middleware examples corresponding to at least one type of middleware; the management and control module comprises a login console module, a thread dump module, a cluster health check module, a JVM information check module and a monitoring information check module;
after confirming that the password-free login is finished, calling a thread dump module, and directly capturing at least one target middleware instance information corresponding to the middleware instance from the login control console through the thread dump module;
comparing the health index corresponding to the middleware with a preset health threshold by using a cluster health check module, and obtaining a comparison result after comparison;
running an acquisition script corresponding to the middleware by using a agent in a JVM information checking module, and acquiring JVM parameters acquired by the acquisition script and used for starting a middleware instance and abnormal information of the JVM parameters;
utilizing a monitoring information checking module to butt joint grafana, and acquiring IP data corresponding to the middleware instance through the grafana;
and sending the target middleware instance information, the comparison result, the JVM parameters, the abnormal information of the JVM parameters and the IP data to the management and control platform and displaying the information to a front-end page of the management and control platform in a dimension mode.
A middleware-based management and control operation device, comprising:
the realization module is used for receiving the multi-layer operation instruction of the middleware instance sent by the management and control platform, determining the login information of the login control platform associated with the middleware instance from the login form associated with the login control platform module, and realizing the password-free login of the login control platform associated with the middleware instance according to the determined login information; the multi-layer operation instruction comprises a plurality of sub-layer operation instructions, and one sub-layer operation instruction is used for indicating a management and control module to execute middleware examples corresponding to at least one type of middleware; the management and control module comprises a login console module, a thread dump module, a cluster health check module, a JVM information check module and a monitoring information check module;
the capturing module is used for calling a thread dump module after confirming that the password-free login is finished, and capturing at least one piece of target middleware instance information corresponding to the middleware instance from the login control console directly through the thread dump;
the first acquisition module is used for comparing the health index corresponding to the middleware with a preset health threshold value by using the cluster health check module, and acquiring a comparison result after comparison;
the second acquisition module is used for running an acquisition script corresponding to the middleware by utilizing the agent in the JVM information viewing module and acquiring JVM parameters acquired by the acquisition script and used for starting a middleware instance and abnormal information of the JVM parameters;
the third acquisition module is used for butting grafana by using the monitoring information viewing module and acquiring IP data corresponding to the middleware instance through the grafana;
the first display module is used for sending the target middleware instance information, the comparison result, the JVM parameters, the abnormal information of the JVM parameters and the IP data to the management and control platform and displaying the abnormal information, the JVM parameters, the abnormal information and the IP data to a front-end page of the management and control platform in a dimension mode.
A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the above-described middleware-based management and control method when executing the computer program.
A computer readable storage medium storing a computer program which when executed by a processor implements the middleware-based management and control operation method described above.
The management and control operation method, the device, the computer equipment and the medium based on the middleware are different from the manual middleware example operation method, and the automatic operation is realized through a plurality of management and control modules in a management and control platform server which is successfully developed, and a machine is used for replacing manual work, so that the problems of low effectiveness of manual maintenance and inconvenience in maintenance can be solved; the invention is also different from the existing middleware example operation method, each management and control module developed in the invention has corresponding management and control operation functions, each management and control module can finish respective management and control operation functions under a multi-layer operation instruction, and the butt joint flow of each management and control module can be realized according to the multi-layer operation instruction, and the acquisition of the middleware example does not depend on a unified agent any more but utilizes thread dump, so the invention can solve the problem that the existing method has stronger dependence on standardized specifications, and can simplify the butt joint flow and save the debugging working time in a non-standard environment (such as a bank environment); the execution main body of the invention is a management and control platform server capable of being managed and controlled uniformly, so that the management and control operation of various middleware examples can be completed in a modularized mode through the management and control platform server, the problems of the middleware examples can be timely checked, and corresponding maintenance can be timely carried out.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments of the present invention will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of an application environment of a middleware-based management and control method according to an embodiment of the present invention;
FIG. 2 is a flow chart of a middleware-based management and control operation method according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a control operation device based on middleware according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a computer device in accordance with an embodiment of the invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The middleware-based management and control operation method provided by the invention can be applied to an application environment as shown in fig. 1, wherein a client communicates with a server through a network. The clients may be, but are not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices. The server may be implemented as a stand-alone server or as a server cluster composed of a plurality of servers.
In an embodiment, as shown in fig. 2, a middleware-based management and control operation method is provided, and the method is applied to the server in fig. 1 for illustration, and includes the following steps:
s10, receiving a multi-layer operation instruction of a middleware instance sent by a management and control platform, determining login information of a login control console associated with the middleware instance from a login form associated with a login control console module, and realizing password-free login of the login control console associated with the middleware instance according to the determined login information; the multi-layer operation instruction comprises a plurality of sub-layer operation instructions, and one sub-layer operation instruction is used for indicating a management and control module to execute middleware examples corresponding to at least one type of middleware; the management and control module comprises a login console module, a thread dump module, a cluster health check module, a JVM information check module and a monitoring information check module;
as can be appreciated, the above steps in this embodiment are executed by a management and control platform server, in which the management and control platform server can control the above management and control modules to execute a management and control operation function corresponding to a multi-layer operation instruction or a sub-layer operation instruction, and the management and control platform server can receive the multi-layer operation instruction of the middleware instance sent by the management and control platform (the management and control platform is a software platform used by a user and is equivalent to the front end of the user), where each management and control module has an association relationship with the middleware, and the login console module in this embodiment can be a maintenance middleware of weblog and webshare; the login information is stored in the login form, one login console can be used through one login information in the login form, so that the login information of a plurality of login consoles can be stored in the login form, and the login information is suitable for the password-free login of the plurality of login consoles; the middleware instance refers to events executed by various types of middleware associated by a management and control module in a management and control platform server, for example, the middleware instance can include, but is not limited to, events such as a middleware starting path, a middleware log path, a middleware version, an IP address of a login console, a jdk version and the like; it should be noted that, in this embodiment, the login authority of the login console may be controlled by controlling the um number (User Management) Management authority of the platform server. In this embodiment, a management and control module corresponding to the multi-layer operation instruction of the middleware instance may be determined, or the time for searching the IP address of the login console associated with the middleware instance and the time for inputting the account number and the password of the login console may be saved by using the login console module in the determined management and control module, so as to realize the password-free login of the login console; the multi-layer operation of the middleware instance in this embodiment may be understood as a management and control operation of the middleware by the management and control platform server.
It should be noted that, one of the sub-layer operation instructions or two sub-layer operation instructions or three sub-layer operation instructions, etc. in the multi-layer operation instruction can be executed in the invention, and in the operation process, the operation sequence corresponding to each sub-layer operation instruction can be determined according to the sequence in which the buttons in the front-end page of the management and control platform are triggered.
S20, after confirming that the password-free login is completed, calling a thread dump module, and directly capturing at least one target middleware instance information corresponding to the middleware instance from the login control console through the thread dump module;
the method comprises the steps that a first jar packet of weblogic middleware about a wlan is integrated in a background where a thread dump module is located, the thread dump module encapsulates a transfer and operation on a wlan.sh script, when the thread dump module performs the transfer and operation according to the first jar packet, namely, the thread dump module can call out a thread dump (the thread dump is a list of JVM active threads, so that the thread dump comprises at least one thread) to capture target middleware instance information from a data interface associated with a login control platform, and then the target middleware instance information is displayed in a front-end page where a management and control platform is located through the thread dump module (the data interface sends the target middleware instance information to the thread dump module); the target middleware instance information includes, but is not limited to, related information of events such as a middleware starting path, a middleware log path, a middleware version, an IP address of a login control console, a jdk version and the like; it should be noted that, in this embodiment, other processes such as the operation page associated with the login console may be queried through the thread dumping module. In this embodiment, the thread dump module provides a management and control operation of thread dump, and can discard the tedious operation of logging in the console, so that the middleware instance information corresponding to the middleware instance can be easily obtained, thus simplifying the operation difficulty of maintenance personnel who do not know the middleware, and the embodiment can quickly locate the problem from the obtained middleware instance information and make corresponding maintenance in time.
S30, comparing the health index corresponding to the middleware with a preset health threshold by using a cluster health check module, and obtaining a comparison result after comparison;
understandably, the background where the cluster health inspection module is located integrates a second jar packet of weblogic middleware about the wlst, and the cluster health inspection module encapsulates the transferring and operating of the wlst.sh script, when the cluster health inspection module executes the transferring and operating according to the second jar packet, that is, the thread dump module compares the health index (the numerical value and the state value of each MBEAN) with the preset health threshold (the threshold under the standard condition), and then displays the comparison result in the front end page where the management and control platform is located through the cluster health inspection module, where the comparison result includes the results of cluster health and cluster unhealthy. The embodiment is different from the traditional middleware maintenance that the states of various health indexes are checked manually, and the embodiment automatically monitors cluster inspection through a cluster health inspection module and timely processes and maintains unhealthy data of the clusters.
S40, running an acquisition script corresponding to the middleware by using a agent in the JVM information checking module, and acquiring JVM parameters acquired by the acquisition script and used for starting a middleware instance and abnormal information of the JVM parameters;
understandably, the JVM (Java Virtual Machine ) parameters and the abnormal information of the JVM parameters required by the current target middleware instance starting acquired by the acquisition script are acquired by the acquisition script, and the JVM parameters acquired by the acquisition script and the abnormal information of the JVM parameters are JVM starting information in the running state of the process after the linux starting process is acquired by the acquisition script; it should be noted that the JVM information viewing module in this embodiment may be equivalent to a class of middleware. The embodiment is different from the traditional middleware maintenance JVM parameters (because the JVM parameters can be checked only by logging in a server associated with the JVM parameters when the traditional middleware maintenance JVM parameters, the problems of non-uniform searching paths and difficult searching exist).
S50, butting grafana by using a monitoring information checking module, and acquiring IP data corresponding to the middleware instance through the grafana;
as can be appreciated, grafana is a cross-platform open source measurement analysis and visualization tool, which can query collected IP data, visually display the collected IP data and notify a preset data receiver in time, so that the embodiment will utilize the monitoring information viewing module to interface with grafana, and can obtain the IP data corresponding to the middleware instance from the grafana, where the IP data refers to the data source data associated with the middleware instance, and one IP data can correspond to the data of one data source, where the configuration of the butted grafana is completed; it should be noted that the monitoring information viewing module in this embodiment may be equivalent to a class of middleware. According to the embodiment, the grafana can be directly connected, the data in the grafana are displayed in the front-end page where the management and control platform is located one by one, and the grafana is used for avoiding searching and acquiring the IP data by a plurality of platforms, so that the acquisition efficiency of the IP data is improved.
S60, the target middleware instance information, the comparison result, the JVM parameters, the abnormal information of the JVM parameters and the IP data are sent to the management and control platform and displayed in a dimension mode to a front-end page of the management and control platform.
Understandably, after the middleware instance information, the comparison result, the JVM parameters, the exception information of the JVM parameters, and the IP data are executed, the display positions associated with each management module in the front page of the management platform can be displayed in different dimensions (one dimension may refer to a display section in the front page, one dimension corresponds to one management module, and all the display positions in the front page may be divided into a plurality of displayable display sections, that is, the plurality of dimensions), so as to facilitate visual management of the user corresponding to the management platform, and perform corresponding follow-up processing on the middleware instance in time.
Further, after receiving the multi-layer operation instruction of the middleware instance sent by the management and control platform, the method further includes:
when the fact that the corresponding management and control module does not exist in the sub-layer operation instruction in the multi-layer operation instruction is determined, adding the management and control module corresponding to the sub-layer operation instruction to a front-end page of the management and control platform through an adding interface of the management and control module, and executing a middleware instance corresponding to the sub-layer operation instruction by using the added management and control module.
In this embodiment, a management and control module that is not corresponding to a sublayer operation instruction is added to a management and control platform, so as to continuously perfect a management and control operation function in the management and control platform.
Further, before determining the login information of the login console associated with the middleware instance from the login form associated with the login console module, the method further includes:
storing the login information of the login control console in the login form, transmitting the login form to a preset safe login interface associated with the login control console module through a post request, and calling the login information of the login control console associated with the middleware instance through the preset safe login interface after triggering the password-free login instruction.
The embodiment mainly stores related login information to a login form in advance for password-free login so as to quickly realize password-free login of various login control consoles.
Further, after capturing the at least one target middleware instance information corresponding to the middleware instance directly from the login console through the thread dump, the method further includes:
and carrying out state analysis on the threads in the thread dump module, positioning a strike thread from an analysis result of the state analysis, carrying out performance problem diagnosis on the strike thread, determining a strike reason of the strike thread according to a diagnosis result, and displaying the strike reason into a front-end page of the management and control platform.
Understandably, the analysis results of the state analysis can be divided into a run thread and a strike thread, and the strike reasons can include, but are not limited to, high CPU occupancy, low CPU load, and long response times and application/service downtime. According to the embodiment, the cause of the strike of the worker thread is determined, and the processing efficiency of the preset data receiver on the strike thread can be quickened through the cause of the strike.
Further, before the obtaining, by the grafana, the IP data corresponding to the middleware instance, the method further includes:
enabling the grafana to receive the IP parameters which are transmitted in the monitoring information viewing module and are associated with the middleware instance, and determining a preset data query mode corresponding to the IP parameters; the IP parameter corresponds to a preset data query mode of a data source;
and inquiring the IP data corresponding to the IP parameters by the grafana according to the preset data inquiry mode, and carrying out data display on the IP data in a display interface of the grafana by a preset display mode.
Understandably, the preset data query modes of the data source can be divided into selection query, cross table query, parameter query, operation query and SQL query; sources of data include, but are not limited to, collection by JMX, prometaus warehousing, grafana translation and display, and the like. The embodiment is mainly used for carrying out data display on the IP data through grafana which is in butt joint with the monitoring information checking module before the IP data is acquired, so that the IP data can be acquired conveniently.
Further, after the comparison result after the comparison is obtained, the method further comprises:
and when the comparison result is that the cluster is unhealthy, sending alarm prompt information to a management and control platform where a preset data receiver is located.
The embodiment aims to remind a preset data party to solve the problem of unhealthy clusters in time, and avoid the problem of unhealthy clusters from continuously influencing the follow-up control operation flow.
Further, before the comparing result after the comparing is obtained, the method further includes:
and monitoring the life cycles of various middleware associated with each management and control module, recording an abnormal interrupt stage when one stage of the life cycle of at least one type of middleware associated with one management and control module is abnormally interrupted, and informing a preset data processor to maintain the abnormal interrupt stage in the life cycle of the middleware.
The lifecycle is understood to mean the lifecycle of the middleware, wherein the lifecycle stages may include the stages of problem definition, feasibility analysis, general description, system design, coding, debugging and testing, acceptance and operation, maintenance upgrade to obsolescence, etc., and the anomalies are events in which the lifecycle stages are forcibly interrupted.
In order to supervise the lifecycle of the middleware, the lifecycle including the abort phase is maintained in time.
In summary, the above-mentioned method for controlling operation based on middleware is different from the method for operating an example of a manual middleware, and the invention realizes automatic operation by controlling a plurality of control modules in a platform server, and replaces the manual operation with a machine, so that the invention can solve the problems of low effectiveness of manual maintenance and unfavorable maintenance; the invention is also different from the existing middleware example operation method, each management and control module in the invention has corresponding management and control operation functions, each management and control module can finish the respective management and control operation functions under the multi-layer operation instruction, and the butt joint flow of each management and control module can be realized according to the multi-layer operation instruction, and the acquisition of the middleware example does not depend on a unified agent any more but utilizes thread dump, so the invention can solve the problem that the existing method has stronger dependence on standardized specifications, and can simplify the butt joint flow and save the debugging working time in a non-standard environment (such as a bank environment); the execution main body of the invention is a management and control platform server capable of being managed and controlled uniformly, so that the management and control operation of various middleware examples can be completed in a modularized mode through the management and control platform server, the problems of the middleware examples can be timely checked, and corresponding maintenance can be timely carried out.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiment of the present invention.
In an embodiment, a middleware-based management and control operation device is provided, where the middleware-based management and control operation device corresponds to the middleware-based management and control operation method in the above embodiment one by one. As shown in fig. 3, the middleware-based management and control operation device includes an implementation module 11, a grabbing module 12, a first obtaining module 13, a second obtaining module 14, a third obtaining module 15, and a first display module 16. The functional modules are described in detail as follows:
the implementation module 11 is configured to receive a multi-layer operation instruction of a middleware instance sent by a management and control platform, determine login information of a login console associated with the middleware instance from a login form associated with a login console module, and implement password-free login of the login console associated with the middleware instance according to the determined login information; the multi-layer operation instruction comprises a plurality of sub-layer operation instructions, and one sub-layer operation instruction is used for indicating a management and control module to execute middleware examples corresponding to at least one type of middleware; the management and control module comprises a login console module, a thread dump module, a cluster health check module, a JVM information check module and a monitoring information check module;
the grabbing module 12 is configured to, after confirming that the password-free login is completed, invoke a thread dump module to obtain a thread dump, and directly grab at least one target middleware instance information corresponding to the middleware instance from the login console through the thread dump;
the first obtaining module 13 is configured to compare the health index corresponding to the middleware with a preset health threshold by using the cluster health checking module, and obtain a comparison result after the comparison;
the second obtaining module 14 is configured to run an acquisition script corresponding to the middleware by using the agent in the JVM information viewing module, and obtain JVM parameters acquired by the acquisition script and used for starting a middleware instance, and abnormal information of the JVM parameters;
a third obtaining module 15, configured to dock grafana with a monitoring information viewing module, and obtain IP data corresponding to the middleware instance through the grafana;
the first display module 16 is configured to send the target middleware instance information, the comparison result, the JVM parameter, the exception information of the JVM parameter, and the IP data to the management and control platform, and display the exception information and the IP data in a front page of the management and control platform in dimensions.
Further, the middleware-based management and control operation device further includes:
and the adding module is used for adding the management and control module corresponding to the sub-layer operation instruction into a front page of the management and control platform through an adding interface of the management and control module when the sub-layer operation instruction in the multi-layer operation instruction does not exist corresponding to the management and control module, so that the added management and control module is utilized to execute a middleware instance corresponding to the sub-layer operation instruction.
Further, the middleware-based management and control operation device further includes:
and the transmission module is used for storing the login information of the login control console in the login form, transmitting the login form to a preset safe login interface associated with the login control console module through a post request so as to realize that after a password-free login instruction is triggered, the login information of the login control console associated with the middleware instance is called through the preset safe login interface.
Further, the middleware-based management and control operation device further includes:
the second display module is used for carrying out state analysis on the threads in the thread dumping module, locating a strike thread from the analysis result of the state analysis, carrying out performance problem diagnosis on the strike thread, determining the strike reason of the strike thread according to the diagnosis result, and displaying the strike reason into the front end page of the management and control platform.
Further, the middleware-based management and control operation device further includes:
the determining module is used for enabling the grafana to receive the IP parameters which are transmitted in the monitoring information viewing module and are related to the middleware instance, and determining a preset data query mode corresponding to the IP parameters; the IP parameter corresponds to a preset data query mode of a data source;
and the data display module is used for enabling the grafana to query the IP data corresponding to the IP parameters according to the preset data query mode and displaying the data of the IP data in a display interface of the grafana in a preset display mode.
Further, the middleware-based management and control operation device further includes:
and the sending module is used for sending alarm prompt information to a management and control platform where a preset data receiver is located when the comparison result is that the cluster is unhealthy.
Further, the middleware-based management and control operation device further includes:
and the notification module is used for supervising the life cycles of various middleware associated with each management and control module, recording the abnormal interrupt stage when one stage of the life cycle of at least one type of middleware associated with one management and control module is abnormally interrupted, and notifying a preset data processing party to maintain the abnormal interrupt stage in the life cycle of the middleware.
For specific limitations on the middleware-based management operation device, reference may be made to the above limitation on the middleware-based management operation method, and no further description is given here. The above-described respective modules in the middleware-based management and control operation device may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 4. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used for storing data involved in the middleware-based management and control operation method. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a middleware-based management and control operation method.
In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the steps of the middleware-based management and control operation method in the foregoing embodiment, such as steps S10 to S60 shown in fig. 2. Alternatively, the processor, when executing the computer program, implements the functions of each module/unit of the middleware-based management and control operation device in the above embodiment, such as the functions of the modules 11 to 16 shown in fig. 3. In order to avoid repetition, a description thereof is omitted.
In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, which when executed by a processor implements the steps of the middleware-based management and control operation method in the above embodiment, for example, step S10 to step S60 shown in fig. 2. Alternatively, the computer program when executed by the processor implements the functions of the respective modules/units of the middleware-based management operation device in the above embodiment, such as the functions of the modules 11 to 16 shown in fig. 3. In order to avoid repetition, a description thereof is omitted.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention, and are intended to be included in the scope of the present invention.

Claims (10)

1. A middleware-based management and control operation method, comprising:
receiving a multi-layer operation instruction of a middleware instance sent by a management and control platform, determining login information of a login control console associated with the middleware instance from a login form associated with a login control console module, and realizing password-free login of the login control console associated with the middleware instance according to the determined login information; the multi-layer operation instruction comprises a plurality of sub-layer operation instructions, and one sub-layer operation instruction is used for indicating a management and control module to execute middleware examples corresponding to at least one type of middleware; the management and control module comprises a login console module, a thread dump module, a cluster health check module, a JVM information check module and a monitoring information check module;
after confirming that the password-free login is finished, calling a thread dump module, and directly capturing at least one target middleware instance information corresponding to the middleware instance from the login control console through the thread dump module;
comparing the health index corresponding to the middleware with a preset health threshold by using a cluster health check module, and obtaining a comparison result after comparison;
running an acquisition script corresponding to the middleware by using a agent in a JVM information checking module, and acquiring JVM parameters acquired by the acquisition script and used for starting a middleware instance and abnormal information of the JVM parameters;
utilizing a monitoring information checking module to butt joint grafana, and acquiring IP data corresponding to the middleware instance through the grafana;
and sending the target middleware instance information, the comparison result, the JVM parameters, the abnormal information of the JVM parameters and the IP data to the management and control platform and displaying the information to a front-end page of the management and control platform in a dimension mode.
2. The middleware-based management and control operation method according to claim 1, wherein after receiving the multi-layer operation instruction of the middleware instance sent by the management and control platform, the method further comprises:
when the fact that the corresponding management and control module does not exist in the sub-layer operation instruction in the multi-layer operation instruction is determined, adding the management and control module corresponding to the sub-layer operation instruction to a front-end page of the management and control platform through an adding interface of the management and control module, and executing a middleware instance corresponding to the sub-layer operation instruction by using the added management and control module.
3. The middleware-based management and control operation method according to claim 1, wherein before determining login information of a login console associated with the middleware instance from a login form associated with a login console module, further comprising:
storing the login information of the login control console in the login form, transmitting the login form to a preset safe login interface associated with the login control console module through a post request, and calling the login information of the login control console associated with the middleware instance through the preset safe login interface after triggering the password-free login instruction.
4. The middleware-based management and control operation method according to claim 1, further comprising, after the capturing, by the thread dump, at least one target middleware instance information corresponding to the middleware instance directly from the login console:
and carrying out state analysis on the threads in the thread dump module, positioning a strike thread from an analysis result of the state analysis, carrying out performance problem diagnosis on the strike thread, determining a strike reason of the strike thread according to a diagnosis result, and displaying the strike reason into a front-end page of the management and control platform.
5. The middleware-based management and control operation method according to claim 1, further comprising, before the obtaining, by the grafana, IP data corresponding to the middleware instance:
enabling the grafana to receive the IP parameters which are transmitted in the monitoring information viewing module and are associated with the middleware instance, and determining a preset data query mode corresponding to the IP parameters; the IP parameter corresponds to a preset data query mode of a data source;
and inquiring the IP data corresponding to the IP parameters by the grafana according to the preset data inquiry mode, and carrying out data display on the IP data in a display interface of the grafana by a preset display mode.
6. The middleware-based management and control operation method according to claim 1, further comprising, after the obtaining of the comparison result after the comparison:
and when the comparison result is that the cluster is unhealthy, sending alarm prompt information to a management and control platform where a preset data receiver is located.
7. The middleware-based management and control operation method according to claim 1, further comprising, before the obtaining of the comparison result after the comparison:
and monitoring the life cycles of various middleware associated with each management and control module, recording an abnormal interrupt stage when one stage of the life cycle of at least one type of middleware associated with one management and control module is abnormally interrupted, and informing a preset data processor to maintain the abnormal interrupt stage in the life cycle of the middleware.
8. A middleware-based management and control operation device, comprising:
the realization module is used for receiving the multi-layer operation instruction of the middleware instance sent by the management and control platform, determining the login information of the login control platform associated with the middleware instance from the login form associated with the login control platform module, and realizing the password-free login of the login control platform associated with the middleware instance according to the determined login information; the multi-layer operation instruction comprises a plurality of sub-layer operation instructions, and one sub-layer operation instruction is used for indicating a management and control module to execute middleware examples corresponding to at least one type of middleware; the management and control module comprises a login console module, a thread dump module, a cluster health check module, a JVM information check module and a monitoring information check module;
the capturing module is used for calling a thread dump module after confirming that the password-free login is finished, and capturing at least one piece of target middleware instance information corresponding to the middleware instance from the login control console directly through the thread dump;
the first acquisition module is used for comparing the health index corresponding to the middleware with a preset health threshold value by using the cluster health check module, and acquiring a comparison result after comparison;
the second acquisition module is used for running an acquisition script corresponding to the middleware by utilizing the agent in the JVM information viewing module and acquiring JVM parameters acquired by the acquisition script and used for starting a middleware instance and abnormal information of the JVM parameters;
the third acquisition module is used for butting grafana by using the monitoring information viewing module and acquiring IP data corresponding to the middleware instance through the grafana;
the first display module is used for sending the target middleware instance information, the comparison result, the JVM parameters, the abnormal information of the JVM parameters and the IP data to the management and control platform and displaying the abnormal information, the JVM parameters, the abnormal information and the IP data to a front-end page of the management and control platform in a dimension mode.
9. Computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the middleware-based management and control operation method according to any one of claims 1 to 7 when executing the computer program.
10. A computer readable storage medium storing a computer program, wherein the computer program when executed by a processor implements the middleware-based management and control operation method according to any one of claims 1 to 7.
CN202010613794.4A 2020-06-30 2020-06-30 Middleware-based management and control operation method and device, computer equipment and medium Active CN111654553B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010613794.4A CN111654553B (en) 2020-06-30 2020-06-30 Middleware-based management and control operation method and device, computer equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010613794.4A CN111654553B (en) 2020-06-30 2020-06-30 Middleware-based management and control operation method and device, computer equipment and medium

Publications (2)

Publication Number Publication Date
CN111654553A CN111654553A (en) 2020-09-11
CN111654553B true CN111654553B (en) 2023-07-25

Family

ID=72345138

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010613794.4A Active CN111654553B (en) 2020-06-30 2020-06-30 Middleware-based management and control operation method and device, computer equipment and medium

Country Status (1)

Country Link
CN (1) CN111654553B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105245373A (en) * 2015-10-12 2016-01-13 天津市普迅电力信息技术有限公司 Construction and operation method of container cloud platform system
CN107329800A (en) * 2017-06-29 2017-11-07 北京北信源软件股份有限公司 A kind of middleware application management-control method and device based on Docker platforms
CN107995026A (en) * 2017-11-16 2018-05-04 中国银行股份有限公司 Management-control method, management node based on middleware, by pipe node and system
CN109766237A (en) * 2018-12-15 2019-05-17 深圳壹账通智能科技有限公司 Monitoring method, device, equipment and storage medium based on order distribution
CN111176930A (en) * 2019-12-10 2020-05-19 未鲲(上海)科技服务有限公司 Component operation data processing method and device, computer equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105245373A (en) * 2015-10-12 2016-01-13 天津市普迅电力信息技术有限公司 Construction and operation method of container cloud platform system
CN107329800A (en) * 2017-06-29 2017-11-07 北京北信源软件股份有限公司 A kind of middleware application management-control method and device based on Docker platforms
CN107995026A (en) * 2017-11-16 2018-05-04 中国银行股份有限公司 Management-control method, management node based on middleware, by pipe node and system
CN109766237A (en) * 2018-12-15 2019-05-17 深圳壹账通智能科技有限公司 Monitoring method, device, equipment and storage medium based on order distribution
CN111176930A (en) * 2019-12-10 2020-05-19 未鲲(上海)科技服务有限公司 Component operation data processing method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN111654553A (en) 2020-09-11

Similar Documents

Publication Publication Date Title
CN110069572B (en) HIVE task scheduling method, device, equipment and storage medium based on big data platform
US9575830B2 (en) Run-time error repairing method, device and system
WO2016188100A1 (en) Information system fault scenario information collection method and system
CN111611137A (en) Alarm monitoring method and device, computer equipment and storage medium
EP3591485B1 (en) Method and device for monitoring for equipment failure
CN109218407B (en) Code management and control method based on log monitoring technology and terminal equipment
CN110063042B (en) Database fault response method and terminal thereof
CN111694734A (en) Software interface checking method and device and computer equipment
CN111654553B (en) Middleware-based management and control operation method and device, computer equipment and medium
CN111710403B (en) Medical equipment supervision method, equipment and readable storage medium
CN112416762A (en) API test method and device, equipment and computer readable storage medium
CN112463883A (en) Reliability monitoring method, device and equipment based on big data synchronization platform
CN111506641A (en) Data management method, data acquisition platform, data management system and storage medium
CN111611138A (en) Log data capturing method and device, computer equipment and storage medium
CN115080507A (en) Vehicle fault snapshot data storage method, system, equipment and storage medium
CN112306849A (en) Application program testing method and system, intelligent terminal and storage medium
CN113868094A (en) Big data abnormal information monitoring system
CN113965447A (en) Online cloud diagnosis method, device, system, equipment and storage medium
CN111932706B (en) Informationized inspection method and device, storage medium and electronic equipment
CN116484373B (en) Abnormal process checking and killing method, system, device, computer equipment and storage medium
CN109376030B (en) System for capturing embedded operating system exceptions
CN113687929A (en) Exception handling method and related device
CN117453562A (en) Health check method of multi-application computing framework and related equipment
CN115967650A (en) Data processing method and device
CN116521513A (en) Test management method, device and equipment for android equipment

Legal Events

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