CN116302561A - State control method, device, equipment and storage medium for application instance - Google Patents
State control method, device, equipment and storage medium for application instance Download PDFInfo
- Publication number
- CN116302561A CN116302561A CN202310396343.3A CN202310396343A CN116302561A CN 116302561 A CN116302561 A CN 116302561A CN 202310396343 A CN202310396343 A CN 202310396343A CN 116302561 A CN116302561 A CN 116302561A
- Authority
- CN
- China
- Prior art keywords
- application instance
- application
- target
- state
- type
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 110
- 230000008859 change Effects 0.000 claims abstract description 84
- 238000012544 monitoring process Methods 0.000 claims abstract description 18
- 230000008569 process Effects 0.000 claims description 63
- 238000004590 computer program Methods 0.000 claims description 20
- 230000015654 memory Effects 0.000 claims description 11
- 238000012545 processing Methods 0.000 claims description 11
- 230000004044 response Effects 0.000 claims description 9
- 238000010586 diagram Methods 0.000 description 10
- 230000006870 function Effects 0.000 description 10
- 238000004891 communication Methods 0.000 description 9
- 238000012790 confirmation Methods 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 3
- 230000005856 abnormality Effects 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000014509 gene expression Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000011144 upstream manufacturing Methods 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000004806 packaging method and process Methods 0.000 description 1
- 238000012552 review Methods 0.000 description 1
- 239000000523 sample Substances 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000000758 substrate Substances 0.000 description 1
- 238000010200 validation analysis Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5027—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
- G06F9/4881—Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5011—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The disclosure provides a state control method, a state control device, state control equipment and a storage medium for an application instance, which can be applied to the technical field of computers. The method comprises the following steps: responding to a state control request from an application management platform, and acquiring a target application instance to be controlled from the state control request; determining the application type of the target application instance; determining a target state control mode and a target state change sequence matched with a target application instance according to the application type; and under the condition that the monitoring of the target application instance is stopped, controlling the state of the target application instance according to the target state control mode and the target state change sequence.
Description
Technical Field
The present disclosure relates to the field of computer technology, and in particular, to a state control method, apparatus, device, storage medium, and program product for an application instance.
Background
The number of servers in the open platform of the data center is large, and a plurality of application instances are arranged on each server, and the scale is continuously increasing, so that server resources of the data center are increasingly tense, and the application instances need to be managed so that the server resources can be utilized maximally.
In the process of implementing the disclosed concept, the inventor finds that at least the following problems exist in the related art: the method for managing the application instance in the related technology is long in time consumption and low in efficiency.
Disclosure of Invention
In view of the foregoing, the present disclosure provides a state control method, apparatus, device, storage medium, and program product for an application instance.
According to a first aspect of the present disclosure, there is provided a state control method for an application instance, including:
responding to a state control request from an application management platform, and acquiring a target application instance to be controlled from the state control request;
determining the application type of the target application instance;
determining a target state control mode and a target state change sequence matched with a target application instance according to the application type;
and under the condition that the monitoring of the target application instance is stopped, controlling the state of the target application instance according to the target state control mode and the target state change sequence.
According to an embodiment of the present disclosure, determining a target state control manner and a target state change order matched with a target application instance according to an application type includes:
Determining a first target state control mode matched with a first application instance under the condition that the application type comprises a middleware type, wherein the first application instance represents a target application instance of which the application type is the middleware type;
determining whether the application type comprises a database type under the condition that the state control of the first application instance is successful;
determining a second target state control mode matched with a second application instance under the condition that the application type comprises the database type, wherein the second application instance represents a target application instance of which the application type is the database type;
determining whether the application type includes a file system type if it is determined that the state control of the second application instance is successful;
and if the application type comprises the file system type, determining a third target state control mode matched with a third application instance, wherein the third application instance represents a target application instance of which the application type is the file system type.
According to an embodiment of the present disclosure, in a case where monitoring of a target application instance is stopped, controlling a state of the target application instance according to a target state control manner and a target state change order includes:
Controlling the state of the first application instance according to a first target state control mode matched with the first application instance under the condition that the application type comprises the middleware type;
under the condition that the state control of the first application instance is successful and the application type comprises the database type, controlling the state of the second application instance according to a second target state control mode matched with the second application instance;
and under the condition that the successful application type of the state control of the second application instance comprises the file system type, controlling the state of the third application instance according to a third target state control mode matched with the third application instance.
According to an embodiment of the present disclosure, in a case where it is determined that an application type includes a middleware type, controlling a state of a first application instance according to a first target state control manner matched with the first application instance includes:
changing the state of a first instance process corresponding to the first application instance according to the connection state of the first application instance under the condition that the application type comprises the middleware type;
in the event that a successful change of state of the first instance process is determined, a first electronic record associated with the first application instance is changed.
According to an embodiment of the present disclosure, in a case where it is determined that the state control of the first application instance is successful and the application type includes the database type, controlling the state of the second application instance according to a second target state control manner matched with the second application instance includes:
acquiring a database state corresponding to the second application instance under the condition that the state control of the first application instance is successful and the application type comprises the database type is determined;
in the case where the database state characterizes the second application instance as the database host, changing the state of a second instance process corresponding to the second application instance;
modifying configuration information of a database host corresponding to the database standby machine and changing the state of a second instance process corresponding to the second application instance under the condition that the database state characterizes the second application instance as the database standby machine;
in the event that a successful change of state of the second instance process is determined, a second electronic record associated with the second application instance is changed.
According to an embodiment of the present disclosure, in a case where it is determined that the state control success application type of the second application instance includes a file system type, controlling the state of the third application instance according to a third target state control manner matched with the third application instance includes:
Acquiring a port type corresponding to the third application instance under the condition that the successful application type of the state control of the second application instance comprises a file system type is determined;
processing the client information in the server based on the login information of the client in the server and changing the state of a third instance process corresponding to the third application instance under the condition that the port type is determined to be the client type;
processing all client information in the server and changing the state of a third instance process corresponding to the third application instance under the condition that the port type is determined to be the server;
in the event that a determination is made that the state change of the third instance process was successful, a third electronic record associated with the third application instance is changed.
According to an embodiment of the present disclosure, in response to a state control request from an application management platform, obtaining a target application instance to be controlled from the state control request includes:
responding to a state control request from an application management platform, and determining the approval state of a change list in the state control request;
under the condition that the approval state of the change list is confirmed to represent the completion of approval of the change list, acquiring the node state of the application instance in the change list;
And under the condition that the node state of the application instance is determined to be controlled, determining the application instance to be controlled as a target application instance.
According to an embodiment of the present disclosure, the above state control method for an application instance further includes:
generating fault information based on the target application instance in case of failure of state control of the target application instance;
and sending the fault information to an application management platform.
A second aspect of the present disclosure provides a state control apparatus for an application instance, including:
the acquisition module is used for responding to a state control request from the application management platform and acquiring a target application instance to be controlled from the state control request;
the first determining module is used for determining the application type of the target application instance;
the second determining module is used for determining a target state control mode and a target state change sequence matched with the target application instance according to the application type;
and the control module is used for controlling the state of the target application instance according to the target state control mode and the target state change sequence under the condition that the monitoring of the target application instance is stopped.
A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; and a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method described above.
A fourth aspect of the present disclosure also provides a computer-readable storage medium having stored thereon executable instructions that, when executed by a processor, cause the processor to perform the above-described method.
A fifth aspect of the present disclosure also provides a computer program product comprising a computer program which, when executed by a processor, implements the above method.
According to the state control method, the device, the equipment, the medium and the program product of the application instance, the target application instance to be controlled is obtained from the state control request by responding to the state control request from the application management platform; determining the application type of the target application instance; determining a target state control mode and a target state change sequence matched with a target application instance according to the application type; and under the condition that the monitoring of the target application instance is stopped, controlling the state of the target application instance according to the target state control mode and the target state change sequence. Because the target state control mode and the target state change sequence matched with the target application instance are determined according to the application type of the target application instance, the target application instance can be subjected to state control according to the target state control mode and the target state change sequence, manual repeated confirmation is not needed, the consumption time of the state control of the target application instance is reduced, and the management efficiency of the target application instance is further improved.
Drawings
The foregoing and other objects, features and advantages of the disclosure will be more apparent from the following description of embodiments of the disclosure with reference to the accompanying drawings, in which:
FIG. 1 schematically illustrates an application scenario diagram of a state control method of an application instance according to an embodiment of the disclosure;
FIG. 2 schematically illustrates a flow chart of a state control method of an application instance according to an embodiment of the disclosure;
FIG. 3 schematically illustrates a flow chart of a state control method of an application instance according to yet another embodiment of the present disclosure;
FIG. 4 schematically illustrates a block diagram of a state control device for an application instance, according to an embodiment of the present disclosure; and
fig. 5 schematically illustrates a block diagram of an electronic device adapted to implement a state control method for an application instance, according to an embodiment of the disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is only exemplary and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the present disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. In addition, in the following description, descriptions of well-known structures and techniques are omitted so as not to unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and/or the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It should be noted that the terms used herein should be construed to have meanings consistent with the context of the present specification and should not be construed in an idealized or overly formal manner.
Where expressions like at least one of "A, B and C, etc. are used, the expressions should generally be interpreted in accordance with the meaning as commonly understood by those skilled in the art (e.g.," a system having at least one of A, B and C "shall include, but not be limited to, a system having a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
In the technical scheme of the disclosure, the related data (such as including but not limited to personal information of a user) are collected, stored, used, processed, transmitted, provided, disclosed, applied and the like, all conform to the regulations of related laws and regulations, necessary security measures are adopted, and the public welcome is not violated.
The number of servers in an open platform of the data center is large, a plurality of system software such as an operating system, file storage, a database, middleware and the like exist on each server, a plurality of application examples are installed on each system software according to actual service requirements, and the scale is continuously increased. Accordingly, server resources of the data center are increasingly strained, and thus, full utilization of the server resources is required. In the related art, the life cycle and the actual use condition of the application instance are usually repeatedly confirmed manually; the implementation steps of system software configuration checking and state changing related to the application instance are complicated, a lot of time is required, and the data loss of the data center and the like are easy to cause.
In view of this, an embodiment of the present disclosure provides a method for controlling a state of an application instance, including: responding to a state control request from an application management platform, and acquiring a target application instance to be controlled from the state control request; determining the application type of the target application instance; determining a target state control mode and a target state change sequence matched with a target application instance according to the application type; and under the condition that the monitoring of the target application instance is stopped, controlling the state of the target application instance according to the target state control mode and the target state change sequence. Because the target state control mode and the target state change sequence matched with the target application instance are determined according to the application type of the target application instance, the target application instance can be subjected to state control according to the target state control mode and the target state change sequence, manual repeated confirmation is not needed, the consumption time of the state control of the target application instance is reduced, and the management efficiency of the target application instance is further improved.
Fig. 1 schematically illustrates an application scenario diagram of a state control method of an application instance according to an embodiment of the present disclosure.
As shown in fig. 1, an application scenario 100 according to this embodiment may include a first terminal device 101, a second terminal device 102, a third terminal device 103, a network 104, and a server 105. The network 104 is a medium used to provide a communication link between the first terminal device 101, the second terminal device 102, the third terminal device 103, and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The user may interact with the server 105 through the network 104 using at least one of the first terminal device 101, the second terminal device 102, the third terminal device 103, to receive or send messages, etc. Various communication client applications, such as a shopping class application, a web browser application, a search class application, an instant messaging tool, a mailbox client, social platform software, etc. (by way of example only) may be installed on the first terminal device 101, the second terminal device 102, and the third terminal device 103.
The first terminal device 101, the second terminal device 102, the third terminal device 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The server 105 may be a server providing various services, such as a background management server (by way of example only) providing support for websites browsed by the user using the first terminal device 101, the second terminal device 102, and the third terminal device 103. The background management server may analyze and process the received data such as the user request, and feed back the processing result (e.g., the web page, information, or data obtained or generated according to the user request) to the terminal device.
It should be noted that, the state control method of the application instance provided by the embodiments of the present disclosure may be generally executed by the server 105. Accordingly, the state control device of the application instance provided by the embodiments of the present disclosure may be generally disposed in the server 105. The state control method of the application instance provided by the embodiments of the present disclosure may also be performed by a server or a server cluster that is different from the server 105 and is capable of communicating with the first terminal device 101, the second terminal device 102, the third terminal device 103, and/or the server 105. Accordingly, the state control apparatus of the application instance provided by the embodiments of the present disclosure may also be provided in a server or a server cluster that is different from the server 105 and is capable of communicating with the first terminal device 101, the second terminal device 102, the third terminal device 103, and/or the server 105.
It should be understood that the number of terminal devices, networks and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Fig. 2 schematically shows a flowchart of a state control method of an application example according to an embodiment of the present disclosure.
As shown in fig. 2, the state control method of the application example of this embodiment includes operations S210 to S240.
In operation S210, in response to a state control request from the application management platform, a target application instance to be controlled is acquired from the state control request.
According to the embodiment of the disclosure, the application management platform may be a platform for managing the application instance, and an operation interface corresponding to the application management platform may be displayed in the terminal device so as to input a control request of the application instance through the operation interface.
According to an embodiment of the present disclosure, the target application instance may be a service instance corresponding to application software in a server.
According to embodiments of the present disclosure, the state control request may be a request for a target application instance to go offline or online. The application instance coming offline refers to stopping the service provided by the target application instance in the server, and the application instance coming online refers to providing the service corresponding to the target application instance in the server.
In operation S220, an application type of the target application instance is determined.
According to embodiments of the present disclosure, an instance identifier may be added to the target application instance, and an application type of the target application instance may be determined according to the instance identifier. An instance name of the target application instance may also be identified, and an application type of the target application instance may be determined based on the instance name.
In operation S230, a target state control manner and a target state change order matched with the target application instance are determined according to the application type.
According to embodiments of the present disclosure, application instances of different application types may have different functions. Different state control modes and state change orders can be set for the application instance according to different functions of the application instance, so that the target state control mode and the target state change order matched with the target application instance are determined from the state control modes and the state change orders under the condition that the application type of the target application instance is determined.
In operation S240, in the case where the monitoring of the target application instance is stopped, the state of the target application instance is controlled according to the target state control method and the target state change order.
According to embodiments of the present disclosure, stopping monitoring the target application instance may be adding the target application instance to a blacklist and canceling the log monitoring object in the server.
According to the embodiment of the disclosure, in order to timely acquire the state of the target application instance, the target application instance is monitored, and if the state of the target application instance is changed in the case of monitoring the target application instance, the server sends out abnormal monitoring information of the target application instance, so that the state of the target application instance needs to be controlled in the case of stopping monitoring the target application instance.
According to the embodiment of the disclosure, a target application instance to be controlled is acquired from a state control request by responding to the state control request from an application management platform; determining the application type of the target application instance; determining a target state control mode and a target state change sequence matched with a target application instance according to the application type; and under the condition that the monitoring of the target application instance is stopped, controlling the state of the target application instance according to the target state control mode and the target state change sequence. Because the target state control mode and the target state change sequence matched with the target application instance are determined according to the application type of the target application instance, the target application instance can be subjected to state control according to the target state control mode and the target state change sequence, manual repeated confirmation is not needed, the consumption time of the state control of the target application instance is reduced, and the management efficiency of the target application instance is further improved.
Fig. 3 schematically shows a flowchart of a state control method of an application example according to a further embodiment of the present disclosure.
As shown in fig. 3, the state control method of the application instance includes operations S301 to S314.
In operation S301, it is determined whether the application type includes a middleware type. In the case where it is determined that the application type includes the middleware type, operation S302 is performed, and in the case where it is determined that the application type does not include the middleware type, operation S305 is performed.
In operation S302, a first target state control manner matched with a first application instance is determined, where the first application instance characterizes a target application instance of which an application type is a middleware type.
In operation S303, the state of the first application instance is controlled according to the first target state control manner matched with the first application instance.
In operation S304, it is determined whether the state control of the first application instance is successful. In the case where it is determined that the state control of the first application instance is successful, operation S305 is performed, and in the case where it is determined that the state control of the first application instance is failed, operation S314 is performed.
In operation S305, it is determined whether the application type includes a database type. In the case where it is determined that the application type includes the database type, operation S306 is performed, and in the case where it is determined that the application type does not include the database type, operation S309 is performed.
In operation S306, a second target state control manner matched with a second application instance is determined, where the second application instance characterizes the target application instance with the application type being the database type.
In operation S307, the state of the second application instance is controlled according to the second target state control manner matched with the second application instance.
In operation S308, it is determined whether the state control of the second application instance is successful. In the case where it is determined that the state control of the second application instance is successful, operation S309 is performed, and in the case where it is determined that the state control of the second application instance is failed, operation S314 is performed.
In operation S309, it is determined whether the application type includes a file system type. In the case where it is determined that the application type includes the file system type, operation S310 is performed, and in the case where it is determined that the application type does not include the file system type, operation S313 is performed.
In operation S310, a third target state control manner matched with a third application instance is determined, where the third application instance characterizes the target application instance whose application type is a file system type.
In operation S311, the state of the third application instance is controlled according to the third target state control manner matched with the third application instance.
In operation S312, it is determined whether the state control of the third application instance is successful. In the case where it is determined that the state control of the third application instance is successful, operation S313 is performed, and in the case where it is determined that the state control of the third application instance is failed, operation S314 is performed.
In operation S313, the state change of the target application instance is completed.
In operation S314, fault information is generated based on the target application instance, and the fault information is transmitted to the application management platform.
According to the embodiment of the disclosure, the target application instance of the middleware type can be located in a program layer between the mobile terminal and the server, and is used for simplifying communication between the mobile terminal and the server, reducing coupling degree between the mobile terminal and the server, realizing interoperability among different operating systems and improving stability of the mobile terminal and the server. The target application instance of the database type can store a large amount of data in the server in an organized and dynamic manner, and is convenient to review and search. The target application instance of the file system type may export the file in the server to provide corresponding file access rights for accessing the file in the server via the mobile terminal.
According to the embodiment of the disclosure, a target state control mode and a target state change sequence matched with the target application instance can be determined according to the application type of the target application instance.
According to an embodiment of the present disclosure, the state control may be performed on the target application instances in order of middleware type, database type, and file system type, and in case it is determined that the application type includes the middleware type, a first target state control manner matching the first application instance is determined, in case it is determined that the application type includes the database type, a second target state control manner matching the second application instance is determined, in case it is determined that the application type includes the file system type, a third target state control manner matching the third application instance is determined,
according to the embodiment of the present disclosure, the state of the first application instance may be controlled according to the first target state control manner matched with the first application instance, and in the case that it is determined that the state control of the first application instance fails, fault information is generated based on the first application instance and sent to the application management platform, and operation S306 may be continuously performed.
According to an embodiment of the present disclosure, the state of the second application instance is controlled in a second target state control manner matched with the second application instance, and in case it is determined that the state control of the second application instance fails, fault information is generated based on the second application instance and is transmitted to the application management platform, and operation S309 may be continuously performed.
According to an embodiment of the present disclosure, the state of the third application instance is controlled in a third target state control manner matched with the third application instance, and in case it is determined that the state control of the third application instance fails, fault information is generated based on the third application instance and transmitted to the application management platform, and operation S313 may be continuously performed.
According to an embodiment of the present disclosure, for a middleware type, a database type, and a file system type, a target application instance of the middleware type is an outer layer structure in a server, a target application instance of the database type is an intermediate layer structure in the server, and a target application instance of the file system type is an underlying structure in the server. If the state of the target application instance of the bottom layer structure is changed, the service abnormality of the target application instance of the middle layer or the outer layer may be caused. Therefore, the state control of the target application instance according to the target state change sequence of the middleware type, the database type and the file system type can reduce the failure rate of the target application instance in the state change process, and ensure that the target application instance improves the availability of continuous service.
According to an embodiment of the present disclosure, in a case where it is determined that an application type includes a middleware type, controlling a state of a first application instance according to a first target state control manner matched with the first application instance includes:
changing the state of a first instance process corresponding to the first application instance according to the connection state of the first application instance under the condition that the application type comprises the middleware type;
in the event that a successful change of state of the first instance process is determined, a first electronic record associated with the first application instance is changed.
According to the embodiment of the disclosure, in the case that the application type comprises the middleware type, the connection state of the first application instance can be obtained.
According to an embodiment of the present disclosure, the connection state of the first application instance may be obtained by a server. The first detection information for determining the connection state of the first application instance may be sent to the server, and the connection state of the first application instance is determined according to the first response information returned by the server.
According to the embodiment of the disclosure, when the state of the first instance process is an unstalled state, the state of the first instance process corresponding to the first application instance is changed. And under the condition that the state of the first instance process is the stopped state, determining that the state change of the first instance process corresponding to the first application instance is successful.
According to an embodiment of the present disclosure, in a case where it is determined that the state of the first instance process is successfully changed, the first electronic record related to the first application instance is changed, and the first electronic record related to the first application instance may be deleted, so that the first application instance no longer provides services to the server.
According to embodiments of the present disclosure, the first application instance may also include a plurality of first application instances, such as Websphere Application Server (abbreviated WAS, one) type and International Business Machines HTTP Server (abbreviated IHS) type for shortcut payment, international Business Machines Message Queue (abbreviated IBM MQ) type for providing a consumption channel for transaction type traffic, and Kafka (Kafka) type and ActiveMQ type for message transmission.
According to the embodiment of the disclosure, the state change of the first application instance of the WAS type or the IHS type can confirm whether the first application instance has application connection of the mobile terminal, if no application connection exists, no operation is needed, if the application connection exists, the state of the server is obtained, and if the server is in an unused state, the process of the first instance corresponding to the first application instance is directly stopped. If the server is in a use state, the first instance process cannot be stopped, the first application instance of the WAS type or the IHS type in the server is marked to be still used, fault information is generated according to the first application instance of the WAS type or the IHS type, and the fault information comprises a server name.
According to an embodiment of the present disclosure, the IBM MQ type first application instance may stop a first instance process corresponding to the first application instance, which may include a synchronization channel and a queue manager, in case that it is confirmed that there is no consumption data in the service window period in the queue. Under the condition that consumption data exist in a service window period in a confirmation queue, a first instance process corresponding to a first application instance cannot be stopped, the first application instance of the IBM MQ type in the server is marked to be still used, fault information is generated according to the first application instance of the IBM MQ type, and a queue manager name is included in the fault information.
According to embodiments of the present disclosure, a first application instance of Kafka type or ActiveMQ type, for which there has been no traffic handling system (transaction processing systems, TPS) data consumption within a validation service window period, and no application connection, may stop a first instance process corresponding to the first application instance, the first instance process comprising a middleware cluster of Kafka type or ActiveMQ type. If it is confirmed that TPS data consumption exists in the service window period or middleware cluster connection exists in the upstream and downstream of the service window period, the first instance process cannot be stopped, the first application instance of the server Kafka type or the ActiveMQ type is marked to be still used, fault information is generated according to the first application instance of the Kafka type or the ActiveMQ type, and the fault information comprises application information corresponding to the upstream and downstream of the connection and data quantity in a message (topic).
According to the embodiment of the disclosure, the different first application examples use the corresponding first target state control mode to perform state control, so that the stability of application example change can be improved.
According to an embodiment of the present disclosure, in a case where it is determined that the state control of the first application instance is successful and the application type includes the database type, controlling the state of the second application instance according to a second target state control manner matched with the second application instance includes:
acquiring a database state corresponding to the second application instance under the condition that the state control of the first application instance is successful and the application type comprises the database type is determined;
in the case where the database state characterizes the second application instance as the database host, changing the state of a second instance process corresponding to the second application instance;
modifying configuration information of a database host corresponding to the database standby machine and changing the state of a second instance process corresponding to the second application instance under the condition that the database state characterizes the second application instance as the database standby machine;
in the event that a successful change of state of the second instance process is determined, a second electronic record associated with the second application instance is changed.
According to the embodiment of the disclosure, in the case that the state control of the first application instance is determined to be successful and the application type comprises the database type, second detection information for determining the database state of the second application instance can be sent to the server, and the database state of the second application instance is determined according to second response information returned by the server.
According to the embodiment of the disclosure, since changing the database host does not affect the state of the standby machine, in the case where the database state characterizes the second application instance as the database host, the state of the second instance process corresponding to the second application instance can be directly changed; in the case where the database state characterizes the second application instance as a database backup, configuration information of the database host corresponding to the database backup is modified and a state of a second instance process corresponding to the second application instance is changed.
According to embodiments of the present disclosure, the configuration information of the database host may include address information, connection string information, and the like of the database host.
According to an embodiment of the present disclosure, in a case where it is determined that the state change of the second instance process is successful, the second electronic record related to the second application instance is changed, and the second electronic record related to the second application instance may be deleted, so that the second application instance no longer provides services to the server.
According to the embodiment of the disclosure, the state change is performed on the second application instance of the database type according to the database state, so that the state change of the second application instance does not affect other services in the server, and the failure rate in the state change process of the application instance in the server is reduced.
According to an embodiment of the present disclosure, in a case where it is determined that the state control success application type of the second application instance includes a file system type, controlling the state of the third application instance according to a third target state control manner matched with the third application instance includes:
acquiring a port type corresponding to the third application instance under the condition that the successful application type of the state control of the second application instance comprises a file system type is determined;
processing the client information in the server based on the login information of the client in the server and changing the state of a third instance process corresponding to the third application instance under the condition that the port type is determined to be the client type;
processing all client information in the server and changing the state of a third instance process corresponding to the third application instance under the condition that the port type is determined to be the server;
In the event that a determination is made that the state change of the third instance process was successful, a third electronic record associated with the third application instance is changed.
According to the embodiment of the disclosure, in the case that the state control success application type of the second application instance is determined to include the file system type, third probe information for determining the port type of the third application instance may be sent to the server, and the port type of the third application instance is determined according to third response information returned by the server.
According to an embodiment of the present disclosure, the file system type may be a network file system (Network File System, NFS).
According to embodiments of the present disclosure, the port types of the third application instance may include a client and a server type. The third instance process may be a service process connected to a client or server.
According to the embodiment of the disclosure, the login information of the client in the server may be acquired through the application management platform, and the login information of the client in the server may be address information and name information of the server.
According to the embodiment of the disclosure, in the case that the port type is determined to be the client type, the port type may be connected to the server according to address information and name information of the server, and address information, host name information, and the like of the client on the server may be backed up and deleted. And stopping the third instance process connected to the client.
According to embodiments of the present disclosure, the server information may include a server-mounted file system, a server-mounted file system setting, and address information and hostname information of a client associated with the server.
According to the embodiment of the disclosure, in the case that the port type is determined to be the server, the file system mounted by the server can be released, and the file system setting of the server, the address information and the host name information of the client associated with the server can be backed up and deleted. And stopping the third instance process connected with the server.
According to an embodiment of the present disclosure, in a case where it is determined that the state change of the third instance process is successful, the third electronic record related to the third application instance is changed, and the third electronic record related to the third application instance may be deleted, so that the third application instance no longer provides services to the server.
According to the embodiment of the disclosure, different state control modes are determined for the third application instance with different port types according to the port types of the third application instance, so that the state control of the target application instance can be more refined, and the failure rate in the state change process of the application instance in the server is reduced.
According to an embodiment of the present disclosure, in response to a state control request from an application management platform, obtaining a target application instance to be controlled from the state control request includes:
responding to a state control request from an application management platform, and determining the approval state of a change list in the state control request;
under the condition that the approval state of the change list is confirmed to represent the completion of approval of the change list, acquiring the node state of the application instance in the change list;
and under the condition that the node state of the application instance is determined to be controlled, determining the application instance to be controlled as a target application instance.
According to the embodiment of the disclosure, the change list can be determined by operation on the application management platform or can be automatically generated according to the service life of the application instance.
According to the embodiment of the disclosure, an approval path can be set for the change list, and when the approval state of the change list is determined to represent that the approval of the change list is completed, the information of the application instance in the change list can be automatically acquired, so that the node state of the application instance is determined according to the information of the application instance.
According to the embodiment of the disclosure, in the case that the node state of the application instance is determined to be controlled, that is, the application instance can perform state control, the application instance can be determined as the target application instance. And under the condition that the node state of the application instance is uncontrollable, namely the application instance has a hidden danger of state control, the application instance with hidden danger can be summarized and then subjected to secondary confirmation.
According to the embodiment of the disclosure, the state control condition of the target application instance can be queried in the application management platform.
According to the embodiment of the disclosure, an environment checking function can be included in the application management platform, and pre-checking can be performed before state control by the environment checking function, so that application instances with hidden danger problems are found in advance, and a list of the application instances with hidden danger is exported.
According to embodiments of the present disclosure, the application management platform may control the state of application instances in servers in batches, e.g., 50 servers may be processed at a time. The progress of the process may be displayed in the application management platform, for example, the completion of the process may display a green progress frame, and the abnormality of the process may display a red progress frame.
According to the embodiment of the disclosure, the application management platform is used for managing the application instances in batches, so that the state control efficiency of the application instances can be improved.
Based on the state control method for the application instance, the disclosure also provides a state control device for the application instance. The device will be described in detail below in connection with fig. 4.
Fig. 4 schematically shows a block diagram of a state control apparatus for an application example according to an embodiment of the present disclosure.
As shown in fig. 4, the state control apparatus 400 for an application instance of this embodiment includes an acquisition module 410, a first determination module 420, a second determination module 430, and a control module 440.
The obtaining module 410 is configured to obtain, in response to a state control request from the application management platform, a target application instance to be controlled from the state control request. In an embodiment, the obtaining module 410 may be configured to perform the operation S210 described above, which is not described herein.
A first determining module 420 is configured to determine an application type of the target application instance. In an embodiment, the first determining module 420 may be used to perform the operation S220 described above, which is not described herein.
The second determining module 430 is configured to determine, according to the application type, a target state control manner and a target state change order that match the target application instance in an embodiment, where the second determining module 430 may be configured to perform the operation S230 described above, and is not described herein.
The control module 440 is configured to control the state of the target application instance according to the target state control manner and the target state change order when the monitoring of the target application instance is stopped. In an embodiment, the control module 440 may be configured to perform the operation S240 described above, which is not described herein.
According to an embodiment of the present disclosure, the second determining module 430 for determining a target state control manner and a target state change order matched with a target application instance according to an application type includes:
the first determining unit is used for determining a first target state control mode matched with a first application instance under the condition that the application type comprises a middleware type, wherein the first application instance represents a target application instance of which the application type is the middleware type;
a second determining unit, configured to determine whether the application type includes a database type if it is determined that the state control of the first application instance is successful;
the third determining unit is used for determining a second target state control mode matched with a second application instance under the condition that the application type comprises a database type, wherein the second application instance represents a target application instance of which the application type is the database type;
a fourth determining unit configured to determine whether the application type includes a file system type in a case where it is determined that the state control of the second application instance is successful;
and a fifth determining unit, configured to determine a third target state control manner that matches a third application instance when it is determined that the application type includes a file system type, where the third application instance characterizes the target application instance whose application type is the file system type.
According to an embodiment of the present disclosure, when monitoring of a target application instance is stopped, a control module 440 for controlling a state of the target application instance according to a target state control manner and a target state change order includes:
the first control unit is used for controlling the state of the first application instance according to a first target state control mode matched with the first application instance under the condition that the application type comprises the middleware type;
the second control unit is used for controlling the state of the second application instance according to a second target state control mode matched with the second application instance under the condition that the state control of the first application instance is successful and the application type comprises the database type;
and the third control unit is used for controlling the state of the third application instance according to a third target state control mode matched with the third application instance under the condition that the successful application type of the state control of the second application instance comprises the file system type.
According to an embodiment of the present disclosure, a first control unit for controlling a state of a first application instance according to a first target state control manner matched with the first application instance in a case where it is determined that an application type includes a middleware type includes:
The first control subunit is used for changing the state of a first instance process corresponding to the first application instance according to the connection state of the first application instance under the condition that the application type comprises the middleware type;
and the second control subunit is used for changing the first electronic record related to the first application instance under the condition that the state of the first instance process is successfully changed.
According to an embodiment of the present disclosure, in a case where it is determined that the state control of the first application instance is successful and the application type includes the database type, the second control unit for controlling the state of the second application instance according to the second target state control manner matched with the second application instance includes:
a third control subunit, configured to obtain, when it is determined that the state control of the first application instance is successful and the application type includes a database type, a database state corresponding to the second application instance;
a fourth control subunit, configured to, in a case where the database state characterizes that the second application instance is a database host, change a state of a second instance process corresponding to the second application instance;
a fifth control subunit, configured to modify configuration information of the database host corresponding to the database standby machine and change a state of a second instance process corresponding to the second application instance when the database state characterizes the second application instance as the database standby machine;
And a sixth control subunit, configured to, in a case where it is determined that the state change of the second instance process is successful, change the second electronic record related to the second application instance.
According to an embodiment of the present disclosure, in a case where it is determined that the state control success application type of the second application instance includes a file system type, the second control unit for controlling the state of the third application instance according to a third target state control manner matched with the third application instance includes:
a seventh control subunit, configured to obtain a port type corresponding to the third application instance if it is determined that the state control success application type of the second application instance includes a file system type;
an eighth control subunit, configured to, when it is determined that the port type is a client type, process client information in the server based on login information of the client in the server, and change a state of a third instance process corresponding to the third application instance;
a ninth control subunit, configured to process all client information in the server and change a state of a third instance process corresponding to the third application instance when the port type is determined to be the server;
And a tenth control subunit, configured to, in a case where it is determined that the state change of the third instance process is successful, change the third electronic record related to the third application instance.
According to an embodiment of the present disclosure, the obtaining module 410 for obtaining, in response to a state control request from an application management platform, a target application instance to be controlled from the state control request includes:
the first acquisition unit is used for responding to a state control request from the application management platform and determining the approval state of a change list in the state control request;
the second obtaining unit is used for obtaining the node state of the application instance in the change list under the condition that the approval state of the change list is confirmed to represent the completion of approval of the change list;
and the third acquisition unit is used for determining the application instance to be controlled as a target application instance under the condition that the node state of the application instance is determined to be the application instance to be controlled.
According to an embodiment of the present disclosure, the above-mentioned state control device for an application instance further includes:
the generating module is used for generating fault information based on the target application instance in the case that the state control of the target application instance fails;
and the sending module is used for sending the fault information to the application management platform.
According to an embodiment of the present disclosure, any of the acquisition module 410, the first determination module 420, the second determination module 430, and the control module 440 may be combined in one module to be implemented, or any of the modules may be split into a plurality of modules. Alternatively, at least some of the functionality of one or more of the modules may be combined with at least some of the functionality of other modules and implemented in one module. According to embodiments of the present disclosure, at least one of the acquisition module 410, the first determination module 420, the second determination module 430, and the control module 440 may be implemented at least in part as hardware circuitry, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in hardware or firmware in any other reasonable manner of integrating or packaging the circuitry, or in any one of or a suitable combination of three of software, hardware, and firmware. Alternatively, at least one of the acquisition module 410, the first determination module 420, the second determination module 430, and the control module 440 may be at least partially implemented as computer program modules, which when executed, may perform the respective functions.
Fig. 5 schematically illustrates a block diagram of an electronic device adapted to implement a state control method for an application instance, according to an embodiment of the disclosure.
As shown in fig. 5, an electronic device 500 according to an embodiment of the present disclosure includes a processor 501 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 502 or a program loaded from a storage section 508 into a Random Access Memory (RAM) 503. The processor 501 may include, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or an associated chipset and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), or the like. The processor 501 may also include on-board memory for caching purposes. The processor 501 may comprise a single processing unit or a plurality of processing units for performing different actions of the method flows according to embodiments of the disclosure.
In the RAM 503, various programs and data required for the operation of the electronic apparatus 500 are stored. The processor 501, ROM 502, and RAM 503 are connected to each other by a bus 504. The processor 501 performs various operations of the method flow according to the embodiments of the present disclosure by executing programs in the ROM 502 and/or the RAM 503. Note that the program may be stored in one or more memories other than the ROM 502 and the RAM 503. The processor 501 may also perform various operations of the method flow according to embodiments of the present disclosure by executing programs stored in the one or more memories.
According to an embodiment of the present disclosure, the electronic device 500 may also include an input/output (I/O) interface 505, the input/output (I/O) interface 505 also being connected to the bus 504. The electronic device 500 may also include one or more of the following components connected to an input/output (I/O) interface 505: an input section 506 including a keyboard, a mouse, and the like; an output portion 507 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker, and the like; a storage portion 508 including a hard disk and the like; and a communication section 509 including a network interface card such as a LAN card, a modem, or the like. The communication section 509 performs communication processing via a network such as the internet. The drive 510 is also connected to an input/output (I/O) interface 505 as needed. A removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 510 as needed so that a computer program read therefrom is mounted into the storage section 508 as needed.
The present disclosure also provides a computer-readable storage medium that may be embodied in the apparatus/device/system described in the above embodiments; or may exist alone without being assembled into the apparatus/device/system. The computer-readable storage medium described above carries one or more programs that, when executed, implement the state control method for application instances according to embodiments of the present disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example, but is not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. For example, according to embodiments of the present disclosure, the computer-readable storage medium may include ROM 502 and/or RAM 503 and/or one or more memories other than ROM 502 and RAM 503 described above.
Embodiments of the present disclosure also include a computer program product comprising a computer program containing program code for performing the methods shown in the flowcharts. When the computer program product runs in a computer system, the program code is used for enabling the computer system to realize the state control method for application examples provided by the embodiment of the disclosure.
The above-described functions defined in the system/apparatus of the embodiments of the present disclosure are performed when the computer program is executed by the processor 501. The systems, apparatus, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the disclosure.
In one embodiment, the computer program may be based on a tangible storage medium such as an optical storage device, a magnetic storage device, or the like. In another embodiment, the computer program may also be transmitted, distributed, and downloaded and installed in the form of a signal on a network medium, and/or installed from a removable medium 511 via the communication portion 509. The computer program may include program code that may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion 509, and/or installed from the removable media 511. The above-described functions defined in the system of the embodiments of the present disclosure are performed when the computer program is executed by the processor 501. The systems, devices, apparatus, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the disclosure.
According to embodiments of the present disclosure, program code for performing computer programs provided by embodiments of the present disclosure may be written in any combination of one or more programming languages, and in particular, such computer programs may be implemented in high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. Programming languages include, but are not limited to, such as Java, c++, python, "C" or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that the features recited in the various embodiments of the disclosure and/or in the claims may be provided in a variety of combinations and/or combinations, even if such combinations or combinations are not explicitly recited in the disclosure. In particular, the features recited in the various embodiments of the present disclosure and/or the claims may be variously combined and/or combined without departing from the spirit and teachings of the present disclosure. All such combinations and/or combinations fall within the scope of the present disclosure.
The embodiments of the present disclosure are described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the embodiments cannot be used advantageously in combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be made by those skilled in the art without departing from the scope of the disclosure, and such alternatives and modifications are intended to fall within the scope of the disclosure.
Claims (12)
1. A state control method for an application instance, comprising:
responding to a state control request from an application management platform, and acquiring a target application instance to be controlled from the state control request;
Determining the application type of the target application instance;
determining a target state control mode and a target state change sequence matched with the target application instance according to the application type;
and under the condition that the monitoring of the target application instance is stopped, controlling the state of the target application instance according to the target state control mode and the target state change sequence.
2. The method of claim 1, wherein the determining, according to the application type, a target state control manner and a target state change order that match the target application instance includes:
in the case where it is determined that the application type includes a middleware type, determining a first target state control style that matches the first application instance, wherein,
the first application instance characterizes the target application instance of which the application type is the middleware type;
determining whether the application type comprises a database type in the case that the state control of the first application instance is successful;
determining a second target state control mode matched with a second application instance under the condition that the application type comprises the database type, wherein the second application instance characterizes the application type as the target application instance of the database type;
Determining whether the application type includes a file system type if it is determined that the state control of the second application instance is successful;
and if the application type comprises the file system type, determining a third target state control mode matched with a third application instance, wherein the third application instance characterizes the application type as the target application instance of the file system type.
3. The method according to claim 2, wherein the controlling the state of the target application instance according to the target state control manner and the target state change order in the case of stopping the monitoring of the target application instance includes:
controlling the state of the first application instance according to the first target state control mode matched with the first application instance under the condition that the application type comprises the middleware type;
controlling the state of the second application instance according to the second target state control mode matched with the second application instance under the condition that the state control of the first application instance is successful and the application type comprises the database type;
And under the condition that the application type comprises the file system type after the state control of the second application instance is successful, controlling the state of the third application instance according to the third target state control mode matched with the third application instance.
4. A method according to claim 3, wherein said controlling the state of the first application instance according to the first target state control means matching the first application instance in case it is determined that the application type comprises the middleware type comprises:
changing the state of a first instance process corresponding to the first application instance according to the connection state of the first application instance under the condition that the application type comprises the middleware type;
in the event that a successful change of state of the first instance process is determined, a first electronic record associated with the first application instance is changed.
5. A method according to claim 3, wherein, in the case where it is determined that the state control of the first application instance is successful and the application type includes the database type, controlling the state of the second application instance according to the second target state control manner matched with the second application instance includes:
Acquiring a database state corresponding to the second application instance under the condition that the state control of the first application instance is successful and the application type comprises the database type is determined;
changing the state of a second instance process corresponding to the second application instance if the database state characterizes the second application instance as a database host;
modifying configuration information of a database host corresponding to a database standby machine and changing the state of the second instance process corresponding to the second application instance under the condition that the database state characterizes the second application instance as the database standby machine;
and in the case that the state of the second instance process is successfully changed, changing a second electronic record related to the second application instance.
6. A method according to claim 3, wherein, in the case where it is determined that the application type includes the file system type successfully controlled by the state of the second application instance, controlling the state of the third application instance according to the third target state control manner matched with the third application instance includes:
Acquiring a port type corresponding to the third application instance under the condition that the application type comprises the file system type after the state control of the second application instance is successful;
processing the client information in the server based on the login information of the client in the server under the condition that the port type is determined to be the client type, and changing the state of a third instance process corresponding to the third application instance;
processing all client information in a server and changing the state of the third instance process corresponding to the third application instance under the condition that the port type is determined to be the server;
and in the case that the state of the third instance process is successfully changed, changing a third electronic record related to the third application instance.
7. The method according to any one of claims 1 to 6, wherein the obtaining, in response to a state control request from an application management platform, a target application instance to be controlled from the state control request includes:
responding to a state control request from an application management platform, and determining the approval state of a change list in the state control request;
Acquiring the node state of an application instance in the change list under the condition that the approval state of the change list is confirmed to represent the completion of the approval of the change list;
and under the condition that the node state of the application instance is determined to be controlled, determining the application instance to be controlled as the target application instance.
8. The method of any one of claims 1 to 6, further comprising:
generating fault information based on the target application instance under the condition that the state control of the target application instance fails;
and sending the fault information to the application management platform.
9. A state control device for an application instance, comprising:
the acquisition module is used for responding to a state control request from the application management platform and acquiring a target application instance to be controlled from the state control request;
the first determining module is used for determining the application type of the target application instance;
the second determining module is used for determining a target state control mode and a target state change sequence matched with the target application instance according to the application type;
and the control module is used for controlling the state of the target application instance according to the target state control mode and the target state change sequence under the condition that the monitoring of the target application instance is stopped.
10. An electronic device, comprising:
one or more processors;
a memory for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of any of claims 1-8.
11. A computer readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to perform the method according to any of claims 1-8.
12. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310396343.3A CN116302561A (en) | 2023-04-14 | 2023-04-14 | State control method, device, equipment and storage medium for application instance |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310396343.3A CN116302561A (en) | 2023-04-14 | 2023-04-14 | State control method, device, equipment and storage medium for application instance |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116302561A true CN116302561A (en) | 2023-06-23 |
Family
ID=86790567
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310396343.3A Pending CN116302561A (en) | 2023-04-14 | 2023-04-14 | State control method, device, equipment and storage medium for application instance |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116302561A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117271152A (en) * | 2023-09-04 | 2023-12-22 | 中电金信软件有限公司 | Registration and query method for application instance information |
-
2023
- 2023-04-14 CN CN202310396343.3A patent/CN116302561A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117271152A (en) * | 2023-09-04 | 2023-12-22 | 中电金信软件有限公司 | Registration and query method for application instance information |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113900834B (en) | Data processing method, device, equipment and storage medium based on Internet of things technology | |
CN112463729A (en) | Data file storage method and device, electronic equipment and medium | |
CN116302561A (en) | State control method, device, equipment and storage medium for application instance | |
CN113132400B (en) | Business processing method, device, computer system and storage medium | |
CN113191889A (en) | Wind control configuration method, configuration system, electronic device and readable storage medium | |
CN116700779A (en) | Code dynamic adjustment method, device, equipment, medium and program product | |
CN115801764A (en) | File transmission method, device, equipment and storage medium | |
CN113064987B (en) | Data processing method, apparatus, electronic device, medium, and program product | |
CN115190008A (en) | Fault processing method, fault processing device, electronic device and storage medium | |
CN115080434A (en) | Case execution method, device, equipment and medium | |
CN114418702A (en) | Method and device for confirming order state to be paid based on time window | |
CN116503005A (en) | Method, device, system and storage medium for dynamically modifying flow | |
CN113781154A (en) | Information rollback method, system, electronic equipment and storage medium | |
CN114640585B (en) | Resource updating method and device, electronic equipment and storage medium | |
CN117176576A (en) | Network resource changing method, device, equipment and storage medium | |
CN116975200A (en) | Method, device, equipment and medium for controlling working state of server | |
CN118445775A (en) | Task processing method, device, equipment, medium and program product | |
CN116506316A (en) | Method and device for monitoring session data of application server | |
CN117389689A (en) | Container operation and maintenance method, device, equipment, medium and program product | |
CN116483566A (en) | Resource processing method and device for server, electronic equipment and storage medium | |
CN115729567A (en) | Automatic deployment method and device of operation and maintenance product, electronic equipment and storage medium | |
CN114938341A (en) | Environment detection method and device, electronic equipment and storage medium | |
CN117349565A (en) | Page rendering method, device, equipment and medium | |
CN115082216A (en) | Interactive method, device, electronic equipment and medium between systems | |
CN114741103A (en) | Service processing method, device, equipment, medium and program product |
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 |