Resource calling method and system and related equipment
By introducing resource calling methods in the cloud service system, decoupling the service layer and resource pool, the problems of high maintenance costs and poor compatibility in the existing technology are solved, and lower operation and maintenance difficulties and higher compatibility are achieved.
Patent Information
- Application Number
- CN202311278732.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-09-01
- Filing Date
- 2023-09-28
- Publication Date
- 2025-03-04
AI Technical Summary
The existing cloud service system has not been effectively solved by the problem of high maintenance costs, especially due to the interface binding between the business layer and the resource pool, which leads to increased operation and maintenance difficulties and poor compatibility.
By introducing resource calling methods in the cloud service system, the request issuance interface between the business layer and the adaptation layer is used to decouple the service layer and the resource pool. The adaptation layer selects the appropriate calling interface according to the resource call request, thereby calling cloud service resources from the resource pool.
It realizes decoupling between the business layer and the resource pool, reduces the difficulty of operation and maintenance of the cloud service system, and improves the compatibility and scalability of the system.
Smart Images

Figure CN119561986A_ABST
Abstract
Description
[0001] This application claims the priority of the Chinese patent application filed with the State Intellectual Property Office on September 1, 2023, with application number 202311122210.3 and invention name “A database management method, device and computing device cluster”, all contents of which are incorporated by reference in this application. Technical Field
[0002] The present application relates to the field of data processing technology, and in particular to a resource calling method, system and related equipment. Background Art
[0003] With the development of computer technology, cloud service technology has been widely used. Users can initiate requests to cloud service systems to call on the resources provided by cloud service providers to process data. In this way, using cloud resources to process data reduces the requirements for user local devices and increases the speed of data processing.
[0004] In some scenarios, the cloud service system includes a business layer, an adaptation layer, and a resource layer. The resource layer is used to provide the resources required in the data processing process. If there are cloud services of multiple business types, the adaptation layer and the resource layer can each include multiple interfaces. The interface of the adaptation layer is bound to the interface of the resource layer, and different interfaces can correspond to cloud services of different business types. Accordingly, the business layer can determine the interface corresponding to the adaptation layer according to the requested business type.
[0005] However, the above cloud service system has the problem of high maintenance cost. Summary of the invention
[0006] In view of this, the present application provides a resource calling method for decoupling the business layer and resource pool of a cloud service system. The present application also provides a corresponding system, a computing device cluster, a computer-readable storage medium, and a computer program product.
[0007] In a first aspect, the present application provides a resource calling method, which can be applied to a cloud service system. The cloud service system includes a business layer and an adaptation layer. Specifically, when executing the resource calling method, the business layer can first obtain a first resource creation request of a first user. Among them, the first user is a user of a first resource pool, and the first resource creation request is used to create a first cloud service product. Then, the business layer can send a first resource calling request to the adaptation layer through a request sending interface between the business layer and the adaptation layer. The first resource calling request is determined according to the first resource creation request and is used to call a first cloud service resource. The first cloud service resource corresponds to the first cloud service product, and the first cloud service product can be provided to the user by calling the first cloud service resource. After obtaining the first resource calling request through the request sending interface, the adaptation layer can select a first calling interface that matches the type of the first cloud service resource, so as to call the first cloud service resource from the first resource pool through the first calling interface. Optionally, the adaptation layer can call the hardware resources provided by the first resource pool through the first calling interface to implement the first cloud service resource. That is, the adaptation layer can determine the corresponding first calling interface according to the type of the first freight resource, and the business layer does not need to determine the interface according to the type of the first cloud service resource. In this way, the resource pool interface is decoupled from the business layer, and the business layer is unaware of the resource pool interface. In this way, adjustments to the resource pool and adaptation layer will not affect the business layer, reducing the difficulty of operation and maintenance of the cloud service system.
[0008] In some possible implementations, the request sending interface can be used to send resource call requests corresponding to multiple cloud service resources. Specifically, the business layer can also receive a second resource creation request sent by a second user. The second resource creation request is used to create a second cloud service product. The second cloud service product can be implemented based on the second cloud service resource. The second user is a user of the second resource pool. Accordingly, after obtaining the second resource creation request, the second resource call request can be determined based on the second resource creation request, and the second resource call request can be sent to the adaptation layer through the request sending interface. The adaptation layer can select a second call interface that matches the type of the second cloud service resource based on the second resource call request, thereby calling the second cloud service resource from the first resource pool through the second call interface.
[0009] In some possible implementations, the first resource call request may include identification information of the first resource pool. The identification information of the first resource pool is used to identify the first resource pool. Accordingly, when selecting the first call interface, the adaptation layer may first determine the first resource pool according to the identification information of the first resource pool in the first resource call request, and then select the first call interface that matches the type of the first cloud service from the first access interface. In this way, the resource pool corresponding to the interface can be specified.
[0010] In some possible implementations, the identification information of the first resource pool may be added by the business layer in the first resource call request. Specifically, after receiving the first resource creation request of the first user, the business layer may authenticate the first resource creation request. If the authentication is successful, the business layer may add the identification information of the first resource pool in the first resource call request. In this way, the business layer may determine the resource pool according to information such as the first user.
[0011] In some possible implementations, the cloud service system may include multiple resource pools. Specifically, if the cloud service system also includes a second resource pool, the business layer may also receive a third resource creation request from a third user, the third resource creation request is used to create a third cloud service product, and the third user is a user of the second resource pool. Then, the business layer may send a third resource call request to the adaptation layer through a request receiving interface, and the third resource call request is used to call a third cloud service resource corresponding to the third cloud service product. In response to the third resource call request, the adaptation layer may select a third call interface that matches the type of the third cloud service resource, thereby calling the third cloud service resource from the second resource pool through the third call interface. In this way, the business layer can correspond to multiple resource pools, thereby improving the compatibility of the cloud service system.
[0012] In some possible implementations, cloud service resources are implemented through computing resources, network resources, and storage resources. Accordingly, the cloud service system can determine the configuration of computing resources, network resources, and storage resources through a resource data model. Specifically, if the adaptation layer receives a first resource call request, the adaptation layer can determine the configuration of the computing resources, network resources, and storage resources included in the first cloud service resource based on the resource data model. If the adaptation layer receives a second resource call request, the adaptation layer can determine the configuration of the computing resources, network resources, and storage resources included in the second cloud service resource based on the resource data model. If the adaptation layer receives a third resource call request, the adaptation layer can determine the configuration of the computing resources, network resources, and storage resources included in the third cloud service resource based on the resource data model.
[0013] In a second aspect, the present application provides a resource calling system, the method is applied to a cloud service system, the resource calling system includes a business layer and an adaptation layer; the business layer is used to receive a first resource creation request from a first user, the first resource creation request is used to create a first cloud service product, and the first user is a user of a first resource pool; the first resource calling request is sent to the adaptation layer through a request sending interface, and the first resource calling request is used to call a first cloud service resource corresponding to the first cloud service product; the adaptation layer is used to respond to the first resource calling request and select a first calling interface that matches the type of the first cloud service resource; the adaptation layer calls the first cloud service resource from the first resource pool through the first calling interface.
[0014] In some possible implementations, the business layer is further used to receive a second resource creation request from a second user, where the second resource creation request is used to create a second cloud service product, and the second user is a user of the first resource pool; a second resource call request is sent to the adaptation layer through the request sending interface, where the second resource call request is used to call a second cloud service resource corresponding to the second cloud service product, and the type of the second cloud service resource is different from the type of the first cloud service resource; the adaptation layer is further used to respond to the second resource call request and select a second call interface that matches the type of the second cloud service resource; the adaptation layer calls the second cloud service resource from the first resource pool through the second call interface.
[0015] In some possible implementations, the first resource call request includes identification information of the first resource pool; the adaptation layer is also used to determine, based on the identification information of the first resource pool, to select a first call interface that matches the type of the first cloud service resource from the interfaces of the first resource pool.
[0016] In some possible implementations, the business layer is further used to authenticate the first resource creation request after receiving the first resource creation request from the first user, and if the authentication is successful, add the identification information of the first resource pool to the first resource call request.
[0017] In some possible implementations, the business layer is further used to receive a third resource creation request from a third user, where the third resource creation request is used to create a third cloud service product, and the third user is a user of the second resource pool; a third resource call request is sent to the adaptation layer through the request receiving interface, where the third resource call request is used to call a third cloud service resource corresponding to the third cloud service product; the adaptation layer is further used to select a third call interface that matches the type of the third cloud service resource in response to the third resource call request; and the third cloud service resource is called from the second resource pool through the third call interface.
[0018] In some possible implementations, the adaptation layer is further used to respond to the first resource call request and determine the configuration of the computing resources, network resources, and storage resources included in the first cloud service resource according to the resource data model; respond to the second resource call request and determine the configuration of the computing resources, network resources, and storage resources included in the second cloud service resource according to the resource data model; respond to the third resource call request and determine the configuration of the computing resources, network resources, and storage resources included in the third cloud service resource according to the resource data model.
[0019] In a third aspect, the present application provides a computing device cluster, wherein the computing device includes at least one computing device, and the at least one computing device includes at least one processor and at least one memory; the at least one memory is used to store instructions, and the at least one processor executes the instructions stored in the at least one memory, so that the computing device cluster executes the data retrieval method in the above-mentioned second aspect or any possible implementation of the second aspect. It should be noted that the memory can be integrated into the processor or can be independent of the processor. The at least one computing device may also include a bus. The processor is connected to the memory via a bus. The memory may include a readable memory and a random access memory.
[0020] In a fourth aspect, the present application provides a computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is executed on at least one computing device, the at least one computing device executes the method described in the first aspect or any one of the implementations of the first aspect.
[0021] In a fifth aspect, the present application provides a computer program product comprising instructions, which, when executed on at least one computing device, enables the at least one computing device to execute the method described in the first aspect or any one of the implementations of the first aspect.
[0022] 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
[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0024] Figure 1 A schematic diagram of an architecture of an application scenario provided in an embodiment of the present application;
[0025] Figure 2 An interactive schematic diagram of a resource calling method provided in an embodiment of the present application;
[0026] Figure 3 A schematic diagram of the structure of an information sending device provided in an embodiment of the present application;
[0027] Figure 4 A schematic diagram of a structure of a resource calling device provided in an embodiment of the present application;
[0028] Figure 5 A schematic diagram of a structure of a computing device provided in an embodiment of the present application;
[0029] Figure 6 A schematic diagram of a structure of a computing device cluster provided in an embodiment of the present application;
[0030] Figure 7 A schematic diagram of an implementation method of a computing device cluster provided in an embodiment of the present application. DETAILED DESCRIPTION
[0031] The scheme in the embodiments provided in this application will be described below in conjunction with the drawings in this application.
[0032] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances. This is just a way of distinguishing objects with the same attributes when describing the embodiments of this application.
[0033] With the development of cloud service technology, there are currently many types of cloud service products. For example, cloud service products of various business types may include cloud database service products, cloud computing service products, etc. For cloud service products of the same business type, different levels of cloud service products may also be provided. For example, for cloud database service products, various types of cloud service products may be provided based on the performance of the cloud database. Optionally, the cloud service system may provide various types of cloud service products, such as high-performance cloud database service products, low-performance cloud database service products, and enhanced cloud database service products.
[0034] Currently, cloud service products can be implemented by calling cloud service resources. Cloud service resources are resources provided by the cloud service system. Different cloud service products can be implemented by calling different types and / or quantities of cloud service resources. For example, for cloud service products of the same business type, the cloud service resources called by high-performance cloud service products can be more than the cloud service resources called by low-performance cloud service products. Alternatively, the performance of cloud service resources called by high-performance cloud service products can be stronger than the performance of cloud service resources called by low-performance cloud service products. Among them, cloud service resources can include virtualized resources, containerized resources, and bare metal resources.
[0035] The cloud service system can include a client and a server. The client can be installed on the device used by the user, such as the user's mobile phone, computer and other terminal devices. The server can include a business layer, an adaptation layer and a resource layer. Cloud service resources can be realized through the hardware resources provided by the resource pool. The resource layer can also be called a resource pool, which can provide the hardware resources required in the data processing process. In the cloud native scenario, the resource layer can also be called the cloud native resource pool platform base. Among them, hardware resources can include computing resources, storage resources and network resources.
[0036] In order to facilitate information exchange between the business layer, the adaptation layer and the resource pool, the adaptation layer can provide multiple interfaces to the business layer. The resource pool can provide multiple interfaces to the adaptation layer. For ease of explanation, the interface provided by the adaptation layer is referred to as the first type interface, and the interface provided by the resource pool is referred to as the second type interface.
[0037] Specifically, the user can send a creation request to the server through the client, and the creation request is used to create a cloud service product. After obtaining the creation request, the business layer can parse the creation request to determine the corresponding cloud service resources. By calling the above-mentioned cloud service resources, the cloud service product that the user needs to create can be implemented. Then, the business layer can select the first class interface corresponding to the cloud service resource and send a call request to the adaptation layer. The adaptation layer can select a suitable second class calling interface based on the call request and the first class interface for receiving the call request, and call the cloud service resource from the resource pool. Specifically, the adaptation layer can call the hardware resources in the first resource pool through the second class interface to implement the corresponding cloud service resources.
[0038] Currently, the second type of interface is bound to the cloud service resource, and the first type of interface is bound to the second type of interface. That is, the adaptation layer can call specific cloud service resources through the specific interface provided by the business layer, and the business layer can instruct the business layer to call specific cloud service resources through the specific interface.
[0039] Specifically, the resource pool can provide multiple second-class interfaces to the adaptation layer, and each second-class interface corresponds to a type of cloud service resource. The adaptation layer can provide multiple first-class interfaces to the business layer, and each first-class interface corresponds to a second-class interface, which also corresponds to a type of cloud service resource. In addition, the first-class interface provided by the adaptation layer is also bound to the resource data model. The resource data model bound to the first-class interface represents the hardware resources required to implement the cloud service resource. In this way, after obtaining the creation request sent by the user, the business layer can create a request to determine the corresponding cloud service resource, and select the first-class interface corresponding to the cloud service resource to send a request to the adaptation layer. The adaptation layer can call the cloud service resource from the corresponding second-class interface based on the first-class interface that receives the creation request, using the resource data model bound to the first-class interface.
[0040] Take an example. If the cloud service used by the user is implemented based on virtualized resources, the business layer can first determine that the user needs virtualized resources based on the creation request. Then, the business layer can determine the first-class interface corresponding to the virtualized resource from the multiple first-class interfaces provided by the adaptation layer, and send a request to the business layer through the first-class interface. In the adaptation layer, the first-class interface corresponding to the virtualized resource is bound to the second-class interface corresponding to the virtualized resource and the resource data model of the virtualized resource. Therefore, after obtaining the request through the first-class interface corresponding to the virtualized resource, the hardware resources can be called from the resource pool through the second-class interface bound to the virtualized resource according to the resource data model corresponding to the virtualized resource to realize the virtualized resource and meet the needs of the user.
[0041] Although the above implementation can realize various types of cloud services, the second-class interface provided by the resource pool is bound to the business layer through the adaptation layer, which is not convenient for the maintenance of the cloud service system. In other words, because the first-class interface is bound to the second-class interface, and the business layer needs to send requests through the first-class interface corresponding to the cloud service resource, it is equivalent to the business layer being directly associated with the resource pool. In this way, when the resource pool changes, the business layer also needs to be adjusted accordingly.
[0042] For example, if the cloud service resources are changed, such as the hardware resources that implement the cloud service resources are adjusted, then the second-class interface provided by the resource pool to the outside world is changed, and the data model and the first-class interface of the adaptation layer will also change. Since the business layer needs to determine the corresponding first-class interface based on the creation request, the business layer also needs to be adaptively adjusted after the first-class interface changes. For another example, if a new type of cloud service resource is developed, not only does it need to adjust the resource pool and the adaptation layer, but it also needs to increase the ability for the business layer to determine the first-class interface based on this type of cloud service resource.
[0043] However, the business layer is responsible for processing the business logic of the cloud service system. The system structure of the business layer is relatively complex, and adjustments to the business layer are difficult and require a lot of work.
[0044] Furthermore, in the traditional architecture, since the first type of interface is bound to the second type of interface, the adaptation layer and the resource pool are also bound to each other. The business layer can only call the hardware resources provided by the fixed resource pool, and cannot call the hardware resources provided by other resource pools. The compatibility is poor, which is not conducive to the expansion and adjustment of the cloud service system. For example, because the hardware resources that the cloud service management and control service can use come from the resource pool, and when the cloud service management and control service carries more cloud service resources, the hardware resources provided by the resource pool may not be able to meet the needs of the cloud service management and control service. In this way, resources can only be provided by increasing the resource volume of the hardware resources of the resource pool, and the hardware resources provided by other resource pools cannot be called.
[0045] Based on this, an embodiment of the present application provides a resource calling method. Among them, the resource calling method can be executed by a resource calling system in a cloud service system to realize the decoupling of a resource pool and a business layer. Among them, the resource calling system can include a business layer and an adaptation layer. In addition to the resource calling system, the cloud service system can also include at least one resource pool. Specifically, when executing the resource calling method, the business layer can first obtain a first resource creation request of a first user. Among them, the first user is a user of a first resource pool, and the first resource creation request is used to create a first cloud service product. Then, the business layer can send a first resource calling request to the adaptation layer through a request sending interface between the business layer and the adaptation layer. The first resource calling request is determined according to the first resource creation request and is used to call a first cloud service resource. The first cloud service resource corresponds to the first cloud service product, and by calling the first cloud service resource, the first cloud service product can be provided to the user. After obtaining the first resource calling request through the request sending interface, the adaptation layer can select a first calling interface that matches the type of the first cloud service resource, thereby calling the first cloud service resource from the first resource pool through the first calling interface. Optionally, the adaptation layer can call the hardware resources provided by the first resource pool through the first calling interface to implement the first cloud service resource. In other words, the adaptation layer can determine the corresponding first calling interface according to the type of the first freight resource, and the business layer does not need to determine the interface according to the type of the first cloud service resource. In this way, the interface of the resource pool is decoupled from the business layer, and the business layer does not perceive the interface of the resource pool. In this way, adjustments to the resource pool and the adaptation layer will not affect the business layer, reducing the difficulty of operation and maintenance of the cloud service system.
[0046] Furthermore, since the business layer is decoupled from the resource pool, the business layer can correspond to multiple resource pools. In this way, the business layer can use the resources provided by multiple resource pools to provide cloud services to users. Furthermore, if the resources provided by the first resource pool cannot meet the needs of the business layer, then on the one hand, the resources of the first resource pool can be increased to meet the needs of the business layer, and on the other hand, other resource pools other than the first resource pool can be introduced to provide cloud services to users through the resources provided by other resource pools.
[0047] For example, in Figure 1 In the application scenario shown, user A can use client 001 to call cloud services. Specifically, the cloud service system may include client 001 and server 200. Server 200 includes business layer 210, adaptation layer 220 and resource pool 230. Resource pool 230 provides at least two interfaces to adaptation layer 220. Figure 1In the implementation shown, the resource pool 230 provides two calling interfaces, calling interface 231 and calling interface 232, to the adaptation layer 220, and the calling interface can also be referred to as an interface. The adaptation layer 220 provides a request sending calling interface 222 to the business layer 210. Among them, the business layer 210 and the adaptation layer 220 correspond to the resource calling system provided in the embodiment of the present application. For the convenience of explanation, Figure 1 The resource calling system is not reflected.
[0048] Specifically, user A may send a first resource creation request to the server 200 through the client 001. The first resource creation request is first obtained by the business layer 210. The business layer 210 may determine a first resource call request according to the first resource creation request, and send the first resource call request to the adaptation layer 220. The adaptation layer 220 may determine a call interface 231 from a plurality of interfaces provided by the first resource pool 230 according to the first resource call request, so as to call resources in the resource pool 230 through the call interface 231, and process the first resource creation request.
[0049] like Figure 1 As shown, the business layer 210 may include a request sending device 211, and the adaptation layer may include a resource calling device 221. The request sending device 211 is used to execute the aforementioned resource calling method. The resource calling device 221 is used to execute the aforementioned resource calling method.
[0050] Specifically, the information sending device 221 may include an acquisition unit 2111 and a sending unit 2112. The resource calling device 221 may include an acquisition unit 2211, a determination unit 2212 and a calling unit 2213. Among them, the acquisition unit 2111 is used to obtain a first resource creation request. The sending unit 2112 is used to send a first resource calling request to the adaptation layer. The acquisition unit 2211 is used to obtain the first resource calling request. The determination unit 2213 is used to determine an interface according to the first resource calling request. The calling unit 2213 can call the cloud service resources in the resource pool 230 through the interface determined by the determination unit 2213, so as to provide the required cloud service products for user A.
[0051] Next, various non-limiting specific implementations of the resource calling process are described in detail.
[0052] See also Figure 2 , is a schematic diagram of a resource calling method and a flow chart of a resource calling method in an embodiment of the present application. The method can be applied to the above Figure 1 The application scenario shown in FIG. 1 may also be applied to other applicable application scenarios. Figure 1 The application scenario shown is used as an example for explanation. It should be noted that Figure 1In the application scenario shown, not only a resource pool 230 but also a resource pool 240 may be included, and the resource pool 240 may include a calling interface 241; the request sending device 211 includes not only an acquisition unit 2111 and a sending unit 2112 but also a generation unit 2113 and an audit unit 2114; the resource calling device 221 includes not only an acquisition unit 2211, a determination unit 2212 and a calling unit 2213 but also a resource determination unit 2214. In addition, the functions of each module are specifically described in the following embodiments.
[0053] Figure 2 The method shown may specifically include:
[0054] S201: The business layer 210 obtains a first resource creation request.
[0055] When a user wants to create a certain type of cloud service product, the user can call the cloud service resources provided by the cloud service system through the client so as to implement the cloud service product through the cloud service resources. Accordingly, in an embodiment of the present application, user A can call cloud service resources through the client 110. Specifically, user A can select the type of cloud service product to be created on the client 001. Optionally, user A can configure relevant information of the cloud service product. After the user completes the selection, the client 001 can send a first resource creation request to the business layer 210. Accordingly, the request sending device 211 in the business layer 210 can receive the first resource creation request through the acquisition unit 2111.
[0056] For ease of introduction, the cloud service product corresponding to the first resource creation request is referred to as the first cloud service product, and the user (i.e., user A) who sends the first resource creation request is referred to as the first user. That is, the first resource creation request is used to create the first cloud service product. Optionally, the first resource creation request may include an identifier of the first cloud service product.
[0057] In an embodiment of the present application, the first resource creation request may include relevant information of the cloud service product. For example, the first resource creation request may include the business type of the cloud service requested by user A. For another example, the first resource creation request may also include the identifier of the resource pool selected by the user. Figure 1 In a corresponding implementation manner, the first resource creation request may include identification information of the first resource pool.
[0058] After obtaining the first resource creation request, the business layer 210 may send a first resource call request to the adaptation layer. The first resource call request is a request sent by the business layer 210 to the adaptation layer 220, which is used to request the adaptation layer 220 to call a resource. Optionally, the business layer 210 may send the first resource creation request as the first resource call request to the adaptation layer 220, or the business layer 210 may generate the first resource call request according to the first resource creation request and send it to the adaptation layer 220. Optionally, the first resource call request may be generated by the generation unit 2113 in the business layer 210.
[0059] The following describes a process in which the generating unit 2113 generates a first resource calling request according to the first resource creating request.
[0060] After obtaining the first resource creation request, the generation unit 2113 can generate a first resource call request according to the first resource creation request. The first resource call request is information related to the first resource creation request. According to the foregoing introduction, the first resource creation request is used to request the creation of a cloud service product, and the first resource call request is used to request the call of a cloud service resource. In other words, the generation unit 2113 can determine the corresponding first cloud service resource according to the cloud service product requested to be created by the first resource creation request, thereby obtaining the first resource call request.
[0061] Specifically, the business layer 210 may pre-store a correspondence between cloud service products and cloud service resources. The correspondence is used to indicate which cloud service resources need to be called in order to implement the cloud service. Optionally, the above correspondence may be deployed in the business layer 210 during the launch of the cloud service product. For example, if a technician has newly developed a cloud service product, the cloud service resources required to implement the cloud service product can be determined based on the characteristics of the cloud service product, and the correspondence between the cloud service product and the cloud service resources can be generated and deployed to the business layer 210. In this way, after obtaining the first resource creation request, the generation unit 2113 can search for the first cloud service resource corresponding to the first cloud service product from the correspondence, thereby generating a corresponding first resource call request.
[0062] In an embodiment of the present application, the first resource call request may include information for identifying the first cloud service resource, for example, information for identifying the type of cloud service resource of the first cloud service resource. The identifier of the first cloud service resource is used to identify that the first resource call request is used to call the first cloud service. In this way, the adaptation layer 220 can determine that the first cloud service resource needs to be called based on the identifier of the first cloud service resource in the first resource call request. Alternatively, the first resource call request may not include information for identifying the first cloud service resource, but instead include information for identifying the first cloud service product. Accordingly, the adaptation layer 220 can determine the first cloud service resource based on the first cloud service product, thereby calling the first cloud service resource.
[0063] For ease of introduction, the following description is made by taking the first resource call request including the first cloud service resource type information as an example. The first cloud service resource type is used to identify the type of the first cloud service resource.
[0064] In the embodiment of the present application, the business layer is decoupled from the resource pool. Therefore, one business layer can correspond to multiple resource pools. Figure 1 In the corresponding implementation, the server 200 of the cloud service system may include a resource pool 230 and a resource pool 240. Accordingly, since there are multiple corresponding resource pools, the cloud service system can provide users with a service for selecting a resource pool. Specifically, relevant components for selecting a resource pool may be set on the client 001. User A may select a resource pool to be called from resource pool 230 and resource pool 240 through these components. It is understandable that if the cloud service system also includes other resource pools, user A may also select a corresponding resource pool from other resource pools.
[0065] If user A selects resource pool 230, the first resource creation request may include relevant information of resource pool 230. Accordingly, when generating the first resource call request according to the first resource creation request, the identification of resource pool 230 may be determined according to the relevant information of resource pool 230 in the first resource creation request, thereby adding the identification information of resource pool 230 to the first resource call request.
[0066] In actual application scenarios, the cloud service requested by the user may not exist, or the user may not have the authority to call the cloud service. Accordingly, in some possible implementations, the business layer 210 can audit and authenticate the first resource creation request. For example, the first resource creation request can be audited and authenticated before the first resource call request is generated. Alternatively, an audit authentication can also be performed before the first resource call request is sent. After the audit authentication is passed, the request sending device 211 can continue with subsequent operations. Optionally, the audit authentication can be implemented by the audit unit 2114.
[0067] Optionally, audit authentication may be performed based on the relevant information of the first user. The relevant information of the first user may include, for example, any one or more of the information such as the Internet Protocol (IP) address of the first user and the identity (ID) of the first user, which is used to uniquely identify the first user. Optionally, the relevant information of the first user may be carried in the first resource creation request.
[0068] The audit unit 2114 can perform an audit authentication based on the relevant information of the first user. For example, the first resource creation request may include the user identification of user A, and the audit unit 2114 can determine whether user A has the authority to call the first cloud service resource, or determine whether user A has the authority to create the first cloud service product based on the user identification of user A. For another example, the audit unit 2114 can also adjust the relevant information such as the account balance of user A according to the charging standard of the first cloud service product. In actual scenarios, the function of the audit unit 2114 can be set according to the needs of the cloud service system 200, and the embodiments of the present application are not limited to this.
[0069] Optionally, the audit unit 2114 may also determine a resource pool that the first user can use, so as to add an identifier of the resource pool in the first resource call request. Figure 2 In the corresponding implementation, user A can use resources provided by resource pool 230, but cannot use resources provided by resource pool 240. Then, audit unit 2115 can determine through audit authentication that user A can use resources provided by resource pool 230, thereby adding identification information of resource pool 230 in the first resource call request.
[0070] After the audit authentication is passed, the request sending device 211 can continue to perform subsequent processing. For example, the audit unit 2114 can send the first enabling information to the sending unit 2112, so that the sending unit 2112 sends the first resource call request to the adaptation layer 220 according to the first enabling information. Alternatively, the audit unit 2114 can also send the enabling information to the generating unit 2113, so that the information generating unit 2113 generates the first resource call request according to the enabling information.
[0071] If the audit authentication fails, the request sending device 211 may not send the first resource call request to the adaptation layer 220. Accordingly, the business layer 210 may send a cloud service creation failure message to the client 001. The client 001 may remind the user of the cloud service product creation failure through a pop-up window or other means according to the cloud service creation failure message.
[0072] After obtaining the first resource calling request, the generating unit 2113 may send the first resource calling request to the sending unit 2112 , so that the sending unit 2112 sends the first resource calling request to the adaptation layer 220 .
[0073] S202: The business layer 210 sends a first resource calling request to the adaptation layer 220 through a request sending interface.
[0074] After obtaining the first resource call request, the sending unit 2112 may send the first resource call request to the adaptation layer 220 through the request sending interface, so that the resource call device 221 in the adaptation layer 220 calls the cloud service resource according to the first resource call request to implement the cloud service product. Figure 1 and Figure 2 In the corresponding implementation, the business layer 210 can send a first resource call request to the adaptation layer 220 through the request sending interface 222.
[0075] In an embodiment of the present application, a unified and universal interface may be deployed between the business layer 210 and the adaptation layer 220, and the interface may be referred to as a request sending interface. Accordingly, the sending unit 2112 may send a first resource call request to the adaptation layer 220 through the request sending interface between the business layer 210 and the adaptation layer 220. Among them, the unified request sending interface means that the interface can be used to transmit resource calls corresponding to a variety of cloud service resources. Regardless of the type of cloud service resource requested, the resource call request generated by the request sending device 211 can be sent to the adaptation layer 220 through the request sending interface.
[0076] That is, if the business layer 210 obtains a second resource creation request sent by a second user, the second resource creation request is used to create a second cloud service product, the second cloud service product corresponds to a second cloud service resource, and the type of the second cloud service resource is different from the type of the first cloud service resource. Then the business layer 210 can generate a second resource call request according to the second resource creation request, and send the second resource call request to the adaptation layer 220 through the request sending interface 222, so that the adaptation layer 220 selects the interface corresponding to the second cloud service resource to call the second cloud service resource.
[0077] It can be seen that in the embodiment of the present application, the business layer 210 and the adaptation layer 220 can send resource call requests through a unified request sending interface (such as request sending interface 222). The business layer 210 does not need to select a specific first-class interface to send a resource call request according to the business type. In this way, even if the cloud service resources provided by the cloud service system are updated, and the adaptation layer 220 and the resource pool 230 are changed, the business layer 210 can send a resource call request to the adaptation layer 220 through the original request sending interface. In this way, the business layer and the resource pool are decoupled, so that the maintenance of the resource pool will not affect the business layer, reducing the difficulty of operation and maintenance of the cloud service system.
[0078] In some possible implementations, the business layer 210 and the adaptation layer 220 of the cloud service system can be implemented based on different devices or different device clusters. In this way, the sending unit 2112 can send a first resource call request to the adaptation layer 220 via a network message. Optionally, the business layer 210 and the adaptation layer 230 can be implemented by different computing devices in a computing device cluster. The sending unit 2112 can send a first resource call request to the computing device corresponding to the adaptation layer 220 in the computing cluster to which it belongs through the network. Accordingly, the request sending interface between the above-mentioned business layer 210 and the adaptation layer 220 can be a network interface.
[0079] Alternatively, in some other possible implementations, the business layer 210 and the adaptation layer 220 of the cloud service system may be implemented based on the same device, for example, the business layer 210 and the adaptation layer 220 of the cloud service may be software running on the same service. In this way, the sending unit 2112 may send data to the software corresponding to the adaptation layer 220 through the software interface corresponding to the adaptation layer 220. Accordingly, the request sending interface between the business layer 210 and the adaptation layer 220 may be a software interface, for example, an application programming interface (API).
[0080] S203: The adaptation layer 220 selects a first calling interface that matches the type of the first cloud service resource in response to the first resource calling request.
[0081] After the sending unit 2112 sends the first resource call request to the adaptation layer 220, the adaptation layer 220 can obtain the first resource call request and determine the first call interface according to the first resource call request. Specifically, the resource call device 221 of the adaptation layer 220 can obtain the first resource call request through the obtaining unit 2211 and determine the first call interface through the determining unit 2212.
[0082] Specifically, the determining unit 2212 can determine the first calling interface of the first resource pool according to the first cloud service resource type information in the first resource calling request. Figure 2 In the corresponding implementation, it is assumed that the first resource pool is the resource pool 230, and the first calling interface is the calling interface 231 on the first resource pool. That is, the determining unit 2213 can determine the calling interface 231 according to the first cloud service resource type information.
[0083] In an embodiment of the present application, the business layer is decoupled from the resource pool, but the call of the cloud service resources needs to be called from the resource pool through a specific interface. To this end, a determination unit 2212 can be deployed in the resource call device 221 of the adaptation layer 220, so that the call interface corresponding to the first resource call request is determined by the determination unit 2212. In this way, the adaptation layer 220 can determine the interface used to call the meta-service resource based on the information in the resource call request, without having to determine the call interface for calling the cloud service resource based on the interface for receiving the resource call request. Then even if the business layer is decoupled from the resource pool, the adaptation layer can select a suitable call interface to call the resource to process the cloud service. In this way, the normal call of the cloud service resources can be guaranteed under the premise that the business layer is decoupled from the resource pool, and the user's creation of cloud service products will not be affected.
[0084] As can be seen from the foregoing description, the first resource call request may include the first cloud service resource type information. Accordingly, in some possible implementations, the first call interface may be determined according to the first cloud service resource type information.
[0085] Specifically, the correspondence between the calling interface and the identifier of the cloud service resource type information can be pre-configured in the adaptation layer 220. The correspondence includes the correspondence between the first cloud service resource type information and the calling interface 231. Among them, the correspondence may include the correspondence between the identifier of the interface and the identifier of the business type. The identifier of the calling interface may include, for example, the name of the calling interface, the ID of the calling interface, and other information used to uniquely identify the calling interface.
[0086] Accordingly, after obtaining the first resource call request, the determining unit 2212 can parse the first cloud service resource type information from the first resource call request. Then, according to the first cloud service resource type information, the calling interface corresponding to the first cloud service resource type information can be searched from the pre-configured corresponding relationship to determine the corresponding calling interface 231.
[0087] In this way, if the resource pool 230 changes and the calling interface 231 is cancelled or changed, it is only necessary to modify the corresponding relationship in the adaptation layer 220, and the adaptation layer 220 can call the cloud service resources through the correct calling interface to implement the cloud service product. In this way, there is no need to modify the business layer 210, which reduces the difficulty of maintaining the cloud service system.
[0088] As described above, since the business layer is decoupled from the resource pool, the server of the cloud service system can correspond to multiple resource pools, and each resource pool can include one or more call interfaces. Optionally, the functions of the call interfaces corresponding to different resource pools may be different or the same.
[0089] If the functions of the calling interfaces corresponding to different resource pools are different, one type of cloud service resource corresponds to one interface. The cloud service resource with the first cloud service resource type information can only be called through the first calling interface, and cannot be called through other interfaces. In this way, since there is a one-to-one relationship between the service type and the interface, the first calling interface can be determined only based on the first cloud service resource type information in the first resource calling request.
[0090] In some other possible implementations, interfaces with similar functions may exist in different resource pools. For example, the calling interface 231 in the resource pool 230 and the calling interface 241 in the resource pool 240 may correspond to the same type of cloud service resources. The first cloud service resource can be called through both the calling interface 231 and the calling interface 241. The first cloud service resource type information may correspond to multiple calling interfaces. In this way, the determination unit 2212 can also determine the first calling interface in combination with the first cloud service resource type information and other information in the first resource call request.
[0091] Optionally, the determination unit 2212 can determine the first calling interface based on the identification information of the first resource pool and the first cloud service resource type information. Specifically, as described above, the first resource call request can include the identification information of the resource pool 230. In this way, when determining the first calling interface, the resource pool selected by the user (i.e., resource pool 230) can be first determined based on the first resource call request, and then the calling interface (i.e., calling interface 231) corresponding to the first cloud service resource type information can be selected from the calling interface provided by the resource pool 230. Specifically, as described above, when the service end of the cloud service system includes multiple resource pools, the user can select a resource pool on the client. Accordingly, the first resource call request can include the identification of the resource pool selected by the user, i.e., the identification information of the resource pool 230. Alternatively, the identification information of the resource pool 230 in the first resource call request can also be added to the first resource call request by the audit unit 2114 or other units.
[0092] Optionally, a corresponding relationship can be established for each resource pool. The corresponding relationship here includes the corresponding relationship between the cloud service resource type information and the call interface in the resource pool, and the corresponding relationship is also associated with the resource pool. In this way, after determining the first resource pool, the adaptation layer 220 can first search for the corresponding relationship corresponding to the first resource pool, and then determine the first call interface based on the corresponding relationship.
[0093] That is, the first resource call request may include the first cloud service resource type information and the identification information of the resource pool 230. After obtaining the first resource call request, the resource pool 230 may be first determined according to the identification information of the resource pool 230 in the first resource call request. Then, the corresponding relationship associated with the resource pool 230 may be searched, and the call interface corresponding to the first cloud service resource type information may be searched from the corresponding relationship. It is understandable that the above-mentioned corresponding relationship associated with the resource pool 230 includes the corresponding relationship between the first cloud service resource type information and the call interface 231.
[0094] In the implementation described above, the first resource pool (ie, resource pool 230) is determined based on the information of the first user, while in some other possible implementations, the first resource pool may also be determined based on other information in the first resource call request.
[0095] For example, assuming that both resource pool 230 and resource pool 240 can be used to implement the cloud service of the first cloud service resource type information, the first resource call request can also include priority information of the cloud service called by the user. Before determining the first call interface, the determination unit 2212 can determine the resource pool 230 that matches the priority information, and then determine the call interface 231 corresponding to the first cloud service resource type information from the resource pool 230.
[0096] After determining the first calling interface, the determining unit 2212 may send relevant information of the first calling interface to the calling unit 2213, so that the calling unit 2213 calls the cloud service resources in the first resource pool through the first calling interface to create a first cloud service product for the user. The relevant information of the first calling interface may include, for example, the interface name of the first calling interface and other information used to uniquely identify the first calling interface.
[0097] S204: The adaptation layer 220 calls the first cloud service resource from the first resource pool through the first calling interface.
[0098] After determining the first calling interface according to the first resource calling request, the calling unit 2213 can call the first cloud service resource from the first resource pool through the first calling interface to create the first cloud service product. After completing the creation of the first cloud service product, the server 220 can feedback the cloud service creation success information to the client 210.
[0099] That is, if the cloud service product that user A needs to create is implemented based on virtualized cloud service resources, then the first cloud service resource type information can be used to indicate the virtualized cloud service resources. Accordingly, the calling unit 2213 can call the virtualized cloud service resources in the resource pool 230 through the calling interface (i.e., calling interface 231) corresponding to the virtualized cloud service resources on the resource pool 230, thereby creating the cloud service product required by user A through the virtualized cloud service resources.
[0100] It can be seen that in the embodiment of the present application, there is no direct correspondence between the business layer 210 and the resource pool 230. In this way, the calling interface of the resource pool is decoupled from the business layer, and the business layer does not perceive the calling interface provided by the resource pool. In this way, the adjustment of the resource pool and the adaptation layer will not affect the business layer, reducing the difficulty of operation and maintenance of the cloud service system.
[0101] According to the foregoing introduction, the business layer 210 can correspond to the resource pool 230 and the resource pool 240. Assuming that the calling interface 241 provided by the resource pool 240 is used to implement the data processing corresponding to the cloud service of the second business type, then if user A (or other users) want to create a third cloud service product, then the user can trigger a third resource creation request. The business layer 210 can generate a third resource call request based on the third resource creation request, and send the third resource call request to the adaptation layer 220 through the request sending interface 222. The third resource call request may include the third cloud service resource type information corresponding to the third cloud service resource. The adaptation layer 220 can determine the calling interface 241 based on the third cloud service resource type information, and call the third cloud service resource provided by the resource pool 240 through the calling interface 241. For the specific details here, please refer to the above, which will not be repeated here.
[0102] The following describes a specific method in which the adaptation layer 220 calls cloud service resources from the resource pool.
[0103] As described above, cloud service resources can be implemented based on hardware resources, specifically computing resources, network resources, and storage resources. In actual application scenarios, the configuration of hardware resources to implement different types of cloud service resources may be different. For example, more computing resources may be required to implement a certain cloud service resource. More storage resources may be required to implement another type of cloud service resource. In addition, if the cloud service system includes multiple resource pools, the hardware resources used by different resource pools to implement the same type of cloud service resources may also be different.
[0104] Therefore, when calling a cloud service resource from a resource pool, the hardware resources corresponding to the called cloud service resource can be determined. In an embodiment of the present application, a resource data model can be pre-established in the adaptation layer 220. The resource data model is used to describe the hardware resources corresponding to the cloud service resources. Specifically, the hardware resource configuration information required to implement the cloud service resources can be abstracted in advance, and then the hardware resource configuration information can be deployed into the resource data model. In this way, after obtaining the resource call request, the corresponding hardware resource configuration information can be determined according to the cloud service resource type information, thereby calling the cloud service resource from the resource pool according to the hardware resource configuration information.
[0105] That is to say, in order to call the first cloud service resource from the resource pool 230, the hardware resource configuration information of the first cloud service resource can be predetermined. The hardware resource configuration information may include the configuration of the computing resources, network resources, and storage resources included in the first cloud service resource. According to the hardware resource configuration information of the first cloud service resource, the resource amount of the computing resources required to implement the first cloud service resource, the resource amount of the network resources required, and the resource amount of the storage resources required can be determined. After obtaining the hardware resource configuration information of the first cloud service resource, the adaptation layer 220 can call the hardware resources that meet the above hardware resource configuration information from the resource pool 230 by calling the interface 231, so as to implement the first cloud service resource through the hardware resources to realize the calling of the first cloud service resource. Optionally, the above steps can be implemented by the resource determination unit 2214 in the resource calling device 221.
[0106] In the embodiment of the present application, the resource data model may include hardware resource configuration information of multiple types of cloud service resources. Accordingly, if it is necessary to call the second cloud service resource from the resource pool, the adaptation layer 220 may search the corresponding hardware resource configuration information from the resource data model according to the type of the second cloud service resource, and thus call the hardware resource from the resource pool according to the hardware resource configuration information corresponding to the second cloud service resource.
[0107] Optionally, when the cloud service system includes multiple resource pools, the resource data model may correspond to a single resource pool or multiple resource pools. If the resource data model corresponds to a single resource pool, the adaptation layer 220 may include multiple resource data models, each resource data model corresponding to a resource pool in the cloud service system.
[0108] Alternatively, in some other possible implementations, the resource data model may also correspond to a specific cloud service resource. For example, the resource data model of the first cloud service resource may only include the hardware configuration information of the first cloud service resource. In this implementation, the resource data model of the first cloud service resource may also be bound to the first call interface. That is, after the call interface 231 is determined according to the first resource call request, the hardware resources in the resource pool 230 may be called according to the resource data model bound to the call interface 231 to implement the first cloud service resource.
[0109] The embodiment of the present application also provides an information sending device 300 and a resource calling device 400. The information sending device 300 can be applied to Figure 1 The service layer 210 in the implementation shown in the figure realizes the function of the information sending device 211; the resource calling device 400 can be applied to Figure 1 The adaptation layer 220 in the implementation shown in the figure implements the function of the resource calling device 221. Specifically, Figure 3 As shown, the information sending device 300 includes:
[0110] An acquiring unit 310 is configured to receive a first resource creation request from a first user, where the first resource creation request is used to create a first cloud service product, and the first user is a user of a first resource pool;
[0111] The sending unit 320 is used to send a first resource calling request to the adaptation layer through a request sending interface, where the first resource calling request is used to call a first cloud service resource corresponding to the first cloud service product.
[0112] Specifically, Figure 4 As shown, the resource calling device 400 includes:
[0113] The receiving unit 410 is configured to receive a first resource calling request sent by the adaptation layer through a request sending interface;
[0114] A determining unit 420 is configured to select, in response to the first resource call request, a first call interface that matches the type of the first cloud service resource;
[0115] The calling unit 430 is configured to call the first cloud service resource from the first resource pool through the first calling interface.
[0116] In actual application, the request sending device 300 and the resource calling device 400 can be implemented by software or hardware. For example, the resource calling device 400 is taken as an example to introduce the implementation of the resource calling device 400. Similarly, the implementation of the request sending device 300 can refer to the implementation of the resource calling device 400.
[0117] As an example of a software functional unit, the resource calling device 400 may include code running on a computing instance. Among them, the computing instance may include at least one of a physical host (computing device), a virtual machine, and a container. Further, the above-mentioned computing instance may be one or more. For example, the resource calling device 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 (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 a data center or multiple data centers with close geographical locations. Among them, usually a region may include multiple AZs.
[0118] It should be noted that if the cloud service system includes multiple resource pools, different resource pools may belong to different regions or AZs, or may belong to the same region or AZ.
[0119] 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.
[0120] As an example of a hardware functional unit, the resource calling device 400 may include at least one computing device, such as a server, etc. Alternatively, the resource calling device may also be a device implemented by 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.
[0121] The multiple computing devices included in the resource calling device 400 can be distributed in the same region or in different regions. The multiple computing devices included in the resource calling device can be distributed in the same AZ or in different AZs. Similarly, the multiple computing devices included in the resource calling device 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.
[0122] It should be noted that, in other embodiments, the information sending device 300 can be used to execute any step in the resource calling method, and the resource calling device 400 can be used to execute any step in the resource calling method. The steps that the information sending device 300 and the resource calling device 400 are responsible for implementing can be specified as needed. The full functions of the resource calling system can be realized by respectively implementing different steps in the resource calling method through the information sending device 300 and the resource calling device 400.
[0123] This application also provides a resource calling system, such as Figure 1 As shown, including:
[0124] The business layer 210 is configured to receive a first resource creation request from a first user, the first resource creation request is used to create a first cloud service product, and the first user is a user of a first resource pool; and to send a first resource call request to the adaptation layer through a request sending interface, the first resource call request is used to call a first cloud service resource corresponding to the first cloud service product;
[0125] The adaptation layer 220 is used to select a first calling interface that matches the type of the first cloud service resource in response to the first resource calling request; and call the first cloud service resource from the first resource pool through the first calling interface.
[0126] The resource calling system provided by the present application can be used to implement the resource calling method provided by any possible implementation method in the above method embodiment of the present application. Specifically, the specific implementation of the various operations of the resource calling method executed by the resource calling system can refer to the description of the relevant content in the above method embodiment, which will not be repeated here.
[0127] The service layer 210 and the adaptation layer 220 can be implemented by software or hardware. As an example, the implementation of the service layer 510 is introduced below. Similarly, the implementation of the adaptation layer 220 can refer to the implementation of the service layer 210.
[0128] As an example of a software functional unit, the business layer 210 may include code running on a computing instance. Among them, the computing instance may be at least one of a physical host (computing device), a virtual machine, a container and other computing devices. Furthermore, the above-mentioned computing device may be one or more. For example, the business layer 210 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 application may be distributed in the same region or in different regions. The multiple hosts / virtual machines / containers used to run the code may be distributed in the same AZ or in different AZs, and each AZ includes a data center or multiple data centers with close geographical locations. Among them, usually a region may include multiple AZs.
[0129] Similarly, multiple hosts / virtual machines / containers used to run the code can be distributed in the same 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 must be set up in each VPC to achieve interconnection between VPCs through the communication gateway.
[0130] As an example of a hardware functional unit, the service layer 210 may include at least one computing device, such as a server, etc. Alternatively, the service layer 210 may also be a device implemented using ASIC or PLD, etc. The PLD may be implemented using CPLD, FPGA, GAL or any combination thereof.
[0131] The multiple computing devices included in the business layer 210 can be distributed in the same region or in different regions. The multiple computing devices included in the business layer 210 can be distributed in the same AZ or in different AZs. Similarly, the multiple computing devices included in the business layer 210 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.
[0132] The present application also provides a computing device 100. Figure 5 As shown, the computing device 100 includes: a bus 102, a processor 104, a memory 106, and a communication interface 108. The processor 104, the memory 106, and the communication interface 108 communicate with each other through the bus 102. The computing device 100 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 100.
[0133] The bus 102 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, Figure 5 The bus 104 is represented by only one line, but does not mean that there is only one bus or one type of bus. The bus 104 may include a path for transmitting information between various components of the computing device 100 (eg, the memory 106, the processor 104, and the communication interface 108).
[0134] The processor 104 may include any one or more of a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).
[0135] The memory 106 may include a volatile memory, such as a random access memory (RAM). The processor 104 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).
[0136] The memory 106 stores executable program codes, and the processor 104 executes the executable program codes to respectively implement the functions of the aforementioned acquisition unit 2111, sending unit 2112, generation unit 2113 and audit unit 2113, thereby implementing the information sending method. That is, the memory 106 stores instructions for executing the resource calling method.
[0137] Alternatively, the memory 106 stores executable program codes, and the processor 104 executes the executable program codes to respectively implement the functions of the aforementioned acquisition unit 2211, determination unit 2212, calling unit 2213, and resource determination unit 2214, thereby implementing the resource calling method. That is, the memory 106 stores instructions for executing the resource calling method.
[0138] Alternatively, the memory 106 stores executable codes, and the processor 104 executes the executable codes to respectively implement the functions of the aforementioned information sending device 211 and resource calling device 221, thereby implementing the resource calling method. That is, the memory 106 stores instructions for executing the resource calling method.
[0139] The communication interface 103 uses a transceiver module such as, but not limited to, a network interface card or a transceiver to implement communication between the computing device 100 and other devices or a communication network.
[0140] An embodiment of the present application also provides a computing device cluster, including at least one computing device, each computing device including a processor and a memory; 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 executes the resource calling method provided by any possible implementation method of the aforementioned method embodiment.
[0141] Figure 6 is a schematic diagram of the computing device cluster, which includes at least one Figure 5The computing device 100 shown may 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 100 may also be a terminal device such as a desktop computer, a laptop computer, or a smart phone.
[0142] In some possible implementations, the memory 106 in one or more computing devices 100 in the computing device cluster may store the same instructions for executing the resource calling method.
[0143] In some possible implementations, the memory 106 of one or more computing devices 100 in the computing device cluster may also store partial instructions for executing the resource calling method. In other words, the combination of one or more computing devices 100 may jointly execute instructions for executing the resource calling method.
[0144] It should be noted that the memory 106 in different computing devices 100 in the computing device cluster may store different instructions, which are respectively used to execute part of the functions of the information sending device 211 or the resource calling device 221. That is, the instructions stored in the memory 106 in different computing devices 100 may implement the functions of one or more of the acquisition unit 2111, the sending unit 2112, the generation unit 2113 or the audit unit 2114, or implement the functions of one or more of the acquisition unit 2211, the determination unit 2212, the calling unit 2213 or the resource determination unit 2214.
[0145] 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. Figure 7 A possible implementation is shown. Figure 7 As shown, two computing devices 100A and 100B 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 106 in the computing device 100A stores instructions for executing the functions of the acquisition module 2111 and the sending module 2112. At the same time, the memory 106 in the computing device 100B stores instructions for executing the functions of the generation module 2112 and the audit module 2113.
[0146] Figure 7 The connection method between the computing device clusters shown can be considered to be that the information sending method provided in this application needs to generate a resource creation request based on user information, so it is considered to hand over the functions implemented by the generation module 2112 and the audit module 2113 to the computing device 100B for execution.
[0147] It should be understood that Figure 7 The functions of the computing device 100A shown in FIG. 1 may also be completed by multiple computing devices 100. Similarly, the functions of the computing device 100B may also be completed by multiple computing devices 100.
[0148] 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 a resource calling method.
[0149] 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 containing 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 resource call method.
[0150] 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 resource calling method, characterized in that: The method is applied to a cloud service system, the cloud service system includes a business layer and an adaptation layer, and the method includes: The business layer receives a first resource creation request from a first user, where the first resource creation request is used to create a first cloud service product, and the first user is a user of a first resource pool; The business layer sends a first resource calling request to the adaptation layer through a request sending interface, where the first resource calling request is used to call a first cloud service resource corresponding to the first cloud service product; The adaptation layer selects, in response to the first resource call request, a first call interface matching the type of the first cloud service resource; The adaptation layer calls the first cloud service resource from the first resource pool through the first calling interface.
2. The method according to claim 1, characterized in that The method further comprises: The business layer receives a second resource creation request from a second user, where the second resource creation request is used to create a second cloud service product, and the second user is a user of the first resource pool; The business layer sends a second resource calling request to the adaptation layer through the request sending interface, where the second resource calling request is used to call a second cloud service resource corresponding to the second cloud service product, and the type of the second cloud service resource is different from the type of the first cloud service resource; The adaptation layer selects, in response to the second resource call request, a second call interface matching the type of the second cloud service resource; The adaptation layer calls the second cloud service resource from the first resource pool through the second calling interface.
3. The method according to claim 1 or 2, characterized in that: The first resource call request includes identification information of the first resource pool, and the method further includes: The adaptation layer determines, according to the identification information of the first resource pool, to select a first calling interface that matches the type of the first cloud service resource from the interfaces of the first resource pool.
4. The method according to any one of claims 1 to 3, characterized in that The method further comprises: After receiving the first resource creation request from the first user, the business layer authenticates the first resource creation request, and if the authentication is successful, adds identification information of the first resource pool to the first resource call request.
5. The method according to any one of claims 1 to 4, characterized in that The method further comprises: The business layer receives a third resource creation request from a third user, where the third resource creation request is used to create a third cloud service product, and the third user is a user of the second resource pool; The business layer sends a third resource calling request to the adaptation layer through the request receiving interface, where the third resource calling request is used to call a third cloud service resource corresponding to the third cloud service product; The adaptation layer selects, in response to the third resource call request, a third call interface that matches the type of the third cloud service resource; The adaptation layer calls the third cloud service resource from the second resource pool through the third calling interface.
6. The method according to claim 5, characterized in that The method further comprises: The adaptation layer determines, in response to the first resource call request, configurations of computing resources, network resources, and storage resources included in the first cloud service resource according to a resource data model; The adaptation layer determines, in response to the second resource call request, configurations of computing resources, network resources, and storage resources included in the second cloud service resource according to the resource data model; The adaptation layer determines, in response to the third resource call request, configurations of computing resources, network resources, and storage resources included in the third cloud service resource according to the resource data model.
7. A resource calling system, characterized in that: The resource calling system comprises: The business layer is used to receive a first resource creation request from a first user, where the first resource creation request is used to create a first cloud service product, and the first user is a user of a first resource pool; The business layer is further configured to send a first resource calling request to the adaptation layer through a request sending interface, wherein the first resource calling request is used to call a first cloud service resource corresponding to the first cloud service product; an adaptation layer, configured to select, in response to the first resource call request, a first call interface matching the type of the first cloud service resource; The adaptation layer is further used to call the first cloud service resource from the first resource pool through the first calling interface.
8. The system according to claim 7, characterized in that The business layer is further used to receive a second resource creation request from a second user, where the second resource creation request is used to create a second cloud service product, and the second user is a user of the first resource pool; The business layer is further used to send a second resource calling request to the adaptation layer through the request sending interface, where the second resource calling request is used to call a second cloud service resource corresponding to the second cloud service product, and the type of the second cloud service resource is different from the type of the first cloud service resource; The adaptation layer is further configured to select, in response to the second resource call request, a second call interface matching the type of the second cloud service resource; The adaptation layer is further used to call the second cloud service resource from the first resource pool through the second calling interface.
9. The system according to claim 7 or 8, characterized in that: The first resource call request includes identification information of the first resource pool; the adaptation layer is further used to determine, based on the identification information of the first resource pool, to select a first call interface that matches the type of the first cloud service resource from the interfaces of the first resource pool.
10. The system according to any one of claims 7 to 9, characterized in that The business layer is further used to authenticate the first resource creation request after receiving the first resource creation request from the first user, and if the authentication is successful, add the identification information of the first resource pool to the first resource call request.
11. The system according to any one of claims 7 to 10, characterized in that The business layer is further used to receive a third resource creation request from a third user, where the third resource creation request is used to create a third cloud service product, and the third user is a user of the second resource pool; The business layer is further used to send a third resource calling request to the adaptation layer through the request receiving interface, where the third resource calling request is used to call a third cloud service resource corresponding to the third cloud service product; The adaptation layer is further configured to select, in response to the third resource call request, a third call interface matching the type of the third cloud service resource; The adaptation layer is further used to call the third cloud service resource from the second resource pool through the third calling interface.
12. The system according to claim 11, characterized in that The adaptation layer is also used for: In response to the first resource call request, determining the configuration of computing resources, network resources, and storage resources included in the first cloud service resource according to the resource data model; In response to the second resource call request, determining the configuration of computing resources, network resources, and storage resources included in the second cloud service resources according to the resource data model; In response to the third resource call request, the configuration of the computing resources, network resources, and storage resources included in the third cloud service resource is determined according to the resource data model.
13. A computing device cluster, characterized in that: The computing device cluster includes at least one computing device, each computing device including 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 6.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions. When the computer program instructions are executed by a computing device cluster, the computing device cluster executes the method according to any one of claims 1 to 6.
15. A computer program product comprising instructions, characterized in that When the instructions are executed by a computing device cluster, the computing device cluster executes the method according to any one of claims 1 to 6.