CN111654553A - Management and control operation method and device based on middleware, computer equipment and medium - Google Patents

Management and control operation method and device based on middleware, computer equipment and medium Download PDF

Info

Publication number
CN111654553A
CN111654553A CN202010613794.4A CN202010613794A CN111654553A CN 111654553 A CN111654553 A CN 111654553A CN 202010613794 A CN202010613794 A CN 202010613794A CN 111654553 A CN111654553 A CN 111654553A
Authority
CN
China
Prior art keywords
middleware
module
management
login
information
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.)
Granted
Application number
CN202010613794.4A
Other languages
Chinese (zh)
Other versions
CN111654553B (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

Images

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]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention relates to the field of research and development management, in particular to a management and control operation method and device based on middleware, computer equipment and a medium. The method comprises the following steps: receiving a multi-layer operation instruction of the middleware instance sent by the management and control platform, and determining login information associated with the middleware instance: capturing at least one type 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 acquiring 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 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 a control platform and displaying the information to a front-end page of the control platform in a dimensionality mode. The invention can simplify the butt joint flow in the middleware control operation process and save the debugging working time.

Description

Management and control operation method and device based on middleware, computer equipment and medium
Technical Field
The invention relates to the development field in the research and development management field, in particular to a management and control operation method and device based on middleware, computer equipment and a medium.
Background
Most of traditional middleware management and control needs to be based on a manual operation method, wherein the manual operation comprises the steps of manually maintaining the states of all components, manually recording account and password information, manually checking cluster health and manually logging in all monitoring platforms to check monitoring information such as JVM information, data sources, instance information and the like, so that the manual operation method has the problems of low effectiveness and inconvenience for maintenance. The prior agent based on the operating system captures dynamic middleware instance information on a server, captures information such as a starting path, a log path, a version and a jdk version of the middleware instance through a process started by the operating system, and has the following defects: the method has strong dependence on standardization, and if the bottom layer needs to rely on a uniform agent for collection, the resource information collection of the upper layer also needs to rely on the standardized specification, so the method has the problems of poor popularization and poor direct application capability of multiple platforms, and is easy to have the problems of complex docking process and long debugging working time in a non-standard environment.
Disclosure of Invention
In view of the foregoing, it is necessary to provide a middleware-based management and control operation method, device, computer device, and medium, for solving the problems of low effectiveness and inconvenient maintenance in the middleware management and control operation, and the problems of complicated docking process and long debugging time.
A management and control operation method based on middleware comprises the following steps:
receiving a multilayer operation instruction of a middleware instance sent by a control platform, determining login information of the login console associated with the middleware instance from a login form associated with a login console module, and realizing secret-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 instructing a management and control module to execute a middleware instance 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 viewing module and a monitoring information viewing module;
after confirming that the password-free login is completed, calling a thread dump module to obtain a thread dump, and directly capturing at least one type of target middleware instance information corresponding to the middleware instance from the login console through the thread dump;
comparing the health index corresponding to the middleware with a preset health threshold value by using a cluster health check module, and acquiring a comparison result after comparison;
running an acquisition script corresponding to the middleware by using an agent in a 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;
utilizing a monitoring information checking module to butt joint the 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 dimensionality mode.
A middleware-based management and control operation device, comprising:
the implementation module is used for receiving a multilayer operation instruction of a middleware instance sent by a management and control platform, determining login information of the login console associated with the middleware instance from a login form associated with a login console module, and implementing secret-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 instructing a management and control module to execute a middleware instance 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 viewing module and a monitoring information viewing module;
the grabbing module is used for calling a thread dump module to obtain a thread dump after confirming that the password-free login is completed, and directly grabbing at least one type of target middleware instance information corresponding to the middleware instance from the login console through the thread dump module;
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 using the agent in the JVM information viewing module, and acquiring the JVM parameters acquired by the acquisition script and used for starting the middleware instance and the abnormal information of the JVM parameters;
the third acquisition module is used for utilizing the monitoring information viewing module to butt joint the grafana and acquiring the IP data corresponding to the middleware instance through the grafana;
and the first display module is used for sending the target middleware instance information, the comparison result, the JVM parameter, the abnormal information of the JVM parameter 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 dimensionality mode.
A computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the above middleware-based management and control operation method when executing the computer program.
A computer-readable storage medium, which stores a computer program that, when executed by a processor, implements the above middleware-based management operation method.
The middleware-based management and control operation method, the middleware-based management and control operation device, the computer equipment and the middleware-based management and control operation medium are different from a manual middleware example operation method, automatic operation is realized by developing a plurality of management and control modules in a management and control platform server successfully, and manual work is replaced by machines, so that the problems of low manual maintenance effectiveness and inconvenience in maintenance can be solved; the invention is also different from the existing middleware example operation method, each developed management and control module has a corresponding management and control operation function, each management and control module can complete the respective management and control operation function under a plurality of layers of operation instructions, and the butt joint process of each management and control module can be realized according to the plurality of layers of operation instructions, and the collection of the middleware example does not depend on a uniform agent any more but utilizes thread dump, so the invention can solve the problem that the existing method has stronger dependence on the standardized specification, and can simplify the butt joint process 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 control platform server which can be controlled uniformly, so that the control platform server can realize the control operation of various middleware examples in a modularized mode, and the problems of the middleware examples can be checked in time so as to perform corresponding maintenance in time.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
FIG. 1 is a diagram illustrating an application environment of a middleware-based management and control method according to an embodiment of the present invention;
FIG. 2 is a flowchart of a middleware-based management operation method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a middleware-based management and control operation device according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a computer device according to an embodiment of the invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The middleware-based management and control operation method provided by the invention can be applied to the application environment shown in fig. 1, wherein a client communicates with a server through a network. Among other things, the client may be, but is not limited to, various personal computers, laptops, smartphones, tablets, and portable wearable devices. The server may be implemented as a stand-alone server or as a server cluster consisting of a plurality of servers.
In an embodiment, as shown in fig. 2, a management and control operation method based on middleware is provided, which is described by taking the method as an example applied to the server in fig. 1, and includes the following steps:
s10, receiving a multilayer operation instruction of a middleware instance sent by a control platform, determining login information of the login console associated with the middleware instance from a login form associated with a login console module, and realizing secret-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 instructing a management and control module to execute a middleware instance 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 viewing module and a monitoring information viewing module;
understandably, the steps in this embodiment are executed by a management and control platform server, where the management and control platform server may control the management and control module to execute a management and control operation function corresponding to a multi-layer operation instruction or a sub-layer operation instruction, and receive the multi-layer operation instruction of a middleware instance sent by a management and control platform (the management and control platform is a software platform used by a user and is equivalent to a user front end), where each management and control module has an association relationship with the middleware, and the login console module in this embodiment may be a maintenance middleware of weblogic and webshare; the login information is stored in the login form, and one login console can be logged in through one login information in the login form, so that the login information of various login consoles can be stored in the login form, and the method is suitable for secret-free login of various login consoles; the middleware instance refers to events executed by various types of middleware associated with a management and control module in a management and control platform server, for example, the middleware instance may include, but is not limited to, events such as a middleware starting path, a middleware log path, a middleware version, an IP address and a jdk version of a login console; it should be noted that, in this embodiment, the login authority of the login console can be controlled by managing and controlling the um number (User Management) Management authority of the platform server. In this embodiment, a management and control module corresponding to a multilayer operation instruction of the middleware example can be determined, and the time for searching the login console IP address associated with the middleware example by various middleware examples and the time for inputting an account number and a password of the login console can be saved by a login console module in the determined management and control module, so that the login without secret for the login console can be realized; the multi-layer operation of the middleware example in the embodiment may be understood as that the management and control platform server performs management and control operation on the middleware.
It should be noted that, in the present invention, one sub-layer operation instruction, two sub-layer operation instructions, three sub-layer operation instructions, or the like in the multi-layer operation instruction may be executed, and in the operation process, the operation sequence corresponding to each sub-layer operation instruction may 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 to obtain a thread dump, and directly grabbing at least one target middleware instance information corresponding to the middleware instance from the login console through the thread dump;
understandably, a background where a thread dump module is located integrates a first jar packet of weblogic middleware about wlst, and the thread dump module encapsulates the join operation on the wlst.sh script, when the thread dump module executes the join operation according to the first jar packet, a thread dump module can call out a thread dump (wherein the thread dump is a list of active threads of a JVM, and therefore the thread dump comprises at least one thread) to capture target middleware instance information from a data interface associated with a login console, 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 comprises but is not limited to relevant information of events such as a middleware starting path, a middleware log path, a middleware version, an IP address and a jdk version of a login console; it should be noted that the present embodiment may query, through the thread dump module, another process such as an operation page associated with the login console. In this embodiment, the thread dump module provides a management and control operation for thread dump, may abandon a cumbersome operation of logging in to the console, and easily obtains the middleware instance information corresponding to the middleware instance, so that the operation difficulty of a maintainer who cannot know the middleware is simplified, and this embodiment may quickly locate a 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 value by using a cluster health check module, and obtaining a comparison result after comparison;
understandably, a background where the cluster health check module is located integrates a second jar packet of the weblogic middleware about the wlst, and the cluster health check module encapsulates the parameter passing and operation on the wlst.sh script, when the cluster health check module executes the parameter passing and operation according to the second jar packet, the health indexes (the numerical values and the state values of the MBEANs) and the preset health threshold (the threshold under the standard condition) are compared through the thread dump module, and then the comparison result is displayed in a front-end page where the management and control platform is located through the cluster health check module, wherein the comparison result includes the results of cluster health and cluster unhealthy. The present embodiment is different from the conventional middleware maintenance in that the state of each health index needs to be checked manually, and the present embodiment automatically monitors the cluster inspection through the cluster health inspection module so as to process and maintain unhealthy data of the cluster in time.
S40, running a collection script corresponding to the middleware by using the agent in the JVM information viewing module, and acquiring JVM parameters collected by the collection script and used for starting the middleware instance and abnormal information of the JVM parameters;
understandably, collecting JVM (Java virtual Machine) parameters and abnormal information of the JVM parameters required by starting a current target middleware instance, which are collected by a script, after a linux starting process in a collection process of the script, collecting the JVM parameters and the abnormal information of the JVM parameters, which are collected by the script, as JVM starting information in a process running state; it should be noted that the JVM information view module in this embodiment may correspond to a type of middleware. The present embodiment is different from the conventional middleware maintaining JVM parameters (when the conventional middleware maintains JVM parameters, a server associated with the JVM parameters needs to be logged in to check the JVM parameters, so that there are problems of non-uniformity of search paths and difficulty in searching).
S50, utilizing a monitoring information checking module to butt the grafana, and acquiring IP data corresponding to the middleware instance through the grafana;
understandably, the grafana is a cross-platform open-source measurement analysis and visualization tool, and can query the acquired IP data, visually display the acquired IP data, and timely notify the preset data receiver, so that the embodiment uses the monitoring information viewing module to butt joint the grafana, and can acquire the IP data corresponding to the middleware instance from the grafana, wherein the IP data refers to data source data associated with the middleware instance, and one kind of IP data can correspond to data of one kind of data source, and the butt-jointed grafana is configured; it should be noted that the monitoring information viewing module in this embodiment may correspond to a type of middleware. The embodiment can directly interface the grafana, one-to-one display the data in the grafana in the front-end page where the control platform is located, borrow the grafana to avoid searching and acquiring IP data by multiple platforms, and further accelerate the acquisition efficiency of the IP data.
And S60, 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 dimensionality mode.
Understandably, after the middleware instance information, the comparison result, the JVM parameter, the abnormal information of the JVM parameter, and the IP data are executed, the abnormal information and the IP data can be dimension-displayed at a display position associated with each control module in a front-end page of the control platform (one dimension may refer to one display block in the front-end page, and one dimension corresponds to one control module, and all display positions in the front-end page can be divided into a plurality of displayable display blocks, that is, the plurality of dimensions), so that a user corresponding to the control platform can perform visual management, and perform corresponding follow-up processing on the middleware instance in time.
Further, after receiving the multi-layer operation instruction of the middleware instance issued by the management and control platform, the method further includes:
when determining that the corresponding management and control module does not exist in the sublayer operation instruction in the multilayer operation instruction, adding the management and control module corresponding to the sublayer operation instruction to a front-end page of the management and control platform through an adding interface of the management and control module, so as to execute a middleware instance corresponding to the sublayer operation instruction by using the added management and control module.
In this embodiment, a management and control module that does not correspond to the sublayer operation instruction is added to the management and control platform, so as to continuously perfect the management and control operation function in the management and control platform.
Further, before determining 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:
and storing the login information of various login consoles in the login form, and transmitting the login form to a preset safe login interface associated with the login console module through a post request so as to call the login information of the login console associated with the middleware instance through the preset safe login interface after a secret-free login instruction is triggered.
The embodiment mainly stores the related login information to the login form in advance for the password-free login so as to quickly realize the password-free login of various login consoles.
Further, after the fetching, by the thread dump, at least one piece of target middleware instance information corresponding to the middleware instance directly from the login console, the method further includes:
and analyzing the state of the thread in the thread dump module, locating a strike thread from the analysis result of the state analysis, diagnosing the performance problem of the strike thread, determining the strike reason of the strike thread through the diagnosis result, and displaying the strike reason in a front page of the management and control platform.
Understandably, the analysis result of the state analysis can be divided into a running thread and a strike thread, and the strike reasons can include, but are not limited to, high CPU occupancy, low CPU load rate, long response time and application/service downtime. The method and the device determine the strike reason of the strike thread, and further can accelerate the processing efficiency of the strike thread by the data receiver through the strike reason.
Further, before the obtaining the IP data corresponding to the middleware instance through the grafana, the method further includes:
enabling the grafana to receive the IP parameters related to the middleware instance and transmitted from the monitoring information viewing module, and determining a preset data query mode corresponding to the IP parameters; the IP parameters correspond to a preset data query mode of a data source;
and enabling the grafana to inquire the IP data corresponding to the IP parameters according to the preset data inquiry mode, and performing data display on the IP data in a display interface of the grafana in a preset display mode.
Understandably, the preset data query mode of the data source can be divided into selection query, cross table query, parameter query, operation query and SQL query; sources of data sources include, but are not limited to, acquisition by JMX, prometheus warehousing, grafana translation and presentation, and the like. The embodiment is mainly used for performing data display on the IP data through the grafana butted by the monitoring information checking module before the IP data is acquired, so that the IP data can be acquired conveniently.
Further, after obtaining the comparison result after the comparison, the method further includes:
and when the comparison result is that the cluster is unhealthy, sending alarm prompt information to a control platform where a preset data receiver is located.
The embodiment is to solve the unhealthy problem of cluster in time in order to remind the preset data side, and avoid the unhealthy problem of cluster to continue to cause certain influence to the subsequent management and control operation flow.
Further, before obtaining a comparison result after the comparison, the method further includes:
and monitoring the life cycles of various middleware associated with each management and control module, recording an abnormal interruption phase when abnormal interruption occurs in one phase of the life cycle of at least one type of middleware associated with one management and control module, and informing a preset data processing party to maintain the abnormal interruption phase in the life cycle of the middleware.
Understandably, the lifecycle refers to the life cycle of the middleware, wherein the life cycle phases may include the phases of problem definition, feasibility analysis, overall description, system design, coding, debugging and testing, acceptance and operation, maintenance upgrade to obsolete, and the exception refers to the event that the life cycle phase is forcibly interrupted.
The embodiment is to supervise the lifecycle of the middleware, and maintain the lifecycle including the abnormal interrupt stage in time.
In summary, the present invention is different from the manual middleware example operation method, and the automated operation is realized by a plurality of management and control modules in the management and control platform server, and a machine is used to replace the manual operation, so that the present invention can solve the problems of low efficiency and inconvenient maintenance of manual maintenance; the invention is also different from the existing middleware example operation method, each management and control module in the invention has a corresponding management and control operation function, each management and control module can complete respective management and control operation function under a plurality of layers of operation instructions, and can realize the butt joint flow of each management and control module according to the plurality of layers of operation instructions, and the collection of the middleware example does not depend on a uniform 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 control platform server which can be controlled uniformly, so that the control platform server can realize the control operation of various middleware examples in a modularized mode, and the problems of the middleware examples can be checked in time so as to perform corresponding maintenance in time.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
In an embodiment, a management and control operation device based on middleware is provided, and the management and control operation device based on middleware corresponds to the management and control operation method based on middleware in the above embodiment one to one. As shown in fig. 3, the middleware-based management and control operation apparatus includes an implementation module 11, a capture 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 explained 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 the login console associated with the middleware instance from a login form associated with a login console module, and implement, according to the determined login information, a secret-free login of the login console associated with the middleware instance; the multi-layer operation instruction comprises a plurality of sub-layer operation instructions, and one sub-layer operation instruction is used for instructing a management and control module to execute a middleware instance 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 viewing module and a monitoring information viewing module;
the grabbing module 12 is configured to call a thread dump module to obtain a thread dump after confirming that the password-free login is completed, and grab at least one type of target middleware instance information corresponding to the middleware instance from the login console directly through the thread dump module;
a first obtaining module 13, configured to compare a health index corresponding to the middleware with a preset health threshold by using a cluster health check module, and obtain a comparison result after the comparison;
a second obtaining module 14, configured to use the agent in the JVM information checking module to run an acquisition script corresponding to the middleware, and obtain JVM parameters acquired by the acquisition script and used for starting an instance of the middleware and exception information of the JVM parameters;
a third obtaining module 15, configured to utilize the monitoring information checking module to interface with a grafana, and obtain, through the grafana, IP data corresponding to the middleware instance;
and the first display module 16 is configured to send the target middleware instance information, the comparison result, the JVM parameter, the abnormal information of the JVM parameter, and the IP data to the management and control platform and display the information to a front-end page of the management and control platform in a dimensionality manner.
Further, the middleware-based management and control operation device further includes:
the adding module is used for adding a control module corresponding to the sublayer operation instruction to a front-end page of the control platform through an adding interface of the control module when the corresponding control module does not exist in the sublayer operation instruction in the multilayer operation instruction, so that the added control module is used for executing a middleware instance corresponding to the sublayer 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 various login consoles in the login form, transmitting the login form to a preset safe login interface associated with the login console module through a post request, and calling the login information of the login console associated with the middleware instance through the preset safe login interface after a secret-free login instruction is triggered.
Further, the middleware-based management and control operation device further includes:
and the second display module is used for analyzing the state of the thread in the thread dump module, locating a strike thread from the analysis result of the state analysis, diagnosing the performance problem of the strike thread, determining the strike reason of the strike thread through the diagnosis result, and displaying the strike reason in a front page of the control platform.
Further, the middleware-based management and control operation device further includes:
a determining module, configured to enable the grafana to receive the IP parameters related to the middleware instance and transmitted from the monitoring information viewing module, and determine a preset data query mode corresponding to the IP parameters; the IP parameters correspond to a preset data query mode of a data source;
and the data display module is used for enabling the grafana to inquire the IP data corresponding to the IP parameters according to the preset data query mode and displaying 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 control platform where the 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 monitoring the life cycles of various middleware associated with each management and control module, recording an abnormal interruption phase when abnormal interruption occurs in one phase of the life cycle of at least one type of middleware associated with one management and control module, and notifying a preset data processing party to maintain the abnormal interruption phase in the life cycle of the middleware.
For specific definition of the middleware-based management and control operation device, reference may be made to the above definition of the middleware-based management and control operation method, which is not described herein again. The modules in the middleware-based management and control operation device can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the 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 comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing data involved in the management and control operation method based on the middleware. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a middleware-based management operation method.
In one embodiment, a computer device is provided, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the steps of the middleware-based management operation method in the foregoing embodiments are implemented, for example, 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 operation device in the above-described embodiments, such as the functions of the modules 11 to 16 shown in fig. 3. To avoid repetition, further description is omitted here.
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 operation method in the above-described embodiments, such as steps S10 to S60 shown in fig. 2. Alternatively, the computer program, when executed by the processor, implements the functions of the modules/units of the middleware-based management operation apparatus in the above-described embodiments, such as the functions of the modules 11 to 16 shown in fig. 3. To avoid repetition, further description is omitted here.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, databases, or other media used in embodiments provided herein may include non-volatile and/or volatile memory. Non-volatile 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), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present 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 solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (10)

1. A management and control operation method based on middleware is characterized by comprising the following steps:
receiving a multilayer operation instruction of a middleware instance sent by a control platform, determining login information of the login console associated with the middleware instance from a login form associated with a login console module, and realizing secret-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 instructing a management and control module to execute a middleware instance 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 viewing module and a monitoring information viewing module;
after confirming that the password-free login is completed, calling a thread dump module to obtain a thread dump, and directly capturing at least one type of target middleware instance information corresponding to the middleware instance from the login console through the thread dump;
comparing the health index corresponding to the middleware with a preset health threshold value by using a cluster health check module, and acquiring a comparison result after comparison;
running an acquisition script corresponding to the middleware by using an agent in a 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;
utilizing a monitoring information checking module to butt joint the 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 dimensionality mode.
2. The middleware-based management and control operation method according to claim 1, further comprising, after receiving a multi-layer operation instruction of the middleware instance issued by the management platform:
when determining that the corresponding management and control module does not exist in the sublayer operation instruction in the multilayer operation instruction, adding the management and control module corresponding to the sublayer operation instruction to a front-end page of the management and control platform through an adding interface of the management and control module, so as to execute a middleware instance corresponding to the sublayer 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, the method further comprises:
and storing the login information of various login consoles in the login form, and transmitting the login form to a preset safe login interface associated with the login console module through a post request so as to call the login information of the login console associated with the middleware instance through the preset safe login interface after a secret-free login instruction is triggered.
4. The middleware-based management and control operation method according to claim 1, further comprising, after said fetching at least one target middleware instance information corresponding to the middleware instance directly from the login console through the thread dump, the following:
and analyzing the state of the thread in the thread dump module, locating a strike thread from the analysis result of the state analysis, diagnosing the performance problem of the strike thread, determining the strike reason of the strike thread through the diagnosis result, and displaying the strike reason in a front 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 the IP data corresponding to the middleware instance by the grafana:
enabling the grafana to receive the IP parameters related to the middleware instance and transmitted from the monitoring information viewing module, and determining a preset data query mode corresponding to the IP parameters; the IP parameters correspond to a preset data query mode of a data source;
and enabling the grafana to inquire the IP data corresponding to the IP parameters according to the preset data inquiry mode, and performing data display on the IP data in a display interface of the grafana in a preset display mode.
6. The middleware-based management and control operation method according to claim 1, further comprising, after obtaining the comparison result after the comparison:
and when the comparison result is that the cluster is unhealthy, sending alarm prompt information to a control platform where a preset data receiver is located.
7. The middleware-based management and control operation method according to claim 1, wherein before obtaining a comparison result after the comparison, further comprising:
and monitoring the life cycles of various middleware associated with each management and control module, recording an abnormal interruption phase when abnormal interruption occurs in one phase of the life cycle of at least one type of middleware associated with one management and control module, and informing a preset data processing party to maintain the abnormal interruption phase in the life cycle of the middleware.
8. A management and control operation device based on middleware is characterized by comprising:
the implementation module is used for receiving a multilayer operation instruction of a middleware instance sent by a management and control platform, determining login information of the login console associated with the middleware instance from a login form associated with a login console module, and implementing secret-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 instructing a management and control module to execute a middleware instance 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 viewing module and a monitoring information viewing module;
the grabbing module is used for calling out a thread dump module after confirming that the password-free login is completed, and directly grabbing at least one type of target middleware instance information corresponding to the middleware instance from the login console through the thread dump module;
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 using the agent in the JVM information viewing module, and acquiring the JVM parameters acquired by the acquisition script and used for starting the middleware instance and the abnormal information of the JVM parameters;
the third acquisition module is used for utilizing the monitoring information viewing module to butt joint the grafana and acquiring the IP data corresponding to the middleware instance through the grafana;
and the first display module is used for sending the target middleware instance information, the comparison result, the JVM parameter, the abnormal information of the JVM parameter 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 dimensionality mode.
9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the middleware based management 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 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 true CN111654553A (en) 2020-09-11
CN111654553B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114510258A (en) * 2022-02-21 2022-05-17 深圳市金蝶天燕云计算股份有限公司 Middleware management method, middleware management platform and computer readable storage medium

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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114510258A (en) * 2022-02-21 2022-05-17 深圳市金蝶天燕云计算股份有限公司 Middleware management method, middleware management platform and computer readable storage medium

Also Published As

Publication number Publication date
CN111654553B (en) 2023-07-25

Similar Documents

Publication Publication Date Title
KR102268355B1 (en) Cloud deployment infrastructure validation engine
CN107451040B (en) Method and device for positioning fault reason and computer readable storage medium
WO2016188100A1 (en) Information system fault scenario information collection method and system
US20150193296A1 (en) Run-time error repairing method, device and system
CN111611137A (en) Alarm monitoring method and device, computer equipment and storage medium
WO2017114152A1 (en) Service dial testing method, apparatus and system
US11169896B2 (en) Information processing system
CN110063042B (en) Database fault response method and terminal thereof
CN111694734A (en) Software interface checking method and device and computer equipment
CN113064762A (en) Service self-recovery method based on multiple detection
CN111654553B (en) Middleware-based management and control operation method and device, computer equipment and medium
CN111710403A (en) Medical equipment supervision method, equipment and readable storage medium
CN113626227A (en) Abnormal log information reporting method, intelligent terminal and storage medium
CN115080507A (en) Vehicle fault snapshot data storage method, system, equipment and storage medium
CN114490003A (en) Distributed job scheduling method of large-scale data and related equipment
KR20160118190A (en) Method for verifying mobile application and terminal using the same
KR102109536B1 (en) Method for diagnosing and handling obstacle of server based on obstacle type
CN112527606A (en) Data flow analysis method and device, computer equipment and storage medium
CN111352802A (en) Monitoring processing method, device, equipment and storage medium of network bus
CN114760148B (en) Penetration testing method, platform, electronic equipment and storage medium
CN115562950B (en) Data acquisition method and device and computer equipment
CN111932706B (en) Informationized inspection method and device, storage medium and electronic equipment
CN110932940B (en) Source address translation service monitoring method and device
US20230004476A1 (en) Application failure tracking features
CN113687929A (en) Exception handling method and related device

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