A hybrid cloud deployment method for projects
By adopting a hybrid cloud deployment method in enterprise projects, inserting modules into local and cloud servers, establishing storage nodes and using administrator modules for encryption, it solves the problem of communication latency and security between modules in enterprise projects, reducing costs and improving costs Service management capabilities.
Patent Information
- Application Number
- CN202310226931.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-10
- Publication Date
- 2024-12-10
- Estimated Expiration
- 2043-03-10
AI Technical Summary
As the business logic complexity increases in enterprise projects, the number of modules increases, resulting in high server costs, and communication delays and security between local and cloud modules are difficult to handle, making it impossible to intuitively monitor service status.
The project hybrid cloud deployment method is adopted to insert the module into the local server and the cloud server respectively, establish storage nodes, and encrypt and decrypt data through the administrator module to realize secure communication and data synchronization between modules, and reduce network latency.
It solves the problems of insufficient local servers and communication between modules, reduces the risk of data loss, improves the controllability of service management and maintenance, and reduces costs.
Smart Images

Figure CN116208482B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of server communication technology, and in particular to a project hybrid cloud deployment method. Background Art
[0002] In enterprise project development, the project can be a monolithic architecture or a microservice architecture. Technical means are used to transform and optimize the project microservice structure on the project architecture to support higher concurrent traffic. Multiple projects are deployed on multiple servers, which greatly improves the performance of each module.
[0003] As the number of enterprise projects increases and project functions become more diverse, the business logic they undertake becomes more complex. The increase in business logic leads to an increase in modules, and the project requires more servers to run each module. However, adding more servers will greatly increase the company's computer room costs, thus introducing cloud deployment.
[0004] However, it is very expensive for enterprises to purchase servers when building their own computer rooms. After introducing the cloud, communication between multiple modules is a problem. There will also be communication delays, and the security of data transmitted over the network also needs to be processed. The data of each module cannot be displayed intuitively, and the service status of the self-built computer room and the cloud cannot be monitored at any time. Summary of the invention
[0005] The main purpose of this application is to provide a project hybrid cloud deployment method, aiming to solve the above-mentioned technical problems existing in the prior art.
[0006] This application proposes a hybrid cloud deployment method for a project, the improvements of which are:
[0007] Insert the project module into the first local server, the second local server and the cloud server respectively, and establish storage nodes in the first local server, the second local server and the cloud server;
[0008] When the project modules in the cloud server, the first local server and the second local server need to call each other, the project module data of any one of the servers are obtained respectively, wherein the acquisition of the project module data of any one of the servers also includes: the first manager module sends management information; and or, the second manager module sends management information; the server receiving the management information encrypts the management information and returns the encrypted package;
[0009] Start the project module. When the project module data runs successfully, the server receiving the management information stores the management information in its own storage node, and synchronizes the storage action information to the other two servers to request the other two servers to save the management information.
[0010] As an improvement of the above technical solution, when the project module data runs successfully, it also includes:
[0011] Establish a first manager module and a second manager module;
[0012] Send the project modules of the first local server and the second local server to a first manager module, and send the project module of the cloud server to a second manager module;
[0013] Decrypting the project module data of the first manager module and the second manager module to obtain address information of the first local server, the second local server and the cloud server;
[0014] When starting any project module of the first local server, the second local server and the cloud server;
[0015] If any project module of the first local server, the second local server and the cloud server is unavailable, the project module data corresponding to the first local server, the second local server and the cloud server are cleared.
[0016] As a further improvement of the above technical solution, the management information includes first management information, second management information and third management information.
[0017] As a further improvement of the above technical solution, the inserting the project module into the first local server, the second local server and the cloud server respectively further includes:
[0018] Starting a project module in the first local server;
[0019] The first local server sends the project module data to the first manager module, and the first manager module performs encryption calculation on the project module data to generate first management information;
[0020] The first management information is saved to the storage node of the first local server.
[0021] As a further improvement of the above technical solution, the inserting the project module into the first local server, the second local server and the cloud server respectively further includes:
[0022] Starting the project module in the second local server;
[0023] The second local server sends the project module data to the first manager module, and the first manager module performs encryption calculation on the project module data to generate second management information;
[0024] The second management information is saved to the storage node of the first local server.
[0025] As a further improvement of the above technical solution, the inserting the project module into the first local server, the second local server and the cloud server respectively further includes:
[0026] Starting the project module in the cloud server;
[0027] The cloud server sends the project module data to the second manager module, and the second manager module performs encryption calculation on the project module data to generate third management information;
[0028] The third management information is saved to the storage node of the first local server.
[0029] As a further improvement of the above technical solution, data is updated on the storage node of the first local server to trigger data synchronization to the storage node of the second local server or the storage node of the cloud server.
[0030] The present application also provides a project hybrid cloud deployment device, including:
[0031] Establishing module: used to insert the project module into the first local server, the second local server, and the cloud server respectively, and establish storage nodes in the first local server, the second local server, and the cloud server;
[0032] The calling module is used to obtain the project module data of any server when the project modules in the cloud server, the first local server and the second local server need to call each other, wherein the obtaining of the project module data of any server also includes: the first manager module sends management information; and or the second manager module sends management information; the server receiving the management information encrypts the management information and returns the encrypted package;
[0033] The processing module is used to start the project module. When the project module data runs successfully, the server receiving the management information stores the management information in its own storage node and synchronizes the storage action information to the other two servers to request the other two servers to save the management information.
[0034] The present application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above-mentioned project hybrid cloud deployment method when executing the computer program.
[0035] The present application also provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the above-mentioned project hybrid cloud deployment method are implemented.
[0036] The beneficial effects of this application are:
[0037] 1. This application introduces cloud services for architecture, which solves the problem of insufficient local servers, and solves the communication problem between the modules of local services and cloud services, as well as the address storage problem of each module;
[0038] 2. Introduce multiple storage engines for data storage, use the manager module to coordinate the address and storage data of each module, and combine the encryption algorithm to encrypt and store the service address and port, which can prevent others from obtaining data and greatly reduce the problem of data loss. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 A flowchart of a project hybrid cloud deployment method according to an embodiment of the present application.
[0040] Figure 2 A schematic diagram of the structural framework of a project hybrid cloud deployment device according to an embodiment of the present application.
[0041] Figure 3 A schematic diagram of the internal structure of a computer device according to an embodiment of the present application.
[0042] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0043] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0044] This application discloses a project hybrid cloud deployment method, including:
[0045] S1: inserting the project module into the first local server 1, the second local server 2 and the cloud server 3 respectively, and establishing storage nodes in the first local server 1, the second local server 2 and the cloud server 3;
[0046] S2: When the project modules in the cloud server 3, the first local server 1 and the second local server 2 need to call each other, the project module data of any one of the servers are obtained respectively, wherein the acquisition of the project module data of any one of the servers also includes: the first manager module sends management information; and or, the second manager module sends management information; the server receiving the management information encrypts the management information and returns the encrypted package;
[0047] S3: Start the project module. When the project module data runs successfully, the server receiving the management information stores the management information in its own storage node, and synchronizes the storage action information to the other two servers to request the other two servers to save the management information.
[0048] In the deployment phase, for example, the enterprise has two servers in its own local server: the first local server 1 and the second local server 2; and one server in the cloud: the cloud server 3. The project modules include module A, module B, and module C. Module A is deployed to the first local server 1, module B is deployed to the second local server 2, and module C is deployed to the cloud server 3. Currently, multiple modules cannot communicate and call each other, and it is necessary to create or reference manager modules and storage nodes. The first local server 1 introduces the first manager module and the first storage node, the second local server 2 introduces the second storage node, and the cloud server 3 introduces the second manager module and the third storage node.
[0049] When the project modules in the cloud server 3, the first local server 1 and the second local server 2 need to call each other, the project module data of any one of the servers are obtained respectively, wherein when the project module data of any one of the servers is obtained, the first manager module sends management information; and or, the second manager module sends management information; the server receiving the management information encrypts the management information and returns the encrypted package. This application can distribute the data pressure to each server by establishing multiple storage nodes, and can reduce the network delay pressure when calling each project module. In addition, a manager module - the first manager module is uniformly established locally in the enterprise, which can integrate the data of multiple servers in the local enterprise into one, and can monitor the service status of each server at any time, which is convenient for management and maintenance. In addition, in the process of project module data transmission, an encryption and decryption process is established to solve the communication and security problems between the servers.
[0050] Furthermore, when the project module data runs successfully, it also includes:
[0051] S31: Establishing a first manager module and a second manager module;
[0052] S32: sending the project modules of the first local server 1 and the second local server 2 to a first manager module, and sending the project module of the cloud server 3 to a second manager module;
[0053] S33: decrypting the project module data of the first manager module and the second manager module to obtain the address information of the first local server 1, the second local server 2 and the cloud server 3;
[0054] S34: when starting any project module of the first local server 1, the second local server 2 and the cloud server 3;
[0055] S35: If any project module of the first local server 1 , the second local server 2 , and the cloud server 3 is unusable, clear the project module data corresponding to the first local server 1 , the second local server 2 , and the cloud server 3 .
[0056] The management information includes first management information, second management information and third management information.
[0057] The inserting the project module into the first local server, the second local server and the cloud server respectively further includes:
[0058] S111: starting a project module in the first local server 1;
[0059] S112: the first local server 1 sends the project module data to the first manager module, and the first manager module performs encryption calculation on the project module data to generate first management information;
[0060] S113: Save the first management information to the storage node of the first local server 1.
[0061] The inserting of the project module into the first local server 1, the second local server 2 and the cloud server 3 respectively further includes:
[0062] S114: starting the project module in the second local server 2;
[0063] S115: the second local server 2 sends the project module data to the first manager module, and the first manager module performs encryption calculation on the project module data to generate second management information;
[0064] S116: Save the second management information to the storage node of the first local server 1.
[0065] The inserting of the project module into the first local server 1, the second local server 2 and the cloud server 3 respectively further includes:
[0066] S117: Start the project module in the cloud server 3;
[0067] S118: the cloud server 3 sends the project module data to the second manager module, and the second manager module performs encryption calculation on the project module data to generate third management information;
[0068] S119: Save the third management information to the storage node of the first local server 1.
[0069] According to steps S114-S119, it also includes:
[0070] S120: Update data on the storage node of the first local server 1, and trigger data synchronization to the storage node of the second local server 2 or the storage node of the cloud server 3.
[0071] For steps S111-S120, when the project modules in the cloud server 3, the first local server 1 and the second local server 2 need to call each other, the project module data of any one of the servers are obtained respectively, wherein the acquisition of the project module data of any one of the servers also includes: the first manager module sends management information; and or, the second manager module sends management information. For example: when module A needs to call module B, the second local server sends the project module data of module B to the first manager module, the first manager module performs encryption operation on the project module data to generate the first management information, and the first manager module sends the first manager information to module A.
[0072] A hybrid cloud deployment method of the present invention is specifically implemented as follows:
[0073] refer to Figure 1 The project modules include module A, module B, and module C. When each module is running, it first calls the manager module and sends the service address of the module to its own manager module. For example, module A sends its own project module data to the first manager module, and the first manager module obtains the project module data of module A, wherein the project data of module A includes the service address of module A. The first manager module encrypts the service address of module A, generates first management information, and stores the first management information sending request on the first storage node. Module B sends its own project module data to the first manager module, wherein the project module data of module B includes the service address of module B. The first manager module encrypts the service address of module B, generates second management information, and stores the second management information on the second storage node where module B is located. Similarly, the second manager module sends the generated third management information to the third storage node of cloud server 3.
[0074] When all project modules run successfully, the first storage node will save the service address of each project module data, including the service address of module A, the service address of module B and the service address of module C. When the first storage node receives the request to save the encrypted service address, that is, the first management information, the second management information or the third management information, it will send a request to the second local server 2 and the cloud server 3's respective storage nodes (corresponding to the second storage node and the third storage node respectively) to keep the data stored in the three storage nodes consistent. When the project's A module, B module and C module each need to call other module services, they first call the first manager module or the second manager module to obtain the first management information, the second management information or the third management information, and then call the corresponding project module (including module A, module B and module C).
[0075] When each project module is started next time, the first manager module and the second manager module both store the data of module A, module B and module C, which can be called by initiating a request to the first manager module or the second manager module. The project modules of the present invention include but are not limited to the above module A, module B and module C. If new modules and local servers are added, the above deployment scheme can be referred to and the subsequent calling steps can be repeated.
[0076] This application introduces cloud services for architecture, which solves the problem of insufficient local servers, and solves the communication problem between the modules of local services and cloud services, as well as the address storage problem of each module; introduces multiple storage engines for data storage, uses the manager module to coordinate the address and storage data of each module, and combines the encryption algorithm to encrypt and store the service address and port, which can prevent others from obtaining data and greatly reduce the problem of data loss.
[0077] refer to Figure 2 , the present application also discloses a project hybrid cloud deployment device, including:
[0078] Establishing module 100: The establishing module 100 is used to insert the project module into the first local server, the second local server, and the cloud server respectively, and establish storage nodes in the first local server, the second local server, and the cloud server;
[0079] The calling module 200 is used to obtain the project module data of any server when the project modules in the cloud server, the first local server and the second local server need to call each other, wherein the obtaining of the project module data of any server also includes: the first manager module sends management information; and or the second manager module sends management information; the server receiving the management information encrypts the management information and returns the encrypted package;
[0080] Processing module 300, the processing module 300 is used to start the project module. When the project module data runs successfully, the server receiving the management information stores the management information in its own storage node, and synchronizes the storage action information to the other two servers to request the other two servers to save the management information.
[0081] The implementation method of a project hybrid cloud deployment device of the present application can refer to the steps of the above-mentioned project hybrid cloud deployment method, which will not be repeated here.
[0082] Example 3
[0083] like Figure 3 As shown, the present application also provides a computer device, which may be a server, and its internal structure may be as shown in Figure 3 As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor designed by the computer is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store all data required for the process of a project hybrid cloud deployment method. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a project hybrid cloud deployment method is implemented.
[0084] Those skilled in the art will understand that Figure 3 The structure shown in is merely a block diagram of a portion of the structure related to the present application solution and does not constitute a limitation on the computer device to which the present application solution is applied.
[0085] An embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, any of the above-mentioned project hybrid cloud deployment methods is implemented.
[0086] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing related hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media provided in this application and used in the embodiments may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0087] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, device, article or method including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, device, article or method. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other identical elements in the process, device, article or method including the element.
[0088] The above description is only a preferred embodiment of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A hybrid cloud deployment method for a project, characterized in that: include: Insert the project module into the first local server, the second local server and the cloud server respectively, and establish storage nodes in the first local server, the second local server and the cloud server; When the project modules in the cloud server, the first local server and the second local server need to call each other, the project module data of any one of the servers are obtained respectively, wherein the acquisition of the project module data of any one of the servers also includes: the first manager module sends management information; and or, the second manager module sends management information; the server receiving the management information encrypts the management information and returns the encrypted package; The project module is started. When the project module data runs successfully, the server receiving the management information stores the management information in its own storage node, and synchronizes the information of the storage action to the other two servers to request the other two servers to save the management information. When the project module data runs successfully, it also includes: Establish a first manager module and a second manager module; Send the project modules of the first local server and the second local server to a first manager module, and send the project module of the cloud server to a second manager module; Decrypting the project module data of the first manager module and the second manager module to obtain address information of the first local server, the second local server and the cloud server; When starting any project module of the first local server, the second local server and the cloud server; If any project module of the first local server, the second local server and the cloud server is unavailable, the project module data corresponding to the first local server, the second local server and the cloud server are cleared.
2. A hybrid cloud deployment method for a project according to claim 1, characterized in that: The management information includes first management information, second management information and third management information.
3. A hybrid cloud deployment method for a project according to claim 2, characterized in that: The inserting the project module into the first local server, the second local server and the cloud server respectively further includes: Starting a project module in the first local server; The first local server sends the project module data to the first manager module, and the first manager module performs encryption calculation on the project module data to generate first management information; The first management information is saved to the storage node of the first local server.
4. A hybrid cloud deployment method for a project according to claim 3, characterized in that: The inserting the project module into the first local server, the second local server and the cloud server respectively further includes: Starting the project module in the second local server; The second local server sends the project module data to the first manager module, and the first manager module performs encryption calculation on the project module data to generate second management information; The second management information is saved to the storage node of the first local server.
5. A hybrid cloud deployment method for a project according to claim 3, characterized in that: The inserting the project module into the first local server, the second local server and the cloud server respectively further includes: Starting the project module in the cloud server; The cloud server sends the project module data to the second manager module, and the second manager module performs encryption calculation on the project module data to generate third management information; The third management information is saved to the storage node of the first local server.
6. A project hybrid cloud deployment method according to any one of claims 4-5, characterized in that: The storage node of the first local server is updated with data, triggering data synchronization to the storage node of the second local server or the storage node of the cloud server.
7. A computer device comprising a memory and a processor, wherein the memory stores computer The program is characterized in that When the processor executes the computer program, claims 1-5 are implemented Any one of the steps of a hybrid cloud deployment method for a project.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of a project hybrid cloud deployment method described in any one of claims 1 to 5 are implemented.
