Cloud platform customized service docking method, system and device and storage medium
Deploying customized services through virtual machine templates can achieve decoupling between cloud platforms and customized services, solving the problems of large storage space and complex upgrade and maintenance, providing flexible deployment and independent evolution capabilities, and reducing maintenance workload.
Patent Information
- Application Number
- CN202411127229.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-16
- Publication Date
- 2024-12-03
AI Technical Summary
The existing cloud platform customized service package takes up a lot of storage space, the redundant service installation package is inconvenient for transmission, and the upgrade and maintenance workload when the customized service is separated from the main line of the cloud platform is large, making it difficult to evolve independently.
Deploy customized services through virtual machine templates, the virtual machine is decoupled from the cloud platform, independently managed and maintained, supporting the flexible development and deployment of customized services, and realizing the decoupling of code, functions, deployment and maintenance.
Reduces maintenance workload, allows customized services to evolve independently from the cloud platform main line, provides pluggability and flexible deployment solutions for functions, and reduces the complexity of installation and upgrade of redundant services.
Smart Images

Figure CN119065788A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of cloud server technology, and in particular to a cloud platform customized service docking method, system, computer equipment and storage medium. Background Art
[0002] Cloud platforms are used for a variety of customer scenarios, and customized service development and deployment are often required to meet different customer needs. For example, if the first customer needs multi-cloud management capabilities, while the second customer does not need cloud management and the second customer needs security scanning capabilities, customized service development and deployment for the first and second customers is required. As a general product, the cloud platform needs to decouple customized services from the basic services of the cloud platform and evolve independently. It needs to support flexible development and deployment of customized services, and at the same time, customized services should not be affected when the mainline basic services are upgraded.
[0003] The first technical solution of the prior art is to integrate the customized function code into the product, provide a large and comprehensive product package, and select the services required by the customer according to the customer's needs during deployment. However, the product package occupies a large storage space and has redundant service installation packages that the customer does not need, which is not convenient for transmission when delivered to the customer. During deployment, the deployment plan needs to be adjusted according to customer needs, and the customized code is together with the main line basic function code. When one party needs to upgrade, the other party also needs passive upgrade support. The second technical solution of the prior art is to pull a new branch of a product customer based on the main line, perform customized development for the customer on the new branch, and provide customized installation package deployment. Since different customers correspond to different branches and installation packages, when the number of customers increases, the maintenance cost also increases, and the code branch and installation package maintenance is difficult; the customized function is separated from the cloud platform main line. When the cloud platform main line is upgraded, the customer cannot upgrade directly on site, and needs to re-develop, test, package and deploy on the new main line before upgrading. Summary of the invention
[0004] Based on this, a cloud platform customized service docking method, system, computer equipment and storage medium are provided to solve the problems of large storage space occupied by large and comprehensive product packages, redundant service installation packages that customers do not need, and inconvenient transmission when delivered to customers, as well as the heavy workload of customized service docking development, packaging, deployment and other process maintenance. It supports the decoupling evolution of customized services and the basic main line of the cloud platform, and solves the problem of heavy workload in upgrading product packages or customized services.
[0005] On the one hand, a cloud platform customized service docking method is provided, the method comprising:
[0006] Deploy a virtual machine based on the customized service virtual machine template, wherein the user interface of the virtual machine displays the customized service in the form of a business application module;
[0007] Setting a cloud platform to connect with the virtual machine, adding the customized service in the virtual machine to the cloud platform, the cloud platform saving basic information for managing the virtual machine, and the cloud platform maintaining and managing the customized service in the virtual machine;
[0008] In response to the business application module in the virtual machine running, the virtual machine sends a business request to the cloud platform, and the cloud platform performs a permission authentication check on the virtual machine according to the basic information;
[0009] In response to the virtual machine passing the authority authentication check, the cloud platform calls the port corresponding to the business request to perform business interaction with the virtual machine, and the cloud platform receives and processes the event message of the business application module in the virtual machine.
[0010] In one embodiment, the step of deploying a virtual machine based on a customized service virtual machine template, wherein the user interface of the virtual machine displays the customized service in the form of a business application module, comprises:
[0011] Setting a configuration file of a customized service in a customized service virtual machine template, generating a business application module according to the configuration file of the customized service, and starting, stopping, restarting, backing up, restoring and upgrading the business application module;
[0012] Deploy a virtual machine based on the business application module of the customized service virtual machine template, set the interface of the business application module provided in the customized service virtual machine template, support docking with the cloud platform for authority authentication verification, and perform menu management on the business application module;
[0013] The deployed virtual machine includes an application management tool, a customized service database, a customized service application backend and a customized service micro frontend, and the application management tool and the customized service application backend are connected to the customized service database;
[0014] Performing configuration management, lifecycle management, and operation management on the business application module through the application management tool;
[0015] The customized service micro front-end is set to generate and display a business application module for the customized service in the user interface, and the business application module is connected to the cloud platform and transmits business requests and business data, providing user interface functions;
[0016] The customized service application backend is set to store basic information of the virtual machine, and the customized service application backend is set to implement a heartbeat interface, authority authentication verification, call a business application module, and support event message processing;
[0017] The customized service database is set to be separated from the cloud platform database to store business data and perform data backup on the business application module.
[0018] In one embodiment, the performing configuration management, lifecycle management, and operation management on the business application module by the application management tool includes:
[0019] The life cycle management of the business application module includes calling the application management service standard interface in the virtual machine to control the start, stop and restart of the business application module by executing commands;
[0020] The configuration management of the business application module includes upgrading, uploading the latest business application module compression package and front-end program package on the cloud platform, calling the application management service standard interface in the virtual machine to upload to the virtual machine to replace the original package, and realizing the upgrading of the business application module;
[0021] The operational management of the business application module includes data backup and recovery of the business application module, setting a database backup command to execute at a preset period, backing up business data to a fixed directory, and regularly calling the application management service interface in the virtual machine to export the backup file to the cloud platform's database for storage; when the virtual machine fails, after the virtual machine is restored or rebuilt, the backup file is selected, and the application management service interface in the virtual machine is called through the customized service back-end interface to perform data recovery.
[0022] In one embodiment, the cloud platform is connected to the virtual machine, the customized service in the virtual machine is added to the cloud platform, the cloud platform stores basic information for managing the virtual machine, and the cloud platform maintains and manages the customized service in the virtual machine, including:
[0023] Setting a cloud platform for access management of the virtual machine, and forming a management menu of the virtual machine in the cloud platform;
[0024] Obtaining basic information of the virtual machine, the basic information including the IP address of the virtual machine and the name description of the customized service, and saving the basic information in the cloud platform;
[0025] The cloud platform is used to add, query, modify, delete and configure the customized services in the virtual machine, and to query and modify the configuration files of the customized services in the virtual machine.
[0026] In one embodiment, the cloud platform is set for access management of the virtual machine, and forming a management menu of the virtual machine in the cloud platform includes:
[0027] The cloud platform is configured to include a customized service docking UI console, a cloud platform front-end base, a gateway, a customized service docking back-end, a cloud platform database and a cloud platform business module. The customized service micro front-end module is connected to the cloud platform front-end base module, the cloud platform front-end base module and the customized service docking UI console module are connected to the gateway, the gateway is connected to the customized service docking back-end module, the customized service docking back-end module is connected to the cloud platform database module, the application management tool module and the customized service application back-end module, and the cloud platform business module is connected to the customized service application back-end module;
[0028] The cloud platform front-end base module receives the service request sent by the customized service micro front-end to the cloud platform, and transmits the service request to the gateway;
[0029] The customized service docking UI console is used to add the customized service to the cloud platform for unified management, and form a management menu for the business application module corresponding to the customized service;
[0030] The customized service docking backend is used to call the interface corresponding to the virtual machine according to the business request, and the cloud platform business module performs business interaction with the virtual machine.
[0031] In one embodiment, in response to the business application module in the virtual machine running, the virtual machine sends a business request to the cloud platform, and the cloud platform performs permission authentication verification on the virtual machine according to the basic information, including:
[0032] When the cloud platform front-end base module receives a service request sent by the customized service micro front-end to the cloud platform, the cloud platform front-end base module sends the service request to the gateway;
[0033] The gateway retrieves basic information of the virtual machine that sends the service request, and identifies whether the basic information is an IP address of an authorized virtual machine;
[0034] If so, determine whether there is a customized service corresponding to the business request, and if so, pass the authority authentication check.
[0035] In one embodiment, in response to the virtual machine passing the authority authentication check, the cloud platform calls the port corresponding to the business request to perform business interaction with the virtual machine, and the cloud platform receives the event message of the business application module in the virtual machine and processes it, including:
[0036] When the virtual machine passes the authority authentication check, the customized service in the management menu in the customized service docking UI console is called, the port of the customized service docking backend is called to communicate with the customized service application backend, and the customized service application backend interacts with the cloud platform business module;
[0037] When the customized service is configured and managed, the customized service in the management menu in the customized service docking UI console is called, the port of the customized service docking backend is called to communicate with the application management tool, and an http request is sent to the application management tool to call the standard interface for managing the business application module in the virtual machine, and obtain or modify the corresponding configuration file.
[0038] On the other hand, a cloud platform customized service docking system is provided, which is used to implement the cloud platform customized service docking method described above;
[0039] The system includes a cloud platform and a virtual machine; the virtual machine is deployed based on a customized service virtual machine template, the cloud platform is set to connect with the virtual machine, the customized service in the virtual machine is added to the cloud platform, the cloud platform saves basic information for managing the virtual machine, and the cloud platform maintains and manages the customized service in the virtual machine;
[0040] The virtual machine includes an application management tool, a customized service database, a customized service application backend and a customized service micro frontend, and the application management tool and the customized service application backend are connected to the customized service database;
[0041] The cloud platform includes a customized service docking UI console, a cloud platform front-end base, a gateway, a customized service docking back-end, a cloud platform database and a cloud platform business module. The customized service micro front-end module is connected to the cloud platform front-end base module, the cloud platform front-end base module and the customized service docking UI console module are connected to the gateway, the gateway is connected to the customized service docking back-end module, the customized service docking back-end module is connected to the cloud platform database module, the application management tool module and the customized service application back-end module, and the cloud platform business module and the customized service application back-end module are connected to each other.
[0042] In another aspect, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the following steps are implemented:
[0043] Deploy a virtual machine based on the customized service virtual machine template, wherein the user interface of the virtual machine displays the customized service in the form of a business application module;
[0044] Setting a cloud platform to connect with the virtual machine, adding the customized service in the virtual machine to the cloud platform, the cloud platform saving basic information for managing the virtual machine, and the cloud platform maintaining and managing the customized service in the virtual machine;
[0045] In response to the business application module in the virtual machine running, the virtual machine sends a business request to the cloud platform, and the cloud platform performs a permission authentication check on the virtual machine according to the basic information;
[0046] In response to the virtual machine passing the authority authentication check, the cloud platform calls the port corresponding to the business request to perform business interaction with the virtual machine, and the cloud platform receives and processes the event message of the business application module in the virtual machine.
[0047] In another aspect, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0048] Deploy a virtual machine based on the customized service virtual machine template, wherein the user interface of the virtual machine displays the customized service in the form of a business application module;
[0049] Setting a cloud platform to connect with the virtual machine, adding the customized service in the virtual machine to the cloud platform, the cloud platform saving basic information for managing the virtual machine, and the cloud platform maintaining and managing the customized service in the virtual machine;
[0050] In response to the business application module in the virtual machine running, the virtual machine sends a business request to the cloud platform, and the cloud platform performs a permission authentication check on the virtual machine according to the basic information;
[0051] In response to the virtual machine passing the authority authentication check, the cloud platform calls the port corresponding to the business request to perform business interaction with the virtual machine, and the cloud platform receives and processes the event message of the business application module in the virtual machine.
[0052] The above-mentioned cloud platform customized service docking method, system, computer equipment and storage medium deploy virtual machines through customized service virtual machine templates, develop, package, deploy and maintain customized services in the form of virtual machine templates, achieve multi-faceted decoupling from the cloud platform, and reduce the product maintenance workload, which is specifically manifested in code decoupling, function decoupling, deployment decoupling and maintenance decoupling.
[0053] Code decoupling: Customized service codes are separated from the mainline code of the cloud platform. They can evolve independently during mainline development or customized development, and the mainline or customized service releases new versions without affecting each other.
[0054] Functional decoupling: Customized service functions are independent of the main functions of the cloud platform. Customized services are connected to the cloud platform by deploying virtual machines using virtual machine templates to achieve pluggable functions. When customized functions are needed, virtual machines can be deployed to support them. When they are not needed, no deployment is done. The functions provided by the cloud platform can be flexibly controlled based on whether virtual machines are deployed.
[0055] Deployment decoupling: The cloud platform mainline basic package and customized service package are packaged and deployed independently. The installation packages can be flexibly combined according to customer needs to provide customers with the capabilities they need, forming a common cloud platform deployment process.
[0056] Maintenance decoupling: The main line and customization are maintained independently. Compared with the maintenance of the main line and customization together, the maintenance difficulty is reduced, and only the customized virtual machine template needs to be maintained.
[0057] This embodiment can also be used as a decoupling docking solution for deep integration of third-party systems and cloud platforms. After the third-party system develops a virtual machine template according to the specifications of the virtual machine template and deploys the virtual machine, the third-party system and the cloud platform can be deeply integrated, and service capabilities can be uniformly provided based on the cloud platform. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0059] Figure 1 A structural block diagram of a cloud platform customized service docking system in an application environment of a cloud platform customized service docking method in an embodiment of the present application;
[0060] Figure 2 This is a flow chart of a method for connecting to a cloud platform customized service in one embodiment of the present application;
[0061] Figure 3 A schematic diagram of a call link for obtaining or modifying a configuration file during service configuration management in one embodiment of the present application;
[0062] Figure 4 A schematic diagram of the startup process of a business application module in one embodiment of the present application;
[0063] Figure 5This is a diagram of the internal structure of a computer device in one embodiment of the present application. DETAILED DESCRIPTION
[0064] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. 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.
[0065] The cloud platform customized service docking method provided in this application can be applied to Figure 1 In the application environment shown. The cloud platform customized service docking system includes a cloud platform and a virtual machine; the virtual machine includes an application management tool, a customized service database, a customized service application backend and a customized service micro frontend, and the application management tool and the customized service application backend are connected to the customized service database; the cloud platform includes a customized service docking UI console, a cloud platform front-end base, a gateway, a customized service docking backend, a cloud platform database and a cloud platform business module, the customized service micro frontend module is connected to the cloud platform front-end base module, the cloud platform front-end base module and the customized service docking UI console module are connected to the gateway, the gateway is connected to the customized service docking backend module, the customized service docking backend module is connected to the cloud platform database module, the application management tool module and the customized service application backend module, and the cloud platform business module is connected to the customized service application backend module.
[0066] In one embodiment, Figure 2 As shown, a cloud platform customized service docking method is provided, comprising the following steps:
[0067] Step S1, deploying a virtual machine based on a customized service virtual machine template, wherein the user interface of the virtual machine displays the customized service in the form of a business application module;
[0068] Step S2, setting a cloud platform to connect with the virtual machine, adding the customized service in the virtual machine to the cloud platform, the cloud platform saving basic information for managing the virtual machine, and the cloud platform maintaining and managing the customized service in the virtual machine;
[0069] Step S3, in response to the business application module in the virtual machine running, the virtual machine sends a business request to the cloud platform, and the cloud platform performs permission authentication verification on the virtual machine according to the basic information;
[0070] Step S4, in response to the virtual machine passing the authority authentication check, the cloud platform calls the port corresponding to the business request to perform business interaction with the virtual machine, and the cloud platform receives and processes the event message of the business application module in the virtual machine.
[0071] Among them, UI is the abbreviation of User Interface.
[0072] Specifically, the cloud platform customized service docking method mainly includes the following five functions:
[0073] 1) Service operation management. Deploy virtual machines based on virtual machine templates and provide customized service virtual machine access management functions on the cloud platform, including service addition, query, modification, deletion, and configuration.
[0074] 2) Business application module management. The business application module that provides customized services in the virtual machine template supports starting, stopping, restarting, backing up, restoring, and upgrading.
[0075] 3) Menu and authentication. The business application module interface that provides customized services in the virtual machine template supports unified authentication and authorization for docking with the cloud platform, and customized services support unified menu management for docking with the cloud platform.
[0076] 4) Business module interaction management. The business application module that provides customized services in the virtual machine template supports interaction with modules in the cloud platform, obtains basic function data in the cloud platform, and supports the reception and sending of events.
[0077] 5) Micro-frontend sub-application integration. The UI of the customized service is integrated into the virtual machine template in the form of a micro-frontend sub-application, and is connected to the cloud platform through the front-end base of the cloud platform to provide UI functions.
[0078] In this embodiment, the steps of deploying a virtual machine based on a customized service virtual machine template and displaying the customized service in a business application module in the user interface of the virtual machine include:
[0079] Setting a configuration file of a customized service in a customized service virtual machine template, generating a business application module according to the configuration file of the customized service, and starting, stopping, restarting, backing up, restoring and upgrading the business application module;
[0080] Deploy a virtual machine based on the business application module of the customized service virtual machine template, set the interface of the business application module provided in the customized service virtual machine template, support docking with the cloud platform for authority authentication verification, and perform menu management on the business application module;
[0081] The deployed virtual machine includes an application management tool, a customized service database, a customized service application backend and a customized service micro frontend, and the application management tool and the customized service application backend are connected to the customized service database;
[0082] Performing configuration management, lifecycle management, and operation management on the business application module through the application management tool;
[0083] The customized service micro front-end is set to generate and display a business application module for the customized service in the user interface, and the business application module is connected to the cloud platform and transmits business requests and business data, providing user interface functions;
[0084] The customized service application backend is set to store basic information of the virtual machine, and the customized service application backend is set to implement a heartbeat interface, authority authentication verification, call a business application module, and support event message processing;
[0085] The customized service database is set to be separated from the cloud platform database to store business data and perform data backup on the business application module.
[0086] After the customized service is deployed, the cloud platform uses the customized service docking UI console module as the UI entry for unified docking management, and performs maintenance and management through the cloud platform customized service docking backend. When the function is implemented, the customized service docking UI console module calls the interface of the customized service docking backend module of the cloud platform through the gateway. The interface of the customized service docking backend module obtains the IP information of the maintained virtual machine and sends an http request to call the standard interface of the application management service or business application module in the customized service virtual machine template.
[0087] In this embodiment, the configuration management, lifecycle management, and operation management of the business application module by the application management tool includes:
[0088] The life cycle management of the business application module includes calling the application management service standard interface in the virtual machine to control the start, stop and restart of the business application module by executing commands;
[0089] The configuration management of the business application module includes upgrading, uploading the latest business application module compression package and front-end program package on the cloud platform, calling the application management service standard interface in the virtual machine to upload to the virtual machine to replace the original package, and realizing the upgrading of the business application module;
[0090] The operational management of the business application module includes data backup and recovery of the business application module, setting a database backup command to execute at a preset period, backing up business data to a fixed directory, and regularly calling the application management service interface in the virtual machine to export the backup file to the cloud platform's database for storage; when the virtual machine fails, after the virtual machine is restored or rebuilt, the backup file is selected, and the application management service interface in the virtual machine is called through the customized service back-end interface to perform data recovery.
[0091] In this embodiment, the cloud platform is set to connect with the virtual machine, the customized service in the virtual machine is added to the cloud platform, the cloud platform saves basic information for managing the virtual machine, and the cloud platform maintains and manages the customized service in the virtual machine, including:
[0092] Setting a cloud platform for access management of the virtual machine, and forming a management menu of the virtual machine in the cloud platform;
[0093] Obtaining basic information of the virtual machine, the basic information including the IP address of the virtual machine and the name description of the customized service, and saving the basic information in the cloud platform;
[0094] The cloud platform is used to add, query, modify, delete and configure the customized services in the virtual machine, and to query and modify the configuration files of the customized services in the virtual machine.
[0095] In this embodiment, the cloud platform is set for access management of the virtual machine, and the management menu of the virtual machine is formed in the cloud platform, including:
[0096] The cloud platform is configured to include a customized service docking UI console, a cloud platform front-end base, a gateway, a customized service docking back-end, a cloud platform database and a cloud platform business module. The customized service micro front-end module is connected to the cloud platform front-end base module, the cloud platform front-end base module and the customized service docking UI console module are connected to the gateway, the gateway is connected to the customized service docking back-end module, the customized service docking back-end module is connected to the cloud platform database module, the application management tool module and the customized service application back-end module, and the cloud platform business module is connected to the customized service application back-end module;
[0097] The cloud platform front-end base module receives the service request sent by the customized service micro front-end to the cloud platform, and transmits the service request to the gateway;
[0098] The customized service docking UI console is used to add the customized service to the cloud platform for unified management, and form a management menu for the business application module corresponding to the customized service;
[0099] The customized service docking backend is used to call the interface corresponding to the virtual machine according to the business request, and the cloud platform business module performs business interaction with the virtual machine.
[0100] It is understandable that, before the business application module in the virtual machine is run, the following steps are also included:
[0101] Control the customized service docking backend to call the interface corresponding to the virtual machine according to the business request, detect the heartbeat signal of the customized service application backend in the virtual machine through the interface, and determine whether there is a heartbeat signal of the business application module corresponding to the execution of the business request in the customized service application backend;
[0102] If so, the service request is sent to the corresponding service application module of the customized service application backend, and the customized service application backend performs service interaction with the cloud platform service module according to the service request to process the service request;
[0103] If it does not exist, it is determined that the corresponding business application module of the customized service application backend is unavailable, and it is determined whether the corresponding business application module exists in the management menu of the customized service docking UI console. If it exists, the corresponding business application module of the customized service application backend is repaired; if it does not exist, an alarm message of no usage permission is issued.
[0104] This embodiment uses a heartbeat signal to detect whether there is a business application module in the customized service application backend that processes the business request. It can identify whether the business application module is available based on the heartbeat signal, and can determine whether there is a fault in the business application module based on the management menu of the customized service docking UI console.
[0105] In this embodiment, in response to the business application module in the virtual machine running, the virtual machine sends a business request to the cloud platform, and the cloud platform performs permission authentication verification on the virtual machine according to the basic information, including:
[0106] When the cloud platform front-end base module receives a service request sent by the customized service micro front-end to the cloud platform, the cloud platform front-end base module sends the service request to the gateway;
[0107] The gateway retrieves basic information of the virtual machine that sends the service request, and identifies whether the basic information is an IP address of an authorized virtual machine;
[0108] If so, determine whether there is a customized service corresponding to the business request, and if so, pass the authority authentication check.
[0109] In this embodiment, in response to the virtual machine passing the authority authentication check, the cloud platform calls the port corresponding to the business request to perform business interaction with the virtual machine, and the cloud platform receives the event message of the business application module in the virtual machine and processes it, including:
[0110] When the virtual machine passes the authority authentication check, the customized service in the management menu in the customized service docking UI console is called, the port of the customized service docking backend is called to communicate with the customized service application backend, and the customized service application backend interacts with the cloud platform business module;
[0111] When the customized service is configured and managed, the customized service in the management menu in the customized service docking UI console is called, the port of the customized service docking backend is called to communicate with the application management tool, and an http request is sent to the application management tool to call the standard interface for managing the business application module in the virtual machine, and obtain or modify the corresponding configuration file.
[0112] The customized service VM template is delivered together with the cloud platform installation package. The customized service VM template defines the minimum application specifications. After the cloud platform is installed, create a customized service VM based on the customized service VM template. Ensure that the created VM is interoperable with the cloud platform network.
[0113] After the virtual machine is deployed, the business backend service is centrally maintained and managed by the customized service docking UI console module. The customized service docking UI console provides the following management functions:
[0114] First, service management. Through the application management tool module, the customized services that need to be managed are added to the cloud platform for unified management, including adding, modifying, querying, and deleting services, and saving and managing basic information such as the IP address of the customized service virtual machine and the service name description.
[0115] Secondly, service configuration management. You can obtain the configuration file of the customized service application backend module in the virtual machine for query and modification. By default, no configuration management is required. This function is an advanced function to support management service configuration and cope with special scenarios. The configuration file of the customized service application backend module in the virtual machine must be placed in the specified path. The customized service docking UI console module calls the interface of the customized service backend module of the cloud platform through the gateway. The customized service backend module first obtains the IP of the corresponding service virtual machine, and then sends an http request to call the standard interface corresponding to the application management in the virtual machine to obtain or modify the configuration file. The call link is as follows: Figure 3 shown.
[0116] After the customized service VM template is deployed and added to the cloud platform through the customized service docking UI console module, the service application module in the VM can be managed based on the customized service docking UI console module. The specific functions are as follows:
[0117] 1. Application module declaration cycle management, including the start, stop, and restart of application modules. When implementing, call the application management service standard interface in the virtual machine to start, stop, and restart the business application module by executing shell commands
[0118] 2. Upgrade of application modules: You can upload the latest application module jar and front-end program package in the console, call the standard application management service interface in the virtual machine to upload it to the virtual machine, replace the original package, and upgrade the application module.
[0119] 3. Data backup and recovery of application modules. The virtual machine has a built-in system scheduled task, which executes the database backup command at 1:00 every day to back up business data to a fixed directory. A scheduled task is added to the backend module of the customized service docking of the cloud platform. At 3:00 every day, the application management service interface in the virtual machine is called regularly to export the backup file to the cloud platform database module and store it in the form of a blob. After the backup is completed, the backup data from 10 days ago in the cloud platform database module is cleared (the backup data is only retained for 10 days to cover holiday scenarios). When the virtual machine fails, after the virtual machine is restored or rebuilt (using the original IP), select the backup file in the console and call the application management service interface in the virtual machine through the interface of the customized service docking backend module to perform database recovery.
[0120] After the application module of the customized service virtual machine template is started, all requests are routed to the virtual machine through the cloud platform gateway, and unified authentication and interface permission processing are performed at the cloud platform gateway. The cloud platform gateway provides dynamic routing addition and deletion interfaces. When the business application module startup operation is performed in the customized service docking UI console module, after the application module is successfully started, the cloud platform customized service backend calls the gateway interface to add dynamic routes for the application service in the virtual machine, and routes all requests with fixed prefixes to the application module in the virtual machine. When the gateway processes dynamic routes, the memory updates the routing table and saves the routing information to Redis. Each time the gateway starts, it obtains the dynamic route from Redis and flushes it into the memory to avoid route loss after the gateway is restarted. When the service deletion operation is performed in the console, the cloud platform customized service backend calls the gateway interface to delete the dynamic route.
[0121] The interface permissions and menus of the customized service virtual machine template are automatically refreshed after the application module is started. The menus and interface permissions required for business applications are built into the virtual machine template and stored in a fixed directory in the form of files. The application management service provides a query interface to query the menus and interface permissions. When the business application module startup operation is performed in the console, after the application module is successfully started, the cloud platform customized service backend initializes the interface permissions and menus. During initialization, the application management service interface is automatically called to query the menu and interface permission data, and then the cloud platform menu and interface permission management interface is called to refresh the interface permissions and menu data. When the service deletion operation is performed in the console, the cloud platform customized service backend calls the cloud platform menu and interface permission management interface to delete the corresponding menus and interface permissions.
[0122] Application management services and business application modules support request authentication and filtering of illegal requests.
[0123] The startup process of the business application module is as follows Figure 4 shown.
[0124] The business application module in the virtual machine supports interaction with the cloud platform business module in terms of function. The interaction supports two methods: java feign or http call. When calling feign, you can customize the feignconfig in Springcloud to configure the https call and the delivery of the token request header. Then declare the address of the business module to be called in the configuration file. For http call, you only need to configure the http address of the business module to be called in the configuration file and call it through http. You can freely choose the two calls according to the actual situation.
[0125] When the interactive interface changes due to the upgrade of the cloud platform or the application service in the virtual machine, adaptation can be supported without repackaging and replacing the service. Based on the console and application management service, the call address configured in the configuration file of the virtual machine template application module is changed to the universal input and output interface of the cloud platform script conversion, and then the adaptation script is developed and converted and adapted through the script.
[0126] The business application module in the virtual machine supports consuming cloud platform events and performing customized business processing. The business application module provides a message receiving and processing interface. The cloud platform customized service backend calls this interface after receiving the cloud platform event and pushes the event to the customized service.
[0127] The business application module in the virtual machine supports sending its own background events and notifying the cloud platform. The cloud platform customized service backend provides a standard interface for message events, receives event messages from the business application module in the virtual machine, and performs relevant processing.
[0128] The UI of the customized service is installed in the virtual machine in the form of a micro-frontend sub-application. The cloud platform front-end base calls the interface of the customized service to connect to the back-end, queries whether the customized service is currently configured, and obtains the IP address of the customized service virtual machine, and then manages the customized service micro-frontend, thereby controlling access to related functions in the customized service sub-application and realizing linkage with the cloud platform unified UI base.
[0129] In the above-mentioned cloud platform customized service docking method, a virtual machine is deployed through a customized service virtual machine template, and the customized service is developed, packaged, deployed, and maintained in the form of a virtual machine template, thereby achieving decoupling from the cloud platform in many aspects and reducing the product maintenance workload, which is specifically manifested in code decoupling, function decoupling, deployment decoupling, and maintenance decoupling.
[0130] Code decoupling: Customized service codes are separated from the mainline code of the cloud platform. They can evolve independently during mainline development or customized development, and the mainline or customized service releases new versions without affecting each other.
[0131] Functional decoupling: Customized service functions are independent of the main functions of the cloud platform. Customized services are connected to the cloud platform by deploying virtual machines using virtual machine templates to achieve pluggable functions. When customized functions are needed, virtual machines can be deployed to support them. When they are not needed, no deployment is done. The functions provided by the cloud platform can be flexibly controlled based on whether virtual machines are deployed.
[0132] Deployment decoupling: The cloud platform mainline basic package and customized service package are packaged and deployed independently. The installation packages can be flexibly combined according to customer needs to provide customers with the capabilities they need, forming a common cloud platform deployment process.
[0133] Maintenance decoupling: The main line and customization are maintained independently. Compared with the maintenance of the main line and customization together, the maintenance difficulty is reduced, and only the customized virtual machine template needs to be maintained.
[0134] This embodiment can also be used as a decoupling docking solution for deep integration of third-party systems and cloud platforms. After the third-party system develops a virtual machine template according to the specifications of the virtual machine template and deploys the virtual machine, the third-party system and the cloud platform can be deeply integrated, and service capabilities can be uniformly provided based on the cloud platform.
[0135] In one embodiment, Figure 1 As shown, a cloud platform customized service docking system is provided, which is used to implement the cloud platform customized service docking method described above;
[0136] The system includes a cloud platform and a virtual machine; the virtual machine is deployed based on a customized service virtual machine template, the cloud platform is set to connect with the virtual machine, the customized service in the virtual machine is added to the cloud platform, the cloud platform saves basic information for managing the virtual machine, and the cloud platform maintains and manages the customized service in the virtual machine;
[0137] The virtual machine includes an application management tool, a customized service database, a customized service application backend and a customized service micro frontend, and the application management tool and the customized service application backend are connected to the customized service database;
[0138] The cloud platform includes a customized service docking UI console, a cloud platform front-end base, a gateway, a customized service docking back-end, a cloud platform database and a cloud platform business module. The customized service micro front-end module is connected to the cloud platform front-end base module, the cloud platform front-end base module and the customized service docking UI console module are connected to the gateway, the gateway is connected to the customized service docking back-end module, the customized service docking back-end module is connected to the cloud platform database module, the application management tool module and the customized service application back-end module, and the cloud platform business module and the customized service application back-end module are connected to each other.
[0139] In this embodiment, when the system responds to the business application module in the virtual machine running, the virtual machine sends a business request to the cloud platform, and the cloud platform performs an authorization authentication check on the virtual machine based on the basic information; in response to the virtual machine passing the authorization authentication check, the cloud platform calls the port corresponding to the business request to perform business interaction with the virtual machine, and the cloud platform receives and processes the event message of the business application module in the virtual machine.
[0140] In this embodiment, the steps of deploying a virtual machine based on a customized service virtual machine template and displaying the customized service in a business application module in the user interface of the virtual machine include:
[0141] Setting a configuration file of a customized service in a customized service virtual machine template, generating a business application module according to the configuration file of the customized service, and starting, stopping, restarting, backing up, restoring and upgrading the business application module;
[0142] Deploy a virtual machine based on the business application module of the customized service virtual machine template, set the interface of the business application module provided in the customized service virtual machine template, support docking with the cloud platform for authority authentication verification, and perform menu management on the business application module;
[0143] The deployed virtual machine includes an application management tool, a customized service database, a customized service application backend and a customized service micro frontend, and the application management tool and the customized service application backend are connected to the customized service database;
[0144] Performing configuration management, lifecycle management, and operation management on the business application module through the application management tool;
[0145] The customized service micro front-end is set to generate and display a business application module for the customized service in the user interface, and the business application module is connected to the cloud platform and transmits business requests and business data, providing user interface functions;
[0146] The customized service application backend is set to store basic information of the virtual machine, and the customized service application backend is set to implement a heartbeat interface, authority authentication verification, call a business application module, and support event message processing;
[0147] The customized service database is set to be separated from the cloud platform database to store business data and perform data backup on the business application module.
[0148] In this embodiment, the configuration management, lifecycle management, and operation management of the business application module by the application management tool includes:
[0149] The life cycle management of the business application module includes calling the application management service standard interface in the virtual machine to control the start, stop and restart of the business application module by executing commands;
[0150] The configuration management of the business application module includes upgrading, uploading the latest business application module compression package and front-end program package on the cloud platform, calling the application management service standard interface in the virtual machine to upload to the virtual machine to replace the original package, and realizing the upgrading of the business application module;
[0151] The operational management of the business application module includes data backup and recovery of the business application module, setting a database backup command to execute at a preset period, backing up business data to a fixed directory, and regularly calling the application management service interface in the virtual machine to export the backup file to the cloud platform's database for storage; when the virtual machine fails, after the virtual machine is restored or rebuilt, the backup file is selected, and the application management service interface in the virtual machine is called through the customized service back-end interface to perform data recovery.
[0152] In this embodiment, the cloud platform is set to connect with the virtual machine, the customized service in the virtual machine is added to the cloud platform, the cloud platform saves basic information for managing the virtual machine, and the cloud platform maintains and manages the customized service in the virtual machine, including:
[0153] Setting a cloud platform for access management of the virtual machine, and forming a management menu of the virtual machine in the cloud platform;
[0154] Obtaining basic information of the virtual machine, the basic information including the IP address of the virtual machine and the name description of the customized service, and saving the basic information in the cloud platform;
[0155] The cloud platform is used to add, query, modify, delete and configure the customized services in the virtual machine, and to query and modify the configuration files of the customized services in the virtual machine.
[0156] In this embodiment, the cloud platform is set for access management of the virtual machine, and the management menu of the virtual machine is formed in the cloud platform, including:
[0157] The cloud platform is configured to include a customized service docking UI console, a cloud platform front-end base, a gateway, a customized service docking back-end, a cloud platform database and a cloud platform business module. The customized service micro front-end module is connected to the cloud platform front-end base module, the cloud platform front-end base module and the customized service docking UI console module are connected to the gateway, the gateway is connected to the customized service docking back-end module, the customized service docking back-end module is connected to the cloud platform database module, the application management tool module and the customized service application back-end module, and the cloud platform business module is connected to the customized service application back-end module;
[0158] The cloud platform front-end base module receives the service request sent by the customized service micro front-end to the cloud platform, and transmits the service request to the gateway;
[0159] The customized service docking UI console is used to add the customized service to the cloud platform for unified management, and form a management menu for the business application module corresponding to the customized service;
[0160] The customized service docking backend is used to call the interface corresponding to the virtual machine according to the business request, and the cloud platform business module performs business interaction with the virtual machine.
[0161] In this embodiment, in response to the business application module in the virtual machine running, the virtual machine sends a business request to the cloud platform, and the cloud platform performs permission authentication verification on the virtual machine according to the basic information, including:
[0162] When the cloud platform front-end base module receives a service request sent by the customized service micro front-end to the cloud platform, the cloud platform front-end base module sends the service request to the gateway;
[0163] The gateway retrieves basic information of the virtual machine that sends the service request, and identifies whether the basic information is an IP address of an authorized virtual machine;
[0164] If so, determine whether there is a customized service corresponding to the business request, and if so, pass the authority authentication check.
[0165] In this embodiment, in response to the virtual machine passing the authority authentication check, the cloud platform calls the port corresponding to the business request to perform business interaction with the virtual machine, and the cloud platform receives the event message of the business application module in the virtual machine and processes it, including:
[0166] When the virtual machine passes the authority authentication check, the customized service in the management menu in the customized service docking UI console is called, the port of the customized service docking backend is called to communicate with the customized service application backend, and the customized service application backend interacts with the cloud platform business module;
[0167] When the customized service is configured and managed, the customized service in the management menu in the customized service docking UI console is called, the port of the customized service docking backend is called to communicate with the application management tool, and an http request is sent to the application management tool to call the standard interface for managing the business application module in the virtual machine, and obtain or modify the corresponding configuration file.
[0168] In the above-mentioned cloud platform customized service docking system, virtual machines are deployed through customized service virtual machine templates, and customized services are developed, packaged, deployed, and maintained in the form of virtual machine templates, thereby achieving decoupling from the cloud platform in many aspects and reducing the product maintenance workload.
[0169] For the specific definition of the cloud platform customized service docking system, please refer to the definition of the cloud platform customized service docking method above, which will not be repeated here. Each module in the above-mentioned cloud platform customized service docking system can be implemented in whole or in part through software, hardware and their combination. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0170] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0171] Deploy a virtual machine based on the customized service virtual machine template, wherein the user interface of the virtual machine displays the customized service in the form of a business application module;
[0172] Setting a cloud platform to connect with the virtual machine, adding the customized service in the virtual machine to the cloud platform, the cloud platform saving basic information for managing the virtual machine, and the cloud platform maintaining and managing the customized service in the virtual machine;
[0173] In response to the business application module in the virtual machine running, the virtual machine sends a business request to the cloud platform, and the cloud platform performs a permission authentication check on the virtual machine according to the basic information;
[0174] In response to the virtual machine passing the authority authentication check, the cloud platform calls the port corresponding to the business request to perform business interaction with the virtual machine, and the cloud platform receives and processes the event message of the business application module in the virtual machine.
[0175] In one embodiment, the computer program further implements the following steps when executed by a processor:
[0176] The step of deploying a virtual machine based on the customized service virtual machine template, wherein the user interface of the virtual machine displays the customized service in the form of a business application module, comprises:
[0177] Setting a configuration file of a customized service in a customized service virtual machine template, generating a business application module according to the configuration file of the customized service, and starting, stopping, restarting, backing up, restoring and upgrading the business application module;
[0178] Deploy a virtual machine based on the business application module of the customized service virtual machine template, set the interface of the business application module provided in the customized service virtual machine template, support docking with the cloud platform for authority authentication verification, and perform menu management on the business application module;
[0179] The deployed virtual machine includes an application management tool, a customized service database, a customized service application backend and a customized service micro frontend, and the application management tool and the customized service application backend are connected to the customized service database;
[0180] Performing configuration management, lifecycle management, and operation management on the business application module through the application management tool;
[0181] The customized service micro front-end is set to generate and display a business application module for the customized service in the user interface, and the business application module is connected to the cloud platform and transmits business requests and business data, providing user interface functions;
[0182] The customized service application backend is set to store basic information of the virtual machine, and the customized service application backend is set to implement a heartbeat interface, authority authentication verification, call a business application module, and support event message processing;
[0183] The customized service database is set to be separated from the cloud platform database to store business data and perform data backup on the business application module.
[0184] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0185] The configuration management, lifecycle management, and operation management of the business application module by the application management tool includes:
[0186] The life cycle management of the business application module includes calling the application management service standard interface in the virtual machine to control the start, stop and restart of the business application module by executing commands;
[0187] The configuration management of the business application module includes upgrading, uploading the latest business application module compression package and front-end program package on the cloud platform, calling the application management service standard interface in the virtual machine to upload to the virtual machine to replace the original package, and realizing the upgrading of the business application module;
[0188] The operational management of the business application module includes data backup and recovery of the business application module, setting a database backup command to execute at a preset period, backing up business data to a fixed directory, and regularly calling the application management service interface in the virtual machine to export the backup file to the cloud platform's database for storage; when the virtual machine fails, after the virtual machine is restored or rebuilt, the backup file is selected, and the application management service interface in the virtual machine is called through the customized service back-end interface to perform data recovery.
[0189] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0190] The step of setting up a cloud platform to connect with the virtual machine, adding the customized service in the virtual machine to the cloud platform, the cloud platform storing basic information for managing the virtual machine, and the cloud platform maintaining and managing the customized service in the virtual machine includes:
[0191] Setting a cloud platform for access management of the virtual machine, and forming a management menu of the virtual machine in the cloud platform;
[0192] Obtaining basic information of the virtual machine, the basic information including the IP address of the virtual machine and the name description of the customized service, and saving the basic information in the cloud platform;
[0193] The cloud platform is used to add, query, modify, delete and configure the customized services in the virtual machine, and to query and modify the configuration files of the customized services in the virtual machine.
[0194] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0195] The step of setting a cloud platform for access management of the virtual machine and forming a management menu of the virtual machine in the cloud platform includes:
[0196] The cloud platform is configured to include a customized service docking UI console, a cloud platform front-end base, a gateway, a customized service docking back-end, a cloud platform database and a cloud platform business module. The customized service micro front-end module is connected to the cloud platform front-end base module, the cloud platform front-end base module and the customized service docking UI console module are connected to the gateway, the gateway is connected to the customized service docking back-end module, the customized service docking back-end module is connected to the cloud platform database module, the application management tool module and the customized service application back-end module, and the cloud platform business module is connected to the customized service application back-end module;
[0197] The cloud platform front-end base module receives the service request sent by the customized service micro front-end to the cloud platform, and transmits the service request to the gateway;
[0198] The customized service docking UI console is used to add the customized service to the cloud platform for unified management, and form a management menu for the business application module corresponding to the customized service;
[0199] The customized service docking backend is used to call the interface corresponding to the virtual machine according to the business request, and the cloud platform business module performs business interaction with the virtual machine.
[0200] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0201] In response to the business application module in the virtual machine running, the virtual machine sends a business request to the cloud platform, and the cloud platform performs permission authentication verification on the virtual machine according to the basic information, including:
[0202] When the cloud platform front-end base module receives a service request sent by the customized service micro front-end to the cloud platform, the cloud platform front-end base module sends the service request to the gateway;
[0203] The gateway retrieves basic information of the virtual machine that sends the service request, and identifies whether the basic information is an IP address of an authorized virtual machine;
[0204] If so, determine whether there is a customized service corresponding to the business request, and if so, pass the authority authentication check.
[0205] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0206] In response to the virtual machine passing the authority authentication check, the cloud platform calls the port corresponding to the business request to perform business interaction with the virtual machine, and the cloud platform receives and processes the event message of the business application module in the virtual machine, including:
[0207] When the virtual machine passes the authority authentication check, the customized service in the management menu in the customized service docking UI console is called, the port of the customized service docking backend is called to communicate with the customized service application backend, and the customized service application backend interacts with the cloud platform business module;
[0208] When the customized service is configured and managed, the customized service in the management menu in the customized service docking UI console is called, the port of the customized service docking backend is called to communicate with the application management tool, and an http request is sent to the application management tool to call the standard interface for managing the business application module in the virtual machine, and obtain or modify the corresponding configuration file.
[0209] For the specific limitations on the steps implemented when the computer program is executed by the processor, please refer to the limitations on the method of connecting to the cloud platform customized service above, which will not be repeated here.
[0210] 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 5As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device 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 internal 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 cloud platform customized service docking data. 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 cloud platform customized service docking method is implemented.
[0211] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0212] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:
[0213] Deploy a virtual machine based on the customized service virtual machine template, wherein the user interface of the virtual machine displays the customized service in the form of a business application module;
[0214] Setting a cloud platform to connect with the virtual machine, adding the customized service in the virtual machine to the cloud platform, the cloud platform saving basic information for managing the virtual machine, and the cloud platform maintaining and managing the customized service in the virtual machine;
[0215] In response to the business application module in the virtual machine running, the virtual machine sends a business request to the cloud platform, and the cloud platform performs a permission authentication check on the virtual machine according to the basic information;
[0216] In response to the virtual machine passing the authority authentication check, the cloud platform calls the port corresponding to the business request to perform business interaction with the virtual machine, and the cloud platform receives and processes the event message of the business application module in the virtual machine.
[0217] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0218] The step of deploying a virtual machine based on the customized service virtual machine template, wherein the user interface of the virtual machine displays the customized service in the form of a business application module, comprises:
[0219] Setting a configuration file of a customized service in a customized service virtual machine template, generating a business application module according to the configuration file of the customized service, and starting, stopping, restarting, backing up, restoring and upgrading the business application module;
[0220] Deploy a virtual machine based on the business application module of the customized service virtual machine template, set the interface of the business application module provided in the customized service virtual machine template, support docking with the cloud platform for authority authentication verification, and perform menu management on the business application module;
[0221] The deployed virtual machine includes an application management tool, a customized service database, a customized service application backend and a customized service micro frontend, and the application management tool and the customized service application backend are connected to the customized service database;
[0222] Performing configuration management, lifecycle management, and operation management on the business application module through the application management tool;
[0223] The customized service micro front-end is set to generate and display a business application module for the customized service in the user interface, and the business application module is connected to the cloud platform and transmits business requests and business data, providing user interface functions;
[0224] The customized service application backend is set to store basic information of the virtual machine, and the customized service application backend is set to implement a heartbeat interface, authority authentication verification, call a business application module, and support event message processing;
[0225] The customized service database is set to be separated from the cloud platform database to store business data and perform data backup on the business application module.
[0226] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0227] The configuration management, lifecycle management, and operation management of the business application module by the application management tool includes:
[0228] The life cycle management of the business application module includes calling the application management service standard interface in the virtual machine to control the start, stop and restart of the business application module by executing commands;
[0229] The configuration management of the business application module includes upgrading, uploading the latest business application module compression package and front-end program package on the cloud platform, calling the application management service standard interface in the virtual machine to upload to the virtual machine to replace the original package, and realizing the upgrading of the business application module;
[0230] The operational management of the business application module includes data backup and recovery of the business application module, setting a database backup command to execute at a preset period, backing up business data to a fixed directory, and regularly calling the application management service interface in the virtual machine to export the backup file to the cloud platform's database for storage; when the virtual machine fails, after the virtual machine is restored or rebuilt, the backup file is selected, and the application management service interface in the virtual machine is called through the customized service back-end interface to perform data recovery.
[0231] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0232] The step of setting up a cloud platform to connect with the virtual machine, adding the customized service in the virtual machine to the cloud platform, the cloud platform storing basic information for managing the virtual machine, and the cloud platform maintaining and managing the customized service in the virtual machine includes:
[0233] Setting a cloud platform for access management of the virtual machine, and forming a management menu of the virtual machine in the cloud platform;
[0234] Obtaining basic information of the virtual machine, the basic information including the IP address of the virtual machine and the name description of the customized service, and saving the basic information in the cloud platform;
[0235] The cloud platform is used to add, query, modify, delete and configure the customized services in the virtual machine, and to query and modify the configuration files of the customized services in the virtual machine.
[0236] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0237] The step of setting a cloud platform for access management of the virtual machine and forming a management menu of the virtual machine in the cloud platform includes:
[0238] The cloud platform is configured to include a customized service docking UI console, a cloud platform front-end base, a gateway, a customized service docking back-end, a cloud platform database and a cloud platform business module. The customized service micro front-end module is connected to the cloud platform front-end base module, the cloud platform front-end base module and the customized service docking UI console module are connected to the gateway, the gateway is connected to the customized service docking back-end module, the customized service docking back-end module is connected to the cloud platform database module, the application management tool module and the customized service application back-end module, and the cloud platform business module is connected to the customized service application back-end module;
[0239] The cloud platform front-end base module receives the service request sent by the customized service micro front-end to the cloud platform, and transmits the service request to the gateway;
[0240] The customized service docking UI console is used to add the customized service to the cloud platform for unified management, and form a management menu for the business application module corresponding to the customized service;
[0241] The customized service docking backend is used to call the interface corresponding to the virtual machine according to the business request, and the cloud platform business module performs business interaction with the virtual machine.
[0242] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0243] In response to the business application module in the virtual machine running, the virtual machine sends a business request to the cloud platform, and the cloud platform performs permission authentication verification on the virtual machine according to the basic information, including:
[0244] When the cloud platform front-end base module receives a service request sent by the customized service micro front-end to the cloud platform, the cloud platform front-end base module sends the service request to the gateway;
[0245] The gateway retrieves basic information of the virtual machine that sends the service request, and identifies whether the basic information is an IP address of an authorized virtual machine;
[0246] If so, determine whether there is a customized service corresponding to the business request, and if so, pass the authority authentication check.
[0247] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0248] In response to the virtual machine passing the authority authentication check, the cloud platform calls the port corresponding to the business request to perform business interaction with the virtual machine, and the cloud platform receives and processes the event message of the business application module in the virtual machine, including:
[0249] When the virtual machine passes the authority authentication check, the customized service in the management menu in the customized service docking UI console is called, the port of the customized service docking backend is called to communicate with the customized service application backend, and the customized service application backend interacts with the cloud platform business module;
[0250] When the customized service is configured and managed, the customized service in the management menu in the customized service docking UI console is called, the port of the customized service docking backend is called to communicate with the application management tool, and an http request is sent to the application management tool to call the standard interface for managing the business application module in the virtual machine, and obtain or modify the corresponding configuration file.
[0251] For the specific limitations on the steps implemented when the processor executes a computer program, please refer to the limitations on the method of connecting to the cloud platform customized service above, which will not be repeated here.
[0252] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0253] Deploy a virtual machine based on the customized service virtual machine template, wherein the user interface of the virtual machine displays the customized service in the form of a business application module;
[0254] Setting a cloud platform to connect with the virtual machine, adding the customized service in the virtual machine to the cloud platform, the cloud platform saving basic information for managing the virtual machine, and the cloud platform maintaining and managing the customized service in the virtual machine;
[0255] In response to the business application module in the virtual machine running, the virtual machine sends a business request to the cloud platform, and the cloud platform performs a permission authentication check on the virtual machine according to the basic information;
[0256] In response to the virtual machine passing the authority authentication check, the cloud platform calls the port corresponding to the business request to perform business interaction with the virtual machine, and the cloud platform receives and processes the event message of the business application module in the virtual machine.
[0257] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0258] The step of deploying a virtual machine based on the customized service virtual machine template, wherein the user interface of the virtual machine displays the customized service in the form of a business application module, comprises:
[0259] Setting a configuration file of a customized service in a customized service virtual machine template, generating a business application module according to the configuration file of the customized service, and starting, stopping, restarting, backing up, restoring and upgrading the business application module;
[0260] Deploy a virtual machine based on the business application module of the customized service virtual machine template, set the interface of the business application module provided in the customized service virtual machine template, support docking with the cloud platform for authority authentication verification, and perform menu management on the business application module;
[0261] The deployed virtual machine includes an application management tool, a customized service database, a customized service application backend and a customized service micro frontend, and the application management tool and the customized service application backend are connected to the customized service database;
[0262] Performing configuration management, lifecycle management, and operation management on the business application module through the application management tool;
[0263] The customized service micro front-end is set to generate and display a business application module for the customized service in the user interface, and the business application module is connected to the cloud platform and transmits business requests and business data, providing user interface functions;
[0264] The customized service application backend is set to store basic information of the virtual machine, and the customized service application backend is set to implement a heartbeat interface, authority authentication verification, call a business application module, and support event message processing;
[0265] The customized service database is set to be separated from the cloud platform database to store business data and perform data backup on the business application module.
[0266] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0267] The configuration management, lifecycle management, and operation management of the business application module by the application management tool includes:
[0268] The life cycle management of the business application module includes calling the application management service standard interface in the virtual machine to control the start, stop and restart of the business application module by executing commands;
[0269] The configuration management of the business application module includes upgrading, uploading the latest business application module compression package and front-end program package on the cloud platform, calling the application management service standard interface in the virtual machine to upload to the virtual machine to replace the original package, and realizing the upgrading of the business application module;
[0270] The operational management of the business application module includes data backup and recovery of the business application module, setting a database backup command to execute at a preset period, backing up business data to a fixed directory, and regularly calling the application management service interface in the virtual machine to export the backup file to the cloud platform's database for storage; when the virtual machine fails, after the virtual machine is restored or rebuilt, the backup file is selected, and the application management service interface in the virtual machine is called through the customized service back-end interface to perform data recovery.
[0271] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0272] The step of setting up a cloud platform to connect with the virtual machine, adding the customized service in the virtual machine to the cloud platform, the cloud platform storing basic information for managing the virtual machine, and the cloud platform maintaining and managing the customized service in the virtual machine includes:
[0273] Setting a cloud platform for access management of the virtual machine, and forming a management menu of the virtual machine in the cloud platform;
[0274] Obtaining basic information of the virtual machine, the basic information including the IP address of the virtual machine and the name description of the customized service, and saving the basic information in the cloud platform;
[0275] The cloud platform is used to add, query, modify, delete and configure the customized services in the virtual machine, and to query and modify the configuration files of the customized services in the virtual machine.
[0276] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0277] The step of setting a cloud platform for access management of the virtual machine and forming a management menu of the virtual machine in the cloud platform includes:
[0278] The cloud platform is configured to include a customized service docking UI console, a cloud platform front-end base, a gateway, a customized service docking back-end, a cloud platform database and a cloud platform business module. The customized service micro front-end module is connected to the cloud platform front-end base module, the cloud platform front-end base module and the customized service docking UI console module are connected to the gateway, the gateway is connected to the customized service docking back-end module, the customized service docking back-end module is connected to the cloud platform database module, the application management tool module and the customized service application back-end module, and the cloud platform business module is connected to the customized service application back-end module;
[0279] The cloud platform front-end base module receives the service request sent by the customized service micro front-end to the cloud platform, and transmits the service request to the gateway;
[0280] The customized service docking UI console is used to add the customized service to the cloud platform for unified management, and form a management menu for the business application module corresponding to the customized service;
[0281] The customized service docking backend is used to call the interface corresponding to the virtual machine according to the business request, and the cloud platform business module performs business interaction with the virtual machine.
[0282] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0283] In response to the business application module in the virtual machine running, the virtual machine sends a business request to the cloud platform, and the cloud platform performs permission authentication verification on the virtual machine according to the basic information, including:
[0284] When the cloud platform front-end base module receives a service request sent by the customized service micro front-end to the cloud platform, the cloud platform front-end base module sends the service request to the gateway;
[0285] The gateway retrieves basic information of the virtual machine that sends the service request, and identifies whether the basic information is an IP address of an authorized virtual machine;
[0286] If so, determine whether there is a customized service corresponding to the business request, and if so, pass the authority authentication check.
[0287] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0288] In response to the virtual machine passing the authority authentication check, the cloud platform calls the port corresponding to the business request to perform business interaction with the virtual machine, and the cloud platform receives and processes the event message of the business application module in the virtual machine, including:
[0289] When the virtual machine passes the authority authentication check, the customized service in the management menu in the customized service docking UI console is called, the port of the customized service docking backend is called to communicate with the customized service application backend, and the customized service application backend interacts with the cloud platform business module;
[0290] When the customized service is configured and managed, the customized service in the management menu in the customized service docking UI console is called, the port of the customized service docking backend is called to communicate with the application management tool, and an http request is sent to the application management tool to call the standard interface for managing the business application module in the virtual machine, and obtain or modify the corresponding configuration file.
[0291] For the specific limitations on the steps implemented when the computer program is executed by the processor, please refer to the limitations on the method of connecting to the cloud platform customized service above, which will not be repeated here.
[0292] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant 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 used in the embodiments provided in the present application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), 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).
[0293] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0294] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A cloud platform customized service docking method, characterized in that: include: Deploy a virtual machine based on the customized service virtual machine template, wherein the user interface of the virtual machine displays the customized service in the form of a business application module; Setting a cloud platform to connect with the virtual machine, adding the customized service in the virtual machine to the cloud platform, the cloud platform saving basic information for managing the virtual machine, and the cloud platform maintaining and managing the customized service in the virtual machine; In response to the business application module in the virtual machine running, the virtual machine sends a business request to the cloud platform, and the cloud platform performs a permission authentication check on the virtual machine according to the basic information; In response to the virtual machine passing the authority authentication check, the cloud platform calls the port corresponding to the business request to perform business interaction with the virtual machine, and the cloud platform receives and processes the event message of the business application module in the virtual machine.
2. The cloud platform customized service docking method according to claim 1, characterized in that: The step of deploying a virtual machine based on the customized service virtual machine template, wherein the user interface of the virtual machine displays the customized service in the form of a business application module, comprises: Setting a configuration file of a customized service in a customized service virtual machine template, generating a business application module according to the configuration file of the customized service, and starting, stopping, restarting, backing up, restoring and upgrading the business application module; Deploy a virtual machine based on the business application module of the customized service virtual machine template, set the interface of the business application module provided in the customized service virtual machine template, support docking with the cloud platform for authority authentication verification, and perform menu management on the business application module; The deployed virtual machine includes an application management tool, a customized service database, a customized service application backend and a customized service micro frontend, and the application management tool and the customized service application backend are connected to the customized service database; Performing configuration management, lifecycle management, and operation management on the business application module through the application management tool; The customized service micro front-end is set to generate and display a business application module for the customized service in the user interface, and the business application module is connected to the cloud platform and transmits business requests and business data, providing user interface functions; The customized service application backend is set to store basic information of the virtual machine, and the customized service application backend is set to implement a heartbeat interface, authority authentication verification, call a business application module, and support event message processing; The customized service database is set to be separated from the cloud platform database to store business data and perform data backup on the business application module.
3. The cloud platform customized service docking method according to claim 2, characterized in that: The configuration management, lifecycle management, and operation management of the business application module by the application management tool includes: The life cycle management of the business application module includes calling the application management service standard interface in the virtual machine to control the start, stop and restart of the business application module by executing commands; The configuration management of the business application module includes upgrading, uploading the latest business application module compression package and front-end program package on the cloud platform, calling the application management service standard interface in the virtual machine to upload to the virtual machine to replace the original package, and realizing the upgrading of the business application module; The operational management of the business application module includes data backup and recovery of the business application module, setting a database backup command to execute at a preset period, backing up business data to a fixed directory, and regularly calling the application management service interface in the virtual machine to export the backup file to the cloud platform's database for storage; when the virtual machine fails, after the virtual machine is restored or rebuilt, the backup file is selected, and the application management service interface in the virtual machine is called through the customized service back-end interface to perform data recovery.
4. The cloud platform customized service docking method according to claim 2, characterized in that: The step of setting up a cloud platform to connect with the virtual machine, adding the customized service in the virtual machine to the cloud platform, the cloud platform storing basic information for managing the virtual machine, and the cloud platform maintaining and managing the customized service in the virtual machine includes: Setting a cloud platform for access management of the virtual machine, and forming a management menu of the virtual machine in the cloud platform; Obtaining basic information of the virtual machine, the basic information including the IP address of the virtual machine and the name description of the customized service, and saving the basic information in the cloud platform; The cloud platform is used to add, query, modify, delete and configure the customized services in the virtual machine, and to query and modify the configuration files of the customized services in the virtual machine.
5. The cloud platform customized service docking method according to claim 3, characterized in that: The step of setting a cloud platform for access management of the virtual machine and forming a management menu of the virtual machine in the cloud platform includes: The cloud platform is configured to include a customized service docking UI console, a cloud platform front-end base, a gateway, a customized service docking back-end, a cloud platform database and a cloud platform business module. The customized service micro front-end module is connected to the cloud platform front-end base module, the cloud platform front-end base module and the customized service docking UI console module are connected to the gateway, the gateway is connected to the customized service docking back-end module, the customized service docking back-end module is connected to the cloud platform database module, the application management tool module and the customized service application back-end module, and the cloud platform business module is connected to the customized service application back-end module; The cloud platform front-end base module receives the service request sent by the customized service micro front-end to the cloud platform, and transmits the service request to the gateway; The customized service docking UI console is used to add the customized service to the cloud platform for unified management, and form a management menu for the business application module corresponding to the customized service; The customized service docking backend is used to call the interface corresponding to the virtual machine according to the business request, and the cloud platform business module performs business interaction with the virtual machine.
6. The cloud platform customized service docking method according to claim 3, characterized in that: In response to the business application module in the virtual machine running, the virtual machine sends a business request to the cloud platform, and the cloud platform performs permission authentication verification on the virtual machine according to the basic information, including: When the cloud platform front-end base module receives a service request sent by the customized service micro front-end to the cloud platform, the cloud platform front-end base module sends the service request to the gateway; The gateway retrieves basic information of the virtual machine that sends the service request, and identifies whether the basic information is an IP address of an authorized virtual machine; If so, determine whether there is a customized service corresponding to the business request, and if so, pass the authority authentication check.
7. The cloud platform customized service docking method according to claim 6, characterized in that: In response to the virtual machine passing the authority authentication check, the cloud platform calls the port corresponding to the business request to perform business interaction with the virtual machine, and the cloud platform receives and processes the event message of the business application module in the virtual machine, including: When the virtual machine passes the authority authentication check, the customized service in the management menu in the customized service docking UI console is called, the port of the customized service docking backend is called to communicate with the customized service application backend, and the customized service application backend interacts with the cloud platform business module; When the customized service is configured and managed, the customized service in the management menu in the customized service docking UI console is called, the port of the customized service docking backend is called to communicate with the application management tool, and an http request is sent to the application management tool to call the standard interface for managing the business application module in the virtual machine, and obtain or modify the corresponding configuration file.
8. A cloud platform customized service docking system, characterized in that: Used to implement the cloud platform customized service docking method described in any one of claims 1 to 7; The system includes a cloud platform and a virtual machine; the virtual machine is deployed based on a customized service virtual machine template, the cloud platform is set to connect with the virtual machine, the customized service in the virtual machine is added to the cloud platform, the cloud platform saves basic information for managing the virtual machine, and the cloud platform maintains and manages the customized service in the virtual machine; The virtual machine includes an application management tool, a customized service database, a customized service application backend and a customized service micro frontend, and the application management tool and the customized service application backend are connected to the customized service database; The cloud platform includes a customized service docking UI console, a cloud platform front-end base, a gateway, a customized service docking back-end, a cloud platform database and a cloud platform business module. The customized service micro front-end module is connected to the cloud platform front-end base module, the cloud platform front-end base module and the customized service docking UI console module are connected to the gateway, the gateway is connected to the customized service docking back-end module, the customized service docking back-end module is connected to the cloud platform database module, the application management tool module and the customized service application back-end module, and the cloud platform business module and the customized service application back-end module are connected to each other.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. 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 the method according to any one of claims 1 to 7 are implemented.
