A management control method, management system and medium for application service version
By introducing automatic routing and automatic installation functions in the public cloud, the complexity of tenants' service version switching and resource waste are solved, flexible service version management among tenants is realized, and the stability and reliability of services are improved.
Patent Information
- Application Number
- CN202410522158.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-28
- Publication Date
- 2025-02-25
- Estimated Expiration
- 2044-04-28
AI Technical Summary
When the prior art provides tenants with service version isolation in the public cloud, it leads to waste of resources and complex management, and the operation and maintenance of tenants to switch service versions is complex, the operation and maintenance workload is large, the management efficiency is low, and the stability is poor.
Through automatic routing and automatic installation functions, service version management between tenants is realized, the configuration and management workload of tenants switching service versions is reduced, and the stability and reliability of services are improved.
It realizes flexible service version switching between tenants, reduces the tenant's configuration and management workload, improves the stability and reliability of services, and reduces the operation and maintenance workload.
Smart Images

Figure CN118444962B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer and information technology, and in particular to a management control method, a management system and a storage medium for an application service version. Background Art
[0002] In the current technical environment, deploying services to public clouds has become an industry consensus. Public clouds provide solutions for tenants to achieve tenant service isolation and service version isolation. Usually, this is achieved by starting independent containers for different tenants. This method effectively solves the isolation requirements of using different service versions between tenants, but it also brings new problems, that is, starting multiple containers for each tenant will cause a waste of resources.
[0003] Therefore, we need a new solution that can deploy between different versions of the same service, allowing multiple tenants to access the same application service and flexibly switch service versions without manually configuring routes. The existing technology uses manual configuration methods to manage tenants to switch service versions. The switching operation is complicated, the operation and maintenance workload is large, the efficiency of managing tenant service versions is low, and the stability is poor. Summary of the invention
[0004] The present invention provides a management control method, management system and medium for application service versions, which reduce the configuration and management workload of tenants switching service versions through automatic routing function and automatic installation function, and improve the stability and reliability of services.
[0005] The present invention provides a management and control method for application service versions, comprising:
[0006] In response to a registration operation of the target tenant on the service version information of the target tenant in the tenant application management module, or a change operation of the target tenant on the registered service version information of the target tenant in the tenant application management module, determining the first service version information, obtaining the life cycle information of the first service version information; installing the life cycle information of the first service version information into the target tenant; caching the service interface information of the first service version information into the service information storage module;
[0007] The tenant application management module is used to register the service version information of each tenant's current application;
[0008] In response to an access request from a target tenant, determine the second service version information currently used by the target tenant, obtain service interface information of the second service version information in the service information storage module; obtain life cycle information of the second service version information in an application service policy module according to the service interface information for feedback;
[0009] The application service policy module is used to register all service version information of each application and the corresponding life cycle information; the life cycle information includes: service navigation information, database information and service interface information.
[0010] Further, the lifecycle information of the first service version information is installed into the target tenant, specifically:
[0011] The navigation information of the current application in the target tenant is deactivated, and the life cycle information of the first service version information is sent to the target tenant for installation, and written into the database of the target tenant.
[0012] Further, the service interface information of the first service version information is cached in a service information storage module, specifically:
[0013] The first service version information is parsed to generate service interface information; the service interface information is processed into a preset format for caching.
[0014] Further, in response to the access request of the target tenant, determining the second service version information currently used by the target tenant is specifically:
[0015] In response to the access request of the target tenant, the tenant application management module is queried to obtain and determine the second service version information of the current application of the target tenant.
[0016] Furthermore, obtaining the service interface information of the second service version information in the service information storage module further includes:
[0017] If the service interface information of the second service version information or the life cycle information of the second service version information cannot be obtained in the service information storage module, the life cycle information of the second service version information is obtained in the application service policy module according to the second service version information, and the life cycle information is cached in the service information storage module;
[0018] The service information storage module is used to cache service interface information of the service version information or life cycle information of the service version information.
[0019] Furthermore, obtaining the service interface information of the second service version information in the service information storage module further includes:
[0020] If the service interface information of the second service version information cannot be obtained in the service information storage module, and the life cycle information of the second service version information is cached in the service information storage module, the life cycle information of the second service version information cached in the service information storage module is directly obtained.
[0021] As a preferred solution, the present invention supports tenants to register different application versions. Tenants can register and select application versions suitable for themselves according to their own needs. Different tenants can use different application versions in the same environment, realizing flexible configuration strategies.
[0022] The present invention supports automatic routing of different service versions. The system has an automatic routing function and can direct tenants to the correct service version according to their requests. If the service interface information of the second service version information or the life cycle information of the second service version information cannot be obtained in the service information storage module, the life cycle information of the second service version information is obtained in the service information storage module according to the second service version information, and the life cycle information is cached in the service information storage module. The tenant's request can correctly access the required service version, thereby improving the tenant's access accuracy and reducing the tenant's configuration and management workload.
[0023] The present invention supports the management of service lifecycle information, and can automatically install and manage the lifecycle information of service versions. After the tenant registers or changes the application version, the maintenance program will automatically install the corresponding service resources into the tenant environment, and the tenant does not need to manually configure, which improves the flexibility, reliability and consistency of the service.
[0024] The present invention selects and maintains the service version suitable for each tenant through the tenant's request, so as to effectively manage the situation where different tenants use different service versions in the public cloud environment. At the same time, the present invention reduces the configuration and management workload of the tenant through the automatic routing function and the automatic installation function, and improves the stability and reliability of the service.
[0025] Accordingly, the present invention also provides a management system for application service versions, including: a tenant application management module, an application service policy module, a service information storage module, a service version management module and a management control module;
[0026] The tenant application management module is used to register the service version information of each tenant's current application;
[0027] The application service policy module is used to register all service version information of each application and the corresponding life cycle information; the life cycle information includes: service navigation information, database information and service interface information;
[0028] The service information storage module is used to cache service interface information of service version information or life cycle information of service version information;
[0029] The management control module is used to determine the first service version information and obtain the life cycle information of the first service version information in response to the target tenant's registration operation on the target tenant's service version information in the tenant application management module, or the target tenant's modification operation on the registered service version information of the target tenant in the tenant application management module; install the life cycle information of the first service version information into the target tenant; and cache the service interface information of the first service version information into the service information storage module;
[0030] In response to the access request of the target tenant, determine the second service version information currently used by the target tenant, and obtain the service interface information of the second service version information in the service information storage module; based on the service interface information, obtain the life cycle information of the second service version information in the application service policy module for feedback.
[0031] Further, the management control module includes: a gateway protocol conversion unit;
[0032] The gateway protocol conversion unit is used to obtain the life cycle information of the second service version information in the application service policy module according to the second service version information if the service interface information of the second service version information or the life cycle information of the second service version information cannot be obtained in the service information storage module, and cache the life cycle information in the service information storage module.
[0033] Further, the management control module includes: a tenant application maintenance unit;
[0034] The tenant application maintenance unit is used to deactivate the navigation information of the current application in the target tenant, send the life cycle information of the first service version information to the target tenant for installation, and write it into the database of the target tenant.
[0035] Correspondingly, the present invention also provides a computer-readable storage medium, which includes a stored computer program; wherein, when the computer program is running, it controls the device where the computer-readable storage medium is located to execute a management and control method for an application service version as described in the content of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 It is a flowchart of an embodiment of the management and control method of the application service version provided by the present invention;
[0037] Figure 2 It is a structural diagram of an embodiment of the management system of application service versions provided by the present invention. DETAILED DESCRIPTION
[0038] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0039] Embodiment 1
[0040] Please refer to Figure 1 , a management and control method for application service versions provided by an embodiment of the present invention, comprising steps S101-S102:
[0041] Step S101: In response to a registration operation of the target tenant on the service version information of the target tenant in the tenant application management module, or a change operation of the target tenant on the registered service version information of the target tenant in the tenant application management module, determining first service version information, acquiring life cycle information of the first service version information; installing the life cycle information of the first service version information into the target tenant; caching the service interface information of the first service version information into the service information storage module;
[0042] The tenant application management module is used to register the service version information of each tenant's current application;
[0043] In this embodiment, the tenant's application service has at least one service version, and different tenants can choose different service versions. The tenant application management module establishes a mapping between the tenant's application and the service version to ensure that each tenant's application is associated with a specific service version.
[0044] In this embodiment, each tenant can select and manage the application version suitable for itself for installation by registering or modifying its own service version information in the tenant application management module. At the same time, the tenant application management module also provides query and management functions for tenant application versions, so that each tenant can conveniently control the application version it uses.
[0045] In this embodiment, after the tenant registers or changes its own service version information in the tenant application management module, the maintenance program is automatically triggered to install the life cycle information of the service version information into the target tenant and insert it into the tenant's database to complete the application installation process; the life cycle information includes installation navigation information and database tables, etc., to ensure that the tenant can access the required service resources normally.
[0046] In this embodiment, when the application is launched, the service information storage module is automatically triggered to parse the navigation information of the service, and processes it into the actual request address according to the version, generates service interface information, and caches the service interface information to improve the processing efficiency of subsequent requests.
[0047] The present invention supports the management of service lifecycle information, and can automatically install and manage the lifecycle information of service versions. After the tenant registers or changes the application version, the maintenance program will automatically install the corresponding service resources into the tenant environment, and the tenant does not need to manually configure, which improves the flexibility, reliability and consistency of the service.
[0048] Further, the lifecycle information of the first service version information is installed into the target tenant, specifically:
[0049] The navigation information of the current application in the target tenant is deactivated, and the life cycle information of the first service version information is sent to the target tenant for installation, and written into the database of the target tenant.
[0050] In this embodiment, when a tenant needs to upgrade or change the application version, the maintenance program will be triggered after the service version information registered by the tenant in the tenant application management module is changed in the background. The maintenance program will automatically suspend the use of the old navigation information of the tenant application, and re-send the new version of the application installation resources to the tenant for processing and write them into the corresponding database to achieve version upgrade or change.
[0051] Further, the service interface information of the first service version information is cached in a service information storage module, specifically:
[0052] The first service version information is parsed to generate service interface information; the service interface information is processed into a preset format for caching.
[0053] In this embodiment, the parsing operation of the storage module processes the parsed data into a specific format to facilitate reading by the gateway protocol conversion unit.
[0054] The present invention supports tenants to register different application versions, and tenants can register and select application versions suitable for themselves according to their own needs. Different tenants can use different application versions in the same environment, realizing flexible configuration strategies.
[0055] Step S102: In response to the access request of the target tenant, determine the second service version information currently used by the target tenant, obtain the service interface information of the second service version information in the service information storage module; obtain the life cycle information of the second service version information in the application service policy module according to the service interface information for feedback;
[0056] The application service policy module is used to register all service version information of each application and the corresponding life cycle information; the life cycle information includes: service navigation information, database information and service interface information.
[0057] In this embodiment, when a tenant initiates an access request, the gateway protocol conversion unit determines the corresponding tenant number based on the identity information in the request. By querying the tenant application management module, the service version used by the current tenant is determined. The gateway protocol conversion unit obtains the service interface information of the current service version, that is, the actual request address, and converts the user request to the correct service version request to provide a correct service response.
[0058] Furthermore, obtaining the service interface information of the second service version information in the service information storage module further includes:
[0059] If the service interface information of the second service version information or the life cycle information of the second service version information cannot be obtained in the service information storage module, the life cycle information of the second service version information is obtained in the application service policy module according to the second service version information, and the life cycle information is cached in the service information storage module;
[0060] The service information storage module is used to cache service interface information of the service version information or life cycle information of the service version information.
[0061] Furthermore, obtaining the service interface information of the second service version information in the service information storage module further includes:
[0062] If the service interface information of the second service version information cannot be obtained in the service information storage module, and the life cycle information of the second service version information is cached in the service information storage module, the life cycle information of the second service version information cached in the service information storage module is directly obtained.
[0063] In this embodiment, the application service policy module maintains the life cycle information carried by each service version. The life cycle information includes navigation information, database table information, interface information, etc. The life cycle information is stored in a specific format, such as JSON, and is associated with the corresponding service version.
[0064] In this embodiment, the service resource information corresponding to the tenant, that is, the service interface information of the second service version information or the life cycle information of the second service version information, is cached in the service information storage module. The service information storage module can quickly respond to the tenant's request and provide the required service version information through high-speed caching technology, such as redis. When the user of the corresponding tenant sends an access request, the user's tenant will be identified, and the corresponding service interface information will be obtained from the service information storage module, and the user's request will be converted to the correct service version to complete the correct request.
[0065] In this embodiment, if the service interface information of the second service version information or the life cycle information of the second service version information cannot be obtained from the service information cache module, the corresponding information is obtained from the tenant application management module according to the tenant number, and the information is cached in the service information storage module. The user's request is directed to the correct service version to ensure that the tenant can access the service it needs.
[0066] The present invention supports automatic routing of different service versions. The system has an automatic routing function and can direct tenants to the correct service version according to their requests. If the service interface information of the second service version information or the life cycle information of the second service version information cannot be obtained in the service information storage module, the life cycle information of the second service version information is obtained in the service information storage module according to the second service version information, and the life cycle information is cached in the service information storage module. The tenant's request can correctly access the required service version, thereby improving the tenant's access accuracy and reducing the tenant's configuration and management workload.
[0067] Implementing the embodiments of the present invention has the following effects:
[0068] The present invention selects and maintains the service version suitable for each tenant through the tenant's request, so as to effectively manage the situation where different tenants use different service versions in the public cloud environment. At the same time, the present invention reduces the configuration and management workload of the tenant through the automatic routing function and the automatic installation function, and improves the stability and reliability of the service.
[0069] Embodiment 2
[0070] Please refer to Figure 2 , a management system for application service versions provided by an embodiment of the present invention, comprising: a tenant application management module 201, an application service policy module 202, a service information storage module 203, and a management control module 204;
[0071] The tenant application management module is used to register the service version information of each tenant's current application;
[0072] The application service policy module is used to register all service version information of each application and the corresponding life cycle information; the life cycle information includes: service navigation information, database information and service interface information;
[0073] The service information storage module is used to cache service interface information of service version information or life cycle information of service version information;
[0074] The management control module is used to determine the first service version information and obtain the life cycle information of the first service version information in response to the target tenant's registration operation on the target tenant's service version information in the tenant application management module, or the target tenant's modification operation on the registered service version information of the target tenant in the tenant application management module; install the life cycle information of the first service version information into the target tenant; and cache the service interface information of the first service version information into the service information storage module;
[0075] In response to the access request of the target tenant, determine the second service version information currently used by the target tenant, and obtain the service interface information of the second service version information in the service information storage module; based on the service interface information, obtain the life cycle information of the second service version information in the application service policy module for feedback.
[0076] Further, the management control module includes: a gateway protocol conversion unit;
[0077] The gateway protocol conversion unit is used to obtain the life cycle information of the second service version information in the application service policy module according to the second service version information if the service interface information of the second service version information or the life cycle information of the second service version information cannot be obtained in the service information storage module, and cache the life cycle information in the service information storage module.
[0078] Further, the management control module includes: a tenant application maintenance unit;
[0079] The tenant application maintenance unit is used to deactivate the navigation information of the current application in the target tenant, send the life cycle information of the first service version information to the target tenant for installation, and write it into the database of the target tenant.
[0080] The above-mentioned management system of the application service version can implement the management control method of the application service version of the above-mentioned method embodiment. The optional items in the above-mentioned method embodiment are also applicable to this embodiment and will not be described in detail here. The rest of the embodiments of this application can refer to the contents of the above-mentioned method embodiment, and will not be repeated in this embodiment.
[0081] Embodiment 3
[0082] Accordingly, the present invention also provides a computer-readable storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the management and control method of the application service version as described in any one of the above embodiments.
[0083] Exemplarily, the computer program may be divided into one or more modules / units, which are stored in the memory and executed by the processor to implement the present invention. The one or more modules / units may be a series of computer program instruction segments capable of implementing specific functions, which are used to describe the execution process of the computer program in the terminal device.
[0084] The terminal device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The terminal device may include, but is not limited to, a processor and a memory.
[0085] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the terminal device, and uses various interfaces and lines to connect various parts of the entire terminal device.
[0086] The memory can be used to store the computer program and / or module, and the processor realizes various functions of the terminal device by running or executing the computer program and / or module stored in the memory, and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc.; the data storage area can store data created according to the use of the mobile terminal, etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Med ia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0087] Wherein, if the module / unit integrated in the terminal device is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc. The computer-readable medium can include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc.
[0088] The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of protection of the present invention.
Claims
1. A management and control method for application service versions, characterized in that: include: In response to a registration operation of the target tenant on the service version information of the target tenant in the tenant application management module, or a change operation of the target tenant on the registered service version information of the target tenant in the tenant application management module, determining the first service version information, and acquiring life cycle information of the first service version information; Installing the lifecycle information of the first service version information into the target tenant; Caching the service interface information of the first service version information into a service information storage module, specifically: parsing the first service version information to generate service interface information; processing the service interface information into a preset format for caching; The tenant application management module is used to register the service version information of each tenant's current application; In response to an access request from a target tenant, determine the second service version information currently used by the target tenant, obtain service interface information of the second service version information in the service information storage module; obtain life cycle information of the second service version information in an application service policy module according to the service interface information for feedback; The step of determining the second service version information currently used by the target tenant in response to the target tenant's access request is as follows: in response to the target tenant's access request, querying the tenant application management module to obtain and determine the second service version information currently used by the target tenant; the application service policy module is used to register all service version information of each application, as well as corresponding life cycle information; the life cycle information includes: service navigation information, database information, and service interface information; Acquiring the service interface information of the second service version information in the service information storage module also includes: if the service interface information of the second service version information or the life cycle information of the second service version information cannot be obtained in the service information storage module, acquiring the life cycle information of the second service version information in the application service policy module according to the second service version information, and caching the life cycle information in the service information storage module; wherein the service information storage module is used to cache the service interface information of the service version information or the life cycle information of the service version information; Obtaining the service interface information of the second service version information in the service information storage module also includes: if the service interface information of the second service version information cannot be obtained in the service information storage module, and the life cycle information of the second service version information is cached in the service information storage module, directly obtaining the life cycle information of the second service version information cached in the service information storage module.
2. A method for managing and controlling application service versions as claimed in claim 1, characterized in that: The step of installing the lifecycle information of the first service version information into the target tenant is specifically as follows: The navigation information of the current application in the target tenant is deactivated, and the life cycle information of the first service version information is sent to the target tenant for installation, and written into the database of the target tenant.
3. A management system for application service versions, characterized in that: include: Tenant application management module, application service policy module, service information storage module, service version management module and management control module; The tenant application management module is used to register the service version information of each tenant's current application; The application service policy module is used to register all service version information of each application and the corresponding life cycle information; the life cycle information includes: service navigation information, database information and service interface information; The service information storage module is used to cache service version information, service interface information of service version information or life cycle information of service version information; The management control module is used to determine the first service version information and obtain the life cycle information of the first service version information in response to the target tenant's registration operation on the service version information of the target tenant in the tenant application management module, or the target tenant's modification operation on the registered service version information of the target tenant in the tenant application management module; install the life cycle information of the first service version information to the target tenant; cache the service interface information of the first service version information to the service information storage module, specifically: parse the first service version information to generate service interface information; process the service interface information into a preset format for caching; In response to the access request of the target tenant, determine the second service version information currently used by the target tenant, obtain the service interface information of the second service version information in the service information storage module; obtain the life cycle information of the second service version information in the application service policy module according to the service interface information for feedback; In response to the access request of the target tenant, determine the second service version information currently used by the target tenant, specifically: In response to the access request of the target tenant, query the tenant application management module, obtain and determine the second service version information currently applied by the target tenant; The management control module includes: a gateway protocol conversion unit; The gateway protocol conversion unit is used to obtain the life cycle information of the second service version information in the application service policy module according to the second service version information if the service interface information of the second service version information or the life cycle information of the second service version information cannot be obtained in the service information storage module, and cache the life cycle information in the service information storage module; wherein the service information storage module is used to cache the service interface information of the service version information or the life cycle information of the service version information; The management control module is also used to directly obtain the life cycle information of the second service version information cached in the service information storage module if the service interface information of the second service version information cannot be obtained in the service information storage module and the life cycle information of the second service version information is cached in the service information storage module.
4. The management system for application service versions according to claim 3, characterized in that: The management control module includes: a tenant application maintenance unit; The tenant application maintenance unit is used to deactivate the navigation information of the current application in the target tenant, send the life cycle information of the first service version information to the target tenant for installation, and write it into the database of the target tenant.
5. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program; wherein, when the computer program is running, it controls the device where the computer-readable storage medium is located to execute a management and control method for an application service version as described in any one of claims 1 to 2.
Citation Information
Patent Citations
Service version switching method and device, electronic equipment and storage medium
CN113326079A
Interface switching method and device, electronic device and computer program product
CN113656100A