CN112527480A - End-to-end double-activity method, device, equipment and storage medium - Google Patents

End-to-end double-activity method, device, equipment and storage medium Download PDF

Info

Publication number
CN112527480A
CN112527480A CN202011396261.1A CN202011396261A CN112527480A CN 112527480 A CN112527480 A CN 112527480A CN 202011396261 A CN202011396261 A CN 202011396261A CN 112527480 A CN112527480 A CN 112527480A
Authority
CN
China
Prior art keywords
switching
calling
interface
data center
user
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
Application number
CN202011396261.1A
Other languages
Chinese (zh)
Inventor
全志松
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN202011396261.1A priority Critical patent/CN112527480A/en
Publication of CN112527480A publication Critical patent/CN112527480A/en
Priority to PCT/CN2021/083256 priority patent/WO2022116428A1/en
Pending legal-status Critical Current

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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • 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/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Computing Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The application is applicable to the technical field of cloud deployment, and provides an end-to-end double-active method, device, equipment and storage medium; the method comprises the following steps: issuing the calling task corresponding to the switching strategy to an asynchronous calling tool; calling a switching interface corresponding to a switching strategy in the asynchronous calling tool; switching the dual-active application components of the end-to-end communication link based on the switching interface, and storing the switching result into an open source database; and respectively acquiring the return results of the asynchronous calling tool calling the switching interfaces, and respectively splicing the switching interfaces and the return results of calling the switching interfaces into character strings in a preset format for display. The parallel issuing of multiple tasks can be realized through an asynchronous calling tool, the switching process of each application component in a communication link is visually displayed, the non-blocking efficient switching of the end-to-end communication link can be realized, the switching efficiency is improved, and meanwhile, the effectiveness of an end-to-end double-active scheme is guaranteed.

Description

End-to-end double-activity method, device, equipment and storage medium
Technical Field
The present application relates to the field of cloud deployment technologies, and in particular, to an end-to-end dual-active method, apparatus, device, and storage medium.
Background
At present, in order to ensure that an end-to-end communication link can quickly pass through an operation switching system when a disaster occurs, flow transfer is realized, and fault avoidance and quick recovery are achieved, an end-to-end dual-active scheme is provided. However, a common end-to-end double-activity scheme is a double-activity scheme for each single application component, and different operators generally perform double-activity operations on the single application components respectively, so that many operators are involved in the operations, the management is difficult, and more time is usually spent on communication coordination.
Therefore, the prior art has the problems that the switching efficiency is low and the switching effectiveness cannot be guaranteed in the end-to-end dual-active scheme.
Disclosure of Invention
In view of this, embodiments of the present application provide an end-to-end active method, apparatus, device, and storage medium, so as to solve the problems in the prior art that the switching efficiency is low and the switching validity cannot be guaranteed due to operations involving a large number of operators.
A first aspect of an embodiment of the present application provides an end-to-end dual active method, including:
responding to an end-to-end switching request triggered by a user, and loading and displaying an end-to-end switching operation interface;
responding to an instruction which is generated by a user based on the end-to-end switching operation interface and carries a switching strategy, and respectively issuing calling tasks corresponding to the switching strategy to an asynchronous calling tool;
respectively calling switching interfaces corresponding to the switching strategies in the asynchronous calling tool, and respectively switching each target application component based on each switching interface, wherein the target application components are pre-configured end-to-end dual-active application components included in the switching strategies;
and aiming at any one switching interface, splicing the switching interface and a return result for calling the switching interface into a character string with a preset format for displaying.
In an optional implementation manner, before loading and displaying an end-to-end switching operation interface in response to an end-to-end switching request triggered by a user, the method further includes:
the method comprises the steps that all application components of an end-to-end communication link are configured in advance and are in double activity in a first data center and a second data center, wherein the first data center is a main data center, the second data center is a standby data center, and the first data center and the second data center provide data services of all the application components of the end-to-end communication link.
In an optional implementation manner, after pre-configuring each application component of the end-to-end communication link to be active in both the first data center and the second data center, the method further includes:
and for any application component of the end-to-end communication link, determining a switching state when the data service center of the application component is switched from the first data center to the second data center based on a preset switching port of the application component.
In an optional implementation manner, the end-to-end switching operation interface includes a first area for a user to define a switching policy and a second area for the user to select a switching template; the first area comprises a first selection item for a user to select application component names or a first input box for the user to input the application component names, and a second selection item for the user to select the switching sequence of each application component or a second input box for the user to input the switching sequence of each application component; the second area includes a third selection item for the user to select the switching template name or a third input box for the user to input the switching template name.
In an alternative implementation, the asynchronous calling tool comprises a distributed asynchronous calling tool cerely; respectively calling the switching interfaces corresponding to the switching strategies in the asynchronous calling tool, and respectively switching each target application component based on each switching interface, wherein the switching interfaces comprise:
and respectively issuing tasks for calling the switching interfaces corresponding to the switching strategies to the distributed asynchronous calling tool cerely, respectively calling each switching interface in the distributed asynchronous calling tool cerely, and respectively switching each target application component.
In an optional implementation manner, after the switching the target application components based on the switching interfaces respectively, the method further includes:
and respectively storing the calling results of the switching interfaces in a distributed database redis.
In an optional implementation manner, for any one of the switching interfaces, splicing the switching interface and a return result of calling the switching interface into a character string in a preset format for display includes:
asynchronously acquiring the calling result of each switching interface from the redis based on the asynchronous calling tool cerely;
and aiming at any one switching interface, splicing the switching interface and the calling result of the switching interface into a character string with a preset format for displaying.
A second aspect of the embodiments of the present application provides an end-to-end dual active device, including:
the loading module is used for responding to an end-to-end switching request triggered by a user, and loading and displaying an end-to-end switching operation interface;
the issuing module is used for responding to an instruction which is generated by a user based on the end-to-end switching operation interface and carries a switching strategy, and issuing the calling tasks corresponding to the switching strategy to the asynchronous calling tool respectively;
the switching module is used for respectively calling switching interfaces corresponding to the switching strategies in the asynchronous calling tool and respectively switching each target application component based on each switching interface, wherein the target application components are pre-configured end-to-end dual-active application components included in the switching strategies;
and the display module is used for splicing the switching interface and a return result for calling the switching interface into a character string with a preset format for displaying aiming at any one switching interface.
In an optional implementation manner, the method further includes:
the configuration module is used for configuring each application component of the end-to-end communication link in advance in a first data center and a second data center, wherein the first data center is a main data center, the second data center is a standby data center, and the first data center and the second data center both provide data services of each application component of the end-to-end communication link.
In an optional implementation manner, the method further includes:
and the verification module is used for verifying the switching state when the data service center of the application component is switched from the first data center to the second data center based on a preset switching port of the application component aiming at any application component of the end-to-end communication link.
In an optional implementation manner, the end-to-end switching operation interface includes a first area for a user to define a switching policy and a second area for the user to select a switching template; the first area comprises a first selection item for a user to select application component names or a first input box for the user to input the application component names, and a second selection item for the user to select the switching sequence of each application component or a second input box for the user to input the switching sequence of each application component; the second area includes a third selection item for the user to select the switching template name or a third input box for the user to input the switching template name.
In an alternative implementation, the asynchronous calling tool comprises a distributed asynchronous calling tool cerely; the switching module is specifically configured to:
and respectively issuing tasks for calling the switching interfaces corresponding to the switching strategies to the distributed asynchronous calling tool cerely, respectively calling each switching interface in the distributed asynchronous calling tool cerely, and respectively switching each target application component.
In an optional implementation manner, the method further includes:
and the storage module is used for respectively storing the calling results of the switching interfaces in a distributed database redis.
In an optional implementation manner, the display module includes:
an obtaining unit, configured to asynchronously obtain, based on the asynchronous calling tool cerely, a calling result of each switching interface from the redis;
and the display unit is used for splicing the switching interface and the calling result of the switching interface into a character string with a preset format for displaying aiming at any one switching interface.
A third aspect of the embodiments of the present application provides an end-to-end double-active device, including a memory, a processor, and a computer program stored in the memory and operable on the end-to-end double-active device, where the processor, when executing the computer program, implements the steps of the end-to-end double-active method provided in the first aspect.
A fourth aspect of embodiments of the present application provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the steps of the end-to-end dual-active method provided by the first aspect.
Compared with the prior art, the end-to-end dual-active method provided by the embodiment of the application issues the call task corresponding to the switching strategy to the asynchronous call tool; calling a switching interface corresponding to a switching strategy in the asynchronous calling tool; switching the dual-active application components of the end-to-end communication link based on the switching interface, and storing the switching result into an open source database; and respectively acquiring the return results of the asynchronous calling tool calling the switching interfaces, and respectively splicing the switching interfaces and the return results of calling the switching interfaces into character strings in a preset format for display. The parallel issuing of multiple tasks can be realized through an asynchronous calling tool, the switching process of each application component in a communication link is visually displayed, the non-blocking efficient switching of the end-to-end communication link can be realized, the switching efficiency is improved, and meanwhile, the effectiveness of an end-to-end double-active scheme is guaranteed.
The advantageous effects provided by the second aspect to the fourth aspect of the embodiments of the present application are the same as those provided by the first aspect of the embodiments of the present application, and are not described herein again.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic structural diagram of an end-to-end double-active system provided in a first embodiment of the present application;
FIG. 2 is a schematic flow chart of an end-to-end double-active method provided in a second embodiment of the present application;
FIG. 3 is a flow chart of an implementation of an end-to-end live-alive method provided by a third embodiment of the present application;
FIG. 4 is a flow chart of an implementation of an end-to-end live-alive method provided by a fourth embodiment of the present application;
FIG. 5 is a block diagram of an end-to-end dual active device according to a fifth embodiment of the present application;
fig. 6 is a block diagram of an end-to-end active device according to a sixth embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The application layer dual active method according to the embodiment of the present application may be executed by an application layer dual active device. The application layer dual-active device includes, but is not limited to, a single server or a cloud server cluster, and the like, and is not limited in particular herein.
The end-to-end double-active method related to the embodiment of the application is applied to disaster recovery scenes of enterprises, for example, in scenes that the enterprises need to provide services continuously after emergencies such as artificial misoperation, malicious attack, natural disasters and the like due to higher-level protection of the businesses, and a double-active scheme is adopted to ensure the continuity of the businesses. The end-to-end dual-active mode refers to that all application component layers related to the whole communication link, such as a network layer, an application layer, a database layer, a storage layer and the like, provide related switching schemes and systems, so that when a disaster occurs, the switching systems can be operated quickly to realize flow transfer, and fault avoidance and quick recovery are achieved.
The end-to-end dual-activity principle and application scenario provided by the embodiments of the present application are specifically described below with reference to the accompanying drawings.
As shown in fig. 1, fig. 1 is a schematic structural diagram of an end-to-end dual-active system provided in a first embodiment of the present application. As shown in fig. 1, an end-to-end dual-active system 100 provided by the embodiment of the present application includes a first data center 101, a second data center 102, and an end-to-end dual-active device 103. Illustratively, the first data center 101 is a pre-deployed primary data center, the second data center 102 is a pre-deployed backup data center, and the end-to-end active device 103 is a configured single server or a server cluster. Specifically, the first data center 101 and the second data center 102 are pre-established by application operation and maintenance personnel when the application deployment is on-line. The first data center 101 and the second data center 102 may provide services to the outside at the same time, both the first data center 101 and the second data center 102 are in communication connection with the end-to-end dual-active device 103, and the end-to-end dual-active device 103 is configured to issue a call task corresponding to a handover policy to an asynchronous call tool; calling a switching interface corresponding to a switching strategy in the asynchronous calling tool; switching the application component with the fault related to the end-to-end communication link from the first data center 101 to the second data center 102 based on the switching interface, and storing the switching result in the start database; and respectively acquiring the return results of the asynchronous calling tool calling the switching interfaces, and respectively splicing the switching interfaces and the return results of calling the switching interfaces into character strings in a preset format for display. The parallel issuing of multiple tasks can be realized through an asynchronous calling tool, the switching process of each application component in a communication link is visually displayed, the non-blocking efficient switching of the end-to-end communication link can be realized, the switching efficiency is improved, and meanwhile, the effectiveness of an end-to-end double-active scheme is guaranteed.
As shown in fig. 2, fig. 2 is a schematic flow chart of an end-to-end double-active method provided in a second embodiment of the present application. As shown in fig. 2, the end-to-end double-live method provided by this embodiment includes S21 to S24. The details are as follows:
and S21, loading and displaying an end-to-end switching operation interface in response to the end-to-end switching request triggered by the user.
In the embodiment of the application, an end user can send an end-to-end switching request to an end-to-end dual-active device, and the end-to-end dual-active device loads and displays an end-to-end switching operation interface after receiving the switching request.
Illustratively, the end-to-end switching operation interface comprises a first area for a user to customize a switching strategy and a second area for the user to select a switching template; the first area comprises a first selection item for a user to select application component names or a first input box for the user to input the application component names, and a second selection item for the user to select the switching sequence of each application component or a second input box for the user to input the switching sequence of each application component; the second area includes a third selection item for the user to select the switching template name or a third input box for the user to input the switching template name.
In addition, the end-to-end switching operation interface may further include a determination button, and after the user completes the custom switching policy through the first area or completes the switching template through selection of the second area, an end-to-end switching instruction may be triggered by clicking the determination button.
And S22, responding to the instruction carrying the switching strategy generated by the user based on the end-to-end switching operation interface, and respectively issuing the calling tasks corresponding to the switching strategy to the asynchronous calling tool.
Exemplarily, the switching policy includes a name of an application component to be switched and a switching sequence of each application component; for example, the switching policy includes an application layer and a database layer of the application system a, and the switching order of the application layer and the database layer is to switch the application layer first and then switch the database layer. For example, in this embodiment, the switching order of the application layer is denoted as 1, and the switching order of the database layer is denoted as 2.
And S23, respectively calling the switching interfaces corresponding to the switching strategies in the asynchronous calling tool, and respectively switching each target application component based on each switching interface, wherein the target application component is a pre-configured end-to-end active application component included in the switching strategies.
Illustratively, the asynchronous calling tool comprises a distributed asynchronous calling tool cerely; in this embodiment, respectively calling, in the asynchronous calling tool, a switching interface corresponding to the switching policy, and respectively switching each target application component based on each switching interface may include: and respectively issuing tasks for calling the switching interfaces corresponding to the switching strategies to the distributed asynchronous calling tool cerely, respectively calling each switching interface in the distributed asynchronous calling tool cerely, and respectively switching each target application component.
In addition, the switching interface is designed and developed uniformly through restful, and is defined in an xml format based on http or defined in a json format based on http; the switching interface is packaged on the first data center and the second data center respectively in advance through a preset programming language, such as python language.
And S24, aiming at any one switching interface, splicing the switching interface and the return result of calling the switching interface into a character string with a preset format for displaying.
For example, the character string in the preset format may be a character string in a json format, for example, for a switching interface of an application layer, a returned result is "succours", and a result returned by the switching interface of the application layer and a result returned by calling the switching interface of the application layer are correspondingly spliced into the character string in the json format to obtain a key-value data format, such as "application layer: succuess ".
As can be seen from the above analysis, the end-to-end dual-active method provided in the embodiment of the present application issues the call task corresponding to the switching policy to the asynchronous call tool; calling a switching interface corresponding to a switching strategy in the asynchronous calling tool; switching the dual-active application components of the end-to-end communication link based on the switching interface, and storing the switching result into an open source database; and respectively acquiring the return results of the asynchronous calling tool calling the switching interfaces, and respectively splicing the switching interfaces and the return results of calling the switching interfaces into character strings in a preset format for display. The parallel issuing of multiple tasks can be realized through an asynchronous calling tool, the switching process of each application component in a communication link is visually displayed, the non-blocking efficient switching of the end-to-end communication link can be realized, the switching efficiency is improved, and meanwhile, the effectiveness of an end-to-end double-active scheme is guaranteed.
As shown in fig. 3, fig. 3 is a flowchart of an implementation of an end-to-end dual active method provided in the third embodiment of the present application. Compared with the end-to-end double-active method shown in fig. 2, the end-to-end double-active method provided in this embodiment has the same specific implementation processes as S32 to S35 and S21 to S24, except that S31 is further included before S32, and S51 and S52 are in a sequential execution relationship. The details are as follows:
s31, pre-configuring each application component of the end-to-end communication link to be active in a first data center and a second data center, where the first data center is a primary data center, the second data center is a standby data center, and both the first data center and the second data center provide data services of each application component of the end-to-end communication link.
Illustratively, the first data center and the second data center may be respectively set up in advance by operation and maintenance personnel, and both the first data center and the second data center are data services of each application component of the end-to-end communication link. For example, the first data center and the second data center may each provide data services to application components of an end-to-end communication link, such as an application layer, a network layer, a database layer, and a storage layer.
In addition, pre-configuring the respective application components of the end-to-end communication link to be active in both the first data center and the second data center may include: respectively sending service requests to the first data center and the second data center in a mode of independently simulating http requests or user requests, and determining service states of the first data center and the second data center according to response results returned by the first data center and the second data center; if the service states of the first data center and the second data center are normal, determining that all application components configuring the end-to-end communication link are active in the first data center and the second data center; and if the service states of the first data center and the second data center are abnormal, the operation and maintenance personnel are required to build again until the service states of the first data center and the second data center are normal.
And S32, loading and displaying an end-to-end switching operation interface in response to the end-to-end switching request triggered by the user.
And S33, responding to the instruction carrying the switching strategy generated by the user based on the end-to-end switching operation interface, and respectively issuing the calling tasks corresponding to the switching strategy to the asynchronous calling tool.
And S34, respectively calling the switching interfaces corresponding to the switching strategies in the asynchronous calling tool, and respectively switching each target application component based on each switching interface, wherein the target application component is a pre-configured end-to-end active application component included in the switching strategies.
And S35, aiming at any one switching interface, splicing the switching interface and the return result of calling the switching interface into a character string with a preset format for displaying.
As can be seen from the above analysis, compared with the prior art, the end-to-end dual-active method provided by the embodiment issues the call task corresponding to the switching policy to the asynchronous call tool; calling a switching interface corresponding to a switching strategy in the asynchronous calling tool; switching the dual-active application components of the end-to-end communication link based on the switching interface, and storing the switching result into an open source database; and respectively acquiring the return results of the asynchronous calling tool calling the switching interfaces, and respectively splicing the switching interfaces and the return results of calling the switching interfaces into character strings in a preset format for display. The parallel issuing of multiple tasks can be realized through an asynchronous calling tool, the switching process of each application component in a communication link is visually displayed, the non-blocking efficient switching of the end-to-end communication link can be realized, the switching efficiency is improved, and meanwhile, the effectiveness of an end-to-end double-active scheme is guaranteed.
As shown in fig. 4, fig. 4 is a flowchart of an implementation of an end-to-end dual active method provided in the fourth embodiment of the present application. Compared with the end-to-end double-active method shown in fig. 3, the end-to-end double-active method provided in this embodiment has the same specific implementation processes as S41 and S31 and as S43 to S46 and as S32 to S35, except that S42 is further included after S41, and S42 and S43 are in a sequential execution relationship. The details are as follows:
s41, pre-configuring each application component of the end-to-end communication link to be active in a first data center and a second data center, where the first data center is a primary data center, the second data center is a standby data center, and both the first data center and the second data center provide data services of each application component of the end-to-end communication link.
S42, verifying, based on a preset switching port of the application component, a switching state when the data service center of the application component is switched from the first data center to the second data center, for any application component of the end-to-end communication link.
Illustratively, for any application component of the end-to-end communication link, verifying a switching state when the application component data service center is switched from the first data center to the second data center based on a preset switching port of the application component includes: sending a request to the first data center to access the application component; after receiving the access state data returned by the first data center, calling a switching port of the application component; receiving a calling result of calling a switching port of the application component, and determining the switching state of the application component according to the calling result; if the flow of the application component is normally switched to the second data center according to the switching state, determining the switching state of the application component data service center when the first data center is switched to the second data center; and if the flow of the application component cannot be normally switched to the second data center according to the switching state, determining that the application component data service center cannot be normally switched from the first data center to the second data center.
In addition, when the application component data service center cannot be normally switched from the first data center to the second data center, the switching state verification needs to be performed again.
And S43, loading and displaying an end-to-end switching operation interface in response to the end-to-end switching request triggered by the user.
And S44, responding to the instruction carrying the switching strategy generated by the user based on the end-to-end switching operation interface, and respectively issuing the calling tasks corresponding to the switching strategy to the asynchronous calling tool.
And S45, respectively calling the switching interfaces corresponding to the switching strategies in the asynchronous calling tool, and respectively switching each target application component based on each switching interface, wherein the target application component is a pre-configured end-to-end active application component included in the switching strategies.
And S46, aiming at any one switching interface, splicing the switching interface and the return result of calling the switching interface into a character string with a preset format for displaying.
Compared with the prior art, the end-to-end dual-active method issues the call task corresponding to the switching strategy to the asynchronous call tool; calling a switching interface corresponding to a switching strategy in the asynchronous calling tool; switching the dual-active application components of the end-to-end communication link based on the switching interface, and storing the switching result into an open source database; and respectively acquiring the return results of the asynchronous calling tool calling the switching interfaces, and respectively splicing the switching interfaces and the return results of calling the switching interfaces into character strings in a preset format for display. The parallel issuing of multiple tasks can be realized through an asynchronous calling tool, the switching process of each application component in a communication link is visually displayed, the non-blocking efficient switching of the end-to-end communication link can be realized, the switching efficiency is improved, and meanwhile, the effectiveness of an end-to-end double-active scheme is guaranteed.
As shown in fig. 5, fig. 5 is a block diagram of an end-to-end dual-active device according to a fifth embodiment of the present application. The end-to-end double active device in this embodiment includes modules for performing the steps in any of the embodiments of fig. 2-4. Please refer to fig. 2 to 4 for the corresponding embodiments. For convenience of explanation, only the portions related to the present embodiment are shown. Referring to fig. 5, end-to-end double active device 50 includes: the method comprises the following steps:
and the loading module 51 is configured to load and display an end-to-end switching operation interface in response to an end-to-end switching request triggered by a user.
And the issuing module 52 is configured to respond to an instruction carrying a switching policy, which is generated by a user based on the end-to-end switching operation interface, and issue the call tasks corresponding to the switching policy to the asynchronous call tools respectively.
A switching module 53, configured to respectively call, in the asynchronous call tool, a switching interface corresponding to the switching policy, and respectively switch, based on each switching interface, each target application component, where the target application component is a pre-configured end-to-end active application component included in the switching policy.
And a display module 54, configured to splice, for any one of the switching interfaces, the switching interface and a return result obtained by invoking the switching interface into a character string in a preset format for display.
In an optional implementation manner, the method further includes:
the configuration module is used for configuring each application component of the end-to-end communication link in advance in a first data center and a second data center, wherein the first data center is a main data center, the second data center is a standby data center, and the first data center and the second data center both provide data services of each application component of the end-to-end communication link.
In an optional implementation manner, the method further includes:
and the verification module is used for verifying the switching state when the data service center of the application component is switched from the first data center to the second data center based on a preset switching port of the application component aiming at any application component of the end-to-end communication link.
In an optional implementation manner, the end-to-end switching operation interface includes a first area for a user to define a switching policy and a second area for the user to select a switching template; the first area comprises a first selection item for a user to select application component names or a first input box for the user to input the application component names, and a second selection item for the user to select the switching sequence of each application component or a second input box for the user to input the switching sequence of each application component; the second area includes a third selection item for the user to select the switching template name or a third input box for the user to input the switching template name.
In an alternative implementation, the asynchronous calling tool comprises a distributed asynchronous calling tool cerely; the switching module 53 is specifically configured to:
and respectively issuing tasks for calling the switching interfaces corresponding to the switching strategies to the distributed asynchronous calling tool cerely, respectively calling each switching interface in the distributed asynchronous calling tool cerely, and respectively switching each target application component.
In an optional implementation manner, the method further includes:
and the storage module is used for respectively storing the calling results of the switching interfaces in a distributed database redis.
In an alternative implementation, the display module 54 includes:
an obtaining unit, configured to asynchronously obtain, based on the asynchronous calling tool cerely, a calling result of each switching interface from the redis;
and the display unit is used for splicing the switching interface and the calling result of the switching interface into a character string with a preset format for displaying aiming at any one switching interface.
It should be understood that, in the structural block diagram of the end-to-end dual active device 50 shown in fig. 5, each module is used to execute each step in any one of the embodiments in fig. 2 to 5, and each step in the embodiment corresponding to fig. 2 to 5 has been explained in detail in the above embodiment, and specific reference is made to the relevant description in the embodiment corresponding to fig. 2 to 5, which is not repeated herein.
Fig. 6 is a block diagram of an end-to-end active device according to a sixth embodiment of the present application. As shown in fig. 6, the end-to-end double-active device 60 of this embodiment includes: a processor 61, a memory 62 and a computer program 63, such as an end-to-end live program, stored in said memory 62 and executable on said processor 61. The processor 61, when executing the computer program 63, implements the steps in the various embodiments of the end-to-end dual-activity method described above, such as S21-S24 shown in fig. 2. Alternatively, when the processor 61 executes the computer program 63, the functions of the modules or units in the embodiment corresponding to fig. 5, for example, the functions of the modules 51 to 54 shown in fig. 5, are implemented, for which reference is specifically made to the related description in the embodiment corresponding to fig. 5, which is not repeated herein.
Illustratively, the computer program 63 may be divided into one or more units, which are stored in the memory 62 and executed by the processor 61 to accomplish the present application. The one or more elements may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 63 in the end-to-end living equipment 60. For example, the computer program 63 may be divided to include a loading module, a distribution module, a switching module, and a display module; the specific functions of the modules are described in fig. 5.
The end-to-end active devices may include, but are not limited to, a processor 61, a memory 62. Those skilled in the art will appreciate that fig. 6 is merely an example of end-to-end double-active device 60 and does not constitute a limitation of end-to-end double-active device 60 and may include more or fewer components than shown, or some components may be combined, or different components, e.g., the turntable device may also include input-output devices, network access devices, buses, etc.
The Processor 61 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 62 may be an internal storage element of the end-to-end active device 60, such as a hard disk or memory of the end-to-end active device 60. The memory 62 may also be an external storage device of the peer-to-peer device 60, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), or the like, provided on the peer-to-peer device 60. Further, the memory 62 may also include both internal and external memory units of the end-to-end active device 60. The memory 62 is used to store the computer programs and other programs and data required by the end-to-end living device 60. The memory 62 may also be used to temporarily store data that has been output or is to be output.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. An end-to-end dual-active method, comprising:
responding to an end-to-end switching request triggered by a user, and loading and displaying an end-to-end switching operation interface;
responding to an instruction which is generated by a user based on the end-to-end switching operation interface and carries a switching strategy, and respectively issuing calling tasks corresponding to the switching strategy to an asynchronous calling tool;
respectively calling switching interfaces corresponding to the switching strategies in the asynchronous calling tool, and respectively switching each target application component based on each switching interface, wherein the target application components are pre-configured end-to-end dual-active application components included in the switching strategies;
and aiming at any one switching interface, splicing the switching interface and a return result for calling the switching interface into a character string with a preset format for displaying.
2. The method of claim 1, further comprising, prior to loading and displaying an end-to-end switchover operator interface in response to a user-triggered end-to-end switchover request:
the method comprises the steps that all application components of an end-to-end communication link are configured in advance and are in double activity in a first data center and a second data center, wherein the first data center is a main data center, the second data center is a standby data center, and the first data center and the second data center provide data services of all the application components of the end-to-end communication link.
3. The method of claim 2, wherein after pre-configuring the respective application components of the end-to-end communication link to be active in both the first data center and the second data center, further comprising:
and verifying the switching state when the data service center of the application component is switched from the first data center to the second data center based on a preset switching port of the application component aiming at any one application component of the end-to-end communication link.
4. The method of any one of claims 1 to 3, wherein the end-to-end switching operation interface comprises a first area for a user to customize a switching policy and a second area for the user to select a switching template; the first area comprises a first selection item for a user to select application component names or a first input box for the user to input the application component names, and a second selection item for the user to select the switching sequence of each application component or a second input box for the user to input the switching sequence of each application component; the second area includes a third selection item for the user to select the switching template name or a third input box for the user to input the switching template name.
5. The method of claim 4, wherein the asynchronous calling tool comprises a distributed asynchronous calling tool cerely; respectively calling the switching interfaces corresponding to the switching strategies in the asynchronous calling tool, and respectively switching each target application component based on each switching interface, wherein the switching interfaces comprise:
and respectively issuing tasks for calling the switching interfaces corresponding to the switching strategies to the distributed asynchronous calling tool cerely, respectively calling each switching interface in the distributed asynchronous calling tool cerely, and respectively switching each target application component.
6. The method of claim 5, wherein after the switching the target application components based on the switching interfaces respectively, further comprising:
and respectively storing the calling results of the switching interfaces in a distributed database redis.
7. The method according to claim 5 or 6, wherein for any one of the switching interfaces, splicing the switching interface and a return result calling the switching interface into a character string with a preset format for display comprises:
asynchronously acquiring the calling result of each switching interface from the redis based on the asynchronous calling tool cerely;
and aiming at any one switching interface, splicing the switching interface and the calling result of the switching interface into a character string with a preset format for displaying.
8. An end-to-end dual activity device, comprising:
the loading module is used for responding to an end-to-end switching request triggered by a user, and loading and displaying an end-to-end switching operation interface;
the issuing module is used for responding to an instruction which is generated by a user based on the end-to-end switching operation interface and carries a switching strategy, and issuing the calling tasks corresponding to the switching strategy to the asynchronous calling tool respectively;
the switching module is used for respectively calling switching interfaces corresponding to the switching strategies in the asynchronous calling tool and respectively switching each target application component based on each switching interface, wherein the target application components are pre-configured end-to-end dual-active application components included in the switching strategies;
and the display module is used for splicing the switching interface and a return result for calling the switching interface into a character string with a preset format for displaying aiming at any one switching interface.
9. An end-to-end live device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN202011396261.1A 2020-12-03 2020-12-03 End-to-end double-activity method, device, equipment and storage medium Pending CN112527480A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202011396261.1A CN112527480A (en) 2020-12-03 2020-12-03 End-to-end double-activity method, device, equipment and storage medium
PCT/CN2021/083256 WO2022116428A1 (en) 2020-12-03 2021-03-26 End-to-end active-active method, apparatus and device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011396261.1A CN112527480A (en) 2020-12-03 2020-12-03 End-to-end double-activity method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112527480A true CN112527480A (en) 2021-03-19

Family

ID=74996669

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011396261.1A Pending CN112527480A (en) 2020-12-03 2020-12-03 End-to-end double-activity method, device, equipment and storage medium

Country Status (2)

Country Link
CN (1) CN112527480A (en)
WO (1) WO2022116428A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022116428A1 (en) * 2020-12-03 2022-06-09 平安科技(深圳)有限公司 End-to-end active-active method, apparatus and device, and storage medium
CN116909494A (en) * 2023-09-12 2023-10-20 苏州浪潮智能科技有限公司 Storage switching method and device of server and server system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461789A (en) * 2014-12-30 2015-03-25 华夏银行股份有限公司 Control method and system for achieving host and backup switching of disaster backup system
CN105827623B (en) * 2016-04-26 2019-06-07 山石网科通信技术股份有限公司 Data center systems
CN108964986B (en) * 2018-06-15 2022-01-25 国网上海市电力公司 Application-level double-active disaster recovery system of cooperative office system
CN112527480A (en) * 2020-12-03 2021-03-19 平安科技(深圳)有限公司 End-to-end double-activity method, device, equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022116428A1 (en) * 2020-12-03 2022-06-09 平安科技(深圳)有限公司 End-to-end active-active method, apparatus and device, and storage medium
CN116909494A (en) * 2023-09-12 2023-10-20 苏州浪潮智能科技有限公司 Storage switching method and device of server and server system
CN116909494B (en) * 2023-09-12 2024-01-26 苏州浪潮智能科技有限公司 Storage switching method and device of server and server system

Also Published As

Publication number Publication date
WO2022116428A1 (en) 2022-06-09

Similar Documents

Publication Publication Date Title
CN108600029B (en) Configuration file updating method and device, terminal equipment and storage medium
CN109634728B (en) Job scheduling method and device, terminal equipment and readable storage medium
US20220374330A1 (en) Providing debug information on production containers using debug containers
US10114834B2 (en) Exogenous virtual machine synchronization and replication
US10656929B2 (en) Autonomously healing microservice-based applications
US10805407B2 (en) Supporting high availability for orchestrated services
KR100575497B1 (en) Fault tolerant computer system
CN109032824A (en) Database method of calibration, device, computer equipment and storage medium
CN108664289B (en) Service data processing method and terminal equipment
CN102834806A (en) System structure managing device, method of managing system structure, and program
CN112527480A (en) End-to-end double-activity method, device, equipment and storage medium
US11151025B1 (en) Generating software test plans based at least in part on monitored traffic of a production application
US11063811B2 (en) Multi-tenant event sourcing and audit logging in a cloud-based computing infrastructure
CN112035344A (en) Multi-scenario test method, device, equipment and computer readable storage medium
Di Mauro et al. Availability modeling and evaluation of a network service deployed via NFV
US8935570B2 (en) Automating infrastructure workflows as atomic transactions
CN115812298A (en) Block chain management of supply failure
CN110555150A (en) Data monitoring method, device, equipment and storage medium
CN113094081A (en) Software distribution method, device, computer system and computer readable storage medium
US9323509B2 (en) Method and system for automated process distribution
CN113419829B (en) Job scheduling method, device, scheduling platform and storage medium
CN113610525B (en) Processing method, device, equipment and medium of financial data based on blockchain
CN113592453B (en) Information system operation compliance examining method and system based on block chain
CN111930559A (en) Disaster recovery switching method, system, device and storage medium
CN110266564A (en) The method of the method and control device and its execution of detection device and its execution

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