Database resource management method, device, equipment, program product and storage medium
By introducing database management and control services into the cloud platform and using offline and online deployment components for resource management, the problem of repeated construction of database resource service capabilities at different levels in the cloud platform is solved, and unified management and efficient utilization of resources are achieved.
Patent Information
- Application Number
- CN202510021690.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-07
- Publication Date
- 2025-04-18
- Estimated Expiration
- 2045-01-07
AI Technical Summary
The database resource service capabilities that cloud services at different levels in the cloud platform depend on need to be constructed repeatedly, resulting in the inability to reuse the underlying resource pool, and there is a problem of resource waste.
By introducing database management and control services into the cloud platform, using offline deployment components and online deployment components for resource management, the unified offline hybrid deployment of database resources in the management area and tenant area will be realized to reduce resource waste.
It has achieved the unification of database resource service capabilities that cloud services at all levels in the cloud platform rely on, reducing resource waste and improving resource utilization efficiency.
Smart Images

Figure CN119415501B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of cloud service technology, and in particular to database resource management methods, devices, equipment, program products and storage media. Background Art
[0002] The cloud platform consists of a management area and a tenant area. The management area is the resource area in the cloud platform used to manage and monitor the entire cloud environment. The tenant area is the resource area in the cloud platform allocated to tenants. Tenants are organizations or individuals who use cloud services.
[0003] The database resource services that cloud services in the layer where the pre-dependent database resources in the management area are located are provided in a tool-based manner, and the database resource services that cloud services in the layer where the non-dependent database resources in the management area are located are provided in a componentized manner. Among them, the pre-dependent database resources refer to the database resources that are relied on before performing a certain operation or realizing a certain function. The database resources that cloud services in different layers of the tenant area rely on are obtained by online deployment of the database management service (DBS).
[0004] In order to provide the database resource services that cloud services of different layers in the management area and tenant area of the cloud platform rely on, different layers of the cloud platform need to build database resource service capabilities. The repeated construction of database resource service capabilities requires that the database resource service capabilities built at each layer use different underlying resource pools, which makes it impossible to use the same underlying resource pool for resource reuse, resulting in a waste of resources. Summary of the invention
[0005] The present application provides a database resource management method, apparatus, device, program product and storage medium, which can reduce resource waste.
[0006] In a first aspect, a database resource management method is provided, which is applied to a cloud platform. The cloud platform runs a database management and control service, which includes an offline deployment component, an online deployment component and an agent component. The offline deployment component is used to manage offline resources, and the online deployment component is used to distribute online resources. The online deployment component is connected to the resource pool of the management area and the tenant area. The offline resources include the pre-dependent database resources of the management area, and the online resources include the non-dependent database resources of the management area and the tenant area.
[0007] The method includes: receiving a first business request, the first business request including a first service identifier, the first service identifier being used to indicate a cloud service running at the nth layer of a cloud platform; determining a target component for executing the first business request in a database management and control service according to a correspondence between the nth layer and a resource type of a database resource; when the nth layer corresponds to a pre-dependent database resource, the target component is an offline deployment component, and when the nth layer corresponds to an independent database resource, the target component is an online deployment component; calling a proxy component through the target component to perform offline mixed deployment to obtain the database resource that the cloud service running at the nth layer depends on; the configuration parameters of the deployed pre-dependent database resource and the deployed independent database resource are consistent.
[0008] Based on the above database resource management method, the cloud platform receives the first business request for the cloud service running at the nth layer, and determines whether the target component for executing the first business request in the database control service is an offline deployment component or an online deployment component according to the correspondence between the nth layer and the resource type of the database resource. The offline deployment component included in the database control service is deployed offline, which can realize the management of the pre-dependent database resources of the management area as offline resources; the online deployment component is connected to the resource pool of the management area and the tenant area, and the online deployment component is deployed online, which can realize the distribution of the non-dependent database resources of the management area and the tenant area as online resources at the same time, and the configuration parameters of the pre-dependent database resources after deployment and the non-dependent database resources after deployment are consistent. Therefore, the cloud platform realizes the database resources that the cloud service depends on running at each layer of the offline mixed deployment management area and the tenant area through a unified database control service, so that the cloud platform only needs to use the resources in the unified underlying resource pool to build a unified database resource service capability, reducing resource waste.
[0009] As a possible implementation method, the target component is an offline deployment component. The cloud platform obtains resources in the resource pool of the management area through the offline deployment component, creates the first virtual machine of the first business request, and initializes the database resources of the pre-dependent n-th layer through the offline deployment component. The pre-dependent database resources after the n-th layer initialization are obtained and managed as offline pending resources. In this way, the database management and control service also includes an offline deployment component. The database management and control service creates the first virtual machine and initializes the resources through the offline deployment component, and obtains the initialized offline pending resources. By managing the pending resources, the cloud service in the management area can be deployed offline. Database resources are avoided in a tool-based manner to provide database resources that cloud services rely on, thereby reducing the resources consumed by building database resource service capabilities in a tool-based manner and avoiding resource waste.
[0010] Optionally, the offline deployment component is connected to the internal request interface of the database management service; the cloud platform receives the first business request for the cloud service running on the nth layer through the internal request interface; the nth layer is located in the management area, and the nth layer corresponds to the pre-dependent database resources. In this way, when the nth layer is located in the management area and corresponds to the pre-dependent database resources, the offline deployment component of the database management service only receives the first business request through the internal request interface, thereby offline deploying the database resources for the cloud service in the management area, thereby reducing the complexity of the offline mixed deployment of the database management service and facilitating the expansion and maintenance of the cloud platform.
[0011] As a possible implementation method, the target component is an online deployment component, and the nth layer is located in the management area. The cloud platform obtains resources in the resource pool of the management area through the online deployment component, creates the first virtual machine of the first business request, and initializes the non-dependent database resources of the nth layer by calling the proxy component through the online deployment component, obtains the non-dependent database resources after the nth layer is initialized, and issues them as online resources to be requested.
[0012] As a possible implementation method, the target component is an online deployment component, and the nth layer is located in the tenant area. The cloud platform obtains resources in the resource pool of the tenant area through the online deployment component, creates the first virtual machine requested by the first business, and initializes the non-dependent database resources of the nth layer by calling the proxy component through the online deployment component, obtains the non-dependent database resources after the nth layer is initialized, and issues them as online resources to be requested.
[0013] Based on the above two optional implementation methods, the online deployment component in the database management and control service is connected to the resource pool of the management area and the tenant area. The database management and control service creates the first virtual machine and initializes the resources through the online deployment component, obtains the initialized online requested resources, and uniformly implements the online deployment of database resources for cloud services in the management area or the tenant area, avoiding the use of a componentized approach to provide the database resources that the cloud services in the management area rely on, thereby reducing the resources consumed by building database resource service capabilities in a componentized manner and avoiding resource waste.
[0014] Optionally, the online deployment component is connected to the internal interface and the external interface of the database management and control service. When the cloud platform is located in the management area at layer n, the online deployment component receives the first business request for the cloud service running at layer n through the internal request interface. When the cloud platform is located in the tenant area at layer n, the online deployment component receives the first business request for the cloud service running at layer n through the external request interface; the nth layer corresponds to non-dependent database resources. In this way, when the nth layer corresponds to non-dependent database resources, the online deployment component of the database management and control service receives the first business request for the cloud service running at layer n in the management area through the internal request interface, or receives the first business request for the cloud service running at layer n in the tenant area through the external request interface, thereby deploying database resources online for the cloud service in the management area or the tenant area, thereby reducing the complexity of the offline mixed deployment of the database management and control service and facilitating the expansion and maintenance of the cloud platform.
[0015] As a possible implementation method, the first service request includes user information. The cloud platform verifies the identity of the user information through the target component; if the verification passes, the target component calls the proxy component to perform offline mixed deployment to obtain the database resources that the cloud service running at the nth layer depends on. In this way, before performing offline mixed deployment, the cloud platform first verifies the identity of the user information in the service request, thereby improving the security of offline mixed deployment of the database management service.
[0016] As a possible implementation method, the cloud platform includes an offline deployment component and a proxy component, and the cloud platform does not run a database management service. Since the operation of the cloud platform depends on the database management service and database resources, the cloud platform needs to create a database management service, and then deploy and manage database resources based on the database management service. The process of the cloud platform creating a database management service includes: the cloud platform obtains resources in the resource pool of the management area through the offline deployment component to create a second virtual machine; the proxy component is called by the offline deployment component to initialize the pre-dependent database resources on the second virtual machine to obtain the first database resource; the first database resource is the resource required to create a virtual machine; the first database resource is obtained in the resource pool of the management area through the offline deployment component to create a third virtual machine, and the database management service depends on the third virtual machine; the proxy component is called by the offline deployment component to initialize the second database resource on the third virtual machine to obtain a created database management service; the second database resource is the database resource required by the database management service itself, and the database management service includes an online deployment component.
[0017] Based on the above-mentioned implementation method of creating a database management and control service, the cloud platform implements the creation of a database management and control service through offline deployment components and proxy components. Compared with the database management and control service obtained by manually creating virtual machines and database resources in the management area in a tool-based and component-based manner, the database management and control service of the embodiment of the present application includes offline deployment components and proxy components, which can realize offline management of the pre-dependent database resources of the management area, and in the service creation process, it is not necessary to use the database resource service capabilities provided by the tool-based and component-based methods, thereby reducing the number of database resource service capabilities that need to be built and avoiding resource waste. In addition, the database management and control service realizes the provision of a unified database resource service capability for the cloud platform, thereby effectively improving the efficiency of new site development and reducing the complexity of evolution.
[0018] In a second aspect, a database resource management device is provided, wherein the database resource management device includes modules for executing the database resource management method in the first aspect or any possible implementation manner of the first aspect.
[0019] The database resource management device described in the second aspect can be a computing device, or a chip (system), a network card or other parts or components that can be set in a computing device, or a device that includes a computing device, which is not limited in this application.
[0020] In addition, the technical effects of the database resource management device described in the second aspect can refer to the technical effects of the database resource management method described in the first aspect, and will not be repeated here.
[0021] In a third aspect, a computing device cluster is provided, comprising at least one computing device, each computing device comprising a processor and a memory;
[0022] The processor of the at least one computing device is used to execute instructions stored in the memory of the at least one computing device, so that the computing device cluster performs the operation steps of the method described in any possible implementation manner of the first aspect.
[0023] In a fourth aspect, a computer-readable storage medium is provided, comprising computer program instructions. When the computer program instructions are executed by a computing device cluster, the computing device cluster executes the operating steps of the method described in the first aspect or any possible implementation of the first aspect.
[0024] In a fifth aspect, a chip system is provided. The chip system includes a memory and at least one processor. The memory is used to store a set of computer instructions, and when the processor executes the set of computer instructions, the operation steps of the method described in any possible implementation of the first aspect are performed.
[0025] In a sixth aspect, a computer program product comprising instructions is provided. When the instructions are executed by a computing device cluster, the computing device cluster executes the operation steps of the method described in any possible implementation manner of the first aspect.
[0026] Based on the implementations provided in the above aspects, this application can also be further combined to provide more implementations. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 A scenario diagram of a method for building a cloud service;
[0028] Figure 2 A scenario diagram for building a cloud service based on different database resource service capabilities based on scenario abstraction;
[0029] Figure 3 A schematic diagram of the hardware architecture of a cloud platform provided in an embodiment of the present application;
[0030] Figure 4 A schematic diagram of a layered structure of a cloud platform provided in an embodiment of the present application;
[0031] Figure 5 A system architecture of a cloud platform provided in the embodiment of the present application Figure 1 ;
[0032] Figure 6 A cloud platform system architecture provided for the embodiment of the present application Figure 2 ;
[0033] Figure 7 A flowchart of a database resource management method provided in an embodiment of the present application;
[0034] Figure 8 A flowchart of another database resource management method provided in an embodiment of the present application;
[0035] Fig. 9 A flowchart of a process for creating a database management and control service provided in an embodiment of the present application;
[0036] Fig.10 A schematic diagram of a database resource management device provided in an embodiment of the present application;
[0037] Fig.11 A schematic diagram of the structure of a computing device provided in an embodiment of the present application;
[0038] Fig.12 A schematic diagram of the structure of a computing device cluster provided in an embodiment of the present application;
[0039] Fig.13A schematic diagram of a structure in which computing devices are connected via a network according to an embodiment of the present application. DETAILED DESCRIPTION
[0040] This application can be applied not only to existing cloud service technologies and new site construction scenarios, but also to future cloud service technologies and new site construction scenarios, etc. The cloud service in this application is, for example, a public cloud, a private cloud, a hybrid cloud, etc.
[0041] To facilitate understanding, the relevant terms involved in the embodiments of the present application are first introduced below.
[0042] (1) Instrumentalization
[0043] Tooling refers to the provisioning and management of database resources through offline command lines or shell scripts.
[0044] (2) Componentization
[0045] Componentization refers to the distribution and management of database resources in a visual way through an online platform interface.
[0046] (3) Service-oriented
[0047] Serviization refers to the provision and management of database resources by building services based on services.
[0048] Building services on services refers to building and integrating higher-level and more customized services based on the basic services, platform services and software services provided by the cloud platform to meet specific business needs or application scenarios.
[0049] (4) Online deployment
[0050] Online deployment means that cloud services use YAML (yaml ain't markup language) configuration to orchestrate the application of database resources. There is no need to pay attention to the internal details of database resource deployment, and database resources are used based on service development.
[0051] (5) Offline Mixing Deployment
[0052] Offline mixed deployment means that cloud services can orchestrate the use of online or offline database resources through YAML configuration in task scenarios.
[0053] In order to make the technical problem of resource waste in the background technology easier to understand, Figure 1 Describe the cloud service construction method.
[0054] Figure 1 A scenario diagram of a method for building a cloud service, such as Figure 1As shown, the interface of the cloud platform includes a management plane and a tenant plane, wherein the tenant plane is the user interface provided by the cloud platform to tenants, and the management plane is the user interface provided in the cloud platform to cloud service providers or administrators. The resource area of the cloud platform includes a management area and a tenant area. The management area managed by the management plane includes the M0 layer and the M1 layer, and the cloud service (cloudservice) 1 of the M0 layer relies on an independent database resource service provided in a tool-based manner. The M0 layer receives the offline command line input by the user through the unified deployment tool, and creates the database resources that the cloud service 1 relies on based on the offline command line. Among them, the unified deployment tool is a tool used by users to manage or use cloud services running on the cloud platform.
[0055] The cloud service 2 of the M1 layer relies on an independent database resource service provided in a componentized manner. The M1 layer receives the user's operation instructions on the online platform interface input by the user through the unified deployment tool, and creates the database resources that the cloud service 2 relies on according to the operation instructions.
[0056] The tenant area managed by the management plane includes the M2 layer and the M3 layer, and the tenant area managed by the tenant plane includes the tenant service. The tenant service, the cloud service 3 and the cloud service 4 of the M2 layer and the M3 layer all rely on independent database resource services provided in a service-oriented manner. That is, the M2 layer creates the database resources that the cloud service 3 depends on through the database management service, the M3 layer creates the database resources that the cloud service 4 depends on through the database management service, and the tenant area creates the database resources that the tenant service depends on through the database management service.
[0057] The database management and control service is used to provide database resources that cloud services running in tenant areas rely on through online deployment.
[0058] The database management and control service is obtained by manually creating virtual machines and database resources in the M1 layer of the management area. The database management and control service includes online deployment components and agent components. The data model of the online deployment component corresponds to the single resource pool of the tenant area. The online deployment component creates a virtual machine from the single resource pool of the tenant area, and obtains database resources by calling the agent component to initialize resources on the virtual machine, thereby realizing online deployment of database resources that the cloud services in the tenant area depend on.
[0059] Since each layer of the cloud platform adopts component-based, tool-based, and service-based database resource service capabilities, there is a problem of repeated construction of database resource service capabilities. The database resource service capabilities built at multiple layers need to use different underlying resource pools, which makes it impossible to use the same underlying resource pool for resource reuse, resulting in a problem of resource waste.
[0060] In addition, the database resource service capabilities built by componentization, toolization, and serviceization at each layer lead to low integration of the cloud platform, which is not easy to evolve on this basis in the long term. The cloud platform built in the above way cannot meet the fast-paced new site delivery goals and leads to problems in subsequent operations.
[0061] In order to solve the above problems, the cloud platform can also abstract and build scenario-based database resource service capabilities based on different scenarios. Figure 2 A scenario diagram for building a cloud service based on different database resource service capabilities based on scenario abstraction, such as Figure 2 As shown, the interface of the cloud platform includes a tenant interface and a management interface.
[0062] The cloud platform builds database resource service capabilities for the tenant plane and the management plane respectively. The resource area of the cloud platform includes the management area and the tenant area. The management area managed by the management plane includes the M0 layer and the M1 layer. The M0 layer runs cloud service 1, and the M1 layer runs cloud service 2. Cloud service 1 and cloud service 2 in the management area both rely on independent database resource services provided in a componentized manner. The management area receives the user's operation instructions for the online platform interface input through the unified deployment tool. The online platform interface contains options associated with the offline command line of the M0 layer. The database resources that cloud service 1 and cloud service 2 rely on are created according to the operation instructions.
[0063] The tenant area managed by the management plane includes the M2 layer and the M3 layer, and the tenant area managed by the tenant plane includes the tenant service. The tenant area still uses the independent database resource service provided by the service-oriented method. That is, the tenant area creates the database resources that the tenant service depends on through the database management service.
[0064] In this way, the database resource service capabilities of the tenant side are different from the database resource service capabilities that the management side's own cloud services rely on. Different scenarios still need to build two sets of database resource service capabilities, and building two sets of database resource service capabilities requires using resources from different underlying resource pools and different human resources, resulting in the inability to reuse resources, resulting in a waste of resources. In addition, the maintenance and evolution costs of the two sets of database resource service capabilities built for different scenarios are high.
[0065] In order to solve the technical problem of resource waste in the background technology, the embodiments of the present application provide a database resource management method, device, equipment, program product and storage medium, and in particular provide a solution for offline mixed deployment of database resources at each layer of the cloud platform. The cloud platform receives the first business request for the cloud service running on the nth layer, and determines whether the target component for executing the first business request in the database management service is an offline deployment component or an online deployment component according to the correspondence between the nth layer and the resource type of the database resource. The offline deployment component included in the database management service is deployed offline, and the pre-dependent database resources of the management area can be managed as offline resources; the online deployment component is connected to the resource pool of the management area and the tenant area, and the online deployment component is deployed online, which can simultaneously realize the issuance of non-dependent database resources of the management area and the tenant area as online resources, and the configuration parameters of the pre-dependent database resources after deployment and the non-dependent database resources after deployment are consistent. Therefore, the cloud platform uses a unified database management and control service to realize the database resources that cloud services running at each layer of the offline mixed deployment management area and tenant area rely on. In this way, the cloud platform only needs to use the resources in the unified underlying resource pool to build a unified database resource service capability, reducing resource waste.
[0066] The implementation of the embodiments of the present application will be described in detail below with reference to the accompanying drawings.
[0067] Figure 3 The hardware architecture diagram of a cloud platform provided in the embodiment of the present application is shown in FIG. Figure 3 As shown, the cloud platform 300 includes a computing server cluster 310, a storage server cluster 320, a management server cluster 330, a network device cluster 340 and a user terminal 350. The computing server cluster 310, the storage server cluster 320 and the management server cluster 330 communicate with the user terminal 350 through the network device cluster 340 respectively.
[0068] The computing server cluster 310 includes one or more computing servers ( Figure 3 Two computing servers, namely computing server 311 and computing server 312, are shown in FIG. 3 , but are not limited to two computing servers).
[0069] Computing servers are computing resources in the cloud platform 300, such as servers and desktop computers, and are used to generate and allocate computing resources based on virtualization technology according to user needs. At the hardware level, the computing server is equipped with a processor and memory ( Figure 3 The computing function of the computing server is realized by the processor running the program in the memory. The computing node server can also read / write data in each storage server in the storage server cluster 320 according to user needs.
[0070] The storage server cluster 320 includes one or more storage servers ( Figure 3 Two storage servers, storage server 321 and storage server 322, are shown in the figure, but are not limited to two storage servers).
[0071] The storage server is a storage resource in the cloud platform 300, such as a server, desktop computer or storage array controller, hard disk frame, etc., which is used to provide logical disk storage, unstructured data storage, integrated backup and other services for the cloud virtual machines in the cloud platform 300. In terms of hardware, the storage server is provided with a network card, a processor and a memory. The processor in the storage server is used to process data from outside the storage server. The network card is used to control the access process of the memory, such as the control of address signals, data signals and various command signals, so that the storage server can provide the memory as a storage resource to the user. The memory is used to store data and may include memory and / or hard disk. Memory refers to an internal memory that directly exchanges data with the processor. The memory can read and write data quickly at any time and serve as a temporary data storage for the operating system or other running programs. Unlike memory, the hard disk reads and writes data slower than memory and is usually used to store data persistently.
[0072] The management server cluster 330 includes one or more management servers ( Figure 3 Two management servers, namely management server 331 and management server 332, are shown in the figure, but are not limited to two management servers).
[0073] The management server is used to manage all computing services, shared storage, and networks of the entire cloud platform 300, and provide users or administrators with an application programming interface (API) for managing the entire node.
[0074] The network device cluster 340 includes one or more switches and routers, such as Figure 3As shown, in this embodiment, the network device cluster 340 includes a router 341, a switch 342, a switch 343, a switch 344, and a switch 345. Among them, the user terminal 350 is connected to the router 341 through the Internet, and the router 341 is connected to the switch 343 through the switch 342, and the switch 343 is connected to each computing server in the computing server cluster 310. The switch 344 is respectively connected to each computing server in the computing server cluster 310 and each storage server in the storage server cluster 320. The switch 345 is respectively connected to each computing server in the computing server cluster 310, each storage server in the storage server cluster 320, and each management server in the management server cluster 330.
[0075] Optionally, the number and type of switches included in the network device cluster 340 can be adjusted according to the needs of the cloud platform 300, and the switches 342, 343, 344, and 345 can be switches with different functions, for example, the switch 342 is a core switch, and the switches 343, 344, and 345 are switches for managing specific network segments. For example, the switch 342 can be a core switch, the switch 343 can be an internal and external switching network segment switch, the switch 344 can be a storage network segment switch, and the switch 345 can be a management network segment switch.
[0076] The user terminal 350 includes one or more user terminals ( Figure 3 Two user terminals, namely user terminal 351 and user terminal 352, are shown in FIG. 3 , but are not limited to two user terminals). The user terminal includes an interface and application required for accessing the cloud platform 300.
[0077] It is worth noting that Figure 3 This is just a schematic diagram and should not be construed as limiting the present application. The cloud platform 300 may also include other devices. Figure 3 Not drawn in.
[0078] In such Figure 3 Based on the equipment of the cloud platform 300 shown, the cloud platform 300 is based on Infrastructure as a Service (IaaS), Platform as a Service (PaaS) and Software as a Service (SaaS), and uses cloud nodes obtained by virtualizing the resources of the cloud platform 300 to provide cloud services (for example, computing services, storage services and network services) to users through cloud nodes.
[0079] Next, combine Figure 4The layered structure of the cloud platform 300 is described.
[0080] Figure 4 A schematic diagram of a layered structure of a cloud platform provided in an embodiment of the present application. Figure 4 As shown, the infrastructure as a service platform 410 is used to virtualize all infrastructure resources in the cloud platform 300, and provide virtual resources (such as computing resources, network resources and storage resources) to users in a software-defined manner. Among them, the infrastructure resources refer to the resources provided by the computing server cluster 310, storage server cluster 320, management server cluster 330 and / or network device cluster 340 in the cloud platform 300.
[0081] The platform as a service platform 420 is used to implement the runtime environment and application support functions of the cloud platform 300, so that users can apply for computing units within the quota instead of virtual resources to run their own services. Optionally, the computing unit can be a container, and the cloud platform 300 deploys and runs the user's code by scheduling the container. It should be noted that the number of containers in the platform as a service platform 420 can be one or more. Figure 4 Only two containers are used as examples.
[0082] As a possible implementation, the cloud platform 300 can inject one or more components into the container to implement code deployment and operation. Optionally, the resources (computing resources or storage resources) used by multiple components in the same container can belong to the same hardware device (such as a computing server, a storage server, or a management server) in the cloud platform 300, or they can belong to different hardware devices.
[0083] Among them, the components may include database components, message queue components, orchestration components, log components, virtualization components, business database components, configuration database components, permission management components, etc.
[0084] The SaaS application 430 is used to provide services to users by composing user-deployed applications in the form of API responses based on the IaaS platform 410 and the PaaS platform 420. The application of the SaaS application 430 and the container can communicate through a web server.
[0085] It is worth noting that Figure 4 This is only a schematic diagram and should not be construed as limiting the present application. The hierarchical structure of the cloud platform 300 may also include other modules. Figure 4 Not drawn in.
[0086] The database resource management method provided in the embodiment of the present application is executed by the cloud node provided by the cloud platform 300. Figure 5The database resource management method provided in the embodiment of the present application is described.
[0087] The database resource management method provided in the embodiment of the present application can be applied to Figure 4 The cloud platform shown in the figure. The interface of the cloud platform includes the management interface and the tenant interface. The resource area of the cloud platform includes the management area and the tenant area. For example, Figure 5 As shown, Figure 5 A cloud platform system architecture provided for the embodiment of the present application Figure 1 In the cloud platform 500, cloud services are running on each layer of the management area and the tenant area. Cloud service 1 and cloud service 2 are located in two layers of the management area respectively, and cloud service 3, cloud service 4 and tenant service are located in each layer of the tenant area respectively. The management area of the cloud platform 500 runs a database management service 510, which is used for offline mixed deployment and provides database resources that cloud services running in the management area and the tenant area rely on.
[0088] The database management and control service 510 includes an offline deployment component 511, an online deployment component 512, a proxy component 513, an internal request interface 514, and an external request interface 515. The offline deployment component 511 is used to manage offline resources, and the offline resources include the pre-dependent database resources of the management area. The online deployment component 512 is used to issue online resources. The online deployment component 512 connects to the resource pools of the management area and the tenant area. The online resources include the non-dependent database resources of the management area and the tenant area. The proxy component 513 is used to initialize the database resources and obtain the database resources that the cloud services of each layer depend on. The internal request interface 514 and the external request interface 515 are used to receive requests. For example, the internal request interface 514 and the external request interface 515 are API interfaces.
[0089] The cloud platform 500 receives a first service request, wherein the first service request includes a first service identifier, which is used to indicate a cloud service running at the nth layer of the cloud platform 500, and the first service identifier may be information that uniquely identifies the cloud service, such as a service name and a service number of the cloud service running at the nth layer.
[0090] Among them, the nth layer is, for example, any layer after the cloud platform 500 performs software stratification. The nth layer may be located in the management area or in the tenant area, and the embodiment of the present application does not impose any limitation on this.
[0091] The first service request is, for example, a YAML configuration request, and the YAML configuration request is, for example, used to request the use of database resources.
[0092] As a possible implementation manner, the cloud platform 500 receives, through the tenant plane, a first business request for any cloud service running in the tenant area, which is sent by an external user.
[0093] Optionally, the database management and control service 510 of the cloud platform 500 receives the first business request through the external request interface 515 .
[0094] As a possible implementation manner, the cloud platform 500 receives, through the management plane, a first business request sent by an administrator for any cloud service running in the management area or the tenant area.
[0095] Optionally, the database management and control service 510 of the cloud platform 500 receives the first business request through the internal request interface 514 .
[0096] The cloud platform 500 determines the target component of the database management service 510 in executing the first business request according to the correspondence between the nth layer and the resource type of the database resource. When the nth layer corresponds to the pre-dependent database resource, the target component is the offline deployment component 511, and when the nth layer corresponds to the non-dependent database resource, the target component is the online deployment component 512.
[0097] As a possible implementation method, when the cloud service indicated by the first service identifier is located at the bottom layer of the cloud platform 500, the database resources in the bottom layer are pre-dependent database resources, and it is determined that the offline deployment component 511 executes the first business request, that is, the offline deployment component 511 of the database management service 510 obtains the first business request.
[0098] As a possible implementation method, when the cloud service indicated by the first service identifier is located in a layer other than the bottom layer of the cloud platform 500, the database resources in other layers are non-dependent database resources, and it is determined that the first business request is executed by the online deployment component 512, that is, the online deployment component 512 of the database management service 510 obtains the first business request.
[0099] The cloud platform 500 performs offline mixed deployment by calling the proxy component 513 through the target component to obtain the database resources that the cloud service running at the nth layer depends on. Among them, the configuration parameters of the pre-dependent database resources after deployment are consistent with the configuration parameters of the non-dependent database resources after deployment.
[0100] For the above Figure 5 The specific implementation method of the cloud platform 500 provided for database resource management is as follows: Figure 6 An optional example is provided. Figure 6 A cloud platform system architecture provided for the embodiment of the present application Figure 2 , Figure 6 The cloud platform 600 provided is the above Figure 5 One possible example of a cloud platform 500 is provided.
[0101] like Figure 6As shown, the interface of the cloud platform 600 includes a management plane and a tenant plane, and the resource area of the cloud platform 600 includes a tenant area and a management area. The management area managed by the management plane includes the M0 layer and the M1 layer, and the tenant area managed by the management plane includes the M2 layer and the M3 layer. Cloud service 1 runs on the M0 layer, cloud service 2 and database management service 610 run on the M1 layer, cloud service 3 runs on the M2 layer, and cloud service 4 runs on the M3 layer. The tenant area managed by the tenant plane includes tenant services. The database resources that cloud service 1, cloud service 2, cloud service 3, cloud service 4, and tenant services depend on are created by the database management service 610.
[0102] The database management service 610 includes an offline (one-peck) component 611, an online (one-service) component 612, an agent (one-agent) component 613, an internal application programming interface (Internal-API) 614, and an external application programming interface (External-API) 615. The offline component 611 is connected to the internal application programming interface 614, and the online component 612 is connected to the internal application programming interface 614 and the external application programming interface 615.
[0103] Offline component 611 is used to implement the above Figure 5 The function of the offline deployment component 511 is used to implement the online component 612. Figure 5 The online deployment component 512 is used to implement the above-mentioned proxy component 613. Figure 5 The function of the proxy component 513 is equivalent to the internal application programming interface 614 described above. Figure 5 The internal request interface 514 and the external application programming interface 615 are equivalent to the above Figure 5 The external request interface 515 in.
[0104] The steps of executing database resource management by the cloud platform 600 in the embodiment of the present application can refer to the above Figure 5 The relevant description of the embodiments of the present application will not be repeated here.
[0105] Below Figure 5 Take the cloud platform 500 in the example of database resource management for example, combined with Figure 7-Figure 8 The database resource management method of the embodiment of the present application is described. Figure 7 A flowchart of a database resource management method provided in an embodiment of the present application. Figure 7 The cloud platform 500 in the above Figure 5 The relevant description is not repeated here.
[0106] like Figure 7 As shown, the database resource management method may include steps 701 to 703.
[0107] Step 701: The cloud platform 500 receives a first service request.
[0108] As a possible implementation method, when the nth layer is located in the management area and the nth layer corresponds to pre-dependent database resources or non-dependent database resources, the database management service 510 of the cloud platform 500 receives the first business request for the cloud service running at the nth layer of the management area through the internal request interface 514.
[0109] As a possible implementation method, when the nth layer is located in the tenant area, the nth layer corresponds to non-dependent database resources, and the database management service 510 of the cloud platform 500 receives the first business request for the cloud service running on the nth layer of the tenant area through the external request interface 515.
[0110] As a possible implementation manner, the cloud platform 500 receives a first business request from a user for a cloud service running at the nth layer in a management area or a tenant area, for example, through a unified deployment tool.
[0111] Step 702: The cloud platform 500 determines a target component for executing the first business request in the database management and control service 510 according to a correspondence between the nth layer and the resource type of the database resource.
[0112] When the cloud platform 500 corresponds to the pre-dependent database resources at the nth layer, it is determined that the target component for executing the first business request in the database management service 510 is the offline deployment component 511. When the cloud platform 500 corresponds to the pre-dependent database resources at the nth layer, it is determined that the target component for executing the first business request in the database management service 510 is the online deployment component.
[0113] The specific implementation of step 702 can refer to the above Figure 5 The relevant description of the embodiments of the present application will not be repeated here.
[0114] Step 703: The cloud platform 500 calls the proxy component 513 through the target component to perform offline mixed deployment, and obtains the database resources that the cloud service running at the nth layer depends on.
[0115] As a possible implementation, based on the different resource areas where the nth layer is located and the different resource types of the database resources corresponding to the nth layer, the cloud platform 500 deploys the database resources of the nth layer in different ways. The embodiments of the present application provide the following three specific implementations of the cloud platform 500 for offline mixed deployment, but do not constitute specific limitations.
[0116] In a first optional implementation, when the target component is an offline deployment component 511, the cloud platform 500 obtains resources in a resource pool of the management area through the offline deployment component 511, creates a first virtual machine for a first business request, and initializes the pre-dependent database resources of the nth layer by calling the proxy component 513 through the offline deployment component 511, obtains the initialized pre-dependent database resources of the nth layer, and manages them as offline resources to be requested.
[0117] In a second optional implementation, when the target component is the online deployment component 512 and the nth layer is located in the management area, the cloud platform 500 obtains resources in the resource pool of the management area through the online deployment component 512, creates a first virtual machine for a first business request, and initializes the non-dependent database resources of the nth layer by calling the proxy component 513 through the online deployment component 512, obtains the initialized non-dependent database resources of the nth layer, and issues them as online resources to be requested.
[0118] In a third optional implementation, when the target component is the online deployment component 512 and the nth layer is located in the tenant area, the cloud platform 500 obtains resources in the resource pool of the tenant area through the online deployment component 512, creates a first virtual machine for a first business request, and initializes the non-dependent database resources of the nth layer by calling the proxy component 513 through the online deployment component 512, obtains the initialized non-dependent database resources of the nth layer, and issues them as online resources to be requested.
[0119] The data model included in the online deployment component 512 is connected to the resource pools of the management area and the tenant area. The data model is used to abstract the features of an object in the real world and convert it into data that can be processed by a computer.
[0120] The configuration parameters of the initialized pre-dependent database resources and the initialized non-dependent database resources are consistent.
[0121] As a possible implementation, the first service request includes user information, including user name, password, token and other information identifying the user. After determining the target component, the cloud platform 500 also needs to verify the identity of the user information through the target component. If the verification passes, the target component calls the proxy component 513 to perform offline mixed deployment to obtain the database resources that the cloud service running at the nth layer depends on.
[0122] The specific implementation method of the cloud platform 500 for offline mixed deployment through the database management service 510 can be referred to below. Figure 8 The relevant description of the embodiments of the present application will not be repeated here.
[0123] Based on the relevant descriptions of steps 701 to 703 above, the database management and control service 510 of the present application includes an offline deployment component 511 that can manage the pre-dependent database resources of the management area as offline resources, and an online deployment component 512 that connects to the resource pools of the management area and the tenant area. The online deployment component 512 can simultaneously issue non-dependent database resources of the management area and the tenant area as online resources. Therefore, the cloud platform 500 can provide the database resources that the cloud services running at each layer of the management area and the tenant area depend on through a unified database management and control service 510, so that the cloud platform 500 only needs to use the same underlying resource pool to build a database resource service capability, thereby reducing resource waste.
[0124] The above describes the overall process of the database resource management method. Figure 6 Taking the database resource management of the cloud platform 600 in the example as an example, the database resource management method is described through a specific embodiment. Figure 8 A flowchart of another database resource management method provided in an embodiment of the present application. Figure 8 The cloud platform 600 in the above Figure 6 The relevant description is not repeated here.
[0125] like Figure 8 As shown, the database resource management method may include steps 801 to 819.
[0126] Step 801: The offline component 611 receives the first business request for the cloud service of the M0 layer from the user sent by the unified deployment tool.
[0127] Among them, the first business request is used to request the issuance of database resources for the cloud service of the M0 layer.
[0128] The offline component 611, for example, receives a first business request generated by a user through visual operations in the unified deployment tool, or, for example, after the unified deployment tool receives a request sent by a user terminal, generates a first business request for calling the cloud service of the M0 layer.
[0129] Step 802: The offline component 611 performs identity verification on the first service request.
[0130] The offline component 611 performs identity verification based on the user information such as the user name, password, and verification code in the first business request. After receiving the user information in the first business request, the offline component 611 compares it with the user information stored in the cloud platform 600. If it is determined that the same user information exists, the verification is determined to be successful. If it is determined that the same identity information does not exist, the verification is determined to be unsuccessful.
[0131] The offline component 611 can determine whether the user is an administrator or an external tenant through identity verification, and thus allocate corresponding resource access rights according to the user's identity.
[0132] Step 803: The offline component 611 returns a verification passed message to the unified deployment tool.
[0133] Step 804: The offline component 611 creates a virtual machine in the resource pool.
[0134] Since the M0 layer is located in the management area of the cloud platform 600, the offline component 611 specifically creates a virtual machine in the resource pool of the management area.
[0135] The offline component 611 dynamically obtains network resources, memory resources, disk resources, hardware resources and other resources used to generate virtual machines from the resource pool of the management area, and creates a virtual machine based on the obtained resources.
[0136] Step 805: The resource pool returns a creation completion message to the offline component 611.
[0137] Step 806: The offline component 611 calls the proxy component 613 to initialize the database resources of the M0 layer.
[0138] The offline component 611 communicates with the proxy component 613 and sends a request for initializing the database to the proxy component 613. The request includes information such as the type of database, connection information, initialization script or SQL statement, etc.
[0139] After receiving the request, the proxy component 613 executes the initialization script or SQL statement provided in the request to create a database in the M0 layer, and obtains the initialized pre-dependent database resources in the M0 layer.
[0140] Step 807: The proxy component 613 returns a message indicating that initialization is completed to the offline component 611.
[0141] Step 808: The offline component 611 creates an offline task.
[0142] The offline component 611 creates an offline task in the database management service 610. The offline task refers to a task that can be run in the background and does not require real-time response. The offline task is used to implement resource management.
[0143] Step 809: The offline component 611 calls the proxy component 613 to manage resources.
[0144] The offline component 611 executes the created offline task, and communicates with the proxy component 613, and sends a request for resource management to the proxy component 613. The proxy component 613 manages the pre-dependent database resources initialized in the above step 805 as offline requested resources.
[0145] Step 810: The proxy component 613 returns a message indicating that the management is completed to the offline component 611.
[0146] Step 811: The offline component 611 returns a message indicating that the database resource creation is complete to the unified deployment tool.
[0147] Step 812: The online component 612 receives the first business request of the user for the cloud service of the M1 layer / M2 layer / M3 layer sent by the unified deployment tool.
[0148] The first business request is used to request the release of database resources for the M1 layer / M2 layer / M3 layer cloud service.
[0149] The specific implementation method of step 812 can refer to the relevant description of the above step 801, and the embodiment of the present application will not be repeated here.
[0150] Step 813: The online component 612 performs identity verification on the first service request.
[0151] Among them, the specific implementation method of step 813 can refer to the relevant description of the above step 802, and the embodiment of the present application will not be repeated here.
[0152] Step 814: The online component 612 returns a verification passed message to the unified deployment tool.
[0153] Step 815: The online component 612 creates a virtual machine in the resource pool.
[0154] When the first business request is used to request the release of database resources for the cloud service of the M1 layer, since the M1 layer is located in the management area of the cloud platform 600, the online component 612 creates a virtual machine in the resource pool of the management area. When the first business request is used to request the release of database resources for the cloud service of the M2 layer / M3 layer, since the M1 layer is located in the tenant area of the cloud platform 600, the online component 612 creates a virtual machine in the resource pool of the tenant area.
[0155] Among them, the specific implementation method of step 815 can refer to the relevant description of the above step 804, and the embodiment of the present application will not be repeated here.
[0156] Step 816: The resource pool returns a creation completion message to the online component 612.
[0157] Step 817: The online component 612 calls the proxy component 613 to initialize the database resources of the M1 layer / M2 layer / M3 layer.
[0158] Among them, the specific implementation method of step 817 can refer to the relevant description of the above step 806, and the embodiment of the present application will not be repeated here.
[0159] Step 818: The proxy component 613 returns a message indicating that initialization is completed to the online component 612.
[0160] Step 819: The online component 612 returns a message indicating that the database resource creation is complete to the unified deployment tool.
[0161] Based on the above Figure 8 As described in steps 801 to 819, the database management service 610 of the cloud platform 600 can provide unified database resource service capabilities for different layers of the management area and tenant area of the cloud platform 600 through the offline component 611, the online component 612 and the agent component 613.
[0162] The above describes the overall process and specific examples of the database resource management method. In order to implement database resource management, the cloud platform needs to first create a database management service. Figure 5 The following describes the creation of a database management service on the cloud platform 500 as an example.
[0163] The cloud platform 500 includes an offline deployment component 511 and an agent component 513. When the cloud platform 500 does not run the database management service 510, as shown in steps 1 to 4, the cloud platform 500 first creates the database management service 510.
[0164] Step 1: The cloud platform 500 obtains resources in the resource pool of the management area through the offline deployment component 511 and creates a second virtual machine.
[0165] As a possible implementation manner, the offline deployment component 511 is located at the bottom layer of the management area of the cloud platform 500 , and the second virtual machine is created through the offline deployment component 511 .
[0166] Step 2: The cloud platform 500 calls the proxy component 513 through the offline deployment component 511 to initialize the pre-dependent database resources on the second virtual machine to obtain the first database resources.
[0167] The first database resources are resources required to create a virtual machine, and the first database resources include network resources, disk resources, memory resources, hardware resources, and the like.
[0168] Step 3: The cloud platform 500 obtains the first database resource in the resource pool of the management area through the offline deployment component 511, and creates a third virtual machine on which the database management and control service depends.
[0169] Step 4: The cloud platform 500 calls the proxy component 513 through the offline deployment component 511 to initialize the database resources on the third virtual machine, initialize the second database resources required by the database management and control service 510 itself, and obtain the created database management and control service 510.
[0170] Among them, the database management and control service 510 includes an online deployment component 512, which is generated when the database management and control service 510 is created. The cloud platform 500 generates the database management and control service 510 based on the online deployment component 512, the offline deployment component 511 in the cloud platform 500 and the agent component 513.
[0171] The process of cloud platform 500 creating database management service 510 can be referred to as follows Fig. 9 The relevant description of the embodiments of the present application will not be repeated here.
[0172] Based on the description of the process of the cloud platform 500 creating the database management and control service 510 described above, the cloud platform 500 in the embodiment of the present application creates the database management and control service 510 through an offline deployment component 511 and an agent component 513. Compared with the database management and control service obtained by manually creating virtual machines and database resources in the management area in a tool-based and component-based manner, the database management and control service 510 in the embodiment of the present application includes an offline deployment component 511 and an agent component 513, which can realize offline management of the pre-dependent database resources of the management area, and does not need to use the database resource service capabilities provided by the tool-based and component-based methods during the service creation process, thereby reducing the number of database resource service capabilities that need to be built and avoiding resource waste.
[0173] The database management and control service 510 provided in the embodiment of the present application realizes the provision of a unified database resource service capability for the cloud platform 500, thereby effectively improving the efficiency of new site development and reducing the complexity of evolution.
[0174] The above describes the creation process of the database management service. Figure 6 Taking the cloud platform 600 creating a database management and control service 610 as an example, the creation process of the database management and control service is described through a specific embodiment. Fig. 9 A flowchart of a process for creating a database management service provided in an embodiment of the present application, regarding Fig. 9 The cloud platform 600 in the above Figure 6 The relevant description is not repeated here.
[0175] In the case where the database management service 610 is not running in the cloud platform 600, after receiving the service request, the cloud platform 600 first needs to create the database management service 610. Fig. 9 As shown, the creation process of the database management service 610 may include steps 901 to 915.
[0176] Step 901: The offline component 611 creates a virtual machine in a resource pool.
[0177] Among them, the cloud platform 600 includes an offline component 611 and an agent component 613. The cloud platform 600 obtains the pre-dependent database resources in the resource pool of the management area through the offline component 611 and creates a second virtual machine in the M0 layer.
[0178] Among them, the specific implementation method of step 901 can refer to the relevant description of the above step 804, and the embodiment of the present application will not be repeated here.
[0179] Step 902: The resource pool returns a creation completion message to the offline component 611.
[0180] Step 903: The offline component 611 calls the proxy component 613 to initialize database resources.
[0181] The cloud platform 500 calls the proxy component 613 through the offline component 611 to initialize the pre-dependent database resources in the M0 layer on the second virtual machine to obtain the first database resources. The first database resources are the network resources, storage resources, disk resources, hardware resources, etc. required to create the virtual machine.
[0182] Among them, the specific implementation method of step 903 can refer to the relevant description of the above step 806, and the embodiment of the present application will not be repeated here.
[0183] Step 904: The proxy component 613 returns a message indicating that initialization is completed to the offline component 611.
[0184] Step 905: The offline component 611 receives a database resource provisioning request sent by the unified deployment tool.
[0185] The database resource issuance request is used to request issuance of database resources required by the database management and control service 610 .
[0186] Step 906: The offline component 611 performs identity verification on the database resource issuance request.
[0187] Step 907: The offline component 611 returns a verification passed message to the unified deployment tool.
[0188] Step 908: The offline component 611 creates a virtual machine in the resource pool.
[0189] The offline component 611 obtains the first database resource in the resource pool of the management area, and creates a third virtual machine on the M0 layer on which the database management and control service 610 depends.
[0190] Among them, the specific implementation method of step 908 can refer to the relevant description of the above step 804, and the embodiment of the present application will not be repeated here.
[0191] Step 909: The resource pool returns a creation completion message to the offline component 611.
[0192] Step 910: Offline component 611 calls proxy component 613 to initialize database resources.
[0193] The offline component 611 calls the proxy component 613 to initialize the non-dependent database resource of the M1 layer on the third virtual machine and use it as the second database resource required by the database management service 610 itself, thereby obtaining the created database management service 610. The created database management service 610 includes the online component 612.
[0194] Among them, the specific implementation method of step 910 can refer to the relevant description of the above step 806, and the embodiment of the present application will not be repeated here.
[0195] Step 911: The proxy component 613 returns a message indicating that initialization is completed to the offline component 611.
[0196] Step 912: The offline component 611 creates an offline task.
[0197] Among them, the specific implementation method of step 912 can refer to the relevant description of the above step 808, and the embodiment of the present application will not be repeated here.
[0198] Step 913: Offline component 611 calls proxy component 613 to manage resources.
[0199] The offline component 611 calls the proxy component 613 to manage the first database resource and the second database resource as offline resources.
[0200] Among them, the specific implementation method of step 913 can refer to the relevant description of the above step 809, and the embodiment of the present application will not be repeated here.
[0201] Step 914: The proxy component 613 returns a message indicating that the management is completed to the offline component 611.
[0202] Step 915: The offline component 611 returns a message to the unified deployment tool indicating that the database management and control service 610 has been created.
[0203] Based on the above Fig. 9 As described in steps 901 to 915, the database management service 610 of the embodiment of the present application includes an offline component 611 and an agent component 613, which can realize offline management of pre-dependent database resources in the management area. The online component 612 and the agent component 613 included in the database management service 610 can realize online distribution of non-dependent data resources in the management area and the tenant area. The differences between different scenarios are shielded by the offline component 611 and the online component 612, and the calling capability of the agent component 613 is reused to the greatest extent, which greatly reduces the business layer processing logic, makes it impossible for users to perceive the differences and changes in scenarios, and facilitates the expansion and maintenance of the cloud platform 600.
[0204] The above describes in detail the database resource management method provided by the embodiment of the present application. Fig.10 , describing the database resource management device provided by this embodiment.
[0205] Fig.10 Schematic diagram of a database resource management device provided in an embodiment of the present application. The database resource management device 1000 can be used to implement the database resource management function of the cloud platform 500 or the cloud platform 600 in the above method embodiment, so as to achieve the beneficial effects of the above method embodiment. In this embodiment, the database resource management device 1000 can be Figure 7 A cloud platform 500 for implementing a database resource management function, or Figure 8 and Fig. 9 A cloud platform 600 is used to implement database resource management functions.
[0206] The database resource management device 1000 includes a receiving module 1001 and a management module 1002 .
[0207] The receiving module 1001 is used to receive a first service request; the first service request includes a first service identifier, and the first service identifier is used to indicate the cloud service running at the nth layer of the cloud platform. Figure 7 Step 701 in .
[0208] Management module 1002 is used to determine the target component for executing the first business request in the database management service according to the correspondence between the nth layer and the resource type of the database resource; when the nth layer corresponds to the pre-dependent database resource, the target component is the offline deployment component, and when the nth layer corresponds to the non-dependent database resource, the target component is the online deployment component; the target component calls the proxy component to perform offline mixed deployment to obtain the database resource that the cloud service running at the nth layer depends on; the configuration parameters of the pre-dependent database resource after deployment and the non-dependent database resource after deployment are consistent. For example, management module 1002 is used to execute the above Figure 7 Step 702 and step 703 in .
[0209] As a possible implementation method, the target component is an offline deployment component, and the management module 1002 is specifically used to obtain resources in the resource pool of the management area through the offline deployment component to create a first virtual machine for a first business request; the offline deployment component calls the proxy component to initialize the database resources of the pre-dependent n-th layer, and obtains the pre-dependent database resources after the n-th layer is initialized, and manages them as offline requested resources.
[0210] As a possible implementation method, the offline deployment component is connected to the internal request interface of the database management service; the receiving module 1001 is specifically used to receive the first business request for the cloud service running at the nth layer through the internal request interface; the nth layer is located in the management area, and the nth layer corresponds to the pre-dependent database resources.
[0211] As a possible implementation method, the target component is an online deployment component, and the nth layer is located in the management area; the management module 1002 is specifically used to obtain resources in the resource pool of the management area through the online deployment component, and create a first virtual machine for a first business request; the online deployment component calls the proxy component to initialize the non-dependent database resources of the nth layer, and obtains the non-dependent database resources after the nth layer is initialized, and issues them as online requested resources.
[0212] As a possible implementation method, the target component is the online deployment component, and the nth layer is located in the tenant area; the management module 1002 is specifically used to obtain resources in the resource pool of the tenant area through the online deployment component, and create a first virtual machine for the first business request; the online deployment component calls the proxy component to initialize the non-dependent database resources of the nth layer, and obtains the non-dependent database resources after the nth layer is initialized, and issues them as online requested resources.
[0213] As a possible implementation method, the online deployment component is connected to the internal interface and external interface of the database management and control service; the receiving module 1001 is specifically used to receive the first business request for the cloud service running on the nth layer through the internal request interface when the nth layer is located in the management area; when the nth layer is located in the tenant area, the first business request for the cloud service running on the nth layer is received through the external request interface; the nth layer corresponds to non-dependent database resources.
[0214] As a possible implementation method, the first business request includes user information; the management module 1002 is also used to verify the identity of the user information through the target component; if the verification passes, the target component calls the proxy component to perform offline mixed deployment of the database resources of the nth layer.
[0215] As a possible implementation, the cloud platform includes an offline deployment component and an agent component, and the cloud platform does not run a database management and control service; the device also includes:
[0216] Construction module 1003 is used to obtain resources in the resource pool of the management area through the offline deployment component to create a second virtual machine; call the proxy component through the offline deployment component to initialize the pre-dependent database resources on the second virtual machine to obtain the first database resources; the first database resources are the resources required for creating the virtual machine; obtain the first database resources in the resource pool of the management area through the offline deployment component to create three virtual machines, and the database management and control service depends on the third virtual machine for operation; call the proxy component through the offline deployment component to initialize the second database resources on the third virtual machine to obtain the created database management and control service; the second database resources are the database resources required by the database management and control service itself, and the database management and control service includes the online deployment component.
[0217] Among them, the receiving module 1001, the management module 1002 and the construction module 1003 can all be implemented by software, or can be implemented by hardware. Exemplarily, the implementation of the receiving module 1001 is introduced below by taking the receiving module 1001 as an example. Similarly, the implementation of the management module 1002 and the construction module 1003 can refer to the implementation of the receiving module 1001.
[0218] As an example of a software functional unit, the receiving module 1001 may include code running on a computing instance. The computing instance may include at least one of a physical host (computing device), a virtual machine, and a container. Furthermore, the computing instance may be one or more. For example, the receiving module 1001 may include code running on multiple hosts / virtual machines / containers. It should be noted that the multiple hosts / virtual machines / containers used to run the code may be distributed in the same region or in different regions. Furthermore, the multiple hosts / virtual machines / containers used to run the code may be distributed in the same availability zone (AZ) or in different AZs, each AZ including one data center or multiple data centers with similar geographical locations. Generally, a region may include multiple AZs.
[0219] Similarly, multiple hosts / virtual machines / containers used to run the code can be distributed in the same virtual private cloud (VPC) or in multiple VPCs. Usually, a VPC is set up in a region. For cross-region communication between two VPCs in the same region and between VPCs in different regions, a communication gateway needs to be set up in each VPC to achieve interconnection between VPCs through the communication gateway.
[0220] As an example of a hardware functional unit, the receiving module 1001 may include at least one computing device, such as a server, etc. Alternatively, the receiving module 1001 may also be a device implemented using an application-specific integrated circuit (ASIC) or a programmable logic device (PLD). The PLD may be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.
[0221] The multiple computing devices included in the receiving module 1001 can be distributed in the same region or in different regions. The multiple computing devices included in the receiving module 1001 can be distributed in the same AZ or in different AZs. Similarly, the multiple computing devices included in the receiving module 1001 can be distributed in the same VPC or in multiple VPCs. The multiple computing devices can be any combination of computing devices such as servers, ASICs, PLDs, CPLDs, FPGAs, and GALs.
[0222] It should be noted that, in other embodiments, the receiving module 1001 can be used to execute any step in the database resource management method, the management module 1002 can be used to execute any step in the database resource management method, and the construction module 1003 can be used to execute any step in the database resource management method. The steps that the receiving module 1001, the management module 1002, and the construction module 1003 are responsible for implementing can be specified as needed. The full functions of the database resource management device 1000 are realized by respectively implementing different steps in the database resource management method through the receiving module 1001, the management module 1002, and the construction module 1003.
[0223] The present application also provides a computing device 1100 . Fig.11 A schematic diagram of a computing device provided in an embodiment of the present application is shown in FIG. Fig.11 As shown, the computing device 1100 includes: a bus 1102, a processor 1104, a memory 1106, and a communication interface 1108. The processor 1104, the memory 1106, and the communication interface 1108 communicate through the bus 1102. The computing device 1100 can be a server or a terminal device. It should be understood that the present application does not limit the number of processors and memories in the computing device 1100.
[0224] The bus 1102 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.11 The bus 1102 may include a path for transmitting information between various components of the computing device 1100 (eg, the memory 1106, the processor 1104, and the communication interface 1108).
[0225] The processor 1104 may include any one or more processors such as a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).
[0226] The memory 1106 may include a volatile memory, such as a random access memory (RAM). The processor 1104 may also include a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD), or a solid state drive (SSD).
[0227] The memory 1106 stores executable program codes, and the processor 1104 executes the executable program codes to respectively implement the functions of the aforementioned receiving module 1001, the management module 1002, and the construction module 1003, thereby implementing the database resource management method. That is, the memory 1106 stores instructions for executing the database resource management method.
[0228] The communication interface 1108 uses a transceiver module such as, but not limited to, a network interface card or a transceiver to implement communication between the computing device 1100 and other devices or a communication network.
[0229] The embodiment of the present application also provides a computing device cluster. The computing device cluster includes at least one computing device. The computing device can be a server, such as a central server, an edge server, or a local server in a local data center. In some embodiments, the computing device can also be a terminal device such as a desktop computer, a laptop computer, or a smart phone.
[0230] Fig.12 A schematic diagram of a computing device cluster provided in an embodiment of the present application is shown in FIG. Fig.12 As shown, the computing device cluster includes at least one computing device 1100. The memory 1106 in one or more computing devices 1100 in the computing device cluster may store the same instructions for executing the database resource management method.
[0231] In some possible implementations, the memory 1106 of one or more computing devices 1100 in the computing device cluster may also store some instructions for executing the database resource management method. In other words, the combination of one or more computing devices 1100 may jointly execute the instructions for executing the database resource management method.
[0232] It should be noted that the memory 1106 in different computing devices 1100 in the computing device cluster can store different instructions, which are respectively used to execute part of the functions of the database resource management device. That is, the instructions stored in the memory 1106 in different computing devices 1100 can implement the functions of one or more modules in the receiving module 1001, the management module 1002, and the construction module 1003.
[0233] In some possible implementations, one or more computing devices in the computing device cluster may be connected via a network, which may be a wide area network or a local area network. Fig.13 A possible implementation is shown. Fig.13 A schematic diagram of a structure of a computing device connected via a network provided in an embodiment of the present application, such as Fig.13As shown, two computing devices 1100A and 1100B are connected via a network. Specifically, the network is connected via a communication interface in each computing device. In this type of possible implementation, the memory 1106 in the computing device 1100A stores instructions for executing the functions of the receiving module 1001. At the same time, the memory 1106 in the computing device 1100B stores instructions for executing the functions of the management module 1002 and the construction module 1003.
[0234] Fig.13 The connection method between the computing device clusters shown may be that considering that the database resource management method provided in this application requires the construction and use of database management services, it is considered that the functions implemented by the management module 1002 and the construction module 1003 are handed over to the computing device 1100B for execution.
[0235] It should be understood that Fig.13 The functions of the computing device 1100A shown in FIG. 1100A may also be completed by multiple computing devices 1100. Similarly, the functions of the computing device 1100B may also be completed by multiple computing devices 1100.
[0236] The embodiment of the present application also provides a computer program product including instructions. The computer program product may be software or a program product including instructions that can be run on a computing device or stored in any available medium. When the computer program product is run on at least one computing device, the at least one computing device executes the database resource management method.
[0237] The embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium that can be stored by a computing device or a data storage device such as a data center that contains one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk). The computer-readable storage medium includes instructions that instruct the computing device to execute the database resource management method.
[0238] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the protection scope of the technical solutions of the embodiments of the present invention.
Claims
1. A database resource management method, characterized in that: Applied to a cloud platform, the cloud platform runs a database management and control service, the database management and control service includes an offline deployment component, an online deployment component and an agent component, the offline deployment component is used to manage offline resources, the online deployment component is used to distribute online resources, the online deployment component is connected to the resource pool of the management area and the tenant area, the offline resources include the pre-dependent database resources of the management area, and the online resources include the non-dependent database resources of the management area and the tenant area; the method includes: Receiving a first business request; the first business request includes a first service identifier, and the first service identifier is used to indicate a cloud service running at the nth layer of the cloud platform; Determine, according to the correspondence between the nth layer and the resource type of the database resource, a target component for executing the first business request in the database management and control service; when the nth layer corresponds to the pre-dependent database resource, the target component is the offline deployment component, and when the nth layer corresponds to the non-dependent database resource, the target component is the online deployment component; The target component calls the proxy component to perform offline mixed deployment to obtain the database resources that the cloud service running at the nth layer depends on; the configuration parameters of the pre-dependent database resources after deployment are consistent with the non-dependent database resources after deployment.
2. The method according to claim 1, characterized in that The target component is the offline deployment component; the step of calling the proxy component through the target component to perform offline mixed deployment to obtain the database resources that the cloud service running at the nth layer depends on includes: Acquire resources in a resource pool of the management area through the offline deployment component, and create a first virtual machine requested by the first service; The proxy component is called by the offline deployment component to initialize the pre-dependent database resources of the nth layer, and the pre-dependent database resources after the nth layer is initialized are obtained and managed as offline resources to be requested.
3. The method according to claim 2, characterized in that The offline deployment component is connected to the internal request interface of the database management and control service; the receiving the first business request includes: The offline deployment component receives the first business request for the cloud service running on the nth layer through the internal request interface; the nth layer is located in the management area, and the nth layer corresponds to a pre-dependent database resource.
4. The method according to claim 1, characterized in that: The target component is the online deployment component, and the nth layer is located in the management area; the target component calls the proxy component to perform offline mixed deployment to obtain the database resources that the cloud service running at the nth layer depends on, including: Acquire resources in a resource pool of the management zone through the online deployment component, and create a first virtual machine requested by the first service; The online deployment component calls the proxy component to initialize the non-dependent database resources of the nth layer, obtains the initialized non-dependent database resources of the nth layer, and issues them as online resources to be requested.
5. The method according to claim 1, characterized in that The target component is the online deployment component, and the nth layer is located in the tenant area; the step of calling the proxy component through the target component to perform offline mixed deployment to obtain the database resources that the cloud service running at the nth layer depends on includes: Acquire resources in the resource pool of the tenant zone through the online deployment component, and create a first virtual machine requested by the first service; The online deployment component calls the proxy component to initialize the non-dependent database resources of the nth layer, obtains the initialized non-dependent database resources of the nth layer, and issues them as online resources to be requested.
6. The method according to claim 4 or 5, characterized in that: The online deployment component is connected to the internal interface and the external interface of the database management and control service; the receiving the first service request includes: In the case where the nth layer is located in the management area, the online deployment component receives, through the internal request interface, a first business request for a cloud service running at the nth layer; In the case where the nth layer is located in the tenant area, the online deployment component receives a first business request for a cloud service running on the nth layer through the external request interface; the nth layer corresponds to a non-dependent database resource.
7. The method according to claim 1, characterized in that The first service request includes user information; before the target component calls the proxy component to perform offline mixed deployment to obtain the database resources that the cloud service running at the nth layer depends on, the method further includes: Performing identity verification on the user information through the target component; When the verification is passed, the target component calls the proxy component to perform offline mixed deployment to obtain the database resources that the cloud service running at the nth layer depends on.
8. The method according to claim 1, characterized in that The cloud platform includes the offline deployment component and the proxy component, and the cloud platform does not run the database management and control service; the creation process of the database management and control service includes: Acquire resources in the resource pool of the management area through the offline deployment component to create a second virtual machine; Calling the proxy component through the offline deployment component, initializing the pre-dependent database resources on the second virtual machine, and obtaining the first database resources; the first database resources are the resources required to create the virtual machine; Acquire the first database resource in the resource pool of the management zone through the offline deployment component, create a third virtual machine, and the database management and control service runs dependent on the third virtual machine; The proxy component is called by the offline deployment component, and a second database resource is initialized on the third virtual machine to obtain the created database management and control service; the second database resource is the database resource required by the database management and control service itself, and the database management and control service includes the online deployment component.
9. A database resource management device, characterized in that: Applied to a cloud platform, the cloud platform runs a database management and control service, the database management and control service includes an offline deployment component, an online deployment component and an agent component, the offline deployment component is used to manage offline resources, the online deployment component is used to distribute online resources, the online deployment component is connected to the resource pool of the management area and the tenant area, the offline resources include the pre-dependent database resources of the management area, and the online resources include the non-dependent database resources of the management area and the tenant area; the device includes: A receiving module, configured to receive a first service request; the first service request includes a first service identifier, and the first service identifier is used to indicate a cloud service running at the nth layer of the cloud platform; A management module is used to determine the target component for executing the first business request in the database management service according to the corresponding relationship between the nth layer and the resource type of the database resource; when the nth layer corresponds to the pre-dependent database resource, the target component is the offline deployment component, and when the nth layer corresponds to the non-dependent database resource, the target component is the online deployment component; the proxy component is called by the target component to perform offline mixed deployment to obtain the database resource that the cloud service running at the nth layer depends on; the configuration parameters of the pre-dependent database resource after deployment and the non-dependent database resource after deployment are consistent.
10. A computing device cluster, characterized in that: comprising at least one computing device, each computing device comprising a processor and a memory; The processor of the at least one computing device is configured to execute instructions stored in the memory of the at least one computing device, so that the computing device cluster executes the method according to any one of claims 1 to 8.
11. A computer program product comprising instructions, characterized in that When the instructions are executed by a computing device cluster, the computing device cluster is caused to perform the method according to any one of claims 1 to 8.
12. A computer-readable storage medium, characterized in that: The method comprises computer program instructions. When the computer program instructions are executed by a computing device cluster, the computing device cluster performs the method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Resource allocation method, device and equipment
CN110647394A
Cloud platform resource management method and system and electronic equipment
CN115904478A