Channel Integration System Startup Method, Device, Electronic Device and Medium
By loading static data and configuration files in parallel in the channel integration system and controlling the number of threads concurrently, the problem of long system startup time is solved, and the system startup speed and emergency efficiency are improved.
Patent Information
- Application Number
- CN202110349355.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-31
- Publication Date
- 2025-07-22
- Estimated Expiration
- 2041-03-31
AI Technical Summary
When the bank channel integration system is started, a large number of configuration files and static data need to be preloaded, resulting in a long system startup time, affecting the system operation efficiency and emergency efficiency.
During the parallel loading of static data and configuration files of the channel integration system, the static data and configuration files are controlled according to the first and second preconfigured thread count respectively, and the system starts based on the loaded data and file control.
This greatly improves the startup speed and emergency efficiency of the channel integration system, and reduces the system startup time through parallel loading and concurrent loading technologies.
Smart Images

Figure CN112988251B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of big data, and in particular, to a method, device, electronic device, and medium for starting a channel integration system. Background Art
[0002] The bank channel integration system realizes the unified access of the front-end channel system, and uniformly sends the transaction requests of the channels to the back-end product system for transactions. It has the characteristics of a large number of transaction configurations, a large number of front-end and back-end systems for connection adaptation, and a large transaction volume. In order to improve the operation efficiency and performance of the system, all transaction configuration files and static data are usually pre-loaded when the system starts. Due to the need to pre-load a large number of configuration files and static data, the problem of long system startup time is caused, which brings difficulties to system operation and maintenance and affects the emergency efficiency of the system. Therefore, a method for starting a channel integration system that can not only ensure the efficient operation of the system but also improve the emergency efficiency and high availability of the system is needed. Summary of the Invention
[0003] Embodiments of the present invention provide a method, device, electronic device, and medium for starting a channel integration system, which can concurrently load static data and configuration files while loading them in parallel, so as to achieve the technical effect of greatly improving the startup speed of the channel integration system.
[0004] In a first aspect, embodiments of the present invention provide a method for starting a channel integration system, the method comprising:
[0005] During the parallel loading of the static data and configuration files of the channel integration system, at least two static data are concurrently loaded according to a first pre-configured number of threads, and at least two configuration files are concurrently loaded according to a second pre-configured number of threads;
[0006] Controlling the start of the channel integration system according to the loaded static data and configuration files.
[0007] In a second aspect, embodiments of the present invention further provide a device for starting a channel integration system, the device comprising:
[0008] A data loading module, configured to concurrently load at least two static data according to a first pre-configured number of threads and at least two configuration files according to a second pre-configured number of threads during the parallel loading of the static data and configuration files of the channel integration system;
[0009] A system start module, configured to control the start of the channel integration system according to the loaded static data and configuration files.
[0010] In a third aspect, embodiments of the present invention further provide an electronic device, comprising:
[0011] One or more processors;
[0012] A storage device for storing one or more programs;
[0013] The one or more programs are executed by the one or more processors, so that the one or more processors implement the channel integration system startup method provided in any embodiment of the present invention.
[0014] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, it implements the channel integration system startup method provided in any embodiment of the present invention.
[0015] An embodiment of the present invention provides a channel integration system startup method. During the process of parallel loading of static data and configuration files of the channel integration system, at least two static data are controlled to be concurrently loaded according to a first pre-configured number of threads, and at least two configuration files are controlled to be concurrently loaded according to a second pre-configured number of threads, and then the channel integration system is controlled to start based on the loaded static data and configuration files.
[0016] Adopting the technical solution of the present application, during the process of parallel loading of static data and configuration files of the channel integration system, at least two static data are controlled to be concurrently loaded according to a first pre-configured number of threads, and at least two configuration files are controlled to be concurrently loaded according to a second pre-configured number of threads. It is possible to concurrently load static data and configuration files respectively while parallel loading static data and configuration files, without having to load static data after loading the configuration files, and it can achieve the technical effect of greatly improving the startup speed of the channel integration system.
[0017] The above-mentioned invention content is only an overview of the technical solution of the present invention. In order to be able to understand the technical means of the present invention more clearly, it can be implemented according to the content of the specification. And in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable, the following specifically illustrates the specific embodiments of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] By reading the detailed description of the non-restrictive embodiments with reference to the following drawings, other features, purposes and advantages of the present invention will become more obvious. The drawings are only for the purpose of showing the preferred embodiments and are not considered to be a limitation of the present invention. Moreover, throughout the drawings, the same reference numerals are used to represent the same components. In the drawings:
[0019] Figure 1 It is a flowchart of a channel integration system startup method provided in Embodiment 1 of the present application;
[0020] Figure 2 It is a flowchart of another method for starting a channel integration system provided in the second embodiment of the present application;
[0021] Figure 3 It is a schematic diagram showing the preloaded configuration file provided in the second embodiment of the present application;
[0022] Figure 4 It is a schematic structural diagram of a device for starting a channel integration system provided in the third embodiment of the present application;
[0023] Figure 5 It is a schematic structural diagram of an electronic device provided in the fourth embodiment of the present application. Detailed implementation manners
[0024] The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It can be understood that the specific embodiments described herein are only for explaining the present invention, rather than limiting the present invention. Additionally, it should be noted that for the sake of description, only parts related to the present invention rather than all structures are shown in the accompanying drawings.
[0025] Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe the operations (or steps) as sequential processes, many of the operations can be implemented in parallel, concurrently, or simultaneously. In addition, the order of the operations can be rearranged. The process can be terminated when its operations are completed, but there can also be additional steps not included in the drawings. The process can correspond to a method, function, procedure, subroutine, subprogram, etc.
[0026] Embodiment 1
[0027] Figure 1 It is a flowchart of a method for starting a channel integration system provided in Embodiment 1 of the present invention. This method is applicable to the situation of quickly starting a bank channel integration system. This method can be executed by a device for starting a channel integration system, which can be implemented by software and / or hardware and can be integrated into an electronic device. As Figure 1 shown, the method for starting a channel integration system in this embodiment includes the following steps:
[0028] S110. During the parallel loading of the static data and configuration files of the channel integration system, control at least two pieces of static data to be loaded concurrently according to the first preconfigured number of threads, and control at least two configuration files to be loaded concurrently according to the second preconfigured number of threads.
[0029] The channel integration system of large banks has the characteristics of unified multi-cluster versions, large transaction volumes, and a large number of transaction configurations. In fact, most of the time, each functional cluster only uses a part of its own configuration files. Due to the need to pre-load a large number of configuration files and static data, the system startup time is long. Each startup of the system takes a long time, resulting in greater time costs for system operation and maintenance and affecting the emergency response efficiency of the system. At present, although the spring lazy loading mechanism applied in the startup of the channel integration system can avoid directly loading configuration files, it is necessary to identify and mark in advance the configuration files used by each cluster. The large-scale channel integration system with a unified version cannot achieve accurate identification, and the first running time of unrecognized transactions will become longer. Therefore, a method for improving the startup speed of the channel integration system of large banks is needed.
[0030] Among them, the processor obtains static data and configuration files from the storage device. While the central processing unit is parallelly loading the static data and configuration files, it controls at least two pieces of static data for concurrent loading according to the first pre-configured number of threads and at least two configuration files for concurrent loading according to the second pre-configured number of threads respectively.
[0031] In an optional solution of this embodiment, it can be combined with one or more optional solutions in this embodiment. Among them, the first pre-configured number of threads and the second pre-configured number of threads are three-quarters of the number of CPU cores.
[0032] Among them, generally, in order to improve the data loading efficiency, the number of threads configured for concurrent loading is three-quarters of the number of CPU cores of the machine.
[0033] By adopting the above technical solution, while parallelly loading the static data and configuration files, and respectively loading the static data and configuration files concurrently according to the pre-configured number of threads, it can achieve concurrent loading respectively when the static data and configuration files are parallelly loaded, and further improve the startup speed of the channel integration system.
[0034] In an optional solution of this embodiment, it can be combined with one or more optional solutions in this embodiment. Among them, controlling at least two pieces of static data for concurrent loading includes: concurrently loading at least two pieces of the same type of static data according to the loading order of various types of static data, and the static data includes application routing data, transaction control data, and whitelist data.
[0035] Among them, there is a dependency relationship between large categories of static data, and it is necessary to perform concurrent loading in the order of application routing data, transaction control data, and whitelist data.
[0036] In an alternative solution of this embodiment, it can be combined with one or more alternative solutions in this embodiment. Among them, controlling at least two configuration files to be loaded concurrently includes: concurrently loading at least two configuration files of the same type according to the loading order of various configuration files, where the configuration files include common class configuration files and non-common class configuration files; the non-common class configuration files include channel class, simple service class, complex service class, composite service class, and atomic service class configuration files.
[0037] Among them, the channel class configuration file stores the transaction configuration information of the front-end channel request side. The number of channel class configuration files is approximately one-fourth of all configuration files. The simple service class configuration file stores the penetration type transaction configuration information. The complex service class configuration file stores the transaction configuration information that requires logical processing by the system. The composite service class configuration file stores the transaction configuration information that requires the combination of two or more services. The atomic service class configuration file corresponds to the service configuration information provided by the back-end product components. The number of atomic class configuration files is approximately one-fourth of all configuration files.
[0038] S120. Control the channel integration system to start based on the loaded static data and configuration files.
[0039] In an alternative solution of this embodiment, it can be combined with one or more alternative solutions in this embodiment. Among them, after controlling the channel integration system to start based on the loaded static data and configuration files, it includes: loading the unloaded configuration files required for the channel integration transaction request in the system.
[0040] Among them, during the operation of the channel integration system, if when a transaction request enters the system and the system cannot find the configuration file required for the transaction request, the unloaded configuration file required by the transaction request is loaded from the storage device into the system.
[0041] Adopting the above technical solution, when loading concurrently according to data categories, since the same type of data is loaded at the same time, the loading speed will also be partially improved, and thus the startup speed of the system can be further improved. By dynamically loading the unloaded configuration files related to the transaction request, the emergency efficiency of the system can be improved.
[0042] The technical solution of this embodiment can further improve the startup speed of the system by controlling at least two static data to be loaded concurrently according to the first pre-configured number of threads and controlling at least two configuration files to be loaded concurrently according to the second pre-configured number of threads during the parallel loading of the static data and configuration files of the channel integration system. By dynamically loading the unloaded configuration files related to the transaction request, the emergency efficiency of the system can be improved.
[0043] Embodiment Two
[0044] Figure 2 It is a flowchart of another method for starting a channel integration system provided in Embodiment 2 of the present application. The embodiments of the present invention further optimize the foregoing embodiments on the basis of the above embodiments, and the embodiments of the present invention can be combined with various alternative solutions in one or more of the above embodiments. As Figure 2 shown, the method for starting a channel integration system provided in the embodiments of the present invention may include the following steps:
[0045] S210. Parallelly load the configuration files of the channel integration system according to the pre-loaded configuration file table, and at the same time parallelly load the static data of the channel integration system.
[0046] Among them, the processor parallelly loads the configuration files of the channel integration system according to the pre-loaded configuration file table configured before the system starts, and at the same time parallelly loads the static data of the channel integration system.
[0047] In an alternative solution of this embodiment, it may be combined with one or more alternative solutions in this embodiment. Among them, the pre-loaded configuration file table is determined by counting the configuration files required by each transaction cluster within a preset time.
[0048] Among them, the pre-loaded configuration file table is constructed by counting the configuration files required by each transaction cluster within a preset time and based on the required configuration files. As Figure 3 shown, the pre-loaded configuration table may include two columns: field name and whether it is non-empty. The field names include: configuration name, configuration type, and cluster name. The preset time for statistics may be 24 hours. When the system starts, count the configuration files required by each transaction cluster within 24 hours before the start time, and construct the pre-loaded configuration file table.
[0049] By adopting the above technical solution, the pre-loaded configuration file table is pre-configured by counting the configuration files required by each transaction cluster within a preset time, and the configuration files are loaded according to the pre-loaded configuration file table, which can improve the startup speed of the channel integration system while improving the operation efficiency and emergency efficiency of the channel integration system.
[0050] S220. Control the start of the channel integration system according to the loaded static data and configuration files.
[0051] In an alternative solution of this embodiment, it may be combined with one or more alternative solutions in this embodiment. Among them, after the system starts, it includes: updating the pre-loaded configuration file table according to the unloaded configuration files required by the channel integration transaction request.
[0052] After the processor loads the unloaded configuration file required for the current transaction request into the system, it updates the unloaded configuration file to the pre-loaded configuration file table.
[0053] With the above technical solution, by updating the unloaded configuration file required for the current transaction request to the pre-loaded configuration file table, it can prepare for the next system startup loading, further improve the speed of the next system startup, reduce the probability of dynamically loading the unloaded configuration file during the next system operation, and improve the performance of the channel integration system.
[0054] In an alternative solution of this embodiment, it can be combined with one or more alternative solutions in this embodiment. After the system starts, it further includes: starting a timer when the number of configuration files in the pre-loaded configuration file table is greater than a preset configuration file number threshold; after the timer expires, deleting some of the configuration files in the pre-loaded configuration file table according to the usage of the configuration files in the pre-loaded configuration file table.
[0055] Among them, the configuration file number threshold can be 110% of the original basic pre-loaded configuration file number, and the usage can be the number of times the configuration file is used and the most recent usage time, etc.
[0056] In an alternative solution of this embodiment, it can be combined with one or more alternative solutions in this embodiment. Deleting some of the configuration files in the pre-loaded configuration file table according to the usage of the configuration files in the preset configuration file table includes: deleting and updating the pre-loaded configuration file table using the LRU elimination strategy, and the updated pre-loaded configuration file table is used for the configuration file loading of the next system startup.
[0057] With the above technical solution, when the number of configuration files in the pre-loaded configuration file table is greater than the preset threshold, it can delete the pre-loaded configuration file table according to the timer and the usage of the configuration files in the pre-loaded configuration file table, so as to achieve the purpose of optimizing the pre-loaded configuration file table, and further optimize and improve the speed of the next channel integration system startup and the usability after the next channel integration system startup.
[0058] In the technical solution of this embodiment, a pre-loaded configuration file table is pre-configured by counting the necessary configuration files of each trading cluster within a preset time. The configuration files are loaded according to the pre-loaded configuration file table. During the operation of the system, the unloaded configuration files required for the current trading request are updated to the pre-loaded configuration file table. When the number of configuration files in the pre-loaded configuration file table is greater than the preset threshold, the pre-loaded configuration file table is trimmed according to the timer and the usage of the configuration files in the pre-loaded configuration file table, which can further optimize and improve the startup speed of the next channel integration system and improve the operation efficiency and emergency efficiency of the channel integration system.
[0059] Embodiment III
[0060] Figure 4 It is a schematic structural diagram of a device for starting a channel integration system provided in Embodiment III of the present invention. This device is applicable to the situation of quickly starting a bank channel integration system. This device can be implemented by software and / or hardware and integrated in an electronic device. This device is used to implement the method for starting a channel integration system provided in the above embodiment. As Figure 4 shown, the device for starting a channel integration system provided in this embodiment includes:
[0061] A data loading module 410, configured to control at least two static data for concurrent loading according to a first pre-configured number of threads and control at least two configuration files for concurrent loading according to a second pre-configured number of threads during the parallel loading of static data and configuration files of the channel integration system;
[0062] A system startup module 420, configured to control the startup of the channel integration system according to the loaded static data and configuration files.
[0063] On the basis of the above embodiment, optionally, the data loading module 410 is configured to:
[0064] The first pre-configured number of threads and the second pre-configured number of threads are three-quarters of the number of CPU cores.
[0065] On the basis of the above embodiment, optionally, the data loading module 410 is further configured to:
[0066] Controlling at least two static data for concurrent loading includes:
[0067] Concurrent loading of at least two same-type static data according to the loading order of various static data, where the static data includes application routing data, transaction control data, and whitelist data.
[0068] On the basis of the above embodiment, optionally, the data loading module 410 is further configured to:
[0069] Controlling the concurrent loading of at least two configuration files, including:
[0070] Concurrently loading at least two configuration files of the same type according to the loading order of various configuration files, where the configuration files include common class configuration files and non-common class configuration files;
[0071] The non-common class configuration files include channel class, simple service class, complex service class, composite service class, and atomic service class configuration files.
[0072] Based on the above embodiments, optionally, the data loading module 410 is further configured to:
[0073] Parallelly load the static data and configuration files of the channel integration system, including:
[0074] Parallelly load the configuration files of the channel integration system according to the pre-loaded configuration file table, and at the same time parallelly load the static data of the channel integration system.
[0075] Based on the above embodiments, optionally, the data loading module 410 is further configured to:
[0076] The pre-loaded configuration file table is determined by counting the configuration files required by each trading cluster within a preset time.
[0077] Based on the above embodiments, optionally, the system startup module 420 is configured to:
[0078] After controlling the startup of the channel integration system based on the loaded static data and configuration files, including:
[0079] Load the unloaded configuration files required for the channel integration transaction request in the system.
[0080] Based on the above embodiments, optionally, the system startup module 420 is further configured to:
[0081] After the system starts up, including:
[0082] Update the pre-loaded configuration file table according to the unloaded configuration files required for the channel integration transaction request.
[0083] Based on the above embodiments, optionally, the system startup module 420 is further configured to:
[0084] After the system starts up, it further includes:
[0085] When the number of configuration files in the pre-loaded configuration file table is greater than the preset configuration file number threshold, start a timer;
[0086] After the timer finishes timing, according to the usage of the configuration files in the pre-loaded configuration file table, some of the configuration files in the pre-loaded configuration file table are deleted.
[0087] Based on the above embodiments, optionally, the system startup module 420 is further configured to:
[0088] According to the usage of the configuration files in the preset configuration file table, some of the configuration files in the pre-loaded configuration file table are deleted, including:
[0089] The pre-loaded configuration file table is updated by deleting and updating using the LRU elimination strategy, and the updated pre-loaded configuration file table is used for loading configuration files for the next system startup.
[0090] Based on the above embodiments, optionally, the system startup module 420 is further configured to:
[0091] The static data and configuration files are stored in a high-speed storage device.
[0092] The channel integration system startup device provided in the embodiments of the present invention can execute the channel integration system startup method provided in any of the above embodiments of the present invention, and has the corresponding functions and beneficial effects for executing the channel integration system startup method. For the detailed process, refer to the related operations of the channel integration system startup method in the foregoing embodiments.
[0093] Embodiment 4
[0094] Figure 5 It is a schematic structural diagram of an electronic device provided in Embodiment 4 of the present application. Embodiment 4 of the present application provides an electronic device, and the channel integration system startup device provided in the embodiments of the present application can be integrated in this electronic device. As Figure 5 shown, this embodiment provides an electronic device 500, which includes: one or more processors 520; a storage device 510 for storing one or more programs, and when the one or more programs are executed by the one or more processors 520, the one or more processors 520 implement the channel integration system startup method provided in the embodiments of the present application. The method includes:
[0095] During the parallel loading of the static data and configuration files of the channel integration system, at least two pieces of static data are concurrently loaded according to the first pre-configured number of threads, and at least two configuration files are concurrently loaded according to the second pre-configured number of threads;
[0096] Based on the loaded static data and configuration files, the channel integration system is controlled to start up.
[0097] Of course, those skilled in the art can understand that the processor 520 also implements the technical solution of the channel integration system startup method provided in any embodiment of the present application.
[0098] Figure 5 The displayed electronic device 500 is merely an example and should not impose any limitations on the functions and usage scope of the embodiments of the present application.
[0099] As Figure 5 shown, the electronic device 500 includes a processor 520, a storage device 510, an input device 530, and an output device 540; the number of processors 520 in the electronic device can be one or more, Figure 5 and one processor 520 is taken as an example herein; the processor 520, the storage device 510, the input device 530, and the output device 540 in the electronic device can be connected through a bus or other means, Figure 5 and connected through the bus 550 is taken as an example herein.
[0100] The storage device 510, as a computer-readable storage medium, can be used to store software programs, computer-executable programs, and module units, such as the program instructions corresponding to the channel integration system startup method in the embodiments of the present application.
[0101] The storage device 510 mainly includes a program storage area and a data storage area. Among them, the program storage area can store an operating system and application programs required for at least one function; the data storage area can store data created according to the use of the terminal, etc. In addition, the storage device 510 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage devices. In some instances, the storage device 510 can further include a memory remotely set relative to the processor 520, and these remote memories can be connected through a network. Examples of the above network include but are not limited to the Internet, an enterprise intranet, a local area network, a mobile communication network, and their combinations.
[0102] The input device 530 can be used to receive input digital, character information, or voice information, and generate key signal inputs related to the user settings and function controls of the electronic device. The output device 540 can include electronic devices such as a display screen and a speaker.
[0103] The electronic device provided in the embodiments of the present application can achieve the technical effect of greatly improving the startup speed of the channel integration system.
[0104] Embodiment 5
[0105] Embodiment 5 of the present invention provides a computer-readable medium, on which a computer program is stored, and when the program is executed by a processor, it is used to execute the channel integration system startup method, and the method includes:
[0106] During the parallel loading of the static data and configuration files of the channel integration system, at least two pieces of static data are controlled to be concurrently loaded according to the first preconfigured number of threads, and at least two configuration files are controlled to be concurrently loaded according to the second preconfigured number of threads;
[0107] Start the channel integration system according to the loaded static data and configuration files.
[0108] Optionally, when executed by a processor, the program can also be used to execute the channel integration system startup method provided in any embodiment of the present invention.
[0109] The computer storage medium of the embodiments of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples (non-exhaustive list) of the computer-readable storage medium include: an electrical connection having one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable CD-ROM, an optical storage device, a magnetic storage device, or any suitable combination of the above. The computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0110] The computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, which carries the computer-readable program code. Such a propagated data signal can take various forms, including but not limited to: electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium can also be any computer-readable medium other than the computer-readable storage medium, which can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0111] The program code contained on the computer-readable medium can be transmitted by any appropriate medium, including but not limited to: wireless, wire, optical cable, radio frequency (RF), etc., or any suitable combination of the above.
[0112] Computer program code for performing the operations of the present invention may be written in one or more programming languages or combinations thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and also including conventional procedural programming languages such as the "C" language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0113] In the description of this specification, the descriptions referring to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples", etc. mean that the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0114] Note that the above are only the preferred embodiments of the present invention and the technical principles applied. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and various obvious changes, re-adjustments, and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments. Without departing from the concept of the present invention, more other equivalent embodiments can be included, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A method for starting a channel integration system, characterized in that, Including: During the parallel loading of the static data and configuration files of the channel integration system, at least two pieces of static data are controlled to be concurrently loaded according to the first pre-configured number of threads, and at least two configuration files are controlled to be concurrently loaded according to the second pre-configured number of threads; Controlling the channel integration system to start according to the loaded static data and configuration files; Among them, controlling at least two pieces of static data to be concurrently loaded includes: At least two pieces of the same type of static data are concurrently loaded according to the loading order of various types of static data, and the static data includes application routing data, transaction control data, and whitelist data; Among them, the static data is concurrently loaded in the order of application routing data, transaction control data, and whitelist data; Among them, parallel loading of the static data and configuration files of the channel integration system includes: Parallelly loading the configuration files of the channel integration system according to the pre-loading configuration file table, and simultaneously parallelly loading the static data of the channel integration system; Among them, the pre-loading configuration file table is determined by counting the configuration files required by each transaction cluster within a preset time.
2. The method according to claim 1, wherein the first pre-configured number of threads and the second pre-configured number of threads are three-quarters of the number of CPU cores.
3. The method according to claim 1, controlling at least two configuration files to be concurrently loaded includes: At least two pieces of the same type of configuration files are concurrently loaded according to the loading order of various types of configuration files, and the configuration files include common configuration files and non-common configuration files; The non-common configuration files include channel configuration files, simple service configuration files, complex service configuration files, composite service configuration files, and atomic service configuration files.
4. The method according to claim 1, after controlling the channel integration system to start according to the loaded static data and configuration files, includes: Loading the unloaded configuration files required for the channel integration transaction request in the system.
5. The method according to claim 1, after the system starts, includes: Updating the pre-loading configuration file table according to the unloaded configuration files required for the channel integration transaction request.
6. The method according to claim 1, after the system starts, further includes: When the number of configuration files in the pre-loading configuration file table is greater than a preset configuration file number threshold, starting a timer; After the timer times out, deleting some of the configuration files in the pre-loading configuration file table according to the usage of the configuration files in the pre-loading configuration file table.
7. The method according to claim 6, deleting some of the configuration files in the pre-loading configuration file table according to the usage of the configuration files in the preset configuration file table includes: Adopting the LRU elimination strategy to delete and update the pre-loading configuration file table, and the updated pre-loading configuration file table is used for the configuration file loading of the next system startup.
8. The method according to claim 1, the static data and configuration files are stored in a high-speed storage device.
9. An apparatus for starting a channel integration system, characterized in that, The device includes: A data loading module, which is used to control the concurrent loading of at least two pieces of static data according to the first pre-configured number of threads and control the concurrent loading of at least two configuration files according to the second pre-configured number of threads during the parallel loading of the static data and configuration files of the channel integration system; A system startup module, which is used to control the startup of the channel integration system according to the loaded static data and configuration files; Among them, the data loading module is specifically used for: Controlling the concurrent loading of at least two pieces of static data of the same type according to the loading order of various pieces of static data, and the static data includes application routing data, transaction control data, and whitelist data; Among them, the static data is concurrently loaded in the order of application routing data, transaction control data, and whitelist data; Among them, the data loading module is specifically used for: Parallelly loading the configuration files of the channel integration system according to the pre-loaded configuration file table, and simultaneously parallelly loading the static data of the channel integration system; Among them, the pre-loaded configuration file table is determined by counting the configuration files required by each transaction cluster within a preset time.
10. An electronic device, characterized in that, Including: One or more processors; A storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the channel integration system startup method described in any one of claims 1-8.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the channel integration system startup method described in any one of claims 1-8.
Citation Information
Patent Citations
Concurrent loading method and device for database data
CN108776710A
Method and device for starting parallel loading of metadata based on HDFS
CN111414206A