CN111176959B - Early warning method, system and storage medium of cross-domain application server - Google Patents

Early warning method, system and storage medium of cross-domain application server Download PDF

Info

Publication number
CN111176959B
CN111176959B CN201911422293.1A CN201911422293A CN111176959B CN 111176959 B CN111176959 B CN 111176959B CN 201911422293 A CN201911422293 A CN 201911422293A CN 111176959 B CN111176959 B CN 111176959B
Authority
CN
China
Prior art keywords
application server
server
target
application
batch
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
CN201911422293.1A
Other languages
Chinese (zh)
Other versions
CN111176959A (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.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN201911422293.1A priority Critical patent/CN111176959B/en
Publication of CN111176959A publication Critical patent/CN111176959A/en
Application granted granted Critical
Publication of CN111176959B publication Critical patent/CN111176959B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/327Alarm or error message display
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs

Landscapes

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

Abstract

The invention discloses a method, a system and a storage medium for early warning of a cross-domain application server, wherein the method comprises the following steps: receiving a batch task execution request sent by a terminal, wherein at least two application servers are positioned in different domains; based on the identification information of each application server, sending the batch task execution request to each application server; so that each application server executes the batch task based on the batch task execution request; receiving running state information sent by each application server in the process of executing batch tasks; and performing early warning control on each application server based on the running state information of each application server. In the public cloud system, the application servers in different domains execute tasks by sending batch task execution requests to the target servers, and each application server is monitored and early-warned, so that the cross-domain management of the application servers is realized.

Description

Early warning method, system and storage medium of cross-domain application server
Technical Field
The present invention relates to the field of internet communications technologies, and in particular, to a method, a system, and a storage medium for early warning of a cross-domain application server.
Background
Weblogic is a Java application server based middleware for developing, integrating, deploying and managing large distributed web applications, web applications and database applications. The dynamic functionality of Java and the security of Java Enterprise standards are introduced into the development, integration, deployment and management of large-scale network applications.
WebLogic implements J2EE/Java EE specifications proposed by Sun corporation, provides a standard API interface for creating distributed Java applications, and facilitates applications accessing various service resources, such as: databases, message queues, interfaces with other enterprise-level systems. The end user interacts with the application program through a Web browser or Java client program.
In the prior art, weblogic performs domain management through a oracle Weblogic server management console, so that the deployment and creation of web applications are realized. With the development of the internet, especially the development of public clouds, application services are gradually shifted to the cloud, and weblogic is one of main Java application server software in the commercial market, and also provides services on the cloud. The existing weblogic management technology can only manage in a single domain, and the management mode has poor expansibility, so that the development of weblogic in the public cloud field is limited. The application cross-domain deployment has stronger expansibility and is relatively suitable for being deployed on the cloud, however, the prior art cannot meet the requirement of webogic service cross-domain management.
Therefore, it is necessary to provide a method, a system and a storage medium for early warning of a cross-domain application server, so as to implement cross-domain management of the application server and implement early warning control of application servers in different domains.
Disclosure of Invention
The invention provides a method, a system and a storage medium for early warning of a cross-domain application server, which can realize cross-domain management of the application server and early warning control of application servers in different domains.
In one aspect, the present invention provides a method for early warning of a cross-domain application server, where the method includes:
receiving a batch task execution request sent by a terminal, wherein the batch task execution request carries identification information of at least two application servers; the at least two application servers are located in different domains;
based on the identification information of each application server, sending the batch task execution request to each application server; so that each application server executes the batch task based on the batch task execution request;
receiving running state information sent by each application server in the process of executing batch tasks;
and performing early warning control on each application server based on the running state information of each application server.
Another aspect provides a method for early warning of a cross-domain application server, where the method includes:
receiving a batch task execution request sent by a target server based on the identification information of each application server; the batch task execution request is sent to the target server by a terminal, and carries identification information of at least two application servers, wherein the at least two application servers are located in different domains;
executing the batch task based on the batch task execution request;
in the process of executing batch tasks, sending running state information to the target server; and the target server performs early warning control on each application server based on the running state information of each application server.
Another aspect provides a pre-warning target server of a cross-domain application server, the target server comprising:
the batch task execution request receiving module is used for receiving a batch task execution request sent by the terminal, wherein the batch task execution request carries identification information of at least two application servers; the at least two application servers are located in different domains;
the request sending module is used for sending the batch task execution request to each application server based on the identification information of each application server; so that each application server executes the batch task based on the batch task execution request;
The running state information receiving module is used for receiving the running state information sent by each application server in the process of executing batch tasks;
and the early warning control module is used for carrying out early warning control on each application server based on the running state information of each application server.
Another aspect provides an application server comprising:
the request receiving module is used for receiving batch task execution requests sent by the target server based on the identification information of each application server; the batch task execution request is sent to the target server by a terminal, and carries identification information of at least two application servers, wherein the at least two application servers are located in different domains;
the batch task execution module is used for executing the batch task based on the batch task execution request;
the running state information sending module is used for sending running state information to the target server in the process of executing batch tasks; and the target server performs early warning control on each application server based on the running state information of each application server.
In another aspect, a system of cross-domain application servers is provided, the system comprising a target server and at least two application servers, the at least two application servers being located in different domains;
the target server is used for receiving a batch task execution request sent by the terminal, wherein the batch task execution request carries identification information of at least two application servers; transmitting the batch task execution request to each application server based on the identification information of each application server; based on the running state information of each application server, performing early warning control on each application server;
the at least two application servers are used for executing the batch tasks based on the batch task execution requests; and sending running state information to the target server in the process of executing batch tasks.
In another aspect, a pre-warning target server of a cross-domain application server is provided, where the target server includes a processor and a memory, where at least one instruction or at least one section of program is stored in the memory, and the at least one instruction or at least one section of program is loaded and executed by the processor to implement a pre-warning method of the cross-domain application server as described above.
In another aspect, an application server is provided, where the application server includes a processor and a memory, where at least one instruction or at least one section of program is stored in the memory, where the at least one instruction or at least one section of program is loaded and executed by the processor to implement the early warning method of the cross-domain application server as described above.
Another aspect provides a computer readable storage medium storing at least one instruction or at least one program loaded and executed by a processor to implement the method of pre-warning a cross-domain application server as described above.
The early warning method, the early warning system and the storage medium of the cross-domain application server provided by the invention have the following technical effects:
(1) The weblogic service which is installed, deployed and configured on the cloud is fast or obtained, and the technical threshold for weblogic use is reduced;
(2) The functions of batch weblogic instance management, file uploading, log management, user management and the like can be realized through an automatic operation platform, so that the maintenance efficiency is improved;
(3) The batch release and execution functions of the custom scripts are provided, the scripts can be developed by the tenants according to the needs of the tenants, and daily management and operation and maintenance are more flexible;
(4) Providing minute-level monitoring of important performance data, rapidly positioning problems through visual monitoring results, and also setting an alarm strategy to send alarm notification to a user;
(5) The operation executed by the automatic operation platform provides a post audit function, and the history operation record and the operation result can be checked at any time.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions and advantages of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are only some embodiments of the invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of an early warning system according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an application server management architecture according to an embodiment of the present invention;
fig. 3 is a flow chart of an early warning method of a cross-domain application server provided by an embodiment of the invention;
fig. 4 is a flow chart of a method for performing early warning control on each application server by the target server according to the embodiment of the present invention based on the running state information of each application server;
FIG. 5 is a schematic diagram of batch start-stop operations of an application server according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an application server management system according to an embodiment of the present invention;
FIG. 7 is a code schematic diagram of an IAAS interface module according to an embodiment of the present invention;
FIG. 8 is a code schematic diagram of a bulk operation module provided by an embodiment of the present invention;
FIG. 9 is a code schematic diagram of an asynchronous task management module provided by an embodiment of the present invention;
fig. 10 is a flow chart of another early warning method of a cross-domain application server according to an embodiment of the present invention;
FIG. 11 is a flowchart illustrating another method for early warning of a cross-domain application server according to an embodiment of the present invention;
fig. 12 is a schematic structural diagram of an early warning target server of a cross-domain application server according to an embodiment of the present invention;
fig. 13 is a schematic structural diagram of an application server according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. 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 fall within the scope of the invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or server that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed or inherent to such process, method, article, or apparatus, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Referring to fig. 1, fig. 1 is a schematic diagram of an early warning system according to an embodiment of the present invention, and as shown in fig. 1, the system may at least include a target server 01, an application server 02 and a terminal 03. Wherein the target server 01 is used for managing the application server 02. The target server 01 and the application server 02 may constitute an application server management system.
In particular, the target server 01 may include a server that operates independently, or a distributed server, or a server cluster that is composed of a plurality of servers. The target server 01 may comprise a network communication unit, a processor, a memory, etc. The target server 01 may provide a background service for the terminal 03.
In particular, the application server 02 may include a server that operates independently, or a distributed server, or a server cluster that is composed of a plurality of servers. The application server 02 may comprise a network communication unit, a processor, a memory, etc. The application server 02 may be communicatively connected to the target server 01.
Specifically, the terminal 03 may include a smart phone, a tablet computer, a notebook computer, a digital assistant, an intelligent wearable device, an in-vehicle terminal, and other types of physical devices, and may also include software running in the physical devices.
In some embodiments, as shown in fig. 2, the application server management system may include an application server automation deployment and management system, and application servers, where all application servers refer to Weblogic, and the application server automation deployment and management system may also be used to monitor the application servers. Wherein the application servers may include a first application server, a second application server, and a third application server.
The Weblogic of the present invention can provide a complete set of Weblogic services to customers that have been installed, deployed and configured, including:
(1) Operating system parameters, swap area size, system disk, data disk, etc. are set according to the operating system type.
(2) JDK compatible with webogic versions is deployed, and webogic products are deployed according to best practices.
(3) A domain and a management server (AdminServer) are built for each weblogic service, a heap (heel), a thread number, a JDBC, a GC policy, a log policy and the like are configured, a node manager (NodeManager) is started by default, and a startup self-start is configured, so that the weblogic service can be automatically pulled up if an abnormal fault occurs. GC (Garbage Collection) is a mechanism provided by the Java Virtual Machine (JVM) garbage collector for reclaiming memory space occupied by objects without any object references at idle time uncertainty.
In the following description, the early warning method of the cross-domain application server based on the early warning system of the present invention is shown in fig. 3, which is a schematic flow chart of the early warning method of the cross-domain application server provided by the embodiment of the present invention, and the present specification provides the operation steps of the method as described in the embodiment or the flowchart, but may include more or fewer operation steps based on conventional or non-creative labor. The order of steps recited in the embodiments is merely one way of performing the order of steps and does not represent a unique order of execution. When implemented in a real system or server product, the methods illustrated in the embodiments or figures may be performed sequentially or in parallel (e.g., in a parallel processor or multithreaded environment). As shown in fig. 3, the method may include:
S301: the method comprises the steps that a terminal sends a batch task execution request to a target server, wherein the batch task execution request carries identification information of at least two application servers; the at least two application servers are located in different domains.
In the embodiment of the specification, the terminal can be a computer, a mobile phone and other devices used by a user, and the batch tasks can comprise management operation and configuration adjustment; the management operation comprises batch restarting, starting, stopping, recycling and other operations; the configuration adjustment includes batch adjustment of the size of the ecap, thread count, GC policy, etc. The at least two application servers may be located in two or more domains. The target server is used for managing the application server.
In this embodiment of the present disclosure, before the step of sending, by the terminal, a batch task execution request to the target server, the method further includes:
the method comprises the steps that a terminal sends a creation request of a target number of application servers to a target server, wherein the creation request carries identification information of an operating system, identification information of the terminal, password information, identification information of a virtual private cloud and mirror image information corresponding to the application servers;
The target server determines attribute information corresponding to the identification information of the operating system based on the creation request;
the target server determines a software development kit compatible with each application server;
and the target servers create a target number of application servers based on the attribute information corresponding to the operating system and the software development kits corresponding to each application server.
In the embodiment of the present specification, the target number may be set to be greater than or equal to 2; the identification information of the operating system can be used for identifying the type of the operating system of the terminal, the identification information of the terminal can be account information registered by a user on a target server, and the password information can be a login password of a user account. The application servers can be stored in the virtual private cloud, and the corresponding application servers can be determined through the identification information of the virtual private cloud.
S303: and the target server sends the batch task execution request to each application server based on the identification information of each application server.
In this embodiment of the present disclosure, the target server may set identification information of each application server according to attribute information of the application server, for example, set a unique number for each application server.
S305: each application server executes the batch task based on the batch task execution request.
In this embodiment of the present disclosure, the executing, by each application server, the batch task based on the batch task execution request includes:
and each application server asynchronously executes the batch tasks based on the batch task execution request.
In the embodiment of the specification, the execution efficiency of the task is improved by asynchronously executing the task.
S307: and in the process of executing batch tasks by each application server, each application server sends running state information to the target server.
In this embodiment of the present disclosure, the running state information is running state information of each application server, and the running state information may include an index of a running time or information in a running log.
S309: and the target server performs early warning control on each application server based on the running state information of each application server.
In this embodiment of the present disclosure, as shown in fig. 4, the performing, by the target server, early warning control on each application server based on the running state information of each application server includes:
S3091: when the abnormal keywords exist in the running state information, the target server determines a target application server corresponding to the abnormal keywords.
In the embodiment of the present specification, the abnormal keyword may be a keyword for identifying that an operation failure or an impending failure exists in the application server.
S3093: and the target server sends alarm information to the target application server.
In this embodiment of the present disclosure, the alert information may be displayed in the form of text, sound, or video, and the alert information may include an execution task corresponding to the abnormal keyword, which is used to prompt the user to close the corresponding execution task.
In an embodiment of the present disclosure, when an abnormal keyword exists in the running state information, after the step of determining, by the target server, a target application server corresponding to the abnormal keyword, the method further includes:
the target server sends a target instruction to the target application server;
and stopping executing the batch task by the target application server based on the target instruction.
In the embodiment of the present specification, when the abnormal keyword exists in the running state information, the target application server may stop executing the current task by itself.
In this embodiment of the present disclosure, after the step of creating the target number of application servers by the target server based on the attribute information corresponding to the operating system and the software development kit corresponding to each application server, the method further includes:
the target server determines a domain, a management server and configuration attribute information corresponding to each application server;
in the embodiment of the present specification, the configuration attribute information may include information such as the number of threads, a log policy, and the like.
The target server constructs an image file corresponding to each application server based on the domain, the management server and the configuration attribute information corresponding to each application server;
correspondingly, before the step of executing the batch task, each application server executes the batch task based on the batch task execution request, the method further comprises:
each application server acquires an image file corresponding to each application server;
correspondingly, each application server executes the batch task based on the batch task execution request, and the batch task execution comprises:
each application server obtains script information corresponding to the batch tasks from image files corresponding to each application server based on the batch task execution requests;
And each application server executes the batch task based on the script information corresponding to each application server.
In an embodiment of the present disclosure, before the step of sending the running state information to the target server by each application server, the method further includes:
each application server determines a transmission interval time period of the running state information;
correspondingly, the sending, by each application server, the running state information to the target server includes:
and each application server transmits running state information to the target server every interval the transmission interval time period.
In the embodiment of the present specification, the interval period may be determined according to actual conditions.
In an embodiment of the present disclosure, after the step of sending the running state information to the target server by each application server, the method further includes:
the target server stores the running state information of each application server; thereby facilitating the user to view the historical operation record and operation result of the application server at any time.
In the embodiment of the present disclosure, as shown in fig. 5, the weblogic service is managed by the weblogic automation deployment and management platform, and after some daily management commands are sent to the weblogic service, the weblogic service invokes related services through corresponding proxy scripts and realizes corresponding functions. Agent scripts as in table 1 may be provided, each agent script corresponding one-to-one to an instance batch management function on the automated deployment and management system.
Table 1: script function-parameter table
In the embodiment of the specification, a weblogic monitoring automatic acquisition agent can be set to realize real-time acquisition of monitoring data, and the acquisition content comprises key indexes in running and weblogic operation logs, wherein the specific indexes are as follows:
(1) The running index can be set to be acquired once every minute, and the acquired index is reported to the cloud monitoring responsible for displaying and sending the alarm information, and the specific acquired index is shown in table 2.
Table 2: acquisition index table of running state
(2) weblog monitoring, namely capturing abnormal keywords in real time in a log file, and reporting police after the high-risk keywords are found, wherein the specific captured high-risk keywords are shown in table 3.
Table 3: list of anomaly keywords
Keyword content Meaning of key words
<OutOfMemory> Memory leakage
<Too many open files> Too many files are opened
<deadlock> Deadlock occurs
<No resources currently available in pool> No connection in JDBC connection pool can be obtained
<STUCK> Thread jamming
<Critical> With Critical level event occurrences
<Alert> With Alert level event occurrences
<BEA-001129> Has the following components<BEA-001129>Occurrence of error reporting
StackOverflowError stack zone overflow
ClassNotFoundException Failure to find class anomalies
locking account Account lock
In some embodiments, the monitoring of the run-time index and the monitoring of the log key are implemented by a monitoring agent running on the weblogic service, and the agent configures the boot self-start to ensure that the monitoring is not interrupted. The monitoring data may be as shown in table 4.
Table 4: monitoring data report list
In the embodiment of the specification, the Weblogic service designs and packages the installation, deployment, configuration and proxy script into a complete mirror image, and provides the mirror image for users, so that all users on the cloud can select the corresponding mirror image or the corresponding service when applying for the service, and the method is convenient and quick.
In some embodiments, as shown in fig. 6, the application server management system of the present invention may include: an Infrastructure As A Service (IAAS) interface management module, an asynchronous task management module, and a bulk operations module.
1. IAAS interface management module
In the embodiment of the specification, the management system is provided for public environment, weblogic service is also deployed based on a virtual machine on the cloud, and the IAAS interface management module is mainly responsible for interacting with public cloud IAAS to realize functions of service application, destruction, inquiry, allocation and the like. In some embodiments, the IAAS interface management module code may be as shown in fig. 7.
In a specific embodiment, the specific flow is as follows:
(1) Calling an IAAS interface RunInstances to create one or more weblogic services deployed based on the virtual machine on the cloud according to VPC, secretID, secretKey, weblogic images and other information provided by a user as parameters;
(2) The application service is an asynchronous task, and the task is submitted to an asynchronous task management module for scheduling and execution.
(3) The application is successful, and the service being applied can be seen at the console.
2. Batch operation module
In the embodiment of the specification, after the Weblogic service application is completed, the subsequent maintenance operation is realized in the module, including batch start-stop, deployment, configuration modification and the like, the module mainly realizes batch scheduling function by means of an open source tool, batch calls agent scripts on the Weblogic service to complete batch function, and for asynchronous tasks, the module gives an asynchronous task management module to process. In some embodiments, the code of the bulk operation module may be as shown in FIG. 8.
3. Asynchronous task management module
In the embodiment of the specification, the time consumption is generally in the order of minutes for operations such as batch creation and management of weblogic services, so that for such tasks, the system is designed into an asynchronous mode, and the robustness and the stability of the system are improved. The asynchronous task management module mainly comprises the following sub-modules:
(1) The asynchronous task definition module is used for defining asynchronous tasks in the system, such as applying weblogic service, restarting in batches, starting and stopping, modifying parameters and the like, and is defined as asynchronous tasks;
(2) And the asynchronous task execution module is used for regularly monitoring the asynchronous task condition in the database table, actively calling up the task to execute after a new asynchronous task is inserted into the database table, and updating the task state after the task is completed. In some embodiments, the code of the asynchronous task management module may be as shown in FIG. 9.
According to the technical scheme provided by the embodiment of the specification, the embodiment of the specification can apply for weblogic services on the cloud in batches, and the user-specified number of weblogic services can be obtained only in a few minutes; management of weblogic services on the cloud comprises operations of restarting, starting, stopping, recycling and the like on example batches; configuration adjustment of weblogic services on the cloud comprises adjustment functions of batch adjustment of the size of the ecap, the number of threads, GC strategies and the like; performing application deployment on weblogic services on the cloud in batches; the weblogic service on the cloud can be monitored, collected and displayed in real time.
The following description describes a specific embodiment of a pre-warning method of a cross-domain application server with a target server as an execution body, and fig. 10 is a flow chart of a pre-warning method of a cross-domain application server provided by an embodiment of the present invention, specifically, with reference to fig. 10, the method may include:
S1001: receiving a batch task execution request sent by a terminal, wherein the batch task execution request carries identification information of at least two application servers; the at least two application servers are located in different domains;
s1003: based on the identification information of each application server, sending the batch task execution request to each application server; so that each application server executes the batch task based on the batch task execution request;
s1005: receiving running state information sent by each application server in the process of executing batch tasks;
s1007: and performing early warning control on each application server based on the running state information of each application server.
In this embodiment of the present disclosure, the performing early warning control on each application server based on the running state information of each application server includes:
when an abnormal keyword exists in the running state information, determining a target application server corresponding to the abnormal keyword;
and sending alarm information to the target application server.
In an embodiment of the present disclosure, after the step of determining, when the abnormal keyword exists in the running state information, a target application server corresponding to the abnormal keyword, the method further includes:
Sending a target instruction to the target application server; and stopping executing the batch task by the target application server based on the target instruction.
In an embodiment of the present disclosure, before the step of receiving the batch task execution request sent by the terminal, the method further includes:
receiving a creation request of a target number of application servers sent by a terminal, wherein the creation request carries identification information of an operating system;
determining attribute information corresponding to the identification information of the operating system based on the creation request;
determining a software development kit compatible with each application server;
and creating the application servers with the target number based on the attribute information corresponding to the operating system and the software development kit corresponding to each application server.
In an embodiment of the present disclosure, after the step of creating the target number of application servers based on the attribute information corresponding to the operating system and the software development kit corresponding to each application server, the method further includes:
determining a domain, a management server and configuration attribute information corresponding to each application server;
and constructing an image file corresponding to each application server based on the domain corresponding to each application server, the management server and the configuration attribute information.
In an embodiment of the present disclosure, after the step of receiving the running state information sent by each application server in the process of executing the batch task, the method further includes:
the running state information of each application server is stored.
The embodiment of the specification provides a target server of a cross-domain application server, which comprises a processor and a memory, wherein at least one instruction or at least one section of program is stored in the memory, and the at least one instruction or the at least one section of program is loaded and executed by the processor to realize the early warning method of the cross-domain application server.
The following description describes a specific embodiment of a pre-warning method of a cross-domain application server with the application server as an execution subject, and fig. 11 is a schematic flow diagram of a pre-warning method of a cross-domain application server according to an embodiment of the present invention, and specifically, with reference to fig. 11, the method may include:
s1101: receiving a batch task execution request sent by a target server based on the identification information of each application server; the batch task execution request is sent to the target server by a terminal, and carries identification information of at least two application servers, wherein the at least two application servers are located in different domains;
S1103: executing the batch task based on the batch task execution request;
s1105: in the process of executing batch tasks, sending running state information to the target server; and the target server performs early warning control on each application server based on the running state information of each application server.
In an embodiment of the present disclosure, before the step of executing the batch task based on the batch task execution request, the method further includes:
acquiring an image file corresponding to each application server;
correspondingly, the executing the batch task based on the batch task execution request comprises:
acquiring script information corresponding to the batch tasks from mirror image files corresponding to each application server based on the batch task execution requests;
and executing the batch tasks based on the script information corresponding to each application server.
In an embodiment of the present disclosure, the executing the batch task based on the batch task execution request includes:
and asynchronously executing the batch tasks based on the batch task execution request.
In an embodiment of the present disclosure, before the step of sending the running status information to the target server, the method further includes:
Determining a transmission interval time period of the running state information;
correspondingly, the sending the running state information to the target server includes:
and sending running state information to the target server every the sending interval time period.
The embodiment of the specification provides an application server, which comprises a processor and a memory, wherein at least one instruction or at least one section of program is stored in the memory, and the at least one instruction or the at least one section of program is loaded and executed by the processor to realize the early warning method of the cross-domain application server.
In the embodiment of the present specification, the memory may be used to store software programs and modules, and the processor executes the software programs and modules stored in the memory to perform various functional applications and data processing. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, application programs required for functions, and the like; the storage data area may store data created according to the use of the device, etc. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory may also include a memory controller to provide access to the memory by the processor.
Embodiments of the present disclosure provide a computer readable storage medium storing at least one instruction or at least one program loaded and executed by a processor to implement a method for pre-warning a cross-domain application server as described above.
The embodiment of the invention also provides a target server of the cross-domain application server, as shown in fig. 12, the target server may include:
a batch task execution request receiving module 1210, configured to receive a batch task execution request sent by a terminal, where the batch task execution request carries identification information of at least two application servers; the at least two application servers are located in different domains;
a request sending module 1220, configured to send the batch task execution request to each application server based on the identification information of the application server; so that each application server executes the batch task based on the batch task execution request;
an operation state information receiving module 1230, configured to receive operation state information sent by each application server in a process of executing a batch task;
the early warning control module 1240 is configured to perform early warning control on each application server based on the running state information of the application server.
In some embodiments, the early warning control module may include:
the target application server determining unit is used for determining a target application server corresponding to the abnormal keyword when the abnormal keyword exists in the running state information;
and the alarm information sending unit is used for sending alarm information to the target application server.
In some embodiments, the target server further comprises:
the target instruction sending module is used for sending a target instruction to the target application server; and stopping executing the batch task by the target application server based on the target instruction.
In some embodiments, the target server further comprises:
the system comprises a creation request receiving module, a storage module and a storage module, wherein the creation request receiving module is used for receiving creation requests of target number of application servers sent by a terminal, and the creation requests carry identification information of an operating system;
the attribute information determining module is used for determining attribute information corresponding to the identification information of the operating system based on the creation request;
a tool kit determining module for determining a software development tool kit compatible with each application server;
and the application server creation module is used for creating the application servers with the target number based on the attribute information corresponding to the operating system and the software development kit corresponding to each application server.
In some embodiments, the target server further comprises:
the comprehensive information determining module is used for determining a domain corresponding to each application server, a management server and configuration attribute information;
and the image file construction module is used for constructing an image file corresponding to each application server based on the domain corresponding to each application server, the management server and the configuration attribute information.
The server and method embodiments in the server embodiments described are based on the same inventive concept.
The embodiment of the invention also provides an application server, as shown in fig. 13, the application server may include:
a request receiving module 1310, configured to receive a batch task execution request sent by a target server based on identification information of each application server; the batch task execution request is sent to the target server by a terminal, and carries identification information of at least two application servers, wherein the at least two application servers are located in different domains;
a batch task execution module 1320 for executing the batch task based on the batch task execution request;
the running state information sending module 1330 is configured to send running state information to the target server in a process of executing batch tasks; and the target server performs early warning control on each application server based on the running state information of each application server.
In some embodiments, the application server further comprises:
the image file acquisition module is used for acquiring the image file corresponding to each application server;
correspondingly, the batch task execution module comprises:
the script information acquisition unit is used for acquiring script information corresponding to the batch tasks from the mirror image files corresponding to each application server based on the batch task execution requests;
and the batch task execution unit is used for executing the batch tasks based on the script information corresponding to each application server.
In some embodiments, the application server further comprises:
an interval time period determining module, configured to determine a transmission interval time period of the running state information;
in some embodiments, the operation state information transmitting module includes:
and the running state information sending unit is used for sending the running state information to the target server every the sending interval time period.
The application server and the method embodiments in the application server embodiments are based on the same inventive concept.
The invention also provides a system of the cross-domain application server, which comprises a target server and at least two application servers, wherein the at least two application servers are positioned in different domains;
The target server is used for receiving a batch task execution request sent by the terminal, wherein the batch task execution request carries identification information of at least two application servers; transmitting the batch task execution request to each application server based on the identification information of each application server; based on the running state information of each application server, performing early warning control on each application server;
the at least two application servers are used for executing the batch tasks based on the batch task execution requests; and sending running state information to the target server in the process of executing batch tasks.
As can be seen from the embodiments of the foregoing method, the server, the storage medium or the system for early warning of the cross-domain application server provided by the present invention, the embodiments of the present invention can apply for weblogic services on cloud in batches, and only a few minutes are required to obtain a user-specified number of weblogic services; management of weblogic services on the cloud comprises operations of restarting, starting, stopping, recycling and the like on example batches; configuration adjustment of weblogic services on the cloud comprises adjustment functions of batch adjustment of the size of the ecap, the number of threads, GC strategies and the like; performing application deployment on weblogic services on the cloud in batches; the weblogic service on the cloud can be monitored, collected and displayed in real time.
It should be noted that: the sequence of the embodiments of the present invention is only for description, and does not represent the advantages and disadvantages of the embodiments. And the foregoing description has been directed to specific embodiments of this specification. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for embodiments of the server, the terminal, the system, and the storage medium, the description is relatively simple, as it is substantially similar to the method embodiments, and the relevant points are referred to in the description of the method embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program for instructing relevant hardware, where the program may be stored in a computer readable storage medium, and the storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The foregoing description of the preferred embodiments of the invention is not intended to limit the invention to the precise form disclosed, and any such modifications, equivalents, and alternatives falling within the spirit and scope of the invention are intended to be included within the scope of the invention.

Claims (9)

1. A method for early warning of a cross-domain application server, the method comprising:
constructing a target number of application servers;
receiving a batch task execution request sent by a terminal, wherein the batch task execution request carries identification information of at least two application servers; the at least two application servers are located in different domains;
determining a domain, a management server and configuration attribute information corresponding to each application server;
constructing an image file corresponding to each application server based on the domain corresponding to each application server, the management server and the configuration attribute information;
based on the identification information of each application server, sending the batch task execution request to each application server; each application server obtains script information corresponding to the batch tasks from image files corresponding to each application server based on the batch task execution requests; executing the batch tasks based on script information corresponding to each application server;
Receiving running state information sent by each application server in the process of executing batch tasks;
and performing early warning control on each application server based on the running state information of each application server.
2. The method of claim 1, wherein the performing early warning control on each application server based on the operation state information of each application server comprises:
when an abnormal keyword exists in the running state information, determining a target application server corresponding to the abnormal keyword;
and sending alarm information to the target application server.
3. The method according to claim 2, wherein, after the step of determining the target application server to which the abnormal keyword corresponds when the abnormal keyword exists in the operation state information, the method further comprises:
sending a target instruction to the target application server; and stopping executing the batch task by the target application server based on the target instruction.
4. The method of claim 1, wherein the building a target number of application servers comprises:
receiving a creation request of a target number of application servers sent by a terminal, wherein the creation request carries identification information of an operating system;
Determining attribute information corresponding to the identification information of the operating system based on the creation request;
determining a software development kit compatible with each application server;
and creating the application servers with the target number based on the attribute information corresponding to the operating system and the software development kit corresponding to each application server.
5. A method for early warning of a cross-domain application server, the method comprising:
receiving a batch task execution request sent by a target server based on the identification information of each application server; the batch task execution request is sent to the target server by a terminal, and carries identification information of at least two application servers, wherein the at least two application servers are located in different domains; the target servers are used for constructing a target number of application servers; determining a domain, a management server and configuration attribute information corresponding to each application server; constructing an image file corresponding to each application server based on the domain corresponding to each application server, the management server and the configuration attribute information;
based on a batch task execution request, script information corresponding to the batch task is obtained from an image file corresponding to each application server; executing the batch tasks based on script information corresponding to each application server;
In the process of executing batch tasks, sending running state information to the target server; and the target server performs early warning control on each application server based on the running state information of each application server.
6. The method of claim 5, wherein prior to the step of executing the batch task, the method further comprises:
and acquiring the image file corresponding to each application server.
7. The method of claim 5, wherein prior to the step of sending the operational status information to the target server, the method further comprises:
determining a transmission interval time period of the running state information;
correspondingly, the sending the running state information to the target server includes:
and sending running state information to the target server every the sending interval time period.
8. An early warning system of a cross-domain application server, which is characterized by comprising a target server and at least two application servers, wherein the at least two application servers are positioned in different domains;
the target servers are used for constructing a target number of application servers; receiving a batch task execution request sent by a terminal, wherein the batch task execution request carries identification information of at least two application servers; determining a domain, a management server and configuration attribute information corresponding to each application server; constructing an image file corresponding to each application server based on the domain corresponding to each application server, the management server and the configuration attribute information; transmitting the batch task execution request to each application server based on the identification information of each application server; based on the running state information of each application server, performing early warning control on each application server;
The at least two application servers are used for acquiring script information corresponding to the batch tasks from image files corresponding to each application server based on the batch task execution requests; executing the batch tasks based on script information corresponding to each application server; and sending running state information to the target server in the process of executing batch tasks.
9. A computer storage medium having at least one instruction or at least one program stored therein, wherein the at least one instruction or the at least one program is loaded and executed by a processor to implement the method of pre-warning a cross-domain application server according to any one of claims 1-4 or any one of claims 5-7.
CN201911422293.1A 2019-12-30 2019-12-30 Early warning method, system and storage medium of cross-domain application server Active CN111176959B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911422293.1A CN111176959B (en) 2019-12-30 2019-12-30 Early warning method, system and storage medium of cross-domain application server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911422293.1A CN111176959B (en) 2019-12-30 2019-12-30 Early warning method, system and storage medium of cross-domain application server

Publications (2)

Publication Number Publication Date
CN111176959A CN111176959A (en) 2020-05-19
CN111176959B true CN111176959B (en) 2023-11-14

Family

ID=70654333

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911422293.1A Active CN111176959B (en) 2019-12-30 2019-12-30 Early warning method, system and storage medium of cross-domain application server

Country Status (1)

Country Link
CN (1) CN111176959B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112637119A (en) * 2020-11-13 2021-04-09 北京大米科技有限公司 Host scanning method and device, storage medium and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009245118A (en) * 2008-03-31 2009-10-22 Yamatake Corp System and method for providing application service, and method for transferring application
CN103441872A (en) * 2013-08-22 2013-12-11 福建星网锐捷网络有限公司 Failure recovery method, device and communication system of user side equipment
CN106713281A (en) * 2016-11-30 2017-05-24 国网北京市电力公司 Monitoring system
CN107689894A (en) * 2017-10-09 2018-02-13 用友网络科技股份有限公司 The method and system of novel maintenance and Dynamical Deployment
CN109710346A (en) * 2018-08-20 2019-05-03 平安普惠企业管理有限公司 Server management method, device, equipment and computer readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009245118A (en) * 2008-03-31 2009-10-22 Yamatake Corp System and method for providing application service, and method for transferring application
CN103441872A (en) * 2013-08-22 2013-12-11 福建星网锐捷网络有限公司 Failure recovery method, device and communication system of user side equipment
CN106713281A (en) * 2016-11-30 2017-05-24 国网北京市电力公司 Monitoring system
CN107689894A (en) * 2017-10-09 2018-02-13 用友网络科技股份有限公司 The method and system of novel maintenance and Dynamical Deployment
CN109710346A (en) * 2018-08-20 2019-05-03 平安普惠企业管理有限公司 Server management method, device, equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN111176959A (en) 2020-05-19

Similar Documents

Publication Publication Date Title
US8910138B2 (en) Hot pluggable extensions for access management system
CN108108297B (en) Method and device for automatic testing
US9529613B2 (en) Methods and apparatus to reclaim resources in virtual computing environments
EP3030966B1 (en) Virtual computing instance migration
EP3617961A1 (en) Intelligent adaptor service in unified automation platforms for robotic process automation
US7873957B2 (en) Minimizing user disruption during modification operations
CN104360878B (en) A kind of method and device of application software deployment
DE202016008133U1 (en) Container application with dynamic subpack loader
CN110365762B (en) Service processing method, device, equipment and storage medium
CN109766253B (en) Performance data sending method and device, computer equipment and storage medium
US20090013321A1 (en) Managing virtual computers
US8205215B2 (en) Automated event correlation
CN112416581B (en) Distributed calling system for timed tasks
US11706084B2 (en) Self-monitoring
CN109725950B (en) Method, device and storage medium for realizing single-instance operation of client
US20190317736A1 (en) State machine representation of a development environment deployment process
US11720424B2 (en) Single flow execution
US10372572B1 (en) Prediction model testing framework
US11108638B1 (en) Health monitoring of automatically deployed and managed network pipelines
CN111679888A (en) Deployment method and device of agent container
US9032014B2 (en) Diagnostics agents for managed computing solutions hosted in adaptive environments
CN111176959B (en) Early warning method, system and storage medium of cross-domain application server
CN111240998B (en) Test case processing method and device
CN112445549A (en) Operation and maintenance method, operation and maintenance device, electronic equipment and medium
US10728323B2 (en) Method and apparatus for operating infrastructure layer in cloud computing architecture

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