Method, processor, device and system for building cross-regional service system
By building a cross-regional service system and using communication lines between cloud platforms and server clusters, the problem of isolated operation of information systems in different countries has been solved, efficient data transmission and real-time monitoring have been achieved, and service efficiency has been improved.
Patent Information
- Application Number
- CN202410169575.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-06
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-02-06
AI Technical Summary
Information systems in different countries operate in isolation, resulting in data being unable to be transmitted back to the country in a timely manner, making real-time upgrades and monitoring impossible, and service efficiency being low.
By building a cross-regional service system, using the communication line between the first cloud platform and the second cloud platform, a server cluster is established to realize data transmission, and the rancher management module and mirror server are used to synchronize the docker image to realize automated installation and monitoring of the software.
It greatly speeds up the data transmission speed, avoids the need for regular manual summary, realizes real-time monitoring and maintenance of overseas systems, and improves service efficiency.
Smart Images

Figure CN118018549B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data transmission technology, and in particular to a method, processor, device and system for building a cross-regional service system. Background Art
[0002] With the development of globalization, many large enterprises, including service export enterprises, foreign trade enterprises and some industrial manufacturing enterprises pursuing global development, are seeking global layout and localized operation and management. Due to the differences in national conditions, culture, laws and policies in different countries, it has become very complicated and difficult to carry out unified information construction and data collection, exchange and sharing between different branches and subsidiaries in different countries.
[0003] At present, the overseas local management team mainly purchases similar information systems provided by some local suppliers for daily operation and management. If there is no information system, it relies on office software for daily management. Then, some key production and operation management results are regularly summarized and sent back to the domestic parent company by email. The domestic information system is isolated from the foreign information system and runs completely independently, and cannot be effectively coordinated. Even if the information system is deployed to foreign branches and subsidiaries, due to laws and regulations, network restrictions and other reasons, these information systems can only run in isolation abroad, and the data cannot be transmitted back to China in time. It still relies on manpower to regularly summarize and count the data and then email the results back to China. In addition, it is impossible to upgrade, monitor and maintain the overseas system in real time, and the service efficiency is low. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a method, processor, device and system for building a cross-regional service system to avoid using labor costs.
[0005] In order to achieve the above-mentioned purpose, the first aspect of the present application provides a method for building a cross-regional service system, the method comprising:
[0006] Determine multiple areas to be constructed from the area covered by the first cloud platform according to user needs, the first cloud platform including multiple public servers;
[0007] For each area to be built, multiple target servers corresponding to the area to be built are determined from multiple public servers included in the first cloud platform according to user needs, and a server cluster corresponding to the area to be built is built based on the multiple target servers;
[0008] Selecting an information transfer area from a plurality of areas to be constructed according to a preset rule, and determining a first server cluster corresponding to the information transfer area;
[0009] Determine multiple server clusters corresponding to all the areas to be constructed except the information transfer area as the second server cluster;
[0010] Establishing a communication line between the second cloud platform and the first server cluster through a preset network;
[0011] Acquire the platform network included in the first cloud platform;
[0012] establishing a communication line between the first server cluster and each second server cluster through the platform network;
[0013] A cross-region service system for transmitting data between multiple regions is constructed based on the second cloud platform, the first server cluster and multiple second server clusters.
[0014] In an embodiment of the present application, the cross-regional service system includes a second cloud platform, a first server cluster and multiple second server clusters, wherein the second cloud platform includes a rancher management module and a first mirror server, and the first server cluster includes a second mirror server. The method also includes: after determining the second cloud platform, the first server cluster and the multiple second server clusters as the cross-regional service system, obtaining multiple software to be deployed, and uploading all the software to be deployed to the second cloud platform; for each software to be deployed, building a docker image of the software to be deployed, and uploading the built docker image to the first mirror server; synchronizing all docker images in the first mirror server to the second mirror server, so that the second mirror server contains a software image corresponding to each docker image; sending installation instructions to the target server cluster of the software to be installed through the rancher management module according to user needs, so that the target server cluster pulls the target software image corresponding to the installation instruction from the second mirror server according to the installation instruction; controlling the target server cluster to install the software to be deployed corresponding to the target software image according to the installation instruction to obtain a deployed cross-regional service system.
[0015] In an embodiment of the present application, synchronizing all docker images in a first mirror server to a second mirror server so that the second mirror server contains a software image corresponding to each docker image includes: controlling the second mirror server to detect the docker images included in the first mirror server according to a preset period; comparing the software images included in the second mirror server with the docker images included in the first mirror server; for any docker image, if there is no software image corresponding to the docker image in the software images included in the second mirror server, controlling the second mirror server to generate a software image corresponding to the docker image; for any software image, if there is no docker image corresponding to the software image in the docker images included in the first mirror server, controlling the second mirror server to delete the software image.
[0016] In an embodiment of the present application, all docker images in a first mirror server are synchronized to a second mirror server so that the second mirror server contains a software image corresponding to each docker image, including: when it is determined that the first mirror server has received a newly built docker image, sending a synchronization instruction to the second mirror server; when the second mirror server receives the synchronization instruction, detecting the docker image included in the first mirror server according to the synchronization instruction; for any docker image, when there is no software image corresponding to the docker image in the software images included in the second mirror server, controlling the second mirror server to generate a software image corresponding to the docker image.
[0017] In an embodiment of the present application, the method also includes: after the target server cluster installs the software to be deployed corresponding to the target software image according to the installation instructions to obtain a deployed cross-regional service system; when the target server cluster is a first server cluster, obtaining the first application data generated by the software to be deployed installed by the first server cluster; obtaining the first data transmission rule between the first server cluster and the second cloud platform; processing the first application data according to the first data transmission rule, and uploading the processed first application data from the first server cluster to the second cloud platform through a preset network between the first server cluster and the second cloud platform, so that the user can obtain the processed first application data through the second cloud platform.
[0018] In an embodiment of the present application, the method also includes: when the target server cluster is any second server cluster, obtaining second application data generated by the software to be deployed installed in the second server cluster; obtaining a second data transmission rule in the area where the second server cluster is located; processing the second application data according to the second data transmission rule, and sending the processed second application data from the second server cluster to the first server cluster through the platform network between the second server cluster and the first server cluster; after the first server cluster receives the processed second application data, processing the processed second application data according to the first data transmission rule; uploading the processed second application data from the first server cluster to the second cloud platform through a preset network, so that users can obtain the processed second application data through the second cloud platform.
[0019] In an embodiment of the present application, the rancher management module includes an interactive interface, and the method also includes: obtaining a first server parameter of the first server cluster and a second server parameter of each second server cluster, wherein the server parameters include server operating status, server operating logs, and server operating resources; displaying the first server parameter in a management area corresponding to the first server cluster in the interactive interface; displaying each second server parameter in a management area corresponding to each second server cluster in the interactive interface, so as to monitor the first server cluster and each second server cluster through the rancher management module.
[0020] A second aspect of the present application provides an apparatus for building a cross-region service system, including:
[0021] a memory configured to store instructions; and
[0022] The processor is configured to call instructions from the memory and implement the above-mentioned method for building a cross-region service system when executing the instructions.
[0023] A third aspect of the present application provides a cross-regional service system, the cross-regional service system comprising:
[0024] The second cloud platform includes a rancher management module and a first image server, and the rancher management includes an interactive interface for monitoring each server cluster;
[0025] A first server cluster, the first server cluster includes a second mirror server and is communicatively connected with the second cloud platform via a preset network;
[0026] A plurality of second server clusters, each of which is communicatively connected with the first server cluster via a platform network; and the apparatus for constructing a cross-region service system as described above.
[0027] A fourth aspect of the present application provides a machine-readable storage medium having instructions stored thereon, the instructions being used to enable a machine to execute the above-mentioned method for building a cross-regional service system.
[0028] Through the above technical solution, it is avoided that due to the data transmission rules of different regions, the second cloud platform needs to configure different communication lines for each region or transmit data through manual labor when transmitting data with different regions, which greatly speeds up the data transmission speed between the second cloud platform and different regions.
[0029] Other features and advantages of the embodiments of the present application will be described in detail in the subsequent specific implementation section. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present application, but do not constitute a limitation on the embodiments of the present application. In the accompanying drawings:
[0031] Figure 1 A schematic diagram of a process of building a cross-regional service system according to an embodiment of the present application is shown;
[0032] Figure 2 A schematic diagram of a cross-region service system according to an embodiment of the present application is shown;
[0033] Figure 3 The internal structure diagram of a computer device according to an embodiment of the present application is schematically shown. DETAILED DESCRIPTION
[0034] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the specific implementation methods described herein are only used to illustrate and explain the embodiments of the present application, and are not used to limit the embodiments of the present application. 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 this application.
[0035] It should be noted that if the embodiments of the present application involve directional indications (such as up, down, left, right, front, back...), such directional indications are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0036] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present application, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or suggesting their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.
[0037] Figure 1 The following schematically shows a flow chart of a method for constructing a cross-region service system according to an embodiment of the present application. Figure 1 As shown, an embodiment of the present application provides a method for building a cross-regional service system, which may include the following steps.
[0038] Step 101, determining a plurality of areas to be constructed from an area covered by a first cloud platform according to user demand, wherein the first cloud platform includes a plurality of public servers.
[0039] Step 102, for each area to be built, multiple target servers corresponding to the area to be built are determined from multiple public servers included in the first cloud platform according to user needs, and a server cluster corresponding to the area to be built is built based on the multiple target servers.
[0040] The processor can determine the area covered by the first cloud platform, and determine the multiple public servers included in the coverage area of the first cloud platform. The processor can determine multiple areas to be built from the area covered by the first cloud platform according to user needs. For each area to be built after determination, the processor can select multiple target servers corresponding to the area to be built from the multiple public servers included in the first cloud platform according to user needs, and build a server cluster corresponding to the area to be built based on the determined multiple target servers, wherein the constructed server cluster can be a k8s container cloud cluster. For example, assuming that the processor selects area A, area B, and area C as areas to be built from the area covered by the first cloud platform, taking one of the areas as an example, the processor can select the target server corresponding to area A from the multiple public servers distributed in area A of the first cloud platform according to user needs, and build a server cluster corresponding to area A based on the selected target server. For example, assuming that the first cloud platform has 100 public servers distributed in area A, the processor can select 20 of them according to user needs, and build a k8s container cloud cluster corresponding to area A based on the selected 20 servers.
[0041] Step 103: Select an information transfer area from a plurality of areas to be constructed according to a preset rule, and determine a first server cluster corresponding to the information transfer area.
[0042] Step 104: multiple server clusters corresponding to all the areas to be constructed except the information transfer area are determined as second server clusters.
[0043] Step 105, establishing a communication line between the second cloud platform and the first server cluster through a preset network;
[0044] Step 106, obtaining a platform network included in the first cloud platform;
[0045] Step 107, establishing a communication line between the first server cluster and each second server cluster through the platform network;
[0046] Step 108: construct a cross-region service system for transmitting data between multiple regions based on the second cloud platform, the first server cluster, and the multiple second server clusters.
[0047] The processor can set preset rules according to the data transmission regulations between different areas or set preset rules according to user needs. After determining multiple areas to be constructed, the processor can select an information transfer area from the multiple areas to be constructed according to the preset rules, and determine the server cluster corresponding to the information transfer area as the first server cluster, and determine the multiple server clusters corresponding to the other areas to be constructed except the information transfer area in all areas to be constructed as the second server cluster, wherein the constructed server cluster can be a k8s container cloud cluster, that is, the first server cluster can be the first k8s container cloud cluster, and the second server cluster can be the second k8s container cloud cluster. For example, assuming that in order to ensure the convenience of information transfer, the preset rule can be to select the area with the least data transmission restrictions between other areas as the information transfer area. Assuming that the processor determines that area A is the information transfer area according to the preset rules, the server cluster corresponding to area A is the first server cluster (i.e., the first k8s container cloud cluster), and the server clusters corresponding to areas B and C are the second server cluster (i.e., the second k8s container cloud cluster). After determining the first server cluster, the processor can establish a communication line between the second cloud platform and the first server cluster through a preset network, wherein the second cloud platform can be a private cloud platform, and transmit data with the first server cluster through the communication line. Since the first server cluster and multiple second server clusters are all within the range covered by the first cloud platform, the processor can also obtain the platform network included in the first cloud platform, and establish a communication line between the first server cluster and each second server cluster based on the platform network. Based on the second cloud platform, the first server cluster and multiple second server clusters, the preset network between the second cloud platform and the first server, and the platform network between the first server and each second server, a cross-regional service system is constructed, so that data in each region is transmitted through the cross-regional service system, and the second cloud platform transmits data with multiple second server clusters through the first server cluster.
[0048] This avoids the need to configure different communication lines for each region when the second cloud platform transmits data with different regions due to the data transmission rules of different regions, greatly speeding up the data transmission speed between the second cloud platform and different regions.
[0049] In an embodiment of the present application, the cross-regional service system includes a second cloud platform, a first server cluster and multiple second server clusters, wherein the second cloud platform includes a rancher management module and a first mirror server, and the first server cluster includes a second mirror server. The method also includes: after determining the second cloud platform, the first server cluster and the multiple second server clusters as the cross-regional service system, obtaining multiple software to be deployed, and uploading all the software to be deployed to the second cloud platform; for each software to be deployed, building a docker image of the software to be deployed, and uploading the built docker image to the first mirror server; synchronizing all docker images in the first mirror server to the second mirror server, so that the second mirror server contains a software image corresponding to each docker image; sending installation instructions to the target server cluster of the software to be installed through the rancher management module according to user needs, so that the target server cluster pulls the target software image corresponding to the installation instruction from the second mirror server according to the installation instruction; controlling the target server cluster to install the software to be deployed corresponding to the target software image according to the installation instruction to obtain a deployed cross-regional service system.
[0050] The cross-region service system includes a second cloud platform, a first server cluster and multiple second server clusters, wherein the second cloud platform includes a rancher management module and a first mirror server, and the first server cluster includes a second mirror server. The processor can obtain multiple software to be deployed, wherein the software to be deployed can be a debugged application software uploaded by a user, and the processor can upload the obtained multiple software to be deployed to the second cloud platform. For each software to be deployed, the processor can build a docker image of the software to be deployed, and upload the built docker image to the first mirror server included in the second cloud platform. The processor can synchronize all docker images in the first mirror server to the second mirror server included in the first server cluster through the preset network between the second cloud platform and the first server cluster, so that the second mirror server included in the first server cluster contains a software image corresponding to each docker image, that is, the second mirror server includes a software image corresponding to each software to be deployed. The processor can send installation instructions to the target server cluster of the software to be installed through the rancher management module included in the second cloud platform according to user needs. After receiving the installation instructions, the target server cluster can pull the target software image corresponding to the installation instruction from the second image server according to the installation instructions. The processor then controls the target server cluster to install the software to be deployed corresponding to the target software image according to the installation instructions, thereby obtaining a deployed cross-regional service system. For example, assuming that the target server cluster for the software to be installed is the first server cluster, the rancher management module can send the installation instruction from the second cloud platform to the first server cluster through the preset network, and the first server cluster can pull the target software image corresponding to the installation instruction from the second mirror server according to the installation instruction and install it according to the installation instruction. Assuming that the target server cluster is any second server cluster, the processor can send the installation instruction from the second cloud platform to the first server cluster through the preset network through the rancher management module, and then transmit the installation instruction from the first server cluster to the second server cluster through the platform network between the first server cluster and the second server cluster. The second server cluster can pull the target software image corresponding to the installation instruction from the second mirror server included in the first server cluster through the platform network, and install the software to be deployed corresponding to the target software image according to the installation instruction, thereby obtaining a cross-regional service system that has been deployed.
[0051] In one embodiment, synchronizing all docker images in a first mirror server to a second mirror server so that the second mirror server contains software images corresponding to each docker image includes: controlling the second mirror server to detect the docker images included in the first mirror server according to a preset period; comparing the software images included in the second mirror server with the docker images included in the first mirror server; for any docker image, if there is no software image corresponding to the docker image in the software images included in the second mirror server, controlling the second mirror server to generate a software image corresponding to the docker image; for any software image, if there is no docker image corresponding to the software image in the docker images included in the first mirror server, controlling the second mirror server to delete the software image.
[0052] When synchronizing all docker images in the first mirror server to the second mirror server, the processor can control the second mirror server included in the first server cluster to detect the docker images included in the first mirror server through the preset network according to the preset period, and compare the software images included in the second mirror server with the docker images included in the first mirror server. For any docker image, when the processor determines that there is no software image corresponding to the docker image in the software images included in the second mirror server, the second mirror server is controlled to generate a software image corresponding to the docker image, so that the software image in the second mirror server is consistent with the docker image in the first mirror server. For any software image, if there is no docker image corresponding to the software image in the docker images included in the first mirror server, the processor can control the second mirror server to delete the software image.
[0053] In one embodiment, synchronizing all docker images in a first mirror server to a second mirror server so that the second mirror server contains a software image corresponding to each docker image includes: when it is determined that the first mirror server has received a newly built docker image, sending a synchronization instruction to the second mirror server; when the second mirror server receives the synchronization instruction, detecting the docker image included in the first mirror server according to the synchronization instruction; for any docker image, when there is no software image corresponding to the docker image in the software images included in the second mirror server, controlling the second mirror server to generate a software image corresponding to the docker image.
[0054] When synchronizing all docker images in the first mirror server to the second mirror server, the processor can also detect the acquisition of the docker image in the first mirror server. When the processor determines that the first mirror server receives the newly built docker image, the processor can send a synchronization instruction to the second mirror server. When the second mirror server receives the synchronization instruction, it can detect the docker image included in the first mirror server through a preset network according to the synchronization instruction. The processor can compare the software image included in the second mirror server with the docker image included in the first mirror server. For any docker image, when the processor determines that there is no software image corresponding to the docker image in the software image included in the second mirror server, the second mirror server is controlled to generate a software image corresponding to the docker image, so that the software image in the second mirror server is consistent with the docker image in the first mirror server. The second mirror server also detects the docker image included in the first mirror server through a preset network according to the synchronization instruction, and synchronizes the newly acquired docker image in the first mirror server, so that the software image in the second mirror server is consistent with the docker image in the first mirror server.
[0055] In one embodiment, the method also includes: after the target server cluster installs the software to be deployed corresponding to the target software image according to the installation instructions to obtain a deployed cross-regional service system; when the target server cluster is the first server cluster, obtaining the first application data generated by the software to be deployed installed by the first server cluster; obtaining the first data transmission rule between the first server cluster and the second cloud platform; processing the first application data according to the first data transmission rule, and uploading the processed first application data from the first server cluster to the second cloud platform through a preset network between the first server cluster and the second cloud platform, so that users can obtain the processed first application data through the second cloud platform.
[0056] After the target server cluster installs the to-be-deployed software corresponding to the target software image according to the installation instructions to obtain a deployed cross-regional service system, when the processor determines that the target server cluster is the first server cluster, the processor can obtain the first application data generated by the to-be-deployed software successfully installed in the first server cluster, and the processor can obtain the first data transmission rule between the first server cluster and the second cloud platform, and after processing the obtained first application data according to the first data transmission rule, the processed first application data is uploaded from the first server cluster to the second cloud platform through the preset network between the first server cluster and the second cloud platform, so that the user can obtain the application data produced by the software deployed by the first server cluster through the second cloud platform, and thus view and analyze the application data generated by the first server cluster through the second cloud platform. Furthermore, the second cloud platform can also transmit data to the first server cluster. The second cloud platform can process the data to be transmitted according to the first data transmission rule, and then transmit it to the first server cluster through the preset network to complete the data transmission from the second cloud platform to the first server cluster, thereby completing data tasks such as software collaboration and software optimization.
[0057] In one embodiment, the method also includes: when the target server cluster is any second server cluster, obtaining second application data generated by the software to be deployed installed in the second server cluster; obtaining a second data transmission rule in the area where the second server cluster is located; processing the second application data according to the second data transmission rule, and sending the processed second application data from the second server cluster to the first server cluster through the platform network between the second server cluster and the first server cluster; after the first server cluster receives the processed second application data, processing the processed second application data according to the first data transmission rule; uploading the processed second application data from the first server cluster to the second cloud platform through a preset network, so that users can obtain the processed second application data through the second cloud platform.
[0058] After the target server cluster installs the to-be-deployed software corresponding to the target software image according to the installation instruction to obtain a deployed cross-regional service system, when the processor determines that the target server cluster is any second server cluster, the processor can obtain the second application data generated by the to-be-deployed software successfully installed by the second server cluster, the processor can obtain the second data transmission rule in the area where the second server cluster is located, and after processing the obtained second application data according to the second data transmission rule, the processed second application data is sent from the second server cluster to the first server cluster through the platform network between the second server cluster and the first server cluster. The processor can obtain the first data transmission rule between the first server cluster and the second cloud platform. After receiving the processed second application data, the first server cluster can process the received processed second application data again according to the first data transmission rule, and then upload the processed second application data from the first server cluster to the second cloud platform through the preset network between the first server cluster and the second cloud platform, so that the user can obtain the application data produced by the software deployed by the second server cluster through the second cloud platform, and then view and analyze the application data generated by the second server cluster through the second cloud platform. Furthermore, the second cloud platform can also transmit data to the second server cluster. The second cloud platform can process the data to be transmitted according to the first data transmission rule, and first transmit it to the first server cluster through a preset network. Then, the first server cluster processes the data according to the second data transmission rule of the area where the second server cluster is located, and then transmits it to the second server cluster to complete the data transmission from the second cloud platform to the second server cluster, thereby completing data tasks such as software collaboration and software optimization.
[0059] In one embodiment, the rancher management module includes an interactive interface, and the method also includes: obtaining a first server parameter of the first server cluster and a second server parameter of each second server cluster, wherein the server parameters include server operating status, server operating logs, and server operating resources; displaying the first server parameter in a management area corresponding to the first server cluster in the interactive interface; displaying each second server parameter in a management area corresponding to each second server cluster in the interactive interface, so as to monitor the first server cluster and each second server cluster through the rancher management module.
[0060] The rancher management module included in the second cloud platform includes an interactive interface, and the processor can obtain the first server parameter of the first server cluster and the second server parameter of each second server cluster, wherein the server parameter may include the server operation status, server operation log, server operation resource, etc. of the server included in the server cluster. After obtaining the server parameters of each server cluster, the processor may display the server parameters in the management area corresponding to each server cluster in the interactive interface. After obtaining the first server parameter, the processor may send the first server parameter to the second cloud platform through the preset network between the first server cluster and the second cloud platform, and display it in the management area corresponding to the first server cluster in the interactive interface of the rancher management module. After obtaining the second server parameter, the processor may send it to the first server cluster through the platform network between the corresponding second server cluster and the first server cluster, and then send the second server parameter to the second cloud platform through the preset network between the first server cluster and the second cloud platform, and display it in the management area corresponding to each second server cluster in the interactive interface of the rancher management module, so that the user can monitor the server status of the first server cluster and each second server cluster through the rancher management module of the second cloud platform.
[0061] In one embodiment, a device for building a cross-region service system is provided, comprising:
[0062] A memory is configured to store instructions; and a processor is configured to call the instructions from the memory and implement the above-mentioned method for building a cross-region service system when executing the instructions.
[0063] The above technical solution establishes server clusters corresponding to each region through multiple public servers included in the first cloud platform, and then selects a server cluster for information transfer from multiple server clusters, and constructs a cross-region service system by establishing a network between each server cluster and a communication network between the server cluster for information transfer and the second cloud platform. The other multiple server clusters can transmit data with the second cloud platform through the server cluster for information transfer. The data in each region is transmitted through the cross-region service system, thereby avoiding the need for the second cloud platform to configure different communication lines for each region when transmitting data with different regions due to the data transmission rules of different regions, greatly speeding up the data transmission speed between the second cloud platform and different regions, so that users can use the second cloud platform to conduct real-time data monitoring, software maintenance, software upgrades, etc. on server clusters in different regions, thereby improving the service efficiency for each region.
[0064] In one embodiment, a device for building a cross-region service system is provided, comprising:
[0065] A memory configured to store instructions; and a processor as described above.
[0066] like Figure 2 As shown, a structural block diagram of a cross-regional service system 200 is schematically shown, and the cross-regional service system includes:
[0067] The second cloud platform 201 includes a rancher management module 201-1 and a first mirror server 201-2. The rancher management module 201-1 includes an interactive interface 201-1a for monitoring each server cluster;
[0068] The first server cluster 202 includes a second mirror server 202-1 and is connected to the second cloud platform 201 through a preset network;
[0069] A plurality of second server clusters 203, each second server cluster 203 being communicatively connected with the first server cluster 202 via a platform network; and a device 204 for constructing a cross-region service system as claimed in claim 9.
[0070] Among them, the first server cluster can be a first k8s container cloud cluster, and the second server cluster can be a second k8s container cloud cluster.
[0071] An embodiment of the present application also provides a machine-readable storage medium, on which instructions are stored, and the instructions are used to enable a machine to execute the above-mentioned method for building a cross-regional service system.
[0072] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 3As shown. The computer device includes a processor A01, a network interface A02, a memory (not shown in the figure) and a database (not shown in the figure) connected through a system bus. Among them, the processor A01 of the computer device is used to provide computing and control capabilities. The memory of the computer device includes an internal memory A03 and a non-volatile storage medium A04. The non-volatile storage medium A04 stores an operating system B01, a computer program B02 and a database (not shown in the figure). The internal memory A03 provides an environment for the operation of the operating system B01 and the computer program B02 in the non-volatile storage medium A04. The database of the computer device is used to store relevant data obtained by the server cluster during operation. The network interface A02 of the computer device is used to communicate with an external terminal through a network connection. When the computer program B02 is executed by the processor A01, a method for building a cross-regional service system is implemented.
[0073] Figure 1 FIG. 1 is a flow chart of a method for constructing a cross-region service system in one embodiment. It should be understood that although Figure 1 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0074] An embodiment of the present application provides a device, which includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, the following steps are implemented: multiple areas to be constructed are determined from the area covered by the first cloud platform according to user needs, and the first cloud platform includes multiple public servers; for each area to be constructed, multiple target servers corresponding to the area to be constructed are determined from the multiple public servers included in the first cloud platform according to user needs, and a server cluster corresponding to the area to be constructed is constructed based on the multiple target servers; an information transfer area is selected from the multiple areas to be constructed according to preset rules, and a first server cluster corresponding to the information transfer area is determined; multiple server clusters corresponding to the other areas to be constructed except the information transfer area in all the areas to be constructed are determined as second server clusters; a communication line is established between the second cloud platform and the first server cluster through a preset network; a platform network included in the first cloud platform is obtained; a communication line is established between the first server cluster and each second server cluster through the platform network; a cross-regional service system for transmitting data between multiple areas is constructed based on the second cloud platform, the first server cluster, and the multiple second server clusters.
[0075] In one embodiment, the cross-regional service system includes a second cloud platform, a first server cluster and multiple second server clusters, wherein the second cloud platform includes a rancher management module and a first mirror server, and the first server cluster includes a second mirror server. The method also includes: after determining the second cloud platform, the first server cluster and the multiple second server clusters as the cross-regional service system, obtaining multiple software to be deployed, and uploading all the software to be deployed to the second cloud platform; for each software to be deployed, building a docker image of the software to be deployed, and uploading the built docker image to the first mirror server; synchronizing all docker images in the first mirror server to the second mirror server, so that the second mirror server contains a software image corresponding to each docker image; sending installation instructions to the target server cluster of the software to be installed through the rancher management module according to user needs, so that the target server cluster pulls the target software image corresponding to the installation instruction from the second mirror server according to the installation instruction; controlling the target server cluster to install the software to be deployed corresponding to the target software image according to the installation instruction to obtain a deployed cross-regional service system.
[0076] In one embodiment, synchronizing all docker images in a first mirror server to a second mirror server so that the second mirror server contains software images corresponding to each docker image includes: controlling the second mirror server to detect the docker images included in the first mirror server according to a preset period; comparing the software images included in the second mirror server with the docker images included in the first mirror server; for any docker image, if there is no software image corresponding to the docker image in the software images included in the second mirror server, controlling the second mirror server to generate a software image corresponding to the docker image; for any software image, if there is no docker image corresponding to the software image in the docker images included in the first mirror server, controlling the second mirror server to delete the software image.
[0077] In one embodiment, synchronizing all docker images in a first mirror server to a second mirror server so that the second mirror server contains a software image corresponding to each docker image includes: when it is determined that the first mirror server has received a newly built docker image, sending a synchronization instruction to the second mirror server; when the second mirror server receives the synchronization instruction, detecting the docker image included in the first mirror server according to the synchronization instruction; for any docker image, when there is no software image corresponding to the docker image in the software images included in the second mirror server, controlling the second mirror server to generate a software image corresponding to the docker image.
[0078] In one embodiment, the method also includes: after the target server cluster installs the software to be deployed corresponding to the target software image according to the installation instructions to obtain a deployed cross-regional service system; when the target server cluster is the first server cluster, obtaining the first application data generated by the software to be deployed installed by the first server cluster; obtaining the first data transmission rule between the first server cluster and the second cloud platform; processing the first application data according to the first data transmission rule, and uploading the processed first application data from the first server cluster to the second cloud platform through a preset network between the first server cluster and the second cloud platform, so that users can obtain the processed first application data through the second cloud platform.
[0079] In one embodiment, the method also includes: when the target server cluster is any second server cluster, obtaining second application data generated by the software to be deployed installed in the second server cluster; obtaining a second data transmission rule in the area where the second server cluster is located; processing the second application data according to the second data transmission rule, and sending the processed second application data from the second server cluster to the first server cluster through the platform network between the second server cluster and the first server cluster; after the first server cluster receives the processed second application data, processing the processed second application data according to the first data transmission rule; uploading the processed second application data from the first server cluster to the second cloud platform through a preset network, so that users can obtain the processed second application data through the second cloud platform.
[0080] In one embodiment, the rancher management module includes an interactive interface, and the method also includes: obtaining a first server parameter of the first server cluster and a second server parameter of each second server cluster, wherein the server parameters include server operating status, server operating logs, and server operating resources; displaying the first server parameter in a management area corresponding to the first server cluster in the interactive interface; displaying each second server parameter in a management area corresponding to each second server cluster in the interactive interface, so as to monitor the first server cluster and each second server cluster through the rancher management module.
[0081] 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.
[0082] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the 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 generate 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.
[0083] 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.
[0084] 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.
[0085] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0086] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0087] 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 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.
[0088] 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.
[0089] The above are only embodiments of the present application and are 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 within the scope of the claims of the present application.
Claims
1. A method for building a cross-regional service system, characterized in that: The cross-region service system includes a second cloud platform, a first server cluster, and a plurality of second server clusters, wherein the second cloud platform includes a rancher management module and a first mirror server, the first server cluster includes a second mirror server, and the method includes: Determining a plurality of areas to be constructed from an area covered by a first cloud platform according to user needs, wherein the first cloud platform includes a plurality of public servers; For each area to be built, determine multiple target servers corresponding to the area to be built from multiple public servers included in the first cloud platform according to user needs, and build a server cluster corresponding to the area to be built based on the multiple target servers; Selecting an information transfer area from a plurality of areas to be constructed according to a preset rule, and determining a first server cluster corresponding to the information transfer area; Determine a plurality of server clusters corresponding to all the areas to be constructed except the information transfer area as second server clusters; Establishing a communication line between the second cloud platform and the first server cluster through a preset network; Acquire a platform network included in the first cloud platform; establishing a communication line between the first server cluster and each second server cluster through the platform network; Building a cross-region service system for transmitting data between multiple regions based on the second cloud platform, the first server cluster, and multiple second server clusters; After determining the second cloud platform, the first server cluster and the plurality of second server clusters as the cross-region service system, obtaining a plurality of software to be deployed, and uploading all the software to be deployed to the second cloud platform; For each software to be deployed, build a Docker image of the software to be deployed, and upload the built Docker image to the first image server; Synchronize all docker images in the first mirror server to the second mirror server, so that the second mirror server contains a software image corresponding to each docker image; Sending installation instructions to the target server cluster of the software to be installed through the rancher management module according to user needs, so that the target server cluster pulls the target software image corresponding to the installation instruction from the second image server according to the installation instruction; The target server cluster is controlled to install the to-be-deployed software corresponding to the target software image according to the installation instruction, so as to obtain a deployed cross-region service system.
2. The method for constructing a cross-regional service system according to claim 1, characterized in that: The step of synchronizing all docker images in the first mirror server to the second mirror server so that the second mirror server contains a software image corresponding to each docker image comprises: Control the second image server to detect the docker image included in the first image server according to a preset period; Comparing the software image included in the second image server with the docker image included in the first image server; For any docker image, if there is no software image corresponding to the docker image in the software images included in the second image server, control the second image server to generate a software image corresponding to the docker image; For any software image, if there is no docker image corresponding to the software image in the docker images included in the first image server, the second image server is controlled to delete the software image.
3. The method for constructing a cross-regional service system according to claim 1, characterized in that: The step of synchronizing all docker images in the first mirror server to the second mirror server so that the second mirror server contains a software image corresponding to each docker image comprises: When it is determined that the first image server receives the newly built Docker image, a synchronization instruction is sent to the second image server; When receiving the synchronization instruction, the second mirror server detects the docker image included in the first mirror server according to the synchronization instruction; For any docker image, if there is no software image corresponding to the docker image in the software images included in the second image server, control the second image server to generate a software image corresponding to the docker image.
4. The method for constructing a cross-regional service system according to claim 1, characterized in that: The method further comprises: After the target server cluster installs the to-be-deployed software corresponding to the target software image according to the installation instruction to obtain a deployed cross-region service system; When the target server cluster is a first server cluster, obtaining first application data generated by software to be deployed installed in the first server cluster; Obtaining a first data transmission rule between the first server cluster and the second cloud platform; The first application data is processed according to the first data transmission rule, and the processed first application data is uploaded from the first server cluster to the second cloud platform through a preset network between the first server cluster and the second cloud platform, so that a user can obtain the processed first application data through the second cloud platform.
5. The method for constructing a cross-regional service system according to claim 4, characterized in that: The method further comprises: When the target server cluster is any second server cluster, obtaining second application data generated by the software to be deployed installed in the second server cluster; Acquire a second data transmission rule in the area where the second server cluster is located; Processing the second application data according to the second data transmission rule, and sending the processed second application data from the second server cluster to the first server cluster through the platform network between the second server cluster and the first server cluster; After the first server cluster receives the processed second application data, processing the processed second application data according to the first data transmission rule; The processed second application data is uploaded from the first server cluster to the second cloud platform through the preset network, so that the user can obtain the processed second application data through the second cloud platform.
6. The method for constructing a cross-regional service system according to claim 1, characterized in that: The rancher management module includes an interactive interface, and the method further includes: Obtaining first server parameters of the first server cluster and second server parameters of each second server cluster, wherein the server parameters include server operation status, server operation log, and server operation resources; Displaying the first server parameter in the management area corresponding to the first server cluster in the interactive interface; Each second server parameter is displayed in a management area corresponding to each second server cluster in the interactive interface, so that the first server cluster and each second server cluster can be monitored through the rancher management module.
7. A device for building a cross-regional service system, characterized in that: include: a memory configured to store instructions; as well as A processor is configured to call instructions from the memory and implement the method for building a cross-region service system according to claims 1 to 6 when executing the instructions.
8. A cross-regional service system, characterized in that: The cross-regional service system includes: A second cloud platform, wherein the second cloud platform includes a rancher management module and a first mirror server, and the rancher management includes an interactive interface for monitoring each server cluster; A first server cluster, wherein the first server cluster includes a second mirror server and is communicatively connected with the second cloud platform via a preset network; A plurality of second server clusters, each of which is communicatively connected to the first server cluster via a platform network; and The device for constructing a cross-regional service system as described in claim 7.
9. A machine-readable storage medium, characterized in that: The machine-readable storage medium stores instructions for causing a machine to execute the method for building a cross-region service system according to claims 1 to 6.
Citation Information
Patent Citations
Multi-tenancy using shared databases
US20230119834A1
Method and system for cross-regional file sharing
WO2017166481A1
