Business system switching method and related equipment

By building release service applications and load balancing services on the server, the automated handover and failover of multiple business systems are solved, and the problems of cumbersome switching process and poor stability in the existing technology are improved, and the stability and reliability of business system switching are improved. sex.

CN114995895BActive Publication Date: 2024-12-17CHINA LIFE INSURANCE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210314460.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-28
Publication Date
2024-12-17
Estimated Expiration
2042-03-28

AI Technical Summary

Technical Problem

In the prior art, when the old business system is switched to a new business system, switching logic is frequently written, which leads to cumbersome processes and prone to business interruptions and downtime problems. Especially when multiple old business systems are switched, it is difficult to ensure the stability of the switching.

Method used

By building a release service application on the server, configuring switching parameters, and using load balancing services to allocate traffic to multiple operating units for execution, traffic switching for multiple business systems is realized, and failover policies are set during the switching process to ensure that Traffic returns to the original system to avoid interruption.

Benefits of technology

The parameter configuration during the switching process of multiple business systems is realized, which reduces cumbersome operations, enhances the stability and reliability of the switching process, and avoids business interruptions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114995895B_ABST
    Figure CN114995895B_ABST
Patent Text Reader

Abstract

The present application provides a business system switching method and related equipment; the method includes: based on a built publishing service application, deploying the publishing service application to multiple first business systems; calling the publishing service application, and configuring switching parameters in the publishing service application; controlling the publishing service application to run according to the switching parameters, and switching all traffic loaded in each of the first business systems to the corresponding second business system that is preset during operation. It can be seen that the business system switching method and related equipment provided by the present application avoid the tedious operation of configuring parameters for each first business system every time it switches, and realizes that when problems occur during the switching process, the traffic can be returned to the first business system, thereby enhancing the stability of the switching process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer information technology, and in particular, to a switching method for a business system and related equipment. Background Art

[0002] In the related art, when switching an old business system to a new business system, it is necessary to write switching logic for each old business system. When there are a large number of old business systems that need to be switched to the new business system, the switching process will be very cumbersome. On the other hand, when the new system is running, it is often easy to trigger invisible vulnerabilities, causing business interruptions, or during the switching process, problems may occur due to network, machine, etc., causing downtime, thereby interrupting the business.

[0003] Based on this, a solution is needed that can implement switching of multiple business systems by writing switching logic once, and can avoid business interruption when problems are encountered during switching. Summary of the invention

[0004] In view of this, the purpose of the present application is to provide a switching method for a service system and related equipment.

[0005] Based on the above purpose, the present application provides a business system switching method, which is applied to a server, and the method includes:

[0006] Based on the built publishing service application, deploy the publishing service application to multiple first business systems;

[0007] Calling the publishing service application, and configuring switching parameters in the publishing service application;

[0008] The publishing service application is controlled to run according to the switching parameters, and during the running process, all traffic of the load in each of the first business systems is switched to the preset corresponding second business system.

[0009] Furthermore, after running the publishing service application, it also includes:

[0010] In response to determining that switching the traffic loaded in the first service system to the second service system fails, all of the traffic is forwarded back to the first service system.

[0011] Furthermore, the publishing service application based on the construction includes:

[0012] Hosting the script and load balancing service of the publishing service application in the development platform;

[0013] Storing the script of the publishing service application according to a preset storage path;

[0014] Based on the stored script, the load balancing of the publishing service application is distributed to multiple operation units for execution through the load balancing service.

[0015] Further, the deploying the publishing service application to multiple first business systems includes:

[0016] In the platform as a service mode, replicate multiple publishing services, and carry each of the replicated publishing services by a container;

[0017] Determining a label of each of the first business systems;

[0018] A copied publishing service application is configured for each of the first business systems, and the label corresponding to the first business system is configured for the publishing service application.

[0019] Further, the calling of the publishing service application and configuring the switching parameters in the publishing service application include:

[0020] In the container of any of the publishing service applications, calling a stored script of the publishing service application based on a viewing command;

[0021] According to a preset switching ratio, the ratio parameter in the switching parameter is modified for the first business system in the script of the publishing service application.

[0022] According to the preset switching time, configuring the start time of switching the traffic for the first service system;

[0023] Based on a load command executed on the script of the publishing service application, the script loads the configured switching parameters into all the copied publishing service applications.

[0024] Furthermore, during operation, all traffic of the load in each of the first business systems is switched to the preset corresponding second business system, including:

[0025] In response to determining that all of the traffic of the first business system has been switched to the second business system, the ratio variable in the publishing service application is modified to 0.

[0026] Furthermore, the process of controlling the publishing service application to run according to the switching parameter further includes:

[0027] Using the prepared production data, running the first business system and the second business system during the switching process, obtaining a first operation result of the first business system based on the production data, and a second operation result of the second business system based on the production data;

[0028] The accuracy of the switching process is evaluated based on the comparison between the first operation result and the second operation result.

[0029] Based on the same inventive concept, the present application also provides a switching device for a business system, including:

[0030] A deployment module is configured to deploy the publishing service application to multiple first business systems based on the built publishing service application;

[0031] A setting module is configured to call the publishing service application and configure switching parameters in the publishing service application;

[0032] The execution module is configured to control the publishing service application to run according to the switching parameters, and during the running process, all the traffic of the load in each of the first business systems is switched to the preset corresponding second business system.

[0033] Based on the same inventive concept, the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a business system switching method as described in any one of the above items is implemented.

[0034] Based on the same inventive concept, the present application also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the switching method of the business system as described above.

[0035] From the above, it can be seen that the business system switching method and related devices provided by the present application are based on the publishing service application built by the server in its development platform, and are copied based on the platform as a service model. It comprehensively considers the parameter configuration method when multiple first business systems need to be switched to the second business system, avoids the tedious operation of configuring parameters for each first business system every time it is switched, and realizes that when problems occur during the switching process, the traffic can be returned to the first business system, thereby enhancing the stability of the switching process. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the technical solutions in the present application or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0037] Figure 1A flowchart of a switching method for a business system according to an embodiment of the present application;

[0038] Figure 2 A schematic diagram of a switching device module of a business system according to an embodiment of the present application;

[0039] Figure 3 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0040] In order to make the objectives, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.

[0041] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present application should be understood by people with ordinary skills in the field to which the present application belongs. The "first", "second" and similar words used in the embodiments of the present application do not represent any order, quantity or importance, but are only used to distinguish different components. "Include" or "comprising" and similar words mean that the elements or objects appearing before the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect.

[0042] As described in the background technology section, the switching method of the related business system is still difficult to meet the needs of the business system for traffic switching in actual work.

[0043] In the process of implementing the present application, the applicant discovered that the main problems with the switching method of the relevant business system are: First, in the relevant technology, each time the traffic of the old business system is switched to the new business system, the switching logic needs to be rewritten, but in actual production, there are often many old business systems that need to be switched, and with the development of relevant information technology and business, each business system often needs to be frequently reconstructed into a new business system. Writing the switching logic for many old business systems each time is not only cumbersome, but also a waste of resources and costs.

[0044] Furthermore, the applicant also found in the research that since new business systems often lack real relevant data, it is difficult to discover hidden problems and loopholes therein. When the new business system is running, these invisible problems and loopholes often lead to serious consequences, such as downtime, business terminals, etc., and in the process of switching between the old and new business systems, downtime caused by network, machine and other reasons also brings great difficulties to the execution of the business.

[0045] It can be understood that the method can be executed by any device, equipment, platform, or device cluster having computing and processing capabilities.

[0046] The technical method of the present application is described in detail below through specific embodiments.

[0047] In the embodiments of the present application, an Nginx server is taken as a specific example of a server. As a type of Web server (website server), an OpenRestry development platform can be deployed in the Nginx server. The OpenRestry platform is a scalable, high-performance Web platform (website platform) implemented by the Nginx server, and the OpenRestry development platform is built based on the Lua language.

[0048] Among them, a PaaS mode (Platform as a Service mode) is also deployed in the Nginx server to provide the Nginx server as a service.

[0049] refer to Figure 1 A switching method of a business system according to an embodiment of the present application is applied to a server and includes the following steps:

[0050] S101. Based on the constructed publishing service application, deploy the publishing service application to multiple first business systems.

[0051] In an embodiment of the present application, based on the set Nginx server and OpenRestry development platform, the Nginx server will use the OpenRestry development platform to carry a pre-written script for publishing a service application.

[0052] Furthermore, in this embodiment, the old business system that needs to perform traffic switching is called the first business system, the new business system is called the second business system, and the first business system and the corresponding second business system are both set to multiple.

[0053] Each first business system has a label that is different from other first business systems.

[0054] In this embodiment, the specific execution logic of the pre-written script for publishing the service application includes:

[0055] First, a Location statement is used to locate a first service system that needs to perform traffic switching from multiple first service systems according to the label of each first service system.

[0056] Furthermore, the Default_type statement is used to set a default type for the relevant parameters of the first business system.

[0057] Furthermore, a Set statement is used to set execution parameter value configuration commands for multiple relevant parameters of the first business system, wherein the relevant parameters may be: a switching ratio when the first business system performs traffic switching, a starting switching time, and a URL (Uniform Resource Locator) of the first business system.

[0058] Furthermore, an interface with the PaaS is established and the script is run.

[0059] Furthermore, when encountering an operational failure, a runtime fault code is returned, wherein the operational failure may be caused by a vulnerability hidden in the second business system, or an interruption of business execution of the second business system due to network failure or the like.

[0060] Furthermore, a transfer strategy is set for the received fault code, that is, the traffic in the second service system is switched back to the first service system.

[0061] Furthermore, after all traffic of the first service system is switched to the second service system, a switching ratio of the first service system is set.

[0062] Furthermore, the Nginx server uses the script carried as a configuration file of the publishing service application and stores it in a corresponding storage directory. When the publishing service application is used, the configuration file is retrieved according to the storage directory.

[0063] Furthermore, after the OpenRestry development platform carries the configuration file of the above-mentioned publishing service application, it can also connect to the following load balancing service.

[0064] In an embodiment of the present application, a load balancing service can be installed in the OpenRestry development platform. The load balancing service can evenly distribute the load of the publishing service application to multiple operation units of the Nginx server to improve the stability and efficiency of the publishing service application during operation. When users use the publishing service application, they will call the corresponding functions in the publishing service application through the installed load balancing service.

[0065] Furthermore, based on the PaaS model deployed in the OpenRestry development platform, the built publishing service application can be replicated to achieve rapid expansion.

[0066] Specifically, the PaaS model in this embodiment can be regarded as a virtual machine, which calls the publishing service application through the PaaS interface in the publishing service application configuration file, and replicates the publishing service application in large quantities according to the number of first business systems that need to switch traffic.

[0067] Furthermore, since in this embodiment, the PaaS model can be used as a virtual machine, each of the large number of copied publishing service applications can be saved in a container of PaaS, that is, a container can only save one copied publishing service application, and each copied publishing service application can also be regarded as a project running in the virtual machine, without having to consider that too many running containers will affect the threads of the Nginx server, wherein each container can be distinguished according to its corresponding first business system.

[0068] At this point, it can be considered that each first business system has a corresponding publishing service application and a container that carries the publishing service application.

[0069] S102: Call the publishing service application, and configure switching parameters in the publishing service application.

[0070] In an embodiment of the present application, based on determining the first business system that needs to switch traffic, you can log in to a container of any publishing service application, and configure parameters of the publishing service applications corresponding to all first business systems through any publishing service application.

[0071] In this embodiment, the following preset switching configuration table is taken as a specific flow switching example:

[0072] Table 1. Switch configuration table

[0073] Week 1 Week 2 Week 3 Week 4 Week 5 System A 5% 50% 100% System B 5% 50% 100% System C 5% 50% 100%

[0074] It can be seen that the first business systems that need to switch traffic include: system A, system B and system C, and all of them need to switch traffic to the second business systems corresponding to each system at the same switching ratio within three weeks.

[0075] Among them, the switching ratios of system A, system B and system C are all 5% in the starting week of traffic switching, which will switch the traffic to the corresponding second business system. In the week after the starting week of traffic switching, the switching ratio will be increased to 50%, and in the last week of traffic switching, the traffic will be switched to the corresponding second business system at a switching ratio of 100%.

[0076] Furthermore, system A, system B, and system C all switch traffic at different starting times, wherein system A starts in the first week in Table 1, system B starts in the second week in the table, and system C starts in the third week in Table 1. Therefore, the time for each system to complete traffic switching is also postponed accordingly.

[0077] In this embodiment, when switching the traffic of the above system, you can log in to any container that publishes the service application, and through any container, you can enter the configuration file stored in the Nginx server according to the above storage directory.

[0078] Furthermore, after locating the storage directory of the publishing service application configuration file, the vi statement can be used to perform viewing and editing operations on the located configuration file to achieve the purpose of opening the configuration file.

[0079] Furthermore, in the opened configuration file, the first business system that needs to perform traffic switching is located according to the label of the first business system, and parameters of the first business system are configured.

[0080] Specifically, in the configuration file, it is necessary to modify the proportional parameters related to the switching ratio of system A to 5%, 50% and 100%, and modify the starting time parameters related to the switching time to the first week; modify the proportional parameters related to the switching ratio of system B to 5%, 50% and 100%, and modify the starting time parameters related to the switching time to the second week; modify the proportional parameters related to the switching ratio of system C to 5%, 50% and 100%, and modify the starting time parameters related to the switching time to the third week.

[0081] Furthermore, after completing the modification of the above parameters, the modified parameters are saved, and the Reload statement is used to load the above modified configuration file.

[0082] Furthermore, after the stored configuration file is loaded, the PaaS-based virtual machine can implement that the publishing service application in each container updates the above corresponding configuration.

[0083] S103: Control the publishing service application to run according to the switching parameters, and during the running process, switch all traffic of the load in each of the first business systems to the corresponding preset second business system.

[0084] In an embodiment of the present application, based on the parameter configuration of the publishing service application, traffic switching can be initiated for all first business systems that need to be switched.

[0085] Specifically, after executing the switching service of publishing service application on system A, system B and system C, the traffic in each system is switched according to the switching parameters configured above to achieve the switching ratio and switching time in Table 1.

[0086] Among them, when the traffic in any first business system is switched to the second business system, a fault occurs when executing related business in the second business system, or a fault occurs in the execution of the publishing service application responsible for switching the traffic during the switching process, the fault will be returned to the Nginx server according to the settings in the configuration file. After receiving the fault code, the Nginx server will transfer the traffic that has been switched to the second business system back to the first business system according to the settings in the configuration file to ensure uninterrupted business.

[0087] Furthermore, a timeout period may be set in the configuration file of the publishing service application. When the switching service executed by the publishing service application exceeds the set timeout period, its operation may be identified as a failure and a fault code may be sent to the Nginx server.

[0088] Furthermore, for any first service system, if its traffic has been completely switched to the second service system, the ratio parameter responsible for the switching ratio is modified to 0 in the configuration file.

[0089] In this embodiment, before switching traffic between the first business system and the second business system, the Nginx server may pre-capture relevant production data, and during the traffic switching process, allow both the first business system and the second business system to run the same prepared production data.

[0090] Furthermore, a first message returned by the first business system when running the production data is used as a first running result, a second message returned by the second business system when running the production data is used as a second running result, and the first running result and the second running result are compared.

[0091] Furthermore, based on the degree of difference in the comparison results, the accuracy of the traffic switching performed by the publishing service application on the first business system can be preliminarily determined.

[0092] From the above, it can be seen that the business system switching method and related devices provided by the present application are based on the publishing service application built by the server in its development platform, and are copied based on the platform as a service model. It comprehensively considers the parameter configuration method when multiple first business systems need to be switched to the second business system, avoids the tedious operation of configuring parameters for each first business system every time it is switched, and realizes that when problems occur during the switching process, the traffic can be returned to the first business system, thereby enhancing the stability of the switching process.

[0093] It should be noted that the method of the embodiment of the present application can be performed by a single device, such as a computer or server. The method of this embodiment can also be applied to a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present application, and the multiple devices will interact with each other to complete the described method.

[0094] It should be noted that the above describes some embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0095] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, an embodiment of the present application further provides a switching device for a business system.

[0096] refer to Figure 2 , the switching device of the business system comprises:

[0097] The deployment module 201 is configured to deploy the publishing service application to multiple first business systems based on the built publishing service application;

[0098] The setting module 202 is configured to call the publishing service application and configure the switching parameters in the publishing service application;

[0099] The execution module 203 is configured to control the publishing service application to run according to the switching parameters, and during the running process, switch all the traffic of the load in each of the first business systems to the preset corresponding second business system.

[0100] As an optional embodiment, the deployment module 201 is specifically configured as follows:

[0101] Hosting the script and load balancing service of the publishing service application in the development platform;

[0102] Storing the script of the publishing service application according to a preset storage path;

[0103] Based on the stored script, the load balancing of the publishing service application is distributed to multiple operation units for execution through the load balancing service.

[0104] In the platform as a service mode, replicate multiple publishing services, and carry each of the replicated publishing services by a container;

[0105] Determining a label of each of the first business systems;

[0106] A copied publishing service application is configured for each of the first business systems, and the label corresponding to the first business system is configured for the publishing service application.

[0107] As an optional embodiment, the setting module 202 is specifically configured to:

[0108] In the container of any of the publishing service applications, calling a stored script of the publishing service application based on a viewing command;

[0109] According to a preset switching ratio, the ratio parameter in the switching parameter is modified for the first business system in the script of the publishing service application.

[0110] According to the preset switching time, configuring the start time of switching the traffic for the first service system;

[0111] Based on a load command executed on the script of the publishing service application, the script loads the configured switching parameters into all the copied publishing service applications.

[0112] As an optional embodiment, the execution module 203 is specifically configured to:

[0113] In response to determining that all of the traffic of the first business system has been switched to the second business system, the ratio variable in the publishing service application is modified to 0.

[0114] Using the prepared production data, running the first business system and the second business system during the switching process, obtaining a first operation result of the first business system based on the production data, and a second operation result of the second business system based on the production data;

[0115] The accuracy of the switching process is evaluated based on the comparison between the first operation result and the second operation result.

[0116] For the convenience of description, the above devices are described in terms of functions and are divided into various modules. Of course, when implementing the embodiments of the present application, the functions of each module can be implemented in the same or multiple software and / or hardware.

[0117] The device of the above embodiment is used to implement the corresponding business system switching method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.

[0118] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, an embodiment of the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the business system switching method described in any of the above embodiments is implemented.

[0119] Figure 3 A more specific schematic diagram of the hardware structure of an electronic device provided in this embodiment is shown, and the device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other through the bus 1050 in the device.

[0120] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application.

[0121] The memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solution provided in the embodiment of the present application is implemented by software or firmware, the relevant program code is stored in the memory 1020 and is called and executed by the processor 1010.

[0122] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.

[0123] The communication interface 1040 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).

[0124] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040).

[0125] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiment of the present application, and does not necessarily include all the components shown in the figure.

[0126] The device of the above embodiment is used to implement the corresponding business system switching method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.

[0127] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the business system switching method described in any of the above embodiments.

[0128] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, 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, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, tape 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.

[0129] The computer instructions stored in the storage medium of the above embodiment are used to enable the computer to execute the business system switching method described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0130] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present application (including the claims) is limited to these examples. In line with the concept of the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of simplicity.

[0131] In addition, to simplify the description and discussion, and in order not to make the embodiments of the present application difficult to understand, the known power supply / ground connection with the integrated circuit (IC) chip and other components may or may not be shown in the provided drawings. In addition, the device can be shown in the form of a block diagram to avoid making the embodiments of the present application difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform on which the embodiments of the present application will be implemented (that is, these details should be fully within the scope of understanding of those skilled in the art). In the case of elaborating specific details (e.g., circuits) to describe exemplary embodiments of the present application, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details or when these specific details are changed. Therefore, these descriptions should be considered illustrative rather than restrictive.

[0132] Although the present application has been described in conjunction with specific embodiments of the present application, many replacements, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.

[0133] The embodiments of the present application are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the protection scope of the present application.

Claims

1. A method for switching a business system, characterized in that: Applied to a server, the method comprises: Based on the built publishing service application, deploy the publishing service application to multiple first business systems; Calling the publishing service application, and configuring switching parameters in the publishing service application; Controlling the publishing service application to run according to the switching parameter, and switching all traffic of the load in each of the first business systems to the corresponding preset second business system during the running process; The publishing service application based on the construction includes: Hosting the script and load balancing service of the publishing service application in the development platform; Storing the script of the publishing service application according to a preset storage path; Based on the stored script, the load balancing of the publishing service application is distributed to multiple operation units for execution through the load balancing service; The deploying the publishing service application to multiple first business systems includes: In the platform as a service mode, replicate multiple publishing services, and carry each of the replicated publishing services by a container; Determining a label of each of the first business systems; Configuring a copied publishing service application for each of the first business systems, and configuring the label corresponding to the first business system for the publishing service application; The calling of the publishing service application and configuring the switching parameters in the publishing service application include: In the container of any of the publishing service applications, calling a stored script of the publishing service application based on a viewing command; According to a preset switching ratio, modifying a ratio parameter in the switching parameter for the first business system in the script of the publishing service application; According to the preset switching time, configuring the start time of switching the traffic for the first service system; Based on a load command executed on the script of the publishing service application, the script loads the configured switching parameters into all the copied publishing service applications.

2. The method according to claim 1, characterized in that After running the publishing service application, it also includes: In response to determining that switching the traffic loaded in the first service system to the second service system fails, all of the traffic is forwarded back to the first service system.

3. The method according to claim 1, characterized in that During operation, all traffic of the load in each of the first business systems is switched to the preset corresponding second business system, including: In response to determining that all of the traffic of the first business system has been switched to the second business system, the ratio variable in the publishing service application is modified to 0.

4. The method according to claim 2, characterized in that: The process of controlling the publishing service application to run according to the switching parameter also includes: Using the prepared production data, running the first business system and the second business system during the switching process, obtaining a first operation result of the first business system based on the production data, and a second operation result of the second business system based on the production data; The accuracy of the switching process is evaluated based on the comparison between the first operation result and the second operation result.

5. A switching device for a business system, comprising: A deployment module is configured to deploy the publishing service application to multiple first business systems based on the built publishing service application; A setting module is configured to call the publishing service application and configure switching parameters in the publishing service application; An execution module is configured to control the publishing service application to run according to the switching parameter, and during the running process, all traffic of the load in each of the first business systems is switched to the corresponding second business system which is preset; The publishing service application based on the construction includes: Hosting the script and load balancing service of the publishing service application in the development platform; Storing the script of the publishing service application according to a preset storage path; Based on the stored script, the load balancing of the publishing service application is distributed to multiple operation units for execution through the load balancing service; The deploying the publishing service application to multiple first business systems includes: In the platform as a service mode, replicate multiple publishing services, and carry each of the replicated publishing services by a container; Determining a label of each of the first business systems; Configuring a copied publishing service application for each of the first business systems, and configuring the label corresponding to the first business system for the publishing service application; The calling of the publishing service application and configuring the switching parameters in the publishing service application include: In the container of any of the publishing service applications, calling a stored script of the publishing service application based on a viewing command; According to a preset switching ratio, modifying a ratio parameter in the switching parameter for the first business system in the script of the publishing service application; According to the preset switching time, configuring the start time of switching the traffic for the first service system; Based on a load command executed on the script of the publishing service application, the script loads the configured switching parameters into all the copied publishing service applications.

6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable by the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 4 is implemented.

7. A non-transitory computer-readable storage medium, characterized in that: The non-transitory computer-readable storage medium stores computer instructions for causing a computer to execute the method according to any one of claims 1 to 4.