CN115344327A - Application module switching method and device, electronic equipment and readable storage medium - Google Patents

Application module switching method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN115344327A
CN115344327A CN202211001493.1A CN202211001493A CN115344327A CN 115344327 A CN115344327 A CN 115344327A CN 202211001493 A CN202211001493 A CN 202211001493A CN 115344327 A CN115344327 A CN 115344327A
Authority
CN
China
Prior art keywords
switched
application
item
module
environment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202211001493.1A
Other languages
Chinese (zh)
Other versions
CN115344327B (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.)
Zhongdian Jinxin Software Co Ltd
Original Assignee
Zhongdian Jinxin Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhongdian Jinxin Software Co Ltd filed Critical Zhongdian Jinxin Software Co Ltd
Priority to CN202211001493.1A priority Critical patent/CN115344327B/en
Publication of CN115344327A publication Critical patent/CN115344327A/en
Application granted granted Critical
Publication of CN115344327B publication Critical patent/CN115344327B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1438Restarting or rejuvenating
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Stored Programmes (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The application provides a switching method and device of an application module, electronic equipment and a readable storage medium, and a configuration parameter list related to switching of the application module to be switched to a target cluster environment is obtained; responding to the cluster switching operation, loading the environmental configuration parameters of each application item to be switched in the configuration parameter list to a registration center until the loading of each environmental configuration parameter is completed, and obtaining a loaded application module to be switched; and carrying out a communication test on the loaded application module to be switched, and restarting an application example corresponding to the application item to be switched by issuing environment configuration parameters of each application item to be switched after the loaded application module to be switched passes the communication test. Therefore, the cluster environment in which the application module operates can be switched in time, and the switching efficiency of the application module to be switched among different cluster environments can be improved.

Description

Application module switching method and device, electronic equipment and readable storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for switching application modules, an electronic device, and a readable storage medium.
Background
With the continuous development of the distributed system, the configuration center is widely applied to the distributed system, and the configuration center can be used for uniformly setting and managing various application services related to the distributed system, for example, uniformly setting and managing the aspects of opening and closing of the application services, middleware called by the application services, application parameters related to the application services, instance parameters, and related parameters of servers corresponding to the application services.
Under a common condition, a distributed system is under a multi-cluster architecture, if an operation fault exists in an application module to be switched in a certain cluster environment, service personnel are required to manually modify configuration parameters related to the configuration of the application module to be switched, so that the application module to be switched can be switched to other cluster environments to continue to provide services; however, the manual adjustment process takes a long time, which also results in a long recovery time for the application module to be switched to resume providing services.
Disclosure of Invention
In view of this, an object of the present application is to provide an application module switching method, an application module switching apparatus, an electronic device, and a readable storage medium, which can automatically obtain a configuration parameter list required for switching an application module to be switched to a target cluster environment for operation when an operation fault of the application module to be switched exists in a current cluster environment, and do not need a service worker to manually perform parameter configuration, so that the application module to be switched can be quickly switched to the target cluster environment for operation, continuity of service provided by the application module is ensured, and switching efficiency can be improved.
The embodiment of the application provides a switching method of an application module, which comprises the following steps:
when an operation fault exists in an application module to be switched in a current cluster environment, acquiring a configuration parameter list related to the switching of the application module to be switched to a target cluster environment; wherein, the application module to be switched comprises at least one application item to be switched; the configuration parameter list comprises environment configuration parameters of the target cluster environment and application instances corresponding to each application item to be switched;
responding to the cluster switching operation, loading the environment configuration parameters of each to-be-switched application item in the configuration parameter list to a registration center until the environment configuration parameters of each to-be-switched application item are completely loaded, and obtaining a to-be-switched application module which is completely loaded;
performing connectivity test on the loaded application module to be switched, and determining a test result of the loaded application module to be switched;
and if the test result indicates that the loaded application module to be switched passes the connectivity test, restarting the application instance corresponding to the application item to be switched by issuing the environment configuration parameters of the application item to be switched aiming at each application item to be switched.
In a possible implementation manner, the obtaining a configuration parameter list related to switching the application module to be switched to a target cluster environment includes:
determining a target cluster environment from a plurality of candidate cluster environments in response to a cluster scene selection operation;
responding to a switching item selection operation, and determining at least one to-be-switched application item from a plurality of candidate application items included in the to-be-switched application module;
for each application item to be switched, determining an environmental configuration parameter related to the application item to be switched to a target cluster environment and an application instance corresponding to the application item to be switched according to the current configuration parameter of the application item to be switched in the current cluster environment;
and generating a configuration parameter list of the application module to be switched based on the environment configuration parameters of each application item to be switched and the application instance corresponding to each application item to be switched.
In a possible implementation manner, the loading, in response to the cluster switching operation, the environment configuration parameters of each to-be-switched application item in the configuration parameter list to a registration center until the environment configuration parameters of each to-be-switched application item are completely loaded, so as to obtain the to-be-switched application module that is completely loaded, includes:
responding to the cluster switching operation, and determining the application category of each application item to be switched aiming at the application item to be switched;
if the application type indicates that the application item to be switched is an interactive item, carrying out detection on the application item to be switched, and determining a detection result;
if the detection result indicates that the application item to be switched passes the detection, loading the environmental configuration parameters of the application item to be switched to a registration center;
and circularly loading the environmental configuration parameters of each application item to be switched until the environmental configuration parameters of each application item to be switched are loaded to the registration center, so as to obtain the application module to be switched after loading.
In a possible implementation manner, if the application type indicates that the application item to be switched is an interactive item, performing activity detection on the application item to be switched, and determining a result of the activity detection includes:
if the application type indicates that the application item to be switched is an interactive item, determining whether to perform activity detection on the application item to be switched according to the application attribute information of the application item to be switched;
if so, carrying out biopsy detection on the application item to be switched, and determining a biopsy detection result;
if not, directly loading the environment configuration parameters of the application item to be switched to the registration center.
In a possible implementation, the handover method further includes:
and if the detection result indicates that the application item to be switched does not pass the detection result, determining that the switching of the application module to be switched fails.
In a possible implementation, the handover method further includes:
if the application type indicates that the application item to be switched is a non-interactive item, directly restarting an application instance corresponding to the application item to be switched;
if the application instance corresponding to the application item to be switched fails to restart, determining that the application module to be switched fails to be switched;
and if not, continuously and circularly loading the environment configuration parameters of other application items to be switched in the configuration parameter list to the registration center.
In a possible implementation manner, after the loaded application module to be switched passes the connectivity test, the switching method further includes:
storing the configuration parameter list to a database and determining whether the configuration parameter list is stored to the database;
if so, determining that the application module to be switched is successfully switched;
if not, the configuration parameter list is repeatedly stored until the configuration parameter list is stored in the database.
An embodiment of the present application further provides a switching device for an application module, where the switching device includes:
the device comprises a parameter acquisition module, a parameter switching module and a switching module, wherein the parameter acquisition module is used for acquiring a configuration parameter list related to the switching of an application module to be switched to a target cluster environment when the application module to be switched has an operation fault in the current cluster environment; wherein, the application module to be switched comprises at least one application item to be switched; the configuration parameter list comprises environment configuration parameters of the target cluster environment and application instances corresponding to each application item to be switched;
the parameter loading module is used for responding to the cluster switching operation, loading the environment configuration parameters of each to-be-switched application item in the configuration parameter list to a registration center until the environment configuration parameters of each to-be-switched application item are loaded completely, and obtaining the loaded to-be-switched application module;
the communication testing module is used for carrying out communication testing on the loaded to-be-switched application module and determining a testing result of the loaded to-be-switched application module;
and the instance restarting module is used for restarting the application instance corresponding to the application item to be switched by issuing the environment configuration parameters of the application item to be switched aiming at each application item to be switched if the test result indicates that the loaded application module to be switched passes the communication test.
In a possible implementation manner, when the parameter obtaining module is configured to obtain a configuration parameter list involved in switching the application module to be switched to a target cluster environment, the parameter obtaining module is configured to:
determining a target cluster environment from a plurality of candidate cluster environments in response to a cluster scene selection operation;
responding to a switching item selection operation, and determining at least one to-be-switched application item from a plurality of candidate application items included in the to-be-switched application module;
for each application item to be switched, determining an environmental configuration parameter related to the application item to be switched to a target cluster environment and an application instance corresponding to the application item to be switched according to the current configuration parameter of the application item to be switched in the current cluster environment;
and generating a configuration parameter list of the application module to be switched based on the environment configuration parameters of each application item to be switched and the application instance corresponding to each application item to be switched.
In a possible implementation manner, the parameter loading module is configured to, in response to a cluster switching operation, load an environment configuration parameter of each to-be-switched application item in the configuration parameter list to a registration center until the environment configuration parameter of each to-be-switched application item is completely loaded, and when the to-be-switched application module that is completely loaded is obtained, the parameter loading module is configured to:
responding to the cluster switching operation, and determining the application category of each application item to be switched aiming at the application item to be switched;
if the application type indicates that the application item to be switched is an interactive item, carrying out biopsy detection on the application item to be switched, and determining a biopsy detection result;
if the probing and detecting result indicates that the application item to be switched passes the probing and detecting, loading the environmental configuration parameters of the application item to be switched to a registration center;
and circularly loading the environmental configuration parameters of each application item to be switched until the environmental configuration parameters of each application item to be switched are loaded to the registration center, so as to obtain the application module to be switched after loading.
In a possible implementation manner, the parameter loading module is configured to, if the application type indicates that the application item to be switched is an interactive item, perform activity detection on the application item to be switched, and when a detection result is determined, the parameter loading module is configured to:
if the application type indicates that the application item to be switched is an interactive item, determining whether to perform activity detection on the application item to be switched according to the application attribute information of the application item to be switched;
if so, carrying out biopsy detection on the application item to be switched, and determining a biopsy detection result;
if not, directly loading the environment configuration parameters of the application item to be switched to the registration center.
In a possible implementation, the switching apparatus further includes a failure result determining module, configured to:
and if the probing and biopsy result indicates that the application item to be switched does not pass the probing and biopsy detection, determining that the switching of the application module to be switched fails.
In a possible implementation manner, the switching device further includes a forced start-stop module, and the forced start-stop module is configured to:
if the application type indicates that the application item to be switched is a non-interactive item, directly restarting an application instance corresponding to the application item to be switched;
if the application instance corresponding to the application item to be switched fails to restart, determining that the application module to be switched fails to be switched;
and if not, continuously and circularly loading the environment configuration parameters of other application items to be switched in the configuration parameter list to the registration center.
In a possible implementation, the switching device further includes a parameter storage module, and the parameter storage module is configured to:
storing the configuration parameter list to a database and determining whether the configuration parameter list is stored to the database;
if so, determining that the application module to be switched is successfully switched;
if not, the configuration parameter list is repeatedly stored until the configuration parameter list is stored in the database.
An embodiment of the present application further provides an electronic device, including: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating via the bus when the electronic device is running, the machine-readable instructions when executed by the processor performing the steps of the switching method of the application module as described above.
An embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method for switching an application module as described above are performed.
According to the switching method and device of the application modules, the electronic device and the readable storage medium, when the application module to be switched has an operation fault in the current cluster environment, a configuration parameter list related to the switching of the application module to be switched to the target cluster environment is obtained; responding to the cluster switching operation, loading the environment configuration parameters of each to-be-switched application item in the configuration parameter list to a registration center until the environment configuration parameters of each to-be-switched application item are completely loaded, and obtaining a to-be-switched application module which is completely loaded; performing connectivity test on the loaded application module to be switched, and determining a test result of the loaded application module to be switched; and if the test result indicates that the loaded application module to be switched passes the connectivity test, restarting the application instance corresponding to the application item to be switched by issuing the environment configuration parameters of the application item to be switched aiming at each application item to be switched. Therefore, when the application module to be switched has operation failure, the application module to be switched can be switched to the target cluster environment to operate in time, so that the application module to be switched can provide service uninterruptedly, and the switching efficiency of the application module to be switched in each cluster environment can be improved.
In order to make the aforementioned objects, features and advantages of the present application comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a flowchart of a method for switching an application module according to an embodiment of the present disclosure;
fig. 2 is a schematic diagram illustrating a configuration process of a configuration parameter list according to an embodiment of the present disclosure;
fig. 3 is a schematic diagram illustrating a switching process of an application module to be switched according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a switching device of an application module according to an embodiment of the present disclosure;
fig. 5 is a second schematic structural diagram of a switching device of an application module according to a second embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. Every other embodiment that can be obtained by a person skilled in the art without making creative efforts based on the embodiments of the present application falls within the protection scope of the present application.
Research shows that under the normal condition, a distributed system is in a multi-cluster architecture, if an operation fault exists in an application module to be switched in a certain cluster environment, business personnel are required to manually modify configuration parameters related to the configuration of the application module to be switched, so that the application module to be switched can be switched to other cluster environments to continue to provide services; however, the manual adjustment process takes a long time, which also results in a long recovery time for the application module to be switched to resume providing services.
Therefore, the embodiment of the application module switching method provided by the application module switching method can timely switch the application module to be switched to the target cluster environment to operate when the application module to be switched has an operation fault, so as to ensure that the application module to be switched can provide services uninterruptedly, and improve the switching efficiency of the application module to be switched in each cluster environment.
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for switching an application module according to an embodiment of the present disclosure. As shown in fig. 1, a method for switching an application module provided in an embodiment of the present application includes:
s101, when an operation fault exists in an application module to be switched in a current cluster environment, a configuration parameter list related to the switching of the application module to be switched to a target cluster environment is obtained.
And S102, responding to the cluster switching operation, loading the environment configuration parameters of each to-be-switched application item in the configuration parameter list to a registration center until the environment configuration parameters of each to-be-switched application item are loaded completely, and obtaining the to-be-switched application module which is loaded completely.
S103, performing connectivity test on the loaded to-be-switched application module, and determining a test result of the loaded to-be-switched application module.
S104, if the test result indicates that the loaded application module to be switched passes the connectivity test, for each application item to be switched, restarting the application instance corresponding to the application item to be switched by issuing the environment configuration parameters of the application item to be switched.
In the switching method of the application module provided in the embodiment of the present application, when an operation failure occurs in an application module to be switched in a current trunking environment, a configuration parameter list required for switching the application module to be switched to a target trunking environment is obtained, where for an application module to be switched, an operation failure may exist in only part of application items, at this time, only the application item to be switched that has the failure needs to be switched, and an original operation manner is maintained for the application item that does not have the operation failure, so that the configuration parameter list includes at least one environment configuration parameter required for switching the application item to be switched to the target trunking environment and an application instance corresponding to each application to be switched; responding to the cluster switching operation, loading the environment configuration parameters of each to-be-switched application item in the configuration parameter list to a registration center until the environment configuration parameters of each to-be-switched application item are loaded to the configuration center, and obtaining a loaded to-be-switched application module; in order to avoid errors in the loading process and prevent the loaded application module to be switched from normally running, after the loaded application module to be switched is obtained, the loaded application module to be switched is subjected to a connectivity test, and after the loaded application module to be switched passes the connectivity test, the application instance of each application item to be switched is restarted by issuing the environment configuration parameters of each application item to be switched, so that the switching of the cluster environment in which the application module to be switched runs is completed. Therefore, when the application module has operation failure, the continuity of service provided by the application module is ensured by switching the mode of the application module operating cluster environment in time, and the switching efficiency of the application module to be switched among different cluster environments can be improved.
The application module to be switched provides corresponding services through the cluster, and if the cluster operated by the application module to be switched has problems, the application module to be switched can be interrupted to provide the services; the application module to be switched searches for corresponding running cluster environments by loading configuration parameters, and the different cluster environments are different from the configuration parameters related to the application module to be switched; therefore, the cluster environment in which the application module to be switched runs can be switched by modifying the configuration parameters.
In step S101, when an operation failure occurs in the application module to be switched in the current clustering environment, a configuration parameter list related to switching the application module to be switched from the current clustering environment to the target clustering environment is obtained.
For the application module to be switched, the application module comprises a plurality of application items, different application items can provide different application services for business personnel, taking a bank system as an example, the application items comprise a money withdrawing application item and a money depositing application item, the business personnel transacts money withdrawing business through the money withdrawing application item and transacts money depositing business through the money depositing application item;
when the to-be-switched application module has an operation fault, only one or a few of the application items may have the operation fault (for example, only the withdrawal application item has the operation fault), and at this time, only the cluster environment of the to-be-switched application item having the fault needs to be switched (for example, only the cluster environment of the withdrawal application item is switched); therefore, in order to avoid parameter acquisition pressure caused by acquiring the environment configuration parameters of the application items which do not need to switch the cluster environment, when the configuration parameter list is acquired, only the environment configuration parameters required by switching the application items to be switched of the cluster environment to the target cluster environment are acquired; meanwhile, the application instance corresponding to the application to be switched needs to be explicitly called, so that the application to be switched is restarted by restarting the application instance in the later process.
Namely, the application module to be switched comprises at least one application item to be switched; the configuration parameter list comprises the environment configuration parameters of the target cluster environment and the application instances corresponding to the application items to be switched.
The environment configuration parameters include at least one data source configuration parameter of an application item to be switched in the application module to be switched, instance parameters of an application instance corresponding to each application item to be switched (i.e., instance parameters of an application instance to be restarted), and cluster parameters of the target cluster environment.
Here, the service personnel can choose to set the configuration parameter list according to the actual situation, and further, the modification of each environmental configuration parameter in the configuration parameter list in the subsequent process is avoided.
In an embodiment, please refer to fig. 2, wherein fig. 2 is a schematic diagram illustrating a configuration process of a configuration parameter list according to an embodiment of the present disclosure. As shown in fig. 2, the obtaining a configuration parameter list related to the switching of the application module to be switched to the target cluster environment includes: step S201, responding to the cluster scene selection operation, and determining a target cluster environment from a plurality of candidate cluster environments.
Here, a plurality of available cluster scenes are pre-configured, and when the application module to be switched has an operation fault in the current cluster environment, a service person can select a target cluster environment suitable for switching for the application module to be switched by referring to the occupation conditions of different cluster environments, so that the application module to be switched can better provide corresponding services.
In the step, in response to a cluster scene selection operation of a service worker, a target cluster environment to which the application module to be switched is determined from a plurality of candidate cluster environments to which the application module to be switched can be switched.
In the scheme provided by the application, a target cluster environment is determined from a plurality of candidate cluster environments in response to a cluster scene selection operation, specifically, when a user presses a cluster selection control, a cluster selection instruction can be issued to determine the target cluster environment to which the application module to be switched is to be switched; the user can send a cluster selection instruction through the cluster selection control and/or a preset combination key; specifically, the player can select the control by touching the cluster through a finger, a mouse and the like; or through preset combination keys in the keyboard, for example, the keys such as ctrl key, alt key, a key, etc. in the keyboard, the preset keys may be manually set according to the user's requirements.
Here, since only part of the application items in the application module to be switched may have operation faults, business personnel may further select the application item to be switched having operation faults through corresponding operations.
Step S202, responding to the switching item selection operation, and determining at least one item of application items to be switched from a plurality of candidate application items included by the application module to be switched.
In this step, in response to a switching item selection operation of a service person, at least one to-be-switched application item to be switched to a target cluster environment is determined from a plurality of candidate application items included in the to-be-switched application module, that is, at least one to-be-switched application item with an operation fault in the to-be-switched application module is selected.
In the scheme provided by the application, in response to a switching item selection operation, at least one to-be-switched application item is determined from a plurality of candidate application items included in an application module to be switched, specifically, when a user presses a switching item selection control, a switching item selection instruction can be given, and at least one to-be-switched application item in a target cluster environment to be switched is determined; the user can send a switching item selection instruction through the switching item selection control and/or the preset combined key; specifically, the player can select the control by touching the switch item with a finger, a mouse, or the like; or through preset combination keys in the keyboard, for example, the keys of ctrl key, alt key, a key, etc. in the keyboard, the preset keys may be manually set according to the user's requirements.
Step S203, aiming at each application item to be switched, determining the environmental configuration parameters related to the application item to be switched to the target cluster environment and the application instance corresponding to the application item to be switched according to the current configuration parameters of the application item to be switched in the current cluster environment.
Here, the environment configuration parameters related to each application to be switched in the target cluster environment may be configured manually by service personnel, but the time for the service personnel to configure the parameters manually is long, and in this case, a switching delay phenomenon still occurs; therefore, in order to further reduce the number of parameter configurations of service personnel and improve the switching efficiency, the environmental configuration parameters related to switching the application item to be switched to the target cluster environment can be determined according to the current configuration parameters of the application item to be switched in the current cluster environment.
In this step, for each application item to be switched, the current configuration parameters of the application item to be switched in the current cluster environment are obtained, specifically, the current configuration parameters of the application item to be switched can be modified according to the cluster attribute information of the target cluster environment, so that the application item to be switched can use the environment configuration parameters obtained after modification to provide services using the target cluster environment; and simultaneously, determining the application example corresponding to the application item to be switched.
The cluster attribute information includes information such as a cluster name and a cluster identifier of the target cluster environment.
Exemplarily, the current configuration parameter includes a first cluster identifier of a current cluster environment used by the application to be switched, and if the application to be switched is to be switched to the target cluster environment, the first cluster identifier in the current configuration parameter needs to be modified into a second cluster identifier of the target cluster environment, so as to obtain an environment configuration parameter required for switching the application to be switched to the target cluster environment.
It should be noted that, in the embodiment of the present application, a "cluster identifier" is taken as an example for description, in an actual situation, a parameter to be modified is not only the "cluster identifier", but also other parameters (for example, a cluster name) need to be modified in combination with the actual situation, which may be determined according to the actual situation, and is not limited herein.
Step S204, generating a configuration parameter list of the application module to be switched based on the environment configuration parameters of each application item to be switched and the application instance corresponding to each application item to be switched.
In the step, the environment configuration parameters of each application item to be switched and the application instance corresponding to each application item to be switched are arranged into a list form, and a configuration parameter list of an application module to be switched is generated.
Here, in the process of normal operation of the application module to be switched, the situation of blocking service provision occurs due to the influence of problems such as network quality and the like, and the operation fault of the application module to be switched does not actually occur at this time, so that the application module to be switched does not need to switch the cluster environment at this time; therefore, it is unreasonable to switch the cluster environment of the application to be switched under the current situation, and in order to avoid the unreasonable switching situation, other cluster switching operations need to be referred to when the cluster environment is switched.
In step S102, in response to the cluster switching operation applied by the service staff, the environmental configuration parameters of each to-be-switched application item in the configuration parameter list in the target cluster environment are cyclically loaded into the registration center until the environmental configuration parameters of each to-be-switched application item are loaded into the registration center, and it is determined that the to-be-switched application module is completely loaded, so as to obtain the loaded to-be-switched application module. Here, for some non-interactive applications to be switched, when running faults exist, the running fault problem does not need to be solved by switching the cluster environment, and the running of the non-interactive applications to be switched can be recovered only by a forced start-stop mode; the to-be-switched application item of the non-interactive type means that a service person does not need to interact with the to-be-switched application item in the using process, and the to-be-switched application item does not feed back information to the service person in the using process of the application function of the service person, such as log monitoring application and the like;
however, for some interactive applications to be switched, when there is an operation failure, some interactive functions (for example, a withdrawal function) may be executed in response to a service request of a service worker, and if the interactive applications to be switched are forcibly started and stopped at this time, the interactive functions may be interrupted and an abnormality occurs, so that the operation failure problem cannot be directly solved for the interactive applications to be switched in a manner of forced start and stop.
Therefore, when the environment configuration parameters of the application items to be switched are loaded in a circulating manner, the application types of the application items to be switched need to be judged.
In one embodiment, step S102 includes: responding to the cluster switching operation, and determining the application category of each application item to be switched; if the application type indicates that the application item to be switched is an interactive item, carrying out detection on the application item to be switched, and determining a detection result; if the probing and detecting result indicates that the application item to be switched passes the probing and detecting, loading the environmental configuration parameters of the application item to be switched to a registration center; and circularly loading the environment configuration parameters of each application item to be switched until the environment configuration parameters of each application item to be switched are loaded to the registration center, so as to obtain the application module to be switched which is loaded.
In the step, in response to the cluster switching operation, determining the application category of each to-be-switched application item of the cluster environment to be switched; wherein the application category includes any one of interactive items and non-interactive items.
And when the application category indicates that the application item to be switched is the interactive item, determining that the application item to be switched needs to be subjected to activity detection, and determining a detection and biopsy detection result of the application item to be switched.
If the detection biopsy result of the application item to be switched indicates that the application item to be switched passes detection, loading the environmental configuration parameters of the application item to be switched to a registration center; and after loading the environmental configuration parameters of the application items to be switched is finished, circularly loading the environmental configuration parameters of other application items to be switched in at least one application item to be switched until the environmental configuration parameters of each application item to be switched in at least one application item to be switched are loaded to a registration center, and determining that the configuration parameter list of the application module to be switched is completely loaded to obtain the loaded application module to be switched.
In an embodiment, if the application type indicates that the application item to be switched is an interactive item, performing activity detection on the application item to be switched, and determining a detection result includes: if the application type indicates that the application item to be switched is an interactive item, determining whether to perform activity detection on the application item to be switched according to the application attribute information of the application item to be switched; if so, carrying out biopsy detection on the application item to be switched, and determining a biopsy detection result; if not, directly loading the environment configuration parameters of the application item to be switched to the registration center.
In this step, if it is determined that the application to be switched is an interactive item, further determining whether activity detection needs to be performed on the application to be switched according to the application attribute information of the application to be switched; if the application item to be switched needs to be subjected to activity detection, performing activity detection on the application item to be switched, and determining a detection and biopsy result of the application item to be switched; and in the subsequent process, determining whether to load the environmental configuration parameters of the application item to be switched to the registration center according to the detection result of the application item to be switched.
And if the detection of the activity of the application item to be switched is determined not to be needed, directly loading the environmental configuration parameters of the application item to be switched to a registration center.
The application attribute information includes an application name, an application identifier, and a switch tag indicating whether the to-be-switched application item needs to be subjected to activity detection.
Here, whether the application to be switched needs to be detected and detected actually is a long-term use situation of the application instance corresponding to the application to be switched in terms of time to perform actual configuration.
In one embodiment, the handover method further includes: and if the detection result indicates that the application item to be switched does not pass the detection result, determining that the switching of the application module to be switched fails.
In this step, if the biopsy detection result indicates that the application to be switched passes the biopsy detection after the biopsy detection, it indicates that the application to be switched temporarily cannot switch the cluster environment, and it is determined that the application to be switched fails to switch.
In one embodiment, the handover method further includes: if the application type indicates that the application item to be switched is a non-interactive item, directly restarting an application instance corresponding to the application item to be switched; if the application instance corresponding to the application item to be switched fails to restart, determining that the application module to be switched fails to be switched; otherwise, determining that the application module to be switched is successfully switched.
In this step, if the application to be switched is a non-interactive item, it indicates that the problem of operation failure of the application to be switched can be solved by means of forced start-stop, and the cluster environment of the application to be switched does not need to be switched; at this time, only the application instance corresponding to the application item to be switched needs to be restarted directly, that is, the application item to be switched is restarted in a manner of restarting the application instance corresponding to the application item to be switched, so as to recover the operation of the application item to be switched.
If the application example of the application item to be switched fails to restart, the switching failure of the application module to be switched is indicated; and if not, continuously and circularly loading the environmental configuration parameters of other application items to be switched in the configuration parameter list to a registration center until the environmental configuration parameters of each application item to be switched are loaded completely, and obtaining the application module to be switched which is loaded completely.
In the process of loading the environmental configuration parameters of each application item to be switched of the application module to be switched, a loading error may occur, and in this case, the application module to be switched which is loaded and obtained by cyclic loading cannot be used normally, so that after the application module to be switched is loaded, the loaded application module to be switched needs to be subjected to a communication test.
In step S103, a connectivity test is performed on the to-be-switched application module that is obtained after the cyclic loading is completed, and it is determined through the connectivity test that the to-be-switched application module that is loaded this time can be used in a subsequent use process, so as to obtain a test result of the connectivity test this time.
In step S104, if the test result of the to-be-switched application module indicates that the loaded to-be-switched application module passes the connectivity test, at this time, the application instance corresponding to the to-be-switched application item may be restarted by issuing the environment configuration parameter of the to-be-switched application item for each to-be-switched application item, so as to complete the switching of the to-be-switched application module from the current cluster environment to the target cluster environment.
Here, after the loaded application module to be switched passes the connectivity test, it is described that the environmental configuration parameters in the configuration parameter list of the application module to be switched generated this time can successfully implement the switching of the application module to be switched in the trunking environment, and when the application module to be switched is called next time, the calling of each application item to be switched is implemented again through the environmental configuration parameters of each application item to be switched in the configuration parameter list obtained this time; therefore, in fact, the environment configuration parameters in the configuration parameter list acquired this time can be used continuously in the subsequent use process, so the configuration parameter list acquired this time can be selected to be stored in the database.
In one embodiment, after the loaded application module to be switched passes the connectivity test, the switching method further includes: storing the configuration parameter list to a database and determining whether the configuration parameter list is stored to the database; if so, determining that the application module to be switched is successfully switched; if not, the configuration parameter list is repeatedly stored until the configuration parameter list is stored in the database.
In the step, after the loaded application module to be switched passes the connectivity test, storing a configuration parameter list into a database of a configuration center, and determining whether the configuration parameter list is stored into the database; if so, determining that the application module to be switched is successfully switched; if not, repeatedly storing the configuration parameter list in the database until the configuration list is successfully stored in the database; or, if the configuration parameter list cannot be successfully stored in the database, the storage result of the configuration parameter list can be temporarily recorded, and the switching success of the application module to be switched is preferentially determined; and searching for a proper time and storing the configuration parameter list into the database again.
Referring to fig. 3, fig. 3 is a schematic diagram illustrating a switching process of an application module to be switched according to an embodiment of the present application. As shown in fig. 3, step 301: business personnel can select a target cluster environment to be switched of the application module to be switched through cluster scene selection operation; step 302: business personnel can select an application item to be switched from the application items included in the application module to be switched to a target cluster environment through switching item selection operation; step 303: acquiring a configuration parameter list of an application module to be switched; step 304: responding to the cluster switching operation, and starting to circularly load the environment configuration parameters of each item of application to be switched in the configuration parameter list; step 305: in the cyclic loading process, aiming at the environmental configuration parameters of each item of the application item to be switched loaded each time, judging whether the application item to be switched is an interactive item, if so, executing step 306; if not, go to step 310; step 306: judging whether the application to be switched needs activity detection, if so, executing step 307; if not, go to step 309; step 307: detecting the activity of the application item to be switched; step 308: determining whether the probing of the application to be switched is successful, if so, performing step 309; if not, go to step 320; step 309: loading environment configuration parameters to a registration center; step 310: judging whether the loading is successful, if so, executing step 313; if not, go to step 320; step 311: forcibly starting and stopping the application items to be switched; step 312: judging whether the start-stop is successful, if so, executing a step 313; if not, go to step 320; step 313: judging whether the environmental configuration parameters of each item of application items to be switched in the configuration parameter list are loaded completely, if so, executing step 314; if not, go to step 304; step 314: performing connectivity test on the loaded application module to be switched; step 315: judging whether the loaded application module to be switched passes the test, if so, executing step 316; if not, go to step 320; step 316: storing the configuration parameter list into a database of a configuration center; step 317: judging whether the storage is successful, if not, executing step 318; if yes, go to step 319; step 318: repeating the storing of the configuration parameter list until the storing is successful, and executing the step 319; step 319: determining that the application module to be switched is successfully switched; step 320: and determining that the switching of the application module to be switched fails.
According to the switching method of the application module, when the application module to be switched has an operation fault in the current cluster environment, a configuration parameter list related to the switching of the application module to be switched to a target cluster environment is obtained; responding to the cluster switching operation, loading the environment configuration parameters of each to-be-switched application item in the configuration parameter list to a registration center until the environment configuration parameters of each to-be-switched application item are completely loaded, and obtaining a to-be-switched application module which is completely loaded; performing connectivity test on the loaded application module to be switched, and determining a test result of the loaded application module to be switched; and if the test result indicates that the loaded application module to be switched passes the connectivity test, restarting the application instance corresponding to the application item to be switched by issuing the environment configuration parameters of the application item to be switched aiming at each application item to be switched. Therefore, when the application module to be switched has operation failure, the application module to be switched can be switched to the target cluster environment to operate in time, so that the application module to be switched can provide service uninterruptedly, and the switching efficiency of the application module to be switched in each cluster environment can be improved.
Referring to fig. 4 and 5, fig. 4 is a first schematic structural diagram of a switching device of an application module according to an embodiment of the present application, and fig. 5 is a second schematic structural diagram of the switching device of the application module according to the embodiment of the present application. As shown in fig. 4, the switching device 400 includes:
a parameter obtaining module 410, configured to obtain a configuration parameter list related to switching an application module to be switched to a target cluster environment when an operation fault exists in the application module to be switched in a current cluster environment; wherein, the application module to be switched comprises at least one application item to be switched; the configuration parameter list comprises environment configuration parameters of the target cluster environment and application instances corresponding to each application item to be switched;
a parameter loading module 420, configured to, in response to the cluster switching operation, load the environment configuration parameters of each application item to be switched in the configuration parameter list to a registration center until the environment configuration parameters of each application item to be switched are loaded completely, so as to obtain a to-be-switched application module that is loaded completely;
the communication testing module 430 is configured to perform a communication test on the application module to be switched after the loading is completed, and determine a testing result of the application module to be switched after the loading is completed;
and the instance restarting module 440 is configured to restart, if the test result indicates that the loaded to-be-switched application module passes the connectivity test, the application instance corresponding to the to-be-switched application item by issuing the environment configuration parameter of the to-be-switched application item for each to-be-switched application item.
Further, when the parameter obtaining module 410 is configured to obtain a configuration parameter list related to the application module to be switched to the target cluster environment, the parameter obtaining module 410 is configured to:
responding to cluster scene selection operation, and determining a target cluster environment from a plurality of candidate cluster environments;
responding to a switching item selection operation, and determining at least one to-be-switched application item from a plurality of candidate application items included in the to-be-switched application module;
for each application item to be switched, determining an environment configuration parameter related to switching the application item to be switched to a target cluster environment and an application instance corresponding to the application item to be switched according to a current configuration parameter of the application item to be switched in the current cluster environment;
and generating a configuration parameter list of the application module to be switched based on the environment configuration parameters of each application item to be switched and the application example corresponding to each application item to be switched.
Further, the parameter loading module 420 is configured to, in response to the cluster switching operation, load the environment configuration parameters of each to-be-switched application item in the configuration parameter list to the registration center until the environment configuration parameters of each to-be-switched application item are completely loaded, and when the to-be-switched application module that is completely loaded is obtained, the parameter loading module 420 is configured to:
responding to the cluster switching operation, and determining the application category of each application item to be switched aiming at the application item to be switched;
if the application type indicates that the application item to be switched is an interactive item, carrying out detection on the application item to be switched, and determining a detection result;
if the probing and detecting result indicates that the application item to be switched passes the probing and detecting, loading the environmental configuration parameters of the application item to be switched to a registration center;
and circularly loading the environment configuration parameters of each application item to be switched until the environment configuration parameters of each application item to be switched are loaded to the registration center, so as to obtain the application module to be switched which is loaded.
Further, if the application type indicates that the application item to be switched is an interactive item, the parameter loading module 420 is configured to perform activity detection on the application item to be switched, and when a detection result is determined, the parameter loading module 420 is configured to:
if the application type indicates that the application item to be switched is an interactive item, determining whether to perform detection on the application item to be switched according to the application attribute information of the application item to be switched;
if so, carrying out biopsy detection on the application item to be switched, and determining a biopsy detection result;
if not, directly loading the environment configuration parameters of the application item to be switched to the registration center.
Further, as shown in fig. 5, the switching apparatus 400 further includes a failure result determining module 450, where the failure result determining module 450 is configured to:
and if the probing and biopsy result indicates that the application item to be switched does not pass the probing and biopsy detection, determining that the switching of the application module to be switched fails.
Further, as shown in fig. 5, the switching device 400 further includes a forced start-stop module 460, where the forced start-stop module 460 is configured to:
if the application type indicates that the application item to be switched is a non-interactive item, directly restarting an application instance corresponding to the application item to be switched;
if the application instance corresponding to the application item to be switched fails to restart, determining that the application module to be switched fails to be switched;
and if not, continuously and circularly loading the environment configuration parameters of other application items to be switched in the configuration parameter list to the registration center.
Further, as shown in fig. 5, the switching apparatus 400 further includes a parameter storage module 470, where the parameter storage module 470 is configured to:
storing the configuration parameter list to a database and determining whether the configuration parameter list is stored to the database;
if so, determining that the application module to be switched is successfully switched;
if not, the configuration parameter list is repeatedly stored until the configuration parameter list is stored in the database.
According to the switching device of the application module, when the application module to be switched has an operation fault in the current cluster environment, a configuration parameter list related to the switching of the application module to be switched to a target cluster environment is obtained; responding to the cluster switching operation, loading the environment configuration parameters of each to-be-switched application item in the configuration parameter list to a registration center until the environment configuration parameters of each to-be-switched application item are completely loaded, and obtaining a to-be-switched application module which is completely loaded; performing connectivity test on the loaded to-be-switched application module, and determining a test result of the loaded to-be-switched application module; and if the test result indicates that the loaded application module to be switched passes the connectivity test, restarting the application instance corresponding to the application item to be switched by issuing the environment configuration parameters of the application item to be switched aiming at each application item to be switched. Therefore, when the application module to be switched has operation failure, the application module to be switched can be switched to the target cluster environment to operate in time, so that the application module to be switched can provide service uninterruptedly, and the switching efficiency of the application module to be switched in each cluster environment can be improved.
Referring to fig. 6, fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. As shown in fig. 6, the electronic device 600 includes a processor 610, a memory 620, and a bus 630.
The memory 620 stores machine-readable instructions executable by the processor 610, when the electronic device 600 runs, the processor 610 communicates with the memory 620 through the bus 630, and when the machine-readable instructions are executed by the processor 610, the steps of the method for switching the application module in the method embodiment shown in fig. 1 may be executed.
An embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the step of the switching method of the application module in the method embodiment shown in fig. 1 may be executed.
It can be clearly understood by those skilled in the art that, for convenience and simplicity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed coupling or direct coupling or communication connection between each other may be through some communication interfaces, indirect coupling or communication connection between devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in software functional units and sold or used as a stand-alone product, may be stored in a non-transitory computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, an optical disk, or other various media capable of storing program codes.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present application, and are used to illustrate the technical solutions of the present application, but not to limit the technical solutions, and the scope of the present application is not limited to the above-mentioned embodiments, although the present application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: those skilled in the art can still make modifications or changes to the embodiments described in the foregoing embodiments, or make equivalent substitutions for some features, within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the exemplary embodiments of the present application, and are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A switching method of an application module is characterized in that the switching method comprises the following steps:
when an operation fault exists in an application module to be switched in a current cluster environment, acquiring a configuration parameter list related to the switching of the application module to be switched to a target cluster environment; wherein, the application module to be switched comprises at least one application item to be switched; the configuration parameter list comprises environment configuration parameters of the target cluster environment and application instances corresponding to each application item to be switched;
responding to the cluster switching operation, loading the environment configuration parameters of each to-be-switched application item in the configuration parameter list to a registration center until the environment configuration parameters of each to-be-switched application item are completely loaded, and obtaining a to-be-switched application module which is completely loaded;
performing connectivity test on the loaded application module to be switched, and determining a test result of the loaded application module to be switched;
and if the test result indicates that the loaded application module to be switched passes the connectivity test, restarting the application instance corresponding to the application item to be switched by issuing the environment configuration parameters of the application item to be switched aiming at each application item to be switched.
2. The switching method according to claim 1, wherein said obtaining a configuration parameter list related to switching the application module to be switched to a target cluster environment comprises:
responding to cluster scene selection operation, and determining a target cluster environment from a plurality of candidate cluster environments;
responding to a switching item selection operation, and determining at least one to-be-switched application item from a plurality of candidate application items included in the to-be-switched application module;
for each application item to be switched, determining an environmental configuration parameter related to the application item to be switched to a target cluster environment and an application instance corresponding to the application item to be switched according to the current configuration parameter of the application item to be switched in the current cluster environment;
and generating a configuration parameter list of the application module to be switched based on the environment configuration parameters of each application item to be switched and the application instance corresponding to each application item to be switched.
3. The switching method according to claim 1, wherein the loading, in response to the cluster switching operation, the environment configuration parameters of each to-be-switched application item in the configuration parameter list to a registration center until the environment configuration parameters of each to-be-switched application item are completely loaded, to obtain the to-be-switched application module that is completely loaded, includes:
responding to the cluster switching operation, and determining the application category of each application item to be switched;
if the application type indicates that the application item to be switched is an interactive item, carrying out detection on the application item to be switched, and determining a detection result;
if the detection result indicates that the application item to be switched passes the detection, loading the environmental configuration parameters of the application item to be switched to a registration center;
and circularly loading the environmental configuration parameters of each application item to be switched until the environmental configuration parameters of each application item to be switched are loaded to the registration center, so as to obtain the application module to be switched after loading.
4. The switching method according to claim 3, wherein if the application type indicates that the application item to be switched is an interactive item, performing activity detection on the application item to be switched to determine an activity detection result, including:
if the application type indicates that the application item to be switched is an interactive item, determining whether to perform activity detection on the application item to be switched according to the application attribute information of the application item to be switched;
if so, carrying out biopsy detection on the application item to be switched, and determining a biopsy detection result;
if not, directly loading the environmental configuration parameters of the application item to be switched to the registration center.
5. The handover method according to claim 3, further comprising:
and if the probing and biopsy result indicates that the application item to be switched does not pass the probing and biopsy detection, determining that the switching of the application module to be switched fails.
6. The handover method according to claim 3, further comprising:
if the application type indicates that the application item to be switched is a non-interactive item, directly restarting an application instance corresponding to the application item to be switched;
if the application instance corresponding to the application item to be switched fails to restart, determining that the application module to be switched fails to be switched;
otherwise, the environment configuration parameters of other application items to be switched in the configuration parameter list are continuously and circularly loaded to the registration center.
7. The switching method according to claim 1, wherein after the loaded application module to be switched passes the connectivity test, the switching method further comprises:
storing the configuration parameter list to a database and determining whether the configuration parameter list is stored to the database;
if so, determining that the application module to be switched is successfully switched;
if not, the configuration parameter list is repeatedly stored until the configuration parameter list is stored in the database.
8. A switching device for an application module, the switching device comprising:
the system comprises a parameter acquisition module, a parameter switching module and a switching module, wherein the parameter acquisition module is used for acquiring a configuration parameter list related to the switching of an application module to be switched to a target cluster environment when the application module to be switched has an operation fault in the current cluster environment; wherein, the application module to be switched comprises at least one application item to be switched; the configuration parameter list comprises environment configuration parameters of the target cluster environment and application instances corresponding to each application item to be switched;
the parameter loading module is used for responding to the cluster switching operation, loading the environment configuration parameters of each to-be-switched application item in the configuration parameter list to a registration center until the environment configuration parameters of each to-be-switched application item are loaded completely, and obtaining the loaded to-be-switched application module;
the communication test module is used for carrying out communication test on the loaded application module to be switched and determining the test result of the loaded application module to be switched;
and the instance restarting module is used for restarting the application instance corresponding to the application item to be switched by issuing the environment configuration parameters of the application item to be switched aiming at each application item to be switched if the test result indicates that the loaded application module to be switched passes the communication test.
9. An electronic device, comprising: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating via the bus when the electronic device is running, the machine-readable instructions being executable by the processor to perform the steps of the application module switching method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that a computer program is stored thereon, which, when being executed by a processor, performs the steps of the method for switching application modules according to any one of claims 1 to 7.
CN202211001493.1A 2022-08-19 2022-08-19 Application module switching method and device, electronic equipment and readable storage medium Active CN115344327B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211001493.1A CN115344327B (en) 2022-08-19 2022-08-19 Application module switching method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211001493.1A CN115344327B (en) 2022-08-19 2022-08-19 Application module switching method and device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN115344327A true CN115344327A (en) 2022-11-15
CN115344327B CN115344327B (en) 2023-07-28

Family

ID=83954686

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211001493.1A Active CN115344327B (en) 2022-08-19 2022-08-19 Application module switching method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN115344327B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110247862A (en) * 2019-06-14 2019-09-17 西安电子科技大学 Business quickly continuous switching system and method when SDN clustering fault
US20200084115A1 (en) * 2018-09-07 2020-03-12 Servicenow, Inc. Identification and display of configuration item information
CN111245901A (en) * 2019-12-31 2020-06-05 的卢技术有限公司 Distributed service registration discovery method and system supporting service parameter issuing
CN112367198A (en) * 2020-10-30 2021-02-12 新华三大数据技术有限公司 Main/standby node switching method and device
CN112463887A (en) * 2020-12-04 2021-03-09 中国建设银行股份有限公司 Data processing method, device, equipment and storage medium
CN113032189A (en) * 2021-03-22 2021-06-25 中国工商银行股份有限公司 Fault domain switching method, device and equipment
CN113765690A (en) * 2021-01-07 2021-12-07 北京沃东天骏信息技术有限公司 Cluster switching method, system, device, terminal, server and storage medium
CN114124700A (en) * 2021-10-26 2022-03-01 马上消费金融股份有限公司 Cluster parameter configuration method and device, electronic equipment and readable storage medium
CN114116122A (en) * 2021-10-28 2022-03-01 北京银盾泰安网络科技有限公司 High-availability load platform for application container
CN114201293A (en) * 2021-12-03 2022-03-18 紫光云(南京)数字技术有限公司 Kafka middleware cluster parameter modification method and device and storage medium
CN114238140A (en) * 2021-12-23 2022-03-25 中国建设银行股份有限公司 Access test method and device
CN114745757A (en) * 2022-04-22 2022-07-12 苏州浪潮智能科技有限公司 Cluster switching method, device, equipment and medium
CN114764379A (en) * 2021-01-13 2022-07-19 顺丰科技有限公司 Access switching method and device for application software and computer readable storage medium

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200084115A1 (en) * 2018-09-07 2020-03-12 Servicenow, Inc. Identification and display of configuration item information
CN110247862A (en) * 2019-06-14 2019-09-17 西安电子科技大学 Business quickly continuous switching system and method when SDN clustering fault
CN111245901A (en) * 2019-12-31 2020-06-05 的卢技术有限公司 Distributed service registration discovery method and system supporting service parameter issuing
CN112367198A (en) * 2020-10-30 2021-02-12 新华三大数据技术有限公司 Main/standby node switching method and device
CN112463887A (en) * 2020-12-04 2021-03-09 中国建设银行股份有限公司 Data processing method, device, equipment and storage medium
CN113765690A (en) * 2021-01-07 2021-12-07 北京沃东天骏信息技术有限公司 Cluster switching method, system, device, terminal, server and storage medium
CN114764379A (en) * 2021-01-13 2022-07-19 顺丰科技有限公司 Access switching method and device for application software and computer readable storage medium
CN113032189A (en) * 2021-03-22 2021-06-25 中国工商银行股份有限公司 Fault domain switching method, device and equipment
CN114124700A (en) * 2021-10-26 2022-03-01 马上消费金融股份有限公司 Cluster parameter configuration method and device, electronic equipment and readable storage medium
CN114116122A (en) * 2021-10-28 2022-03-01 北京银盾泰安网络科技有限公司 High-availability load platform for application container
CN114201293A (en) * 2021-12-03 2022-03-18 紫光云(南京)数字技术有限公司 Kafka middleware cluster parameter modification method and device and storage medium
CN114238140A (en) * 2021-12-23 2022-03-25 中国建设银行股份有限公司 Access test method and device
CN114745757A (en) * 2022-04-22 2022-07-12 苏州浪潮智能科技有限公司 Cluster switching method, device, equipment and medium

Also Published As

Publication number Publication date
CN115344327B (en) 2023-07-28

Similar Documents

Publication Publication Date Title
CN115190035B (en) System, method, apparatus, and medium for providing mobile device support services
CN105468717B (en) Database operation method and device
US10635473B2 (en) Setting support program, setting support method, and setting support device
CN112787855B (en) Main/standby management system and management method for wide-area distributed service
US11544052B2 (en) Tenant declarative deployments with release staggering
CN113312153B (en) Cluster deployment method and device, electronic equipment and storage medium
CN109144534A (en) Service module dynamic updating method, device and electronic equipment
CN111694612A (en) Configuration checking method, device, computer system and storage medium
CN107453888B (en) High-availability virtual machine cluster management method and device
CN113126925B (en) Member list determining method, device and equipment and readable storage medium
CN108733466A (en) Restart the method, apparatus and equipment of the application system example in distributed system
CN118018463A (en) Fault processing method, device, equipment and readable storage medium
CN110781039B (en) Sentinel process election method and device
CN110417601B (en) Information prompting method, device and system in client and readable storage medium
CN109634782B (en) Method and device for detecting system robustness, storage medium and terminal
CN111966520A (en) Database high-availability switching method, device and system
CN111552637A (en) Database state detection method and device, electronic equipment and storage medium thereof
CN115344327B (en) Application module switching method and device, electronic equipment and readable storage medium
CN114064343B (en) Abnormal handling method and device for block chain
CN106708541A (en) Version upgrading processing method and apparatus
CN114598604B (en) Monitoring method, monitoring device and terminal for virtual network function instance information
CN115309457A (en) Application instance restarting method and device, electronic equipment and readable storage medium
CN114650211A (en) Fault repairing method, device, electronic equipment and computer readable storage medium
CN112860338B (en) Software starting method and device
CN117370052B (en) Microservice fault analysis method, device, equipment and storage medium

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