Disaster recovery switching method and device, equipment, storage medium and computer program product
Through the automated disaster recovery switching method, the problems of cumbersome and time-consuming manual operations in the existing technology are solved, and efficient and automatic disaster recovery switching is achieved, which reduces maintenance costs and improves the stability of business processes.
Patent Information
- Application Number
- CN202510376753.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-27
- Publication Date
- 2025-04-25
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing disaster recovery switching method requires manual login to multiple hosts for configuration modification and manual call to multiple interactive interfaces. The operation is cumbersome and time-consuming, affecting the normal business processing of third-party partners and causing maintenance costs to double.
It provides an automated disaster recovery switching method. By receiving switching instructions, it determines the corresponding third-party platform, modifys the database configuration table, updates the process configuration parameters and configuration files of the background server, and sends restart instructions to complete the disaster recovery switching.
It realizes automatic and efficient disaster recovery switching of third-party platform business processes, reduces the cumbersomeness and time-consuming of manual operations, reduces maintenance costs, and improves the stability of business processes.
Smart Images

Figure CN119883745A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a disaster recovery switching method, apparatus, device, storage medium and computer program product. Background Art
[0002] At present, with the rapid development of Internet insurance business, the external cooperation business model has become one of the main models for insurance companies to develop Internet business. Insurance companies will carry out business cooperation with hundreds or even thousands of third-party companies, and third-party applications will realize product recommendation, purchase, issuance of orders and other functions.
[0003] In this external cooperation model, the insurance company server and the third-party partner server often need to achieve data connection through multiple interactive interfaces. In this model, when an abnormal situation occurs, in order to avoid the impact of the failure on the order issuance process or policy data, the relevant technology can switch the database to achieve the switching of the emergency disaster recovery insurance process, thereby reducing the impact of the failure and stabilizing the front-end user experience.
[0004] In the related technology, the switching process of the insurance process is mainly achieved by manually logging into the relevant service host to execute multiple scripts, manually calling the relevant interfaces after execution, and finally logging into the database to execute the relevant SQL query data and manually processing it. However, due to the large number of interfaces between servers, the switching process requires manual login to multiple related hosts to modify the configuration and manually call multiple interactive interfaces. The operation is extremely cumbersome and time-consuming, which greatly affects the normal business processing of third-party partners. At the same time, due to the need to maintain multiple configuration files, configure hosts, and switch interfaces, the maintenance volume is large and the maintenance cost is doubled.
[0005] It can be seen that there is an urgent need for a method that can efficiently implement disaster recovery switching of emergency insurance processes under abnormal circumstances. Summary of the invention
[0006] The embodiment of the present application provides a disaster recovery switching method to solve the problem that the existing disaster recovery switching needs to rely on manual login to multiple related hosts to modify the configuration and manually call multiple interactive interfaces. The operation is extremely cumbersome and time-consuming, which greatly affects the normal business processing of third-party partners and causes the maintenance cost to double.
[0007] The embodiment of the present application also provides a disaster recovery switching device to solve the problem that the existing disaster recovery switching needs to rely on manual login to multiple related hosts to modify the configuration and manually call multiple interactive interfaces. The operation is extremely cumbersome and time-consuming, which greatly affects the normal business processing of third-party partners and causes the maintenance cost to double.
[0008] The embodiment of the present application also provides a disaster recovery switching device to solve the problem that the existing disaster recovery switching needs to rely on manual login to multiple related hosts to modify the configuration and manually call multiple interactive interfaces. The operation is extremely cumbersome and time-consuming, which greatly affects the normal business processing of third-party partners and causes the maintenance cost to double.
[0009] The embodiment of the present application also provides a computer-readable storage medium to solve the problem that the existing disaster recovery switching requires manual login to multiple related hosts to modify the configuration and manually call multiple interactive interfaces. The operation is extremely cumbersome and time-consuming, which greatly affects the normal business processing of third-party partners and causes the maintenance cost to double.
[0010] A computer program product is used to solve the problem that existing disaster recovery drills rely on manual command. Due to the wide range of departments and personnel involved in the disaster recovery switching process and the high complexity of technical operations, the existing disaster recovery drills have low drill efficiency and poor accuracy of drill results.
[0011] The present application embodiment adopts the following technical solutions: A disaster recovery switching method comprises: determining a third-party platform corresponding to a switching instruction according to a received switching instruction, modifying an original configuration table corresponding to the third-party platform in a database to obtain a first configuration table; establishing a connection with a background server of the third-party platform, updating a process configuration parameter in the background server according to the first configuration table to obtain an updated first process configuration parameter; modifying a configuration file in the background server according to the first process configuration parameter to obtain an updated first configuration file; and sending a restart instruction to the background server so that the background server restarts in response to the restart instruction, thereby completing the disaster recovery switching of the third-party platform.
[0012] A disaster recovery switching device comprises: a configuration table modification unit, which is used to determine a third-party platform corresponding to a switching instruction according to a received switching instruction, and to modify an original configuration table corresponding to the third-party platform in a database to obtain a first configuration table; a configuration parameter updating unit, which is used to establish a connection with a background server of the third-party platform, and to update the process configuration parameters in the background server according to the first configuration table to obtain updated first process configuration parameters; a configuration file modification unit, which is used to modify the configuration file in the background server according to the first process configuration parameters to obtain an updated first configuration file; and a restart unit, which is used to send a restart instruction to the background server, so that the background server restarts in response to the restart instruction, thereby completing the disaster recovery switching of the third-party platform.
[0013] A disaster recovery switching device, comprising: A processor; and a memory arranged to store computer-executable instructions, wherein the executable instructions, when executed, cause the processor to perform the following operations: determine, according to the received switching instruction, a third-party platform corresponding to the switching instruction, and modify an original configuration table corresponding to the third-party platform in a database to obtain a first configuration table; establish a connection with a background server of the third-party platform, and according to the first configuration table, update the process configuration parameters in the background server to obtain updated first process configuration parameters; according to the first process configuration parameters, modify the configuration file in the background server to obtain an updated first configuration file; send a restart instruction to the background server, so that the background server restarts in response to the restart instruction, and completes the disaster recovery switching of the third-party platform.
[0014] A computer-readable storage medium stores one or more programs, which, when executed by an electronic device including multiple application programs, enable the electronic device to perform the following operations: determine a third-party platform corresponding to a switching instruction based on a received switching instruction, and modify an original configuration table corresponding to the third-party platform in a database to obtain a first configuration table; establish a connection with a background server of the third-party platform, and update a process configuration parameter in the background server based on the first configuration table to obtain an updated first process configuration parameter; modify a configuration file in the background server based on the first process configuration parameter to obtain an updated first configuration file; and send a restart instruction to the background server so that the background server restarts in response to the restart instruction to complete the disaster recovery switching of the third-party platform.
[0015] A computer program product includes a computer program, which, when executed by a processor, implements: determining a third-party platform corresponding to a switching instruction according to a received switching instruction, modifying an original configuration table corresponding to the third-party platform in a database to obtain a first configuration table; establishing a connection with a background server of the third-party platform, updating a process configuration parameter in the background server according to the first configuration table to obtain an updated first process configuration parameter; modifying a configuration file in the background server according to the first process configuration parameter to obtain an updated first configuration file; and sending a restart instruction to the background server so that the background server restarts in response to the restart instruction, thereby completing the disaster recovery switching of the third-party platform.
[0016] At least one of the above technical solutions adopted in the embodiments of the present application can achieve the following beneficial effects: By adopting the disaster recovery switching method provided by the embodiment of the present application, when the business of the external cooperative third-party application platform cannot be carried out normally due to a sudden failure, the user can directly initiate a disaster recovery business process switching instruction on the operation interface of the third-party application platform. The business process switching system can determine the third-party platform corresponding to the switching instruction according to the received switching instruction, modify the original configuration table corresponding to the third-party platform in the database, obtain the first configuration table, establish a connection with the background server of the third-party platform, update the process configuration parameters in the background server according to the first configuration table, obtain the updated first process configuration parameters, and then modify the configuration file in the background server according to the first process configuration parameters to obtain the updated first configuration file, send a restart instruction to the background server, so that the background server responds to the restart instruction to restart, and complete the disaster recovery switching of the third-party platform. By adopting the disaster recovery switching method provided by the embodiment of the present application, when the disaster recovery switching of the business process is required due to the influence of a sudden failure, the switching system can automatically modify the configuration tables of multiple databases, and automatically complete the modification of the configuration parameters and configuration files of the background server of the third-party platform according to the modified configuration table, thereby realizing automatic and efficient disaster recovery switching of the business process of the third-party platform. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings: Figure 1 A schematic diagram of the specific structure of a disaster recovery switching system provided in an embodiment of the present application; Figure 2 A schematic diagram of a specific process of a disaster recovery switching method provided in an embodiment of the present application; Figure 3 A schematic diagram of the specific structure of a disaster recovery switching device provided in an embodiment of the present application; Figure 4 A schematic diagram of the specific structure of a disaster recovery switching device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0018] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.
[0019] In order to solve the problem that the existing disaster recovery switching requires manual login to multiple related hosts to modify the configuration and manually call multiple interactive interfaces, which is extremely cumbersome and time-consuming, greatly affects the normal business processing of third-party partners, and causes the maintenance cost to double, the embodiment of the present application provides a disaster recovery switching system and a disaster recovery switching method based on the disaster recovery switching system.
[0020] The specific structure of the disaster recovery switching system provided in the embodiment of the present application is as follows: Figure 1 As shown, it mainly includes the front-end web operation interface, the third-party platform server and the corresponding multiple databases. Among them, the front-end web operation interface can be developed using the Django framework to realize function automation, reduce tedious manual operations, improve efficiency and ensure the quality of business processes and data; at the same time, the front-end web operating system can be developed using the front-end and back-end separation technology, by completely separating the front-end and back-end development work, using a progressive JavaScript front-end framework (for example, vue.js) for front-end development, and using Elament UI as the front-end display component, so as to connect multiple servers and multiple interfaces, and realize the one-click emergency process of page switching. The back-end focuses on business logic processing and data storage, and the front-end and back-end interact with each other through the Application Programming Interface (API), which improves development efficiency and facilitates later maintenance and expansion.
[0021] Based on the above-mentioned disaster recovery switching system, the specific implementation flow diagram of the disaster recovery switching method provided in this application is as follows: Figure 2 As shown, it mainly includes the following steps: Step 11, according to the received switching instruction, determining the third-party platform corresponding to the switching instruction, and modifying the original configuration table corresponding to the third-party platform in the database to obtain a first configuration table; In the embodiment of the present application, the administrator can log in to the disaster recovery switching system by entering the administrator account on the front-end login page. After completing the login, the disaster recovery switching system will jump to the disaster recovery switching operation interface, which displays the operation control interfaces of all operable third-party platforms. The administrator can select the corresponding third-party platform operation control interface according to business needs and switch. For example, the administrator can determine the third-party platform that currently has a sudden failure based on the disaster recovery alarm information, and then log in to the disaster recovery switching system to select the operation control interface of the faulty third-party platform to initiate a switching command.
[0022] The administrator selects a switching mode on the operation control interface corresponding to the faulty third-party platform and clicks the "Switch" virtual button on the operation control interface, thereby initiating a switching instruction carrying the identifier of the faulty third-party platform to the disaster recovery switching system. The disaster recovery switching system determines the third-party platform corresponding to the switching instruction based on the platform identifier carried in the received switching instruction. The disaster recovery switching system can connect to the backend database through Java Database Connectivity (JDBC) and modify and switch the business process mode in the original configuration table corresponding to the faulty third-party platform in the database according to the switching mode selected by the administrator on the operation control interface (for example, according to the switching mode selected by the administrator, the business process mode in the original configuration table is switched to "synchronous mode" or "asynchronous mode", etc.), and obtain the first configuration table.
[0023] Step 12, establishing a connection with a backend server of a third-party platform, and updating the process configuration parameters in the backend server according to the first configuration table modified by executing step 11, to obtain updated first process configuration parameters; After completing the update of the configuration table corresponding to the faulty third-party platform in the database by executing step 11, the disaster recovery switching system will automatically connect to the background application server corresponding to the faulty third-party platform, and update the process configuration parameters in the background application server according to the first configuration table, to obtain the updated first process configuration parameters.
[0024] Step 13, modifying the configuration file in the background server according to the first process configuration parameter obtained by executing step 12 to obtain an updated first configuration file; After completing the modification of the first process configuration parameters of the background application server corresponding to the third-party platform by executing step 12, the disaster recovery switching system can call the background server of the third-party platform according to the calling path through the interface, and modify the configuration file in the background server according to the first process configuration parameters obtained by executing step 12 to obtain an updated first configuration file.
[0025] Specifically, in one embodiment, the specific implementation method of step 13 may include: determining the calling path of the background server of the third-party platform; calling the background server of the third-party platform according to the calling path through an interface calling method, and modifying the configuration file in the background server according to the first process configuration parameters to obtain an updated first configuration file.
[0026] In one implementation, specific modifications to the configuration file may include but are not limited to the following: 1. According to the first process configuration parameters, adjust the synchronous call interface in the configuration file; 2. According to the first process configuration parameters, adjust the asynchronous call interface in the configuration file; 3. According to the first process configuration parameters, adjust the server node configuration parameters in the configuration file.
[0027] Step 14: Send a restart instruction to the background server, so that the background server restarts in response to the restart instruction, and completes the disaster recovery switching of the third-party platform.
[0028] After completing the configuration switch of the faulty third-party platform by executing the above steps 11 to 13, the disaster recovery switching system can send a restart command to the background server, thereby triggering the restart of the background server. After the restart, the Redis and cache in the background server can be cleared, thereby completing the emergency disaster recovery switch for the faulty third-party platform.
[0029] It should be noted here that after completing the disaster recovery switching for the faulty third-party platform by executing the above steps, data query can also be performed on the switched third-party platform through the disaster recovery switching system. Specifically, after completing the disaster recovery switching of the third-party platform, the data query method provided in the embodiment of the present application may include: responding to the received data query instruction, determining the third-party platform, query content and query time period corresponding to the query instruction; generating a structured query statement SQL according to the query content and query time period; connecting to the database corresponding to the third-party platform by calling the interface, and completing the data query for the third-party platform after the disaster recovery switching according to the structured query statement SQL.
[0030] Specifically, the administrator can enter the time period to be queried on the operation control interface corresponding to the third-party platform, and click the "Query" virtual button on the operation control interface corresponding to the third-party platform. The disaster recovery switching system can then generate a structured query statement SQL based on the query content and query time period, and automatically call the interface to connect to the corresponding database to perform data query operations.
[0031] It should also be noted here that after completing the data query through the above operations, the queried data can also be transferred through the disaster recovery switching system. Specifically, in an embodiment of the present application, the disaster recovery switching system can transfer the queried data according to the following method, the method including: responding to a received data transfer instruction, determining a third-party platform identifier and time parameters corresponding to the data transfer instruction; obtaining verification parameters corresponding to the third-party platform, and generating a transfer interface based on the third-party platform identifier, the time parameters and the verification parameters; calling the transfer interface to complete the data transfer for the third-party platform.
[0032] Specifically, when the administrator completes the data query through the above operations, a "Transfer" virtual button will be displayed on the operation control interface corresponding to the third-party platform. At this time, when the administrator clicks the "Transfer" virtual button, the disaster recovery switching system will call the transfer interface. The transfer interface has several variables (for example, the variables can be: date, sign, project code, etc.). The corresponding third-party platforms and transfer contents after different variables are spliced are different. Therefore, in this embodiment of the application, the disaster recovery switching system can first determine the corresponding third-party platform and the data to be transferred (for example, the content selected by the administrator on the operation control interface) according to the query instruction, and use these data as the interface variables corresponding to the transfer interface, and splice them into the interface suffix. After the interface splicing is completed, the disaster recovery switching system can call the transfer interface to transfer data. After the transfer is completed, the operation control interface will display the specific amount of transferred data and the transfer completion status prompt.
[0033] By adopting the disaster recovery switching method provided by the embodiment of the present application, when the business of the external cooperative third-party application platform cannot be carried out normally due to a sudden failure, the user can directly initiate a disaster recovery business process switching instruction on the operation interface of the third-party application platform. The business process switching system can determine the third-party platform corresponding to the switching instruction according to the received switching instruction, modify the original configuration table corresponding to the third-party platform in the database, obtain the first configuration table, establish a connection with the background server of the third-party platform, update the process configuration parameters in the background server according to the first configuration table, obtain the updated first process configuration parameters, and then modify the configuration file in the background server according to the first process configuration parameters to obtain the updated first configuration file, send a restart instruction to the background server, so that the background server responds to the restart instruction to restart, and complete the disaster recovery switching of the third-party platform. By adopting the disaster recovery switching method provided by the embodiment of the present application, when the disaster recovery switching of the business process is required due to the influence of a sudden failure, the switching system can automatically modify the configuration tables of multiple databases, and automatically complete the modification of the configuration parameters and configuration files of the background server of the third-party platform according to the modified configuration table, thereby realizing automatic and efficient disaster recovery switching of the business process of the third-party platform.
[0034] In one implementation, the present application also provides a disaster recovery switching device to solve the problem that the existing disaster recovery switching needs to rely on manual login to multiple related hosts to modify the configuration and manually call multiple interactive interfaces, which is extremely cumbersome and time-consuming, greatly affecting the normal business processing of third-party partners and causing the maintenance cost to double. The specific structural diagram of the disaster recovery switching device is shown in Figure 3As shown, it includes: a configuration table modifying unit 31, a configuration parameter updating unit 32, a configuration file modifying unit 33 and a restarting unit 34.
[0035] The configuration table modification unit 31 is used to determine the third-party platform corresponding to the switching instruction according to the received switching instruction, and modify the original configuration table corresponding to the third-party platform in the database to obtain a first configuration table; A configuration parameter updating unit 32 is used to establish a connection with the backend server of the third-party platform, and update the process configuration parameters in the backend server according to the first configuration table to obtain updated first process configuration parameters; A configuration file modification unit 33, configured to modify the configuration file in the backend server according to the first process configuration parameters to obtain an updated first configuration file; The restart unit 34 is used to send a restart instruction to the background server, so that the background server restarts in response to the restart instruction to complete the disaster recovery switch of the third-party platform.
[0036] In one embodiment, the configuration file modification unit 33 is specifically used to: determine the calling path of the background server of the third-party platform; call the background server of the third-party platform according to the calling path through an interface calling method, and modify the configuration file in the background server according to the first process configuration parameters to obtain an updated first configuration file.
[0037] In one embodiment, the configuration file modification unit 33 is specifically used to: adjust the synchronous call interface in the configuration file according to the first process configuration parameters; adjust the asynchronous call interface in the configuration file according to the first process configuration parameters; adjust the server node configuration parameters in the configuration file according to the first process configuration parameters.
[0038] In one embodiment, it also includes a query unit, which is specifically used to: respond to a received data query instruction, determine the third-party platform, query content and query time period corresponding to the query instruction; generate a structured query statement SQL according to the query content and query time period; connect to the database corresponding to the third-party platform by calling an interface, and complete the data query for the third-party platform after the disaster recovery switch according to the structured query statement SQL.
[0039] In one embodiment, it also includes a transfer unit, which is specifically used to: in response to a received data transfer instruction, determine the third-party platform identifier and time parameters corresponding to the data transfer instruction; obtain the verification parameters corresponding to the third-party platform, and generate a transfer interface according to the third-party platform identifier, the time parameters and the verification parameters; call the transfer interface to complete the data transfer for the third-party platform.
[0040] By adopting the disaster recovery switching device provided by the embodiment of the present application, when the business of the external third-party application platform cannot be carried out normally due to a sudden failure, the user can directly initiate a disaster recovery business process switching instruction on the operation interface of the third-party application platform. The business process switching system can determine the third-party platform corresponding to the switching instruction according to the received switching instruction, modify the original configuration table corresponding to the third-party platform in the database, obtain the first configuration table, establish a connection with the background server of the third-party platform, update the process configuration parameters in the background server according to the first configuration table, obtain the updated first process configuration parameters, and then modify the configuration file in the background server according to the first process configuration parameters to obtain the updated first configuration file, send a restart instruction to the background server, so that the background server responds to the restart instruction to restart, and complete the disaster recovery switching of the third-party platform. By adopting the disaster recovery switching method provided by the embodiment of the present application, when the disaster recovery switching of the business process is required due to the influence of sudden failures, the switching system can automatically modify the configuration tables of multiple databases, and automatically complete the modification of the configuration parameters and configuration files of the background server of the third-party platform according to the modified configuration table, so as to realize the automatic and efficient disaster recovery switching of the business process of the third-party platform.
[0041] Figure 4 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. Figure 4 At the hardware level, the electronic device includes a processor, and optionally also includes an internal bus, a network interface, and a memory. The memory may include a memory, such as a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage. Of course, the electronic device may also include hardware required for other services.
[0042] The processor, network interface and memory can be interconnected through an internal bus, which can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0043] The memory is used to store the program. Specifically, the program may include a program code, and the program code includes a computer operation instruction. The memory may include a memory and a non-volatile memory, and provides instructions and data to the processor.
[0044] The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it, forming a disaster recovery switching device at the logical level. The processor executes the program stored in the memory and is specifically used to perform the following operations: According to the received switching instruction, the third-party platform corresponding to the switching instruction is determined, and the original configuration table corresponding to the third-party platform in the database is modified to obtain a first configuration table; a connection is established with the background server of the third-party platform, and according to the first configuration table, the process configuration parameters in the background server are updated to obtain updated first process configuration parameters; according to the first process configuration parameters, the configuration file in the background server is modified to obtain an updated first configuration file; a restart instruction is sent to the background server, so that the background server restarts in response to the restart instruction, and the disaster recovery switching of the third-party platform is completed.
[0045] The above application Figure 4The method for executing the disaster recovery switching electronic device disclosed in the illustrated embodiment can be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as being executed by a hardware decoding processor, or executed by a combination of hardware and software modules in a decoding processor. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
[0046] Of course, in addition to software implementation methods, the electronic device of the present application does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc. That is to say, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.
[0047] The embodiment of the present application also provides a computer-readable storage medium, which stores one or more programs, wherein the one or more programs include instructions, which, when executed by a portable electronic device including a plurality of application programs, enable the portable electronic device to execute Figure 2 The method of the embodiment shown is specifically used to perform the following operations: According to the received switching instruction, the third-party platform corresponding to the switching instruction is determined, and the original configuration table corresponding to the third-party platform in the database is modified to obtain a first configuration table; a connection is established with the background server of the third-party platform, and according to the first configuration table, the process configuration parameters in the background server are updated to obtain updated first process configuration parameters; according to the first process configuration parameters, the configuration file in the background server is modified to obtain an updated first configuration file; a restart instruction is sent to the background server, so that the background server restarts in response to the restart instruction, and the disaster recovery switching of the third-party platform is completed.
[0048] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0049] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0050] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0051] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0052] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0053] Memory may include non-permanent storage in a computer-readable medium, in the form of random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
[0054] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0055] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0056] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0057] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. A disaster recovery switching method, characterized in that: include: Determine, according to the received switching instruction, a third-party platform corresponding to the switching instruction, and modify an original configuration table corresponding to the third-party platform in the database to obtain a first configuration table; Establishing a connection with the backend server of the third-party platform, and updating the process configuration parameters in the backend server according to the first configuration table to obtain updated first process configuration parameters; According to the first process configuration parameter, modify the configuration file in the background server to obtain an updated first configuration file; A restart instruction is sent to the background server, so that the background server restarts in response to the restart instruction, thereby completing the disaster recovery switching of the third-party platform.
2. The method according to claim 1, characterized in that The step of modifying the configuration file in the background server according to the first process configuration parameter to obtain an updated first configuration file specifically includes: Determine the calling path of the backend server of the third-party platform; The backend server of the third-party platform is called according to the calling path through an interface calling method, and the configuration file in the backend server is modified according to the first process configuration parameter to obtain an updated first configuration file.
3. The method according to claim 2, characterized in that The modifying the configuration file in the background server according to the first process configuration parameter specifically includes: According to the first process configuration parameters, adjusting the synchronous call interface in the configuration file; According to the first process configuration parameters, adjusting the asynchronous call interface in the configuration file; According to the first process configuration parameters, the server node configuration parameters in the configuration file are adjusted.
4. The method according to claim 1, characterized in that: After the disaster recovery switch of the third-party platform is completed, the following steps are also included: In response to the received data query instruction, determine the third-party platform, query content and query period corresponding to the query instruction; Generate a structured query statement SQL according to the query content and query period; The database corresponding to the third-party platform is connected by calling an interface, and data query for the third-party platform after disaster recovery switching is completed according to the structured query statement SQL.
5. The method according to claim 4, characterized in that After the database corresponding to the third-party platform is connected by calling the interface and the data query for the third-party platform after the disaster recovery switch is completed according to the structured query statement SQL, the method further includes: In response to the received data transfer instruction, determining a third-party platform identifier and a time parameter corresponding to the data transfer instruction; Obtaining verification parameters corresponding to the third-party platform, and generating a transfer interface according to the third-party platform identifier, the time parameter, and the verification parameter; The transfer interface is called to complete the data transfer for the third-party platform.
6. A disaster recovery switching device, characterized in that: include: A configuration table modification unit, configured to determine the third-party platform corresponding to the switching instruction according to the received switching instruction, and modify the original configuration table corresponding to the third-party platform in the database to obtain a first configuration table; A configuration parameter updating unit, configured to establish a connection with a backend server of the third-party platform, and update the process configuration parameters in the backend server according to the first configuration table to obtain updated first process configuration parameters; A configuration file modification unit, configured to modify the configuration file in the backend server according to the first process configuration parameter to obtain an updated first configuration file; The restart unit is used to send a restart instruction to the background server, so that the background server restarts in response to the restart instruction to complete the disaster recovery switch of the third-party platform.
7. The device according to claim 6, characterized in that The configuration file modification unit is specifically used to: Determine the calling path of the backend server of the third-party platform; The backend server of the third-party platform is called according to the calling path through an interface calling method, and the configuration file in the backend server is modified according to the first process configuration parameter to obtain an updated first configuration file.
8. A disaster recovery switching device, comprising: processor; as well as a memory arranged to store computer executable instructions which, when executed, cause the processor to: Determine, according to the received switching instruction, a third-party platform corresponding to the switching instruction, and modify an original configuration table corresponding to the third-party platform in the database to obtain a first configuration table; Establishing a connection with the backend server of the third-party platform, and updating the process configuration parameters in the backend server according to the first configuration table to obtain updated first process configuration parameters; According to the first process configuration parameter, modify the configuration file in the background server to obtain an updated first configuration file; A restart instruction is sent to the background server, so that the background server restarts in response to the restart instruction, thereby completing the disaster recovery switching of the third-party platform.
9. A computer-readable storage medium storing one or more programs, wherein when the one or more programs are executed by an electronic device including a plurality of application programs, the electronic device executes the disaster recovery switching method according to any one of claims 1 to 5.
10. A computer program product, characterized in that It comprises a computer program, which, when executed by a processor, implements the disaster recovery switching method as claimed in any one of claims 1 to 5.
Citation Information
Patent Citations
Heterogeneous disaster recovery method, device and system, server and disaster recovery platform
CN109445988A
Equipment state switching control method and device, equipment and computer storage medium
CN115495289A
Business disaster recovery switching method and device, equipment and storage medium
CN117112313A
Disaster recovery switching method and device, nonvolatile storage medium and electronic equipment
CN118890266A