Software module running method and apparatus, and storage medium
By obtaining and managing cloud resource authorization specifications, it ensures that software modules use resources reasonably in cloud computing resource transactions, solves the problem of economic losses caused by the expansion of resource occupation by software suppliers, and achieves reasonable control of resource use.
Patent Information
- Application Number
- PCT/CN2024/086308
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-07-27
- Filing Date
- 2024-04-07
- Publication Date
- 2024-10-31
AI Technical Summary
In cloud computing resource transactions, the expansion of the scope of use of software modules has caused economic losses to software suppliers, and it is difficult for existing technologies to effectively limit resource occupation.
By obtaining the running request of the software module and the corresponding cloud resource authorization specifications, ensure that the software module is run or deployed without exceeding the authorization specifications, including obtaining the authorization code and identification information associated with the software module, using private key encryption and public key Decrypt and obtain cloud resource authorization specifications to ensure that resource use is within the authorized scope.
It effectively avoids the expansion of software module resource occupation, protects the economic interests of software suppliers, and prevents economic losses caused by excessive use of resources.
Smart Images

Figure CN2024086308_31102024_PF_FP_ABST
Abstract
Description
Software module operation method, device and storage medium
[0001] This application claims priority to Chinese patent application No. 202310449545.X, filed on April 24, 2023, entitled “A software authorization method, device, and system,” the entire contents of which are incorporated herein by reference. Furthermore, this application claims priority to Chinese patent application No. 202310449857.0, filed on April 24, 2023, entitled “A software authorization method, device, and system,” the entire contents of which are incorporated herein by reference. Furthermore, this application claims priority to Chinese patent application No. 202310449632.5, filed on April 24, 2023, entitled “A software authorization method, device, and system,” the entire contents of which are incorporated herein by reference. Also, this application claims priority to Chinese patent application number 202310934312.9, filed on July 27, 2023, entitled “Software Module Operation Method, Device and Storage Medium,” all contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of communications, and in particular to a software module operation method, device, and storage medium. Background Art
[0003] As cloud computing technology matures, the market for trading cloud computing resources continues to grow. These resources include computing, storage, networking, and software assets. Among these transactions, one category, focusing on the right to use software modules, is gaining popularity.
[0004] Software module suppliers can upload their software modules to the cloud store, where users can purchase the software modules, deploy them on computing instances in the cloud service platform, and use them to run the software modules.
[0005] However, currently users may unlimitedly expand the resources occupied by the computing instance used to run the software module to expand the scope of use of the software module, causing economic losses to the software provider.
[0006] Summary of the Invention
[0007] This application provides a software module operation method, device, and storage medium to avoid economic losses to software vendors. The technical solution is as follows:
[0008] In a first aspect, the present application provides a method for running a software module, in which a running request for a first software module is obtained, the first software module is associated with a first user, and the running request for the first software module is: running the first software module that has been deployed in a first computing instance set, or deploying the first software module into an already activated first computing instance set for execution, or activating a first computing instance set for the first software module and using the first computing instance set to run the first software module, the first computing instance set including at least one computing instance. Obtain the first cloud resource authorization specification corresponding to the first software module. If the total cloud resources occupied by the second computing instance set does not exceed the first cloud resource authorization specification, use the first computing instance set to run the first software module, and the second computing instance set includes the first computing instance set.
[0009] The first cloud resource authorization specification is the resource specification authorized for the operation of the first software module, and the second compute instance set includes the first compute instance set. Therefore, when receiving a request to run the first software module, the first cloud resource authorization specification corresponding to the first software module is obtained. If the total cloud resources occupied by the second compute instance set do not exceed the first cloud resource authorization specification, the first compute instance set is used to run the first software module. This avoids expanding the resources occupied by the first software module and thus the scope of use of the first software module, thereby preventing financial losses for the software vendor.
[0010] In one possible implementation, the second computing instance set also includes a third computing instance set, which includes at least one computing instance already running the first software module. In this way, when the total cloud resources occupied by the second computing instance set do not exceed the authorized specifications for the first cloud resources, the first computing instance set is used to run the first software module, thereby avoiding expanding the scope of use of the first software module and minimizing financial losses for the software vendor.
[0011] In another possible implementation, the request to run the first software module involves running the first software module deployed on the first computing instance set. If the total cloud resources occupied by the second computing instance set exceed the authorized specifications for the first cloud resources, the first software module is denied execution. This avoids increasing the resources occupied by the first software module.
[0012] In another possible implementation, the request to run the first software module involves deploying the first software module into an already enabled first computing instance set. If the total cloud resources occupied by the second computing instance set exceed the authorized specifications for the first cloud resources, the deployment of the first software module is rejected. This avoids expanding the resources occupied by the deployment of the first software module.
[0013] In another possible implementation, the request to run the first software module involves activating a first computing instance set for the first software module and using the first computing instance set to run the first software module. If the total cloud resources occupied by the second computing instance set exceed the first cloud resource authorization specification, the first computing instance set is rejected. This avoids expanding the resources occupied by the first software module.
[0014] In another possible implementation, an authorization code corresponding to the first software module is obtained. Based on the authorization code, a first cloud resource authorization specification is obtained from a first correspondence, where the first correspondence includes the authorization code and the first cloud resource authorization specification. In this manner, the first cloud resource authorization specification can be obtained using the authorization code.
[0015] In another possible implementation, the first correspondence further includes identification information of the first software module. The identification information of the first software module is obtained. The first cloud resource authorization specification is obtained from the first correspondence based on the authorization code and the identification information. This improves the accuracy of obtaining the first cloud resource authorization specification.
[0016] In another possible implementation, an authorization code corresponding to the first software module is obtained. The authorization code is obtained by encrypting the first cloud resource authorization specification using a private key. The authorization code is then decrypted using a public key corresponding to the private key to obtain the first cloud resource authorization specification. In this manner, the first cloud resource authorization specification can be obtained using the authorization code.
[0017] In another possible implementation, the first cloud resource authorization specification includes the number of computing instances and the resource specification occupied by a single computing instance. The situation in which the total cloud resources occupied by the second computing instance set does not exceed the first cloud resource authorization specification includes: the number of computing instances included in the second computing instance set does not exceed the specified number of computing instances, and the resource specification occupied by each computing instance included in the second computing instance set does not exceed the resource specification occupied by a single computing instance. This ensures that the total cloud resources occupied by the second computing instance set does not exceed the first cloud resource authorization specification, thereby avoiding an increase in the resources occupied by running the first software module.
[0018] In another possible implementation, the computing instances included in the second computing instance set are containers, the containers included in the second computing instance set belong to at least one container set, and the first cloud resource authorization specification further includes one or more of the following: the number of service gateways, the number of namespaces, the number of container sets, or the number of machines. The situation where the total cloud resources occupied by the second computing instance set does not exceed the first cloud resource authorization specification also includes one or more of the following situations: the number of service gateways communicating with the containers included in the second computing instance set does not exceed the number of service gateways, the number of at least one container set does not exceed the number of container sets, the number of machines on which the containers included in the second computing instance set are located does not exceed the number of machines, or the number of namespaces to which at least one container set belongs does not exceed the number of namespaces.
[0019] In another possible implementation, the first cloud resource authorization specification includes one or more of the following: the number of embedded network processors NPUs, the number of graphics processors GPUs, the number of central processing units CPUs, the number of CPU cores, memory size, network bandwidth size, number of network interfaces, or storage volume size.
[0020] In another possible implementation, an authorized operating scope for the first software module is obtained. Within the operating scope, the first software module is run using a first computing instance set. Controlling the operating scope of the first software module in this manner can ensure the economic interests of the software provider.
[0021] In another possible implementation, the running range includes one or more of the following: the total running time of the first software module, the total number of calls of the first software module, or the total number of concurrent calls of the first software module.
[0022] In another possible implementation, the second computing instance set includes one or more of the following computing instances: a virtual machine, a bare metal server, or a container.
[0023] In a second aspect, the present application provides a software module execution device for executing the method in the first aspect or any possible implementation of the first aspect. Specifically, the device includes a unit for executing the method in the first aspect or any possible implementation of the first aspect.
[0024] In a third aspect, the present application provides a computing device cluster, the cluster comprising at least one computing device, each device in the at least one computing device comprising at least one processor and at least one memory, the at least one memory storing computer-readable instructions; the at least one processor executes the computer-readable instructions so that the cluster implements the method in the first aspect or any possible implementation of the first aspect.
[0025] In a fourth aspect, the present application provides a computer program product, which includes a computer program stored in a computer-readable storage medium, and the computer program is loaded by a processor to implement the method in the first aspect or any possible implementation of the first aspect.
[0026] In a fifth aspect, the present application provides a computer-readable storage medium for storing a computer program, wherein the computer program is loaded by a processor to execute the method in the first aspect or any possible implementation of the first aspect.
[0027] In a sixth aspect, the present application provides a chip comprising a memory and a processor, wherein the memory is used to store computer instructions, and the processor is used to call and run the computer instructions from the memory to execute the method in the first aspect or any possible implementation of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] FIG1 is a schematic diagram of the structure of a cloud system provided in an embodiment of the present application;
[0029] FIG2 is a schematic diagram of the structure of another cloud system provided in an embodiment of the present application;
[0030] FIG3 is a schematic diagram of the structure of another cloud system provided in an embodiment of the present application;
[0031] FIG4 is a schematic diagram of the structure of another cloud system provided in an embodiment of the present application;
[0032] FIG5 is a flow chart of a software module operation method provided in an embodiment of the present application;
[0033] FIG6 is a flow chart of another software module operation method provided in an embodiment of the present application;
[0034] FIG7 is a flow chart of another software module operation method provided in an embodiment of the present application;
[0035] FIG8 is a flow chart of another software module operation method provided in an embodiment of the present application;
[0036] FIG9 is a flow chart of another software module operation method provided in an embodiment of the present application;
[0037] FIG10 is a schematic structural diagram of a software module operation device provided in Example 4 of the present application;
[0038] FIG11 is a schematic diagram of the structure of a computing device provided in an embodiment of the present application;
[0039] FIG12 is a schematic diagram of the structure of a cluster provided in an embodiment of the present application;
[0040] FIG13 is a schematic diagram of the structure of another cluster provided in an embodiment of the present application. DETAILED DESCRIPTION
[0041] The embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
[0042] 1 , an embodiment of the present application provides a cloud system 100 , which includes a cloud service platform 101 and a cloud transaction platform 102 . The cloud service platform 101 can communicate with the cloud transaction platform 102 .
[0043] Cloud transaction platform 102 includes software assets and at least one cloud resource specification to be traded. Cloud service platform 101 includes resources required to run a software module, which is the software asset or a portion of the software asset. At least one computing instance can be created on cloud service platform 101. Each computing instance occupies resources on cloud service platform 101 and is used to run the software module.
[0044] For ease of description, each user is referred to as a first user. The first user can purchase the software asset or a portion of the software asset on the cloud trading platform 101. For ease of description, the software asset or the portion of the software asset purchased by the first user is referred to as a first software module. The first user can purchase a cloud resource specification for the first software module from the at least one cloud resource specification on the cloud trading platform 102.
[0045] When a first user purchases the first software module and the cloud resource specification, cloud transaction platform 102 conducts a transaction with the first user for the first software module and the cloud resource specification, and authorizes the cloud resource specification to the first software module. For ease of description, the cloud resource specification is referred to as the first cloud resource authorization specification. Cloud service platform 101 can run the first software module.
[0046] Optionally, the first software module may be run in the following three ways, which are respectively the following way 1, way 2 and way 3.
[0047] In a first approach, the cloud service platform 101 includes a first computing instance set, the first computing instance set includes at least one computing instance, and a first software module has been deployed in the first computing instance set. When a first user activates the first software module deployed in the first computing instance set, the first software module is run.
[0048] Method 2: The cloud service platform 101 includes an activated first computing instance set, which includes at least one computing instance. The cloud transaction platform 102 deploys the first software module on the first computing instance set and uses the first computing instance set to run the first software module.
[0049] In a third approach, the cloud service platform 101 activates a first computing instance set for the first software module. The first computing instance set includes at least one computing instance, and the first computing instance set is used to run the first software module.
[0050] In some embodiments, the first set of computing instances includes one or more of the following computing instances: containers, virtual machines, or bare metal servers, etc.
[0051] In some embodiments, after completing the transaction between the first software module and the first cloud resource authorization specification, the cloud transaction platform 102 may generate an authorization code and save a first correspondence. Optionally, the first correspondence includes the authorization code and the first cloud resource authorization specification, or the first correspondence includes the authorization code, identification information of the first software module, and the first cloud resource authorization specification, or the first correspondence includes the authorization code, identification information of the first software module, user identification of the first user, and the first cloud resource authorization specification.
[0052] In some embodiments, referring to FIG. 2 , cloud system 100 further includes a software provider platform 103. Software provider platform 103 includes software assets, and the software assets on cloud transaction platform 102 are uploaded by software provider platform 103. After completing the transaction between the first software module and the first cloud resource authorization specification, cloud transaction platform 102 generates a transaction order that includes the first cloud resource authorization specification and identification information of the first software module, and sends the transaction order to software provider platform 103. Optionally, the transaction order also includes the user identification of the first user and / or identification information of the first software module.
[0053] The software vendor platform 103 receives the transaction order, generates an authorization code, saves the first correspondence, and notifies the first user of the authorization code. Optionally, the first correspondence includes the authorization code and the first cloud resource authorization specification, or the first correspondence includes the authorization code, the identification information of the first software module, and the first cloud resource authorization specification, or the first correspondence includes the authorization code, the identification information of the first software module, the user identifier of the first user, and the first cloud resource authorization specification.
[0054] In some embodiments, referring to FIG. 3 , the cloud transaction platform 102 includes a transaction module 1021 and a license server 1022 .
[0055] Transaction module 1021 is configured to trade the first software module and the cloud resource specification with the first user. After the transaction is completed, a transaction order is generated. The transaction order includes identification information of the first software module and the cloud resource specification. Optionally, the transaction order may also include the user identification of the first user. The transaction order is then sent to license server 1022.
[0056] The license server 1022 is used to receive the transaction order and authorize a cloud resource specification included in the transaction order to the first software module. For ease of explanation, the cloud resource specification is referred to as a first cloud resource authorization specification.
[0057] In some embodiments, the license server 1022 may also generate an authorization code for the first software module, where the authorization code is associated with the first cloud resource authorization specification.
[0058] In some embodiments, after generating the authorization code, the license server 1022 may also store the authorization code in the first correspondence and notify the first user of the authorization code. Optionally, the first correspondence includes the authorization code and the first cloud resource authorization specification, or the first correspondence includes the authorization code, the identification information of the first software module, and the first cloud resource authorization specification, or the first correspondence includes the authorization code, the identification information of the first software module, the user identifier of the first user, and the first cloud resource authorization specification.
[0059] In some embodiments, the license server 1022 may encrypt the first cloud resource authorization specification to obtain an authorization code, and notify the first user of the authorization code.
[0060] In some embodiments, the license server 1022 can add the authorization code to the transaction order, so that the first user can obtain the authorization code by viewing the transaction order; or, the license server 1022 sends a short message or email to the first user, and the short message or email includes the authorization code.
[0061] In some embodiments, referring to FIG. 3 , the cloud transaction platform 102 further includes a deployment manager 1023 .
[0062] After granting the first cloud resource authorization specification to the first software module, license server 1022 sends a request to deployment manager 1023, including the module identifier of the first software module. Deployment manager 1023 receives the request and, based on the identifier of the first software module, deploys the first software module to cloud service platform 101.
[0063] In some embodiments, for the above-mentioned method one or method two, the cloud service platform 101 includes a first computing instance set associated with the user identifier of the first user, the deployment manager 1023 obtains the first computing instance set, and obtains the first software module based on the identification information of the first software module, and deploys the first software module in the first computing instance set.
[0064] In some embodiments, for the above-mentioned method three, the deployment manager 1023 opens a first computing instance set in the cloud service platform 101, and the first computing instance set is associated with the user identifier of the first user, obtains the first software module based on the identification information of the first software module, and deploys the first software module in the first computing instance set.
[0065] In some embodiments, referring to FIG4 , when the software asset on cloud transaction platform 102 is a software image, that is, the first software module is a software image, and the computing instances included in the first computing instance set in cloud transaction platform 102 are containers, cloud service platform 101 includes a container management and scheduling module 1011, at least one service gateway 1012, and at least one machine 1013.
[0066] The container management and scheduling module 1011 includes the image repository of the first user.
[0067] After completing the transaction of the first software module, the transaction module 1021 may save the first software module in the image repository of the first user.
[0068] When the first software module needs to be run, the first user can input a run request for the first software module to the container management and scheduling module 1011. The container management and scheduling module 1011 activates a first computing instance set on the at least one machine 1013, communicates with the containers in the first computing instance set through some or all of the at least one service gateway 1012, deploys the first software module in the first computing instance set, and uses the first computing instance set to run the first software module.
[0069] In some embodiments, when the software assets on cloud transaction platform 102 are software copies, that is, the first software module is a software copy, and cloud service platform 101 is a serverless platform, when the first software module needs to be run, the first user can input a run request for the first software module to cloud service platform 101. Cloud service platform 101 then downloads the first software module from cloud transaction platform 102, activates a first computing instance set on cloud service platform 101, deploys the first software module in the first computing instance set, and uses the first computing instance set to run the first software module.
[0070] Next, the process of running the first software module will be described in detail through any of the following embodiments.
[0071] Referring to Figure 5, an embodiment of the present application provides a software module operation method 500, which is applied to the cloud system 100 shown in Figure 1, Figure 2 or Figure 3. In the method 500, the cloud service platform includes a first computing instance set that has been activated for the first user. After the cloud transaction platform authorizes the first cloud resource authorization specification for the first software module, the cloud transaction platform deploys the first software module in the second computing instance set when the total cloud resources occupied by the second computing instance set does not exceed the first cloud resource authorization specification. The second computing instance set includes the first computing instance set. Optionally, the second computing instance set may also include a third computing instance set, and the third computing instance set includes at least one computing instance that has run the first software module. Referring to Figure 5, the method 500 includes the following process.
[0072] Step 501: After authorizing a first cloud resource authorization specification for a first software module associated with a first user, the license server sends a running request for the first software module to a deployment manager. The running request includes the first cloud resource authorization specification and identification information of the first software module.
[0073] The execution request is used to request that the first software module be deployed into the activated first computing instance for centralized execution.
[0074] Optionally, the execution request may also include the user identification of the first user and / or identification information of each computing instance in the first computing instance set, where each computing instance in the first computing instance set is a computing instance authorized by the license server to execute the first software module.
[0075] The cloud transaction platform includes a transaction module, a license server, and a deployment manager. A first user can purchase a first software module and a cloud resource specification on the transaction module, thereby associating the first software module with the first user. The transaction module generates a transaction order that includes identification information of the first software module, the first user's user ID, and the cloud resource specification, and sends the transaction order to the license server.
[0076] The license server receives the transaction order, uses the cloud resource specification as a first cloud resource authorization specification, and authorizes the first cloud resource authorization specification to the first software module. The license server sends a request to run the first software module to the deployment manager. The request includes the first cloud resource authorization specification and identification information of the first software module. Optionally, the request also includes the user identification of the first user and / or identification information of each computing instance in the first computing instance set.
[0077] In some embodiments, the cloud service platform includes at least one computing instance, which is previously activated by the first user on the cloud service platform. The transaction module in the cloud transaction platform can obtain identification information of each computing instance in a first computing instance set, where the first computing instance set includes the at least one computing instance or some of the at least one computing instance. The transaction order sent by the transaction module to the license server may also include identification information of each computing instance in the first computing instance set. The license server can authorize each computing instance in the first computing instance set to run the first software module, and the run request sent to the deployment manager also includes identification information of each computing instance in the first computing instance set.
[0078] Optionally, the cloud service platform stores a second correspondence, which includes the user identifier of the first user and the identification information of the at least one computing instance that the first user has activated. If the first user deploys the first software module for the first time, the cloud service platform does not include a third computing instance set, and the third computing instance set includes one or more computing instances of the first software module associated with the first user that have been deployed. If the first user deploys the first software module for a non-first time (second, third, ...), the cloud service platform includes a third computing instance set and also stores a third correspondence, which includes the user identifier of the first user and the identification information of each computing instance in the third computing instance set.
[0079] When a first user purchases a first software module, the transaction module in the cloud transaction platform obtains the identification information of the at least one computing instance from the second correspondence stored in the cloud service platform based on the first user's user identifier. If the cloud service platform does not include a third computing instance set, the identification information of the at least one computing instance is displayed. If the cloud service platform also includes a third computing instance set, the third computing instance set is obtained from the third correspondence stored in the cloud service platform based on the first user's user identifier, and the computing instances in the third computing instance set are removed from the at least one computing instance, and the identification information of the remaining computing instances is displayed. In this way, the first user can select the first computing instance set for running the first software module from the displayed computing instance identification information. The transaction module obtains the identification information of each computing instance in the first computing instance set selected by the first user.
[0080] Optionally, when the first user purchases the first software module, the transaction module in the cloud transaction platform receives identification information of each computing instance in the first computing instance set for running the first software module input by the first user, and the first computing instance set is the at least one computing instance or part of the computing instances in the at least one computing instance, or the first computing instance set is all or part of the computing instances in the at least one computing instance except the third computing instance set.
[0081] Optionally, if the first user does not select the first computing instance set, the deployment manager may default to the first computing instance set used to run the first software module to include the at least one computing instance that the first user has activated, or the computing instances in the at least one computing instance other than the third computing instance set.
[0082] In some embodiments, the first cloud resource authorization specification may be the authorized total resource specification, and the first cloud resource authorization specification may include one or more of the following total resource specifications: total number of central processing units (CPUs), total number of CPU cores, total memory size, total network bandwidth size, total number of network interfaces or total storage volume size, etc.
[0083] In some embodiments, the first cloud resource authorization specification may be the resource specification of a single authorized computing instance. The first cloud resource authorization specification may include one or more of the following resource specifications: the number of CPUs, the number of CPU cores, the memory size, the network bandwidth size, the number of network interfaces, or the storage volume size of a single computing instance. In this case, the license server needs to authorize a first set of computing instances for running the first software module, and the execution request needs to include identification information of each computing instance in the first set of computing instances.
[0084] Step 502: The deployment manager receives the run request and obtains the total cloud resources occupied by the second computing instance set, where the second computing instance set includes the first computing instance set.
[0085] In step 502, the total cloud resources occupied by the second computing instance set are obtained through the following operations 5021-5022.
[0086] 5021: Get the cloud resource specifications occupied by each computing instance in the second computing instance set.
[0087] In some embodiments, when the execution request includes identification information of each computing instance in the first computing instance set, the deployment manager queries the resource specifications occupied by each computing instance in the first computing instance set from the cloud service platform based on the identification information of each computing instance in the first computing instance set.
[0088] If the cloud service platform does not include the third computing instance set, the second computing instance set is the same as the first computing instance set, and the resource specifications occupied by each computing instance in the first computing instance set are the resource specifications occupied by each computing instance in the second computing instance set.
[0089] If the cloud service platform includes a third computing instance set, based on the user identifier of the first user, obtain identification information of each computing instance in the third computing instance set from the third correspondence stored in the cloud service platform. Based on the identification information of each computing instance in the third computing instance set, query the cloud service platform for the resource specifications occupied by each computing instance in the third computing instance set. The resource specifications occupied by each computing instance in the second computing instance set include the resource specifications occupied by each computing instance in the first computing instance set and the resource specifications occupied by each computing instance in the third computing instance set.
[0090] In some embodiments, if the execution request does not include identification information for each computing instance in the first computing instance set, the deployment manager obtains identification information for at least one corresponding computing instance from a second correspondence stored by the cloud service platform based on the user identification of the first user included in the execution request, and the second computing instance set includes the at least one computing instance. Based on the identification information for each computing instance in the second computing instance set, the cloud service platform is queried for the resource specifications occupied by each computing instance in the second computing instance set. In this case, the first computing instance set and the second computing instance set are the same, or the first computing instance set includes computing instances in the at least one computing instance other than the third computing instance set.
[0091] In some embodiments, the deployment manager can receive identification information of each computing instance included in the second computing instance set input by the first user, and based on the identification information of each computing instance in the second computing instance set, query the resource specifications occupied by each computing instance in the second computing instance set from the cloud service platform.
[0092] 5022: Based on the cloud resource specifications occupied by each computing instance in the second computing instance set, obtain the total cloud resources occupied by the second computing instance set.
[0093] In step 5022, the resource specifications occupied by each computing instance in the second computing instance set are accumulated to obtain the total cloud resources occupied by the second computing instance set. Optionally, the total cloud resources occupied by the second computing instance set include one or more of the following: the accumulated value of the number of CPUs, the accumulated value of the number of CPU cores, the accumulated value of the memory size, the accumulated value of the network bandwidth size, the accumulated value of the number of network interfaces, or the accumulated value of the storage volume size. Or,
[0094] The total cloud resources occupied by the second computing instance set include resource specifications occupied by each computing instance in the second computing instance set. Optionally, the total cloud resources occupied by the second computing instance set include one or more of the following: the number of CPUs, the number of CPU cores, the memory size, the network bandwidth size, the number of network interfaces, or the storage volume size of each computing instance in the second computing instance set.
[0095] Step 503: If the total cloud resources occupied by the second computing instance set does not exceed the first cloud resource authorization specification, the deployment manager uses the first computing instance set to run the first software module.
[0096] In step 503, if the total cloud resources occupied by the second computing instance set do not exceed the first cloud resource authorization specification, the deployment manager retrieves the first software module from the cloud transaction platform based on the identification information of the first software module. Based on the identification information of each computing instance in the first computing instance set, the deployment manager determines each computing instance included in the first computing instance set in the cloud service platform and deploys the first software module on each computing instance in the first computing instance set. For each computing instance in the first computing instance set, when the first software module in the computing instance is activated by the first user, the first software module is run using the computing instance. If the total cloud resources occupied by the first computing instance set exceeds the first cloud resource authorization specification, the deployment manager refuses to deploy the first software module.
[0097] In some embodiments, when the first cloud resource authorization specification is the authorized total resource specification and the total cloud resources occupied by the second computing instance set is the sum of the resource specifications occupied by each computing instance in the second computing instance set, the deployment manager determines that the total cloud resources occupied by the second computing instance set does not exceed the first cloud resource authorization specification when the total cloud resources occupied by the second computing instance set is less than or equal to the first cloud resource authorization specification. Based on the identification information of each computing instance in the first computing instance set, each computing instance included in the first computing instance set in the cloud service platform is determined, and the first software module is deployed on each computing instance in the first computing instance set.
[0098] Optionally, the total cloud resources occupied by the second set of computing instances is less than or equal to the first cloud resource authorization specification, which means: the cumulative value of the CPU number is less than or equal to the total number of CPUs, the cumulative value of the CPU cores is less than or equal to the total number of CPU cores, the cumulative value of the memory size is less than or equal to the total memory size, the cumulative value of the network bandwidth size is less than or equal to the total network bandwidth size, the cumulative value of the network interface number is less than or equal to the total number of network interfaces, and the cumulative value of the storage volume size is less than or equal to the total storage volume size.
[0099] In some embodiments, when the first authorized cloud resource specification is the resource specification of a single computing instance, and the total cloud resources occupied by the second computing instance set include the resource specification occupied by each computing instance in the second computing instance set, the deployment manager determines that the total cloud resources occupied by the second computing instance set does not exceed the first authorized cloud resource specification when the resource specification occupied by each computing instance in the second computing instance set is less than or equal to the resource specification of the single computing instance. Based on the identification information of each computing instance in the first computing instance set, each computing instance included in the first computing instance set in the cloud service platform is determined, and the first software module is deployed on each computing instance in the first computing instance set.
[0100] Optionally, the total cloud resources occupied by the second computing instance set is less than or equal to the first cloud resource authorization specification, which means: the number of CPUs of each computing instance in the second computing instance set is less than or equal to the number of CPUs of a single computing instance, the number of CPU cores of each computing instance in the second computing instance set is less than or equal to the number of CPU cores of a single computing instance, the memory size of each computing instance in the second computing instance set is less than or equal to the memory size of a single computing instance, the network bandwidth size of each computing instance in the second computing instance set is less than or equal to the network bandwidth size of a single computing instance, the number of network interfaces of each computing instance in the second computing instance set is less than or equal to the number of network interfaces of a single computing instance, and the storage volume size of each computing instance in the second computing instance set is less than or equal to the storage volume size of a single computing instance.
[0101] In some embodiments, the first user may not previously activate the first computing instance set on the cloud service platform. The license server sends a request to the deployment manager to run the first software module, requesting the deployment manager to activate the first computing instance set for the first software module and to use the first computing instance set to run the first software module. During implementation, the deployment manager activates at least one computing instance on the cloud service platform based on the first cloud resource authorization specification, the first computing instance set including the at least one computing instance, and deploys the first software module on each computing instance in the first computing instance set.
[0102] Optionally, when the first cloud resource authorization specification is the authorized total resource specification, the deployment manager, based on the first cloud resource authorization specification, activates at least one computing instance on the cloud service platform, and the total cloud resources occupied are less than or equal to the first cloud resource specification. That is, the cumulative value of the number of CPUs of each computing instance in the at least one computing instance is less than or equal to the total number of CPUs, the cumulative value of the number of CPU cores is less than or equal to the total number of CPU cores, the cumulative value of the memory size is less than or equal to the total memory size, the cumulative value of the network bandwidth size is less than or equal to the total network bandwidth size, the cumulative value of the number of network interfaces is less than or equal to the total number of network interfaces, and the cumulative value of the storage volume size is less than or equal to the total storage volume size.
[0103] Optionally, when the first cloud resource authorization specification is the resource specification of a single computing instance, the first cloud resource authorization specification also includes the number of computing instances. Based on the first cloud resource authorization specification, the deployment manager activates on the cloud service platform at least one computing instance, and the resource specification occupied by each computing instance is less than or equal to the resource specification of a single computing instance, and the number of activated computing instances is less than or equal to the number of computing instances included in the first cloud resource authorization specification. That is, the number of CPUs in each of the at least one computing instance is less than or equal to the number of CPUs in a single computing instance, the number of CPU cores in each of the at least one computing instance is less than or equal to the number of CPU cores in a single computing instance, the memory size of each of the at least one computing instance is less than or equal to the memory size of a single computing instance, the network bandwidth size of each of the at least one computing instance is less than or equal to the network bandwidth size of a single computing instance, the number of network interfaces in each of the at least one computing instance is less than or equal to the number of network interfaces in a single computing instance, and the storage volume size of each of the at least one computing instance is less than or equal to the storage volume size of a single computing instance.
[0104] In some embodiments, the computing instances included in the second computing instance set may be one or more of the following computing instances: virtual machines, containers, or bare metal servers, etc.
[0105] In an embodiment of the present application, the request to run the first software module sent by the license server to the deployment manager includes the first cloud resource authorization specification. This allows the deployment server to obtain the total cloud resources occupied by the second set of computing instances used to deploy the first software module. If the total cloud resources occupied by the second set of computing instances does not exceed the first cloud resource authorization specification, the first software module is deployed on the first set of computing instances. This prevents the expansion of the cloud resources occupied by the first set of computing instances used to deploy the first software module, avoids expanding the scope of use of the first software module, and thus protects the interests of the software vendor and avoids financial losses to the software vendor.
[0106] Referring to Figure 6, an embodiment of the present application provides a software module operation method 600, which is applied to the cloud system 100 shown in Figure 1, Figure 2, or Figure 3. In the method 600, the cloud service platform includes a first computing instance set, and the first software module has been deployed on the first computing instance set. After the cloud transaction platform authorizes the first cloud resource authorization specification for the first software module, the first software module can be operated when the total cloud resources occupied by the second computing instance set does not exceed the first cloud resource authorization specification. The second computing instance set includes the first computing instance set. Optionally, the second computing instance set may also include a third computing instance set, and the third computing instance set includes at least one computing instance that has already run the first software module. Referring to Figure 6, the method 600 includes the following process.
[0107] Step 601: The license server authorizes a first cloud resource authorization specification for a first software module associated with a first user and generates an authorization code.
[0108] The cloud transaction platform includes a transaction module, a license server, and a deployment manager. A first user can purchase a first software module and a cloud resource specification on the transaction module. The transaction module generates a transaction order that includes identification information of the first software module and the cloud resource specification, and sends the transaction order to the license server. Optionally, the transaction order also includes the user identification of the first user.
[0109] The license server receives the transaction order, uses the one cloud resource specification as a first cloud resource authorization specification, authorizes the first cloud resource authorization specification to the first software module corresponding to the identification information of the first software module, and then generates an authorization code.
[0110] In some embodiments, the license server saves the correspondence between the authorization code and the first cloud resource authorization specification in a first correspondence, or saves the correspondence between the authorization code, the identification information of the first software module and the first cloud resource authorization specification in the first correspondence, or saves the correspondence between the authorization code, the identification information of the first software module, the user identification of the first user and the first cloud resource authorization specification in the first correspondence.
[0111] In some embodiments, the license server may encrypt the first cloud resource authorization specification using a private key included in the public-private key pair to obtain an authorization code.
[0112] In some embodiments, the license server may notify the first user of the authorization code. For example, the authorization code may be added to the transaction order, and the first user may obtain the authorization code when viewing the transaction order. Alternatively, the authorization code may be sent to the first user via a text message or email, the text message or email including the authorization code.
[0113] In some embodiments, the first user can purchase different cloud resource specifications for the first software module. The license server can then authorize the first software module for each cloud resource specification purchased by the first user and generate a different authorization code for each cloud resource specification. Optionally, the license server stores the first user's user ID and the generated authorization code in a corresponding relationship between user IDs and authorization codes.
[0114] In some embodiments, the first cloud resource authorization specification may be the authorized total resource specification.
[0115] Step 602: The license server sends a deployment request to the deployment manager, where the deployment request includes identification information of the first software module.
[0116] In some embodiments, the deployment request further includes a user identification of the first user and / or identification information of at least one computing instance, where the at least one computing instance is an authorized computing instance capable of deploying the first software module.
[0117] In some embodiments, the cloud service platform includes m computing instances, where m is an integer greater than or equal to 1, and the m computing instances are previously activated by the first user on the cloud service platform. The transaction module in the cloud transaction platform can obtain identification information of at least one computing instance, where the at least one computing instance is a computing instance configured by the first user for deploying the first software module, and the at least one computing instance is the m computing instances or some of the m computing instances. The transaction order sent by the transaction module to the license server may also include identification information of the at least one computing instance. The license server can authorize the at least one computing instance to be used to deploy the first software module, and the deployment request sent to the deployment manager also includes identification information of the at least one computing instance.
[0118] Optionally, the operation by which the transaction module obtains identification information of at least one computing instance may be:
[0119] The cloud service platform stores a second correspondence, which includes the user ID of the first user and the identification information of the m computing instances. When the first user purchases the first software module, the transaction module in the cloud transaction platform obtains the identification information of the m computing instances from the second correspondence stored in the cloud service platform based on the user ID of the first user, and displays the identification information of the m computing instances. In this way, the first user can select at least one computing instance for deploying the first software module from the m computing instances corresponding to the identification information of the m computing instances. The transaction module obtains the identification information of the at least one computing instance selected by the first user. Or,
[0120] When a first user purchases a first software module, the transaction module in the cloud transaction platform receives identification information of at least one computing instance used to deploy the first software module input by the first user, where the at least one computing instance is the above-mentioned m computing instances or part of the m computing instances.
[0121] For example, the transaction module can display at least one cloud resource specification shown in Table 1 below to the first user. The first user can choose to purchase cloud resource specification 1 and enter the identification information of two computing instances, VM1 and VM2, into the transaction module. The transaction module then sends a transaction order to the license server. The transaction order includes the identification information of the first software module, cloud resource specification 1, and the identification information of the two computing instances, VM1 and VM2.
[0122] Table 1
[0123] The license server receives the transaction order and authorizes cloud resource specification 1 to the first software module. This designates cloud resource specification 1 as the first cloud resource authorization specification. The two compute instances corresponding to VM1 and VM2 are authorized to the first software module. The license server's authorization details are shown in Table 2 below. The deployment request sent to the deployment manager carries the details shown in Table 2 below.
[0124] Table 2
[0125] Step 603: The deployment manager receives the deployment request and deploys the first software module on at least one computing instance based on the identification information of the first software module included in the deployment request.
[0126] In some embodiments, the first software module can be deployed on at least one computing instance in the cloud service platform in the following ways.
[0127] In Method 1, the deployment request includes identification information of at least one authorized computing instance. The deployment manager determines the at least one computing instance in the cloud service platform based on the identification information of the at least one computing instance. Based on the identification information of the first software module, the deployment manager obtains the first software module from the cloud transaction platform and deploys the first software module on each of the at least one computing instance.
[0128] Method 2: The deployment request includes identification information of at least one authorized computing instance. The deployment manager receives identification information of n computing instances configured by the first user for deploying the first software module, where n is an integer greater than or equal to 1, and the n computing instances are computing instances that the first user has activated on the cloud service platform. Based on the identification information of the at least one authorized computing instance, the deployment manager obtains identification information of one or more computing instances authorized for deploying the first software module from the identification information of the n computing instances. Based on the identification information of the one or more computing instances, the deployment manager determines the one or more computing instances in the cloud service platform. Based on the identification information of the first software module, the deployment manager obtains the first software module and deploys the first software module on the one or more computing instances.
[0129] In method 3, the deployment manager receives identification information of n computing instances configured by a first user for deploying a first software module, where n is an integer greater than or equal to 1, and the n computing instances are computing instances that the first user has activated on the cloud service platform. Based on the identification information of the n computing instances, the deployment manager determines the n computing instances in the cloud service platform. Based on the identification information of the first software module, the deployment manager obtains the first software module and deploys the first software module on each of the n computing instances.
[0130] Method 4: The deployment request includes the user identifier of the first user. The deployment manager obtains the identification information of the m computing instances from the second correspondence stored in the cloud service platform based on the user identifier of the first user, and displays the identification information of the m computing instances. In this way, the first user can select at least one computing instance for deploying the first software module from the m computing instances corresponding to the identification information of the m computing instances. The first software module is obtained based on the identification information of the first software module, and the first software module is deployed on each computing instance in the at least one computing instance. Alternatively, after obtaining the identification information of the m computing instances, the deployment manager determines the m computing instances in the cloud service platform based on the identification information of the m computing instances, obtains the first software module based on the identification information of the first software module, and deploys the first software module on each computing instance in the m computing instances.
[0131] Step 604: When the first user activates the first software module deployed on the first computing instance set, the cloud service platform sends a request to run the first software module to the license server, where the request includes the authorization code.
[0132] The first computing instance set includes the at least one computing instance or some of the computing instances in the at least one computing instance. If the first user activates the first software module on the at least one computing instance once, the first computing instance set includes the at least one computing instance. If the first user activates the first software module on the at least one computing instance multiple times, each time the first user activates the first software module on some of the computing instances in the at least one computing instance, the first computing instance set includes the some of the computing instances.
[0133] In some embodiments, when the first user activates the first software module on the first computing instance set on the cloud service platform, the first user also inputs the authorization code to the cloud service platform. The cloud service platform receives the authorization code and sends a request to run the first software module to the license server, where the request includes the authorization code.
[0134] In some embodiments, when a first user activates a first software module on a first set of computing instances, the cloud service platform obtains at least one authorization code corresponding to the first user, allows the first user to select an authorization code, and sends a run request including the selected authorization code to the license server.
[0135] Optionally, during implementation, the cloud service platform sends a request to the license server, the request including the user identifier of the first user. The license server receives the request and, based on the user identifier of the first user included in the request, obtains at least one corresponding authorization code from the correspondence between user identifiers and authorization codes, and sends the at least one authorization code to the first computing instance. The cloud service platform receives the at least one authorization code, displays the at least one authorization code, allows the first user to select an authorization code, obtains the authorization code selected by the first user, and sends a request to the license server to run the first software module, the request including the authorization code.
[0136] In some embodiments, the execution request may also include resource specifications occupied by each computing instance in the first computing instance set and / or identification information of each computing instance in the first computing instance set. Optionally, the execution request also includes identification information of the first software module and / or a user identifier of the first user.
[0137] Step 605: The license server receives the execution request and obtains the first cloud resource authorization specification corresponding to the first software module based on the authorization code included in the execution request.
[0138] In step 605, the license server receives the execution request and, based on the authorization code included in the execution request, obtains the corresponding first cloud resource authorization specification from the first correspondence. Alternatively, based on the authorization code included in the execution request and the identification information of the first software module, the license server obtains the corresponding first cloud resource authorization specification from the first correspondence. Alternatively, based on the authorization code included in the execution request, the identification information of the first software module, and the user identifier of the first user, the license server obtains the corresponding first cloud resource authorization specification from the first correspondence. Alternatively, the license server decrypts the authorization code using the public key included in the public-private key pair to obtain the first cloud resource authorization specification.
[0139] Step 606: The license server obtains the total cloud resources occupied by the second computing instance set, where the second computing instance set includes the first computing instance set.
[0140] If the first user activates the first software module on the at least one computing instance once, the second computing instance set is the same as the first computing instance set, the license server obtains the resource specifications of each computing instance in the first computing instance set, obtains the total cloud resources occupied by the first computing instance set based on the resource specifications of each computing instance in the first computing instance set, and uses the total cloud resources occupied by the first computing instance set as the total cloud resources occupied by the second computing instance set.
[0141] If the first user activates the first software module on the at least one computing instance multiple times, when the first user activates the first software module for the first time, the second computing instance set is the same as the first computing instance set, the license server obtains the resource specifications of each computing instance in the first computing instance set, obtains the total cloud resources occupied by the first computing instance set based on the resource specifications of each computing instance in the first computing instance set, and uses the total cloud resources occupied by the first computing instance set as the total cloud resources occupied by the second computing instance set.
[0142] When the first user activates the first software module but not for the first time, the first computing instance set is a subset of the second computing instance set, and the second computing instance set also includes a third computing instance set, where the third computing instance set includes computing instances that have already run the first software module. The cloud service platform stores a third correspondence, which includes the user identifier of the first user, the identification information of the first software module, and the identification information of each computing instance in the third computing instance set.
[0143] The execution request includes the user identifier of the first user and the identification information of the first software module. The license server obtains the identification information of each computing instance in the third computing instance set from a third corresponding relationship in the cloud service platform based on the user identifier of the first user and the identification information of the first software module. The license server obtains the resource specifications of each computing instance in the third computing instance set from the cloud service platform based on the identification information of each computing instance in the third computing instance set. The license server also obtains the resource specifications of each computing instance in the first computing instance set and, based on the resource specifications of each computing instance in the first computing instance set and the resource specifications of each computing instance in the third computing instance set, obtains the total cloud resources occupied by the second computing instance set.
[0144] In some embodiments, the license server may obtain resource specifications for each computing instance in the first computing instance set in a detailed implementation process as follows: when the execution request includes the resource specifications for each computing instance in the first computing instance set, the resource specifications for each computing instance in the first computing instance set are obtained from the execution request. When the execution request includes identification information for each computing instance in the first computing instance set, the cloud service platform is queried for the resource specifications for each computing instance in the first computing instance set based on the identification information for each computing instance in the first computing instance set.
[0145] Step 607: If the total cloud resources occupied by the second computing instance set does not exceed the first cloud resource authorization specification, the license server uses the first computing instance set in the cloud service platform to run the first software module.
[0146] In step 607, when the license server determines that the total cloud resources occupied by the second computing instance set do not exceed the first cloud resource authorization specification, it sends a consent indication to the cloud service platform. The cloud service platform receives the consent indication and uses the first computing instance set to run the first software module.
[0147] When the license server determines that the total cloud resources occupied by the second computing instance set exceeds the first cloud resource authorization specification, it sends a rejection instruction to the cloud service platform. The cloud service platform receives the rejection instruction and refuses to use the first computing instance set to run the first software module.
[0148] In some embodiments, when the license server determines that the total cloud resources occupied by the second computing instance set does not exceed the first cloud resource authorization specification, it also saves the user identification of the first user, the identification information of the first software module, and the identification information of each computing instance in the first computing instance set in a third corresponding relationship in the cloud service platform.
[0149] In an embodiment of the present application, after the license server authorizes the first cloud resource authorization specification to the first software module, it generates an authorization code, and the authorization code is associated with the first cloud resource authorization specification. When the first user activates the first software module deployed on the first computing instance set, the cloud service platform obtains the authorization code and sends a request to run the first software module to the license server. The license server obtains the first cloud resource authorization specification based on the authorization code, and obtains the total cloud resources occupied by the second computing instance set, where the second computing instance set includes the first computing instance and the third computing instance set that has been activated to run the first software module. When the total cloud resources occupied by the second computing instance set does not exceed the first cloud resource authorization specification, the first computing instance set is used to run the first software module. This can prevent the expansion of the cloud resources occupied by the second computing instance set used to run the first software module, avoid expanding the scope of use of the first software module, thereby protecting the interests of the software vendor and avoiding economic losses to the software vendor.
[0150] Referring to Figure 7, an embodiment of the present application provides a software module operation method 700, and the method 700 is applied to the cloud system 100 shown in Figure 1, Figure 2 or Figure 3. In the method 700, the cloud service platform includes a second computing instance set, the first software module has been deployed on the second computing instance set, and the cloud transaction platform authorizes the first cloud resource authorization specification for the first software module and authorizes the second computing instance set to run the first software module. The first cloud resource authorization specification is the resource specification occupied by a single computing instance. When the first software module on the first computing instance is activated, when the second computing instance set includes the first computing instance and the resource specification occupied by the first computing instance does not exceed the first cloud resource authorization specification, the first computing instance can be used to run the first software module. Referring to Figure 7, the method 700 includes the following process.
[0151] Step 701: The license server authorizes a first cloud resource authorization specification and a second computing instance set for running the first software module for a first software module, and generates an authorization code.
[0152] The cloud transaction platform includes a transaction module, a license server and a deployment manager. A first user can purchase a first software module, a cloud resource specification and a second computing instance set for deploying the first software module on the transaction module. The transaction module generates a transaction order, which includes identification information of the first software module, the cloud resource specification and identification information of each computing instance in the second computing instance set, and sends the transaction order to the license server.
[0153] The license server receives the transaction order, uses the cloud resource specification as the first cloud resource authorization specification, authorizes the first cloud resource authorization specification and each computing instance in the second computing instance set to the first software module corresponding to the identification information of the first software module, and then generates an authorization code.
[0154] In some embodiments, the license server stores the correspondence between the authorization code, the first cloud resource authorization specification, and identification information of each computing instance in the second computing instance set in a first correspondence.
[0155] In some embodiments, the license server may use a private key included in a public-private key pair to encrypt identification information of each computing instance in the first cloud resource authorization specification and the second computing instance set to obtain an authorization code, and notify the first user of the authorization code.
[0156] For example, the authorization code may be added to the transaction order, and the first user may obtain the authorization code when viewing the transaction order. Alternatively, a short message or email may be sent to the first user, the short message or email including the authorization code.
[0157] In some embodiments, the first cloud resource authorization specification may be a resource specification occupied by an authorized single computing instance.
[0158] In some embodiments, the cloud service platform includes m computing instances, where m is an integer greater than or equal to 1, and the m computing instances are previously activated by the first user on the cloud service platform. A transaction module in the cloud transaction platform may obtain a second computing instance set, where the second computing instance set includes the m computing instances or a portion of the m computing instances.
[0159] Optionally, the cloud service platform stores a correspondence between the first user's user ID and the identification information of the m computing instances. When the first user purchases the first software module, the transaction module in the cloud transaction platform, based on the first user's user ID, obtains the identification information of the m computing instances from the correspondence between user IDs and computing instance identification information stored on the cloud service platform and displays the identification information of the m computing instances. This allows the first user to select at least one computing instance from the m computing instances corresponding to the identification information of the m computing instances to run the first software module, forming a second computing instance set. The transaction module obtains the second computing instance set.
[0160] Optionally, when the first user purchases the first software module, the transaction module in the cloud transaction platform receives identification information of each computing instance in the second computing instance set for running the first software module input by the first user.
[0161] For example, the transaction module can display at least one cloud resource specification as shown in Table 3 below to the first user. Each displayed cloud resource specification represents the cloud resource specification occupied by a single computing instance. The first user can choose to purchase cloud resource specification 4 and input the identification information of two computing instances included in the second computing instance set into the transaction module. The identification information of the two computing instances is VM1 and VM2. The transaction module sends a transaction order to the license server. The transaction order includes the identification information of the first software module, cloud resource specification 4, and the identification information of the two computing instances is VM1 and VM2.
[0162] Table 3
[0163] The license server receives the transaction order and authorizes cloud resource specification 4 to the first software module, making cloud resource specification 4 the first cloud resource authorization specification. The two compute instances corresponding to VM1 and VM2 are authorized to the first software module. The license server uses the private key included in the public-private key pair to encrypt cloud resource specification 4, VM1, and VM2 to obtain an authorization code, which is then notified to the first user.
[0164] Table 4
[0165] Step 702: The license server sends a deployment request to the deployment manager. The deployment request includes identification information of the first software module and identification information of each computing instance in the second computing instance set.
[0166] Step 703: The deployment manager receives the deployment request and, based on the identification information of the first software module included in the deployment request, deploys the first software module on the computing instance included in the second computing instance set.
[0167] In step 703, the deployment request includes the identification information of the first software module and the identification information of each computing instance in the second computing instance set. The deployment manager identifies each computing instance in the second computing instance set in the cloud service platform based on the identification information of each computing instance in the second computing instance set. The deployment manager obtains the first software module from the cloud service platform based on the identification information of the first software module and deploys the first software module on each computing instance in the second computing instance set.
[0168] For any computing instance in the second computing instance set, for ease of explanation, the computing instance is referred to as the first computing instance. The first user can activate the first software module on the first computing instance, and then follow the following process to enable the first computing instance to run the first software module.
[0169] Step 704: The first computing instance receives the execution request of the first software module and obtains the authorization code.
[0170] In step 704, the first user triggers a request to the first computing instance to execute the first software module by activating the first software module on the first computing instance. When the first user activates the first software module on the first computing instance, the first user also enters the authorization code into the first software module, and the first computing instance receives the authorization code.
[0171] Step 705: The first computing instance obtains the second computing instance set and the first cloud resource authorization specification based on the authorization code.
[0172] In step 705, the first computing instance obtains the identification information of each computing instance in the first cloud resource authorization specification and the second computing instance set from the first correspondence in the license server based on the authorization code. Alternatively, the first computing instance decrypts the authorization code using the public key included in the public-private key pair to obtain the identification information of each computing instance in the first cloud resource authorization specification and the second computing instance set.
[0173] Step 706: If the second computing instance set includes the first computing instance and the resource specifications occupied by the first computing instance do not exceed the first cloud resource authorization specifications, the first computing instance runs the first software module.
[0174] In step 706, the first computing instance obtains the resource specifications occupied by the first computing instance from the cloud service platform, the identification information of each computing instance in the second computing instance set includes the identification information of the first computing instance, and it is determined that the second computing instance includes the first computing instance. If the resource specifications occupied by the first computing instance do not exceed the first cloud resource authorization specifications, the first software module is run.
[0175] In an embodiment of the present application, after the license server authorizes the first cloud resource authorization specification and the second computing instance set to the first software module, it generates an authorization code, and the authorization code is associated with the first cloud resource authorization specification and the second computing instance set. When the first user activates the first software module on the first computing instance, the first computing instance obtains the authorization code, obtains the first cloud resource authorization specification and the second computing instance set based on the authorization code, and runs the first software module when the second computing instance set includes the first computing instance and the resource specification occupied by the first computing instance does not exceed the first cloud resource authorization specification. This can prevent the expansion of the cloud resources occupied by the second computing instance set used to run the first software module, avoid expanding the scope of use of the first software module, thereby protecting the interests of the software vendor and avoiding economic losses to the software vendor.
[0176] Referring to Figure 8 , an embodiment of the present application provides a software module operation method 800 , which is applied to the cloud system 100 shown in Figures 1 , 2 , 3 , or 4 . In method 800 , a cloud transaction platform authorizes a first cloud resource authorization specification for a first software module, which may be a software image. Based on the first cloud resource authorization specification, a cloud service platform creates a first computing instance set for running the first software module. Referring to Figure 8 , method 800 includes the following process.
[0177] Step 801: The cloud transaction platform obtains a first software module and a first cloud resource authorization specification associated with a first user.
[0178] The first software module associated with the first user is a software module purchased by the first user.
[0179] In some embodiments, the first cloud resource authorization specification defines the number of containers authorized to run the first software module and the container processing capacity.
[0180] The software supplier platform uploads the software image to be traded to the cloud transaction platform, so that the first user can purchase the software image on the cloud transaction platform, that is, purchase the first software module, and the identification information of the first software module is the identification information of the software image.
[0181] In some embodiments, the software provider platform may also upload at least one cloud resource specification corresponding to the first software module to the cloud transaction platform, where each cloud resource specification defines the number of containers capable of running the first software module and the container processing capacity.
[0182] Optionally, for each of the at least one cloud resource specification, the cloud resource specification includes the number of containers and the resource specification occupied by a single container. The resource specification occupied by a single container may include one or more of the following information: the number of CPUs, the number of graphics processing units (GPUs), the number of embedded network processors (NPUs), or the memory size. The cloud resource specification is used to limit the processing capacity of the container.
[0183] Optionally, the cloud resource specification also includes one or more of the following information: the number of service gateways, the number of container sets, the number of machines, the validity period, or the maximum number of users that can be processed. Assume that w represents the number of service gateways, x represents the number of containers, y represents the number of sets, and z represents the number of machines, where w, x, y, and z are all integers greater than 0. In other words, the cloud resource specification information defines w service gateways and y container sets, each of which includes x containers. The y container sets can be deployed on z machines, each of which can be deployed with one or more containers from the container sets, and the x containers communicate with the w service gateways.
[0184] When a first user purchases a first software module, the cloud trading platform displays at least one cloud resource specification corresponding to the first software module. The first user purchases a cloud resource specification from the at least one cloud resource specification. The cloud trading platform authorizes the cloud resource specification purchased by the first user to the first software module, and the first cloud resource authorization specification includes the cloud resource specification.
[0185] Optionally, when purchasing the first cloud resource authorization specification, the first user may further configure the device identifier of at least one machine used to run the first software module. The first cloud resource authorization specification may further include the device identifier of the at least one machine. The at least one machine may include a bare metal server, a physical machine, and / or a virtual machine.
[0186] In some embodiments, the cloud trading platform may also generate an authorization code and store the correspondence between the authorization code and the first cloud resource authorization specification in a first correspondence. Alternatively, the cloud trading platform may store the correspondence between the authorization code, the identification information of the first software module, and the first cloud resource authorization specification in the first correspondence. Alternatively, the cloud trading platform may encrypt the first cloud resource authorization specification using a private key to obtain the authorization code.
[0187] In some embodiments, the cloud transaction platform includes a transaction module and a license server. A first user can purchase a first software module and a cloud resource specification on the transaction module, generate a transaction order, and send the transaction order to the license server. The license server receives the transaction order, uses the cloud resource specification as the first cloud resource authorization specification, authorizes the first cloud resource authorization specification to the first software module, generates an authorization code, and stores the correspondence between the authorization code and the first cloud resource authorization specification in a first correspondence. Alternatively, the license server stores the correspondence between the authorization code, the identification information of the first software module, and the first cloud resource authorization specification in the first correspondence. Alternatively, the license server encrypts the first cloud resource authorization specification using a private key to obtain an authorization code.
[0188] In some embodiments, the cloud transaction platform (license server) may not generate an authorization code, but the software vendor platform may generate the authorization code. During implementation, after generating a transaction order, the transaction module also sends the transaction order to the software vendor platform. After receiving the transaction order, the software vendor platform generates an authorization code. The correspondence between the authorization code and the first cloud resource authorization specification is saved in a first correspondence, or the correspondence between the authorization code, the identification information of the first software module, and the first cloud resource authorization specification is saved in the first correspondence, or the correspondence between the authorization code, the user identification of the first user, the identification information of the first software module, and the first cloud resource authorization specification is saved in the first correspondence.
[0189] Next, an example is given to illustrate. Referring to Table 5 below, the cloud transaction platform includes three cloud resource specifications corresponding to the first software module. The three cloud resource specifications are uploaded to the cloud transaction platform by the software supplier and stored in the cloud transaction platform.
[0190] Table 5
[0191] The cloud trading platform can display three cloud resource specifications as shown in Table 5. The first user can choose to purchase cloud resource specification 1 and configure the device identifiers ID1 and ID2 of two machines for running the first software module. The cloud trading platform then authorizes cloud resource specification 1 to the first software module and obtains the first cloud resource authorization specification. The first cloud resource authorization specification includes device identifiers ID1 and ID2, as well as cloud resource specification 1, as shown in Table 6 below.
[0192] Table 6
[0193] In some embodiments, a first user can configure a first cloud resource authorization specification on a cloud trading platform. The cloud trading platform calculates a price for the first cloud resource authorization specification, and the first user completes the transaction for the first cloud resource authorization specification based on the price. The cloud trading platform then generates an authorization code and stores the correspondence between the authorization code and the first cloud resource authorization specification in a first correspondence. Alternatively, the cloud trading platform stores the correspondence between the authorization code, the identification information of the first software module, and the first cloud resource authorization specification in the first correspondence. Alternatively, the cloud trading platform can encrypt the first cloud resource authorization specification using a private key to obtain the authorization code.
[0194] Step 802: The cloud transaction platform saves the first software module to the image repository corresponding to the first user in the container management and scheduling module.
[0195] The cloud service platform includes a container management and scheduling module, which includes an image repository corresponding to a first user. The image repository is associated with a user identifier of the first user. The cloud transaction platform obtains the user identifier of the first user and, based on the user identifier of the first user, saves the first software module to the image repository corresponding to the first user in the container management and scheduling module, so that the image repository corresponding to the first user stores the first software module.
[0196] After the cloud transaction platform generates the authorization code, it may notify the first user of the authorization code. For example, the cloud transaction platform may send the authorization code to the terminal device corresponding to the first user or display the authorization code to the first user.
[0197] Step 803: The container management and scheduling module obtains the target resource specification configured by the first user. The target resource specification defines the number of containers and the container processing capacity for running the first software module.
[0198] The container management and scheduling module allows the first user to configure target resource specifications for running the software image. Optionally, the container management and scheduling module displays a configuration interface, in which the first user can configure the target resource specifications, and the container management and scheduling module obtains the target resource specifications from the configuration interface.
[0199] After obtaining the target resource specifications, the container management and scheduling module may save the target resource specifications. Optionally, the container management and scheduling module obtains the user identifier of the first user and saves the corresponding relationship between the user identifier of the first user and the target resource specifications.
[0200] When the first user needs to start running the first software module, the first user can input a running request of the first software module to the container management scheduling module, where the running request includes the authorization code and identification information of the first software module, to start running the first software module.
[0201] Step 804: The container management scheduling module receives the execution request and obtains the first cloud resource authorization specification based on the authorization code included in the execution request.
[0202] In some embodiments, the container management and scheduling module obtains the corresponding first cloud resource authorization specification from a first correspondence stored on the cloud transaction platform or software provider platform based on the authorization code. Alternatively, the container management and scheduling module obtains the corresponding first cloud resource authorization specification from the first correspondence stored on the cloud transaction platform or software provider platform based on the authorization code and identification information of the first software module. Alternatively, the container management and scheduling module obtains the corresponding first cloud resource authorization specification from the first correspondence stored on the cloud transaction platform or software provider platform based on the authorization code, the user identification of the first user, and the identification information of the first software module.
[0203] In some embodiments, the container management scheduling module uses a public key corresponding to the private key included in the public-private key pair to decrypt the authorization code to obtain the first cloud resource authorization specification.
[0204] In some embodiments, the cloud transaction platform may generate a public-private key pair in advance, the public-private key pair including the private key and the public key, and send the public key to the container management and scheduling module, which receives and saves the public key.
[0205] Step 805: When the target resource specification does not exceed the first cloud resource authorization specification, the container management scheduling module creates a first computing instance set on the cloud service platform based on the target resource specification, and the first computing instance set includes at least one container.
[0206] In step 805, the container management and scheduling module may obtain the corresponding target resource specifications from the stored correspondence between user identifiers and target resource specifications based on the user identifier of the first user. The module may compare the first authorized cloud resource specifications with the target resource specifications. If the target resource specifications do not exceed the first authorized cloud resource specifications, the module may create at least one container in the cloud service platform based on the target resource specifications.
[0207] In some embodiments, the container management and scheduling module may further create at least one service gateway in the cloud service platform. The container management and scheduling module may communicate with the at least one container through the at least one service gateway, so that the container management and scheduling module may manage the at least one container through the at least one service gateway. The number of the at least one service gateway does not exceed the number of service gateways specified in the first cloud resource authorization specification.
[0208] The at least one created container may belong to at least one container set, each container set including one or more containers. The at least one container set is deployed on one or more machines on the cloud service platform, and each of the one or more machines is used to run containers in the one or more container sets. In other words, the number of the at least one container set does not exceed the number of container sets in the first cloud resource authorization specification, the number of machines on which the at least one container is located does not exceed the number of machines in the first cloud resource authorization specification, or the number of namespaces to which the at least one container set belongs does not exceed the number of namespaces in the first cloud resource authorization specification.
[0209] In some embodiments, in step 805, the container management scheduling module may also create a first computing instance set on the cloud service platform based on the target resource specification when the total cloud resources occupied by the second computing instance set does not exceed the first cloud resource authorization specification, and the first computing instance set includes at least one container.
[0210] The second computing instance set includes the first computing instance set. Optionally, the second computing instance set may further include a third computing instance set, where the third computing instance set includes a container that has run a first software module related to the first user.
[0211] If the first user triggers the container management scheduling module to create a container for the first software module for the first time, the first computing instance set and the second computing instance set are the same, and the total cloud resources occupied by the second computing instance set are equal to the target resource specifications.
[0212] If the first user has previously triggered the container management scheduling module to create a container for the first software module, that is, there is a container in the cloud service platform to run the first software module related to the first user. The container management scheduling module also stores a third corresponding relationship, which includes the user identifier of the first user, the identification information of the first software module, and the third computing instance set. The third computing instance set includes containers that have run the first software module related to the first user. In this way, the container management scheduling module obtains the third computing instance set from the third corresponding relationship based on the user identifier of the first user and the identification information of the first software module; obtains the resource specifications occupied by each container in the third computing instance set from the cloud service platform, and adds the resource specifications occupied by each container in the third computing instance set to the target resource specifications to obtain the total cloud resources occupied by the second computing instance set.
[0213] Step 806: The container management scheduling module runs the first software module based on at least one container included in the first computing instance set.
[0214] In some embodiments, the first user may not need to input the target resource specification, so that when the container management and scheduling module obtains the first cloud resource authorization specification, it creates at least one container on the cloud service platform based on the first cloud resource authorization specification.
[0215] In an embodiment of the present application, the cloud service platform obtains a first cloud resource authorization specification based on the authorization code corresponding to the first software module, creates at least one container on the cloud service platform based on the first cloud resource authorization specification, and uses the at least one container to run the first software module. Creating the at least one container on the cloud service platform based on the first cloud resource authorization specification ensures that the total cloud resources occupied by the at least one container do not exceed the first cloud resource authorization specification. This prevents the expansion of the cloud resources occupied by the at least one container used to deploy the first software module, avoids expanding the scope of use of the first software module, and thereby protects the interests of the software vendor and avoids causing economic losses to the software vendor.
[0216] Referring to Figure 9 , an embodiment of the present application provides a software module operation method 900 , which is applied to the cloud system 100 shown in Figures 1 , 2 , or 3 . In method 900 , a cloud transaction platform authorizes a first cloud resource authorization specification for a first software module, which may be a software copy. The serverless platform creates a first computing instance set for running the first software module based on the first cloud resource authorization specification. Referring to Figure 9 , method 900 includes the following process.
[0217] Step 901: The cloud transaction platform obtains a first software module and a first cloud resource authorization specification associated with a first user, and generates an authorization code.
[0218] The first software module associated with the first user is a software module purchased by the first user.
[0219] In some embodiments, the first cloud resource authorization specification defines the number of computing instances authorized to run the first software module and the processing capacity of the computing instances.
[0220] The software supplier platform uploads the software copy to be traded to the cloud transaction platform, so that the first user can purchase the software copy on the cloud transaction platform, that is, purchase the first software module.
[0221] In some embodiments, the software provider platform may also upload at least one cloud resource specification corresponding to the first software module to the cloud transaction platform, where each cloud resource specification defines the number of computing instances capable of running the first software module and the processing capacity of the computing instances.
[0222] Optionally, for each of the at least one cloud resource specification, the cloud resource specification includes the number of computing instances and the resource specification occupied by a single computing instance. The resource specification occupied by a single computing instance may include one or more of the following information: the number of CPUs, the number of GPUs, the number of NPUs, or the memory size. The cloud resource specification is used to limit the processing capacity of the computing instance.
[0223] Optionally, the cloud resource specification also includes one or more of the following information: the number of computing instances, validity period, or operating range. Optionally, the operating range includes one or more of the following: the total running time of the first software module, the total number of calls of the first software module, or the total number of concurrent calls of the first software module.
[0224] When a first user purchases a first software module, the cloud trading platform stores the correspondence between the first user's user ID and the download address of the first software module in a correspondence between user IDs and download addresses. Furthermore, when the first user purchases the first software module, the cloud trading platform displays at least one cloud resource specification corresponding to the first software module, and the first user purchases one cloud resource specification from the at least one cloud resource specification. The cloud trading platform authorizes the cloud resource specification purchased by the first user to the first software module, and the first cloud resource authorization specification includes the cloud resource specification.
[0225] In some embodiments, the cloud transaction platform may also generate an authorization code and notify the user of the authorization code.
[0226] In some embodiments, the cloud transaction platform stores the correspondence between the authorization code and the first cloud resource authorization specification in a first correspondence. Alternatively, the cloud transaction platform assigns identification information to the first software module and stores the correspondence between the authorization code, the identification information of the first software module, and the first cloud resource authorization specification in the first correspondence. Optionally, if the first software module is a software copy, the identification information of the first software module may be a copy identifier of the software copy, etc.
[0227] In some embodiments, a cloud transaction platform includes a transaction module and a license server. A first user can purchase a first software module and a cloud resource specification on the transaction module, generating a transaction order that includes the cloud resource specification and sending the transaction order to the license server. The license server receives the transaction order, uses the cloud resource specification as a first cloud resource authorization specification, authorizes the first cloud resource authorization specification to the first software module, generates an authorization code, and notifies the user of the authorization code.
[0228] The license server stores the correspondence between the authorization code and the first cloud resource authorization specification in a first correspondence. Alternatively, the license server may allocate identification information of the first software module and store the correspondence between the authorization code, the identification information of the first software module, and the first cloud resource authorization specification in the first correspondence.
[0229] Step 902: The Serverless platform receives a request to run the first software module, which includes the authorization code, and obtains the first cloud resource authorization specification from the cloud transaction platform based on the authorization code.
[0230] In step 902, the serverless platform also downloads a first software module associated with the first user. Optionally, based on the first user's user ID, the serverless platform obtains the download address of the first software module from the corresponding relationship between user IDs and download addresses in the cloud trading platform. Based on this download address, the serverless platform downloads the first software module from the cloud trading platform.
[0231] In step 902, a first user activates a first software module on the serverless platform, triggering a request to the serverless platform to run the first software module. The serverless platform receives the run request and, based on the authorization code included in the run request, obtains the first cloud resource authorization specification from the cloud transaction platform. Alternatively, the first cloud resource authorization specification can be obtained using either method a or method b.
[0232] In method a, the identification information of the first software module is assigned by the cloud transaction platform, and the first correspondence between the authorization code, the identification information of the first software module, and the first cloud resource authorization specification is stored in the first correspondence. The serverless platform sends a request to the cloud transaction platform, which includes the authorization code and the identification information of the first software module. The cloud transaction platform receives the request and, based on the authorization code and the identification information of the first software module, retrieves the first cloud resource authorization specification from the first correspondence and sends it to the serverless platform. The serverless platform receives the first cloud resource authorization specification.
[0233] In method b, the identification information of the first software module is not assigned by the cloud transaction platform, and the first correspondence between the authorization code and the first cloud resource authorization specification is stored in the first correspondence. When the first user first activates the first software module, the serverless platform assigns the identification information of the first software module and sends a request to the cloud transaction platform. The request includes the authorization code and the identification information of the first software module. The cloud transaction platform receives the request and, based on the authorization code, obtains the correspondence between the authorization code and the first cloud resource authorization specification from the first correspondence. The serverless platform then sends the first cloud resource authorization specification to the serverless platform. The serverless platform receives the first cloud resource authorization specification.
[0234] In method b, the cloud transaction platform also saves the identification information of the first software module in the correspondence between the authorization code and the first cloud resource authorization specification, so that when the first user activates the first software module again, the Serverless platform can use method a to obtain the first cloud resource authorization specification.
[0235] Step 903: The Serverless platform obtains the target resource specifications configured by the first user, where the target resource specifications define the number of computing instances and the processing capacity of the computing instances used to run the first software module.
[0236] The serverless platform allows the first user to configure target resource specifications for running the software copy. Optionally, the serverless platform displays a configuration interface, in which the first user can configure the target resource specifications, and the serverless platform obtains the target resource specifications from the configuration interface.
[0237] Step 904: When the target resource specification does not exceed the first cloud resource authorization specification, the Serverless platform opens a first computing instance set on the Serverless platform based on the target resource specification, and the first computing instance set includes at least one computing instance.
[0238] In step 904, the Serverless platform compares the first cloud resource authorization specification and the target resource specification, and when the target resource specification does not exceed the first cloud resource authorization specification, creates at least one computing instance in the Serverless platform based on the target resource specification.
[0239] Among them, the number of computing instances included in the at least one computing instance created does not exceed the number of computing instances in the first cloud resource authorization specification, and the resource specifications occupied by each computing instance created do not exceed the resource specifications occupied by a single computing instance in the first cloud resource authorization specification.
[0240] In some embodiments, in step 904, the serverless platform may also create the first computing instance set on the cloud service platform based on the target resource specifications when the total cloud resources occupied by the second computing instance set does not exceed the first cloud resource authorization specification. If the total cloud resources occupied by the second computing instance set exceeds the first cloud resource authorization specification, the serverless platform may refuse to provision the first computing instance set.
[0241] The second computing instance set includes the first computing instance set. Optionally, the second computing instance set may further include a third computing instance set, where the third computing instance set includes computing instances that have run a first software module related to the first user.
[0242] If the first user triggers the container management scheduling module to create computing instances for the first software module for the first time, the first computing instance set and the second computing instance set are the same, and the total cloud resources occupied by the second computing instance set are equal to the target resource specifications.
[0243] If the first user has previously triggered the Serverless platform to create a computing instance for the first software module, that is, there is a computing instance in the Serverless platform to run the first software module related to the first user. The Serverless platform also stores a third corresponding relationship, which includes the user identifier of the first user, the identification information of the first software module, and a third computing instance set. The third computing instance set includes computing instances that have run the first software module related to the first user. In this way, the container management scheduling module obtains the third computing instance set from the third corresponding relationship based on the user identifier of the first user and the identification information of the first software module; obtains the resource specifications occupied by each computing instance in the third computing instance set from the Serverless platform, and adds the resource specifications occupied by each computing instance in the third computing instance set to the target resource specifications to obtain the total cloud resources occupied by the second computing instance set.
[0244] Step 905: The serverless platform runs the first software module based on at least one computing instance included in the first computing instance set.
[0245] In some embodiments, the first user may not need to input the target resource specifications. In this way, when the Serverless platform obtains the first cloud resource authorization specifications, it creates at least one computing instance on the Serverless platform based on the first cloud resource authorization specifications.
[0246] In some embodiments, the first cloud resource authorization specification also includes an operating scope, and the Serverless platform also obtains the operating scope authorized to the first software module; within the operating scope, the first software module is used to run.
[0247] In an embodiment of the present application, the Serverless platform obtains a first cloud resource authorization specification based on the authorization code corresponding to the first software module, creates at least one computing instance on the Serverless platform based on the first cloud resource authorization specification, and uses the at least one computing instance to run the first software module. Creating the at least one computing instance on the Serverless platform based on the first cloud resource authorization specification ensures that the total cloud resources occupied by the at least one computing instance do not exceed the first cloud resource authorization specification. This prevents the expansion of the cloud resources occupied by the at least one computing instance used to run the first software module, avoids expanding the scope of use of the first software module, and thereby protects the interests of the software vendor and avoids financial losses to the software vendor.
[0248] Referring to FIG10 , an embodiment of the present application provides a software module operation device 1000 , which is applied to a cloud transaction platform or a cloud service platform in the cloud system shown in FIG1 , FIG2 , FIG3 , or FIG4 . Referring to FIG10 , the device 1000 includes:
[0249] An acquisition unit 1001 is configured to acquire an execution request for a first software module, where the first software module is associated with a first user, and the execution request for the first software module is: executing the first software module that has been deployed in a first computing instance set, deploying the first software module into an activated first computing instance set, or activating the first computing instance set for the first software module and executing the first software module using the first computing instance set;
[0250] The acquisition unit 1001 is further configured to acquire a first cloud resource authorization specification corresponding to the first software module;
[0251] Processing unit 1002 is used to use the first computing instance set to run the first software module if the total cloud resources occupied by the second computing instance set does not exceed the first cloud resource authorization specification, the second computing instance set includes the first computing instance set, and the second computing instance set includes at least one computing instance.
[0252] Optionally, the detailed implementation process of the acquisition unit 1001 acquiring the running request can be found in step 502 of method 500 shown in Figure 5, step 605 of method 600 shown in Figure 6, step 704 of method 700 shown in Figure 7, step 804 of method 800 shown in Figure 8, or relevant content in step 902 of method 900 shown in Figure 9, which will not be described in detail here.
[0253] Optionally, the detailed implementation process of the acquisition unit 1001 acquiring the first cloud resource authorization specification can be found in step 502 of method 500 shown in Figure 5, step 605 of method 600 shown in Figure 6, step 705 of method 700 shown in Figure 7, step 804 of method 800 shown in Figure 8, or relevant content in step 902 of method 900 shown in Figure 9, which will not be described in detail here.
[0254] Optionally, for the detailed implementation process of the processing unit 1002 using the first computing instance set to run the first software module, refer to step 503 of method 500 shown in Figure 5, refer to step 607 of method 600 shown in Figure 6, refer to step 706 of method 700 shown in Figure 7, refer to step 806 of method 800 shown in Figure 8, or refer to the relevant content in step 905 of method 900 shown in Figure 9, which will not be described in detail here.
[0255] Optionally, the second computing instance set further includes a third computing instance set, and the third computing instance set includes at least one computing instance that has run the first software module.
[0256] Optionally, the request to run the first software module is to run the first software module that has been deployed in the first computing instance set; the processing unit 1002 is further configured to:
[0257] If the total cloud resources occupied by the second set of computing instances exceeds the first cloud resource authorization specification, the first software module is refused to run.
[0258] Optionally, the detailed implementation process of the processing unit 1002 refusing to run the first software module can be found in the relevant content of step 607 of the method 600 shown in FIG6 , which will not be described in detail here.
[0259] Optionally, the running request of the first software module is: deploy the first software module into the first computing instance set that has been opened for running; the processing unit 1002 is also used to refuse to deploy the first software module if the total cloud resources occupied by the second computing instance set exceeds the first cloud resource authorization specification.
[0260] Optionally, the detailed implementation process of the processing unit 1002 refusing to deploy the first software module can be found in the relevant content of step 503 of the method 500 shown in FIG5 , which will not be described in detail here.
[0261] Optionally, the running request of the first software module is: opening a first computing instance set for the first software module and using the first computing instance set to run the first software module; the processing unit 1002 is also used to refuse to open the first computing instance set if the total cloud resources occupied by the second computing instance set exceeds the first cloud resource authorization specification.
[0262] Optionally, the detailed implementation process of the processing unit 1002 refusing to activate the first software module can be found in the relevant content of step 904 of the method 900 shown in FIG9 , which will not be described in detail here.
[0263] Optionally, the acquiring unit 1001 is configured to:
[0264] Obtaining an authorization code corresponding to the first software module;
[0265] A first cloud resource authorization specification is obtained from a first corresponding relationship based on the authorization code, where the first corresponding relationship includes the authorization code and the first cloud resource authorization specification.
[0266] Optionally, for the detailed implementation process of the acquisition unit 1001 obtaining the authorization code, please refer to step 605 of method 600 shown in Figure 6, refer to step 704 of method 700 shown in Figure 7, refer to step 804 of method 800 shown in Figure 8, or refer to the relevant content in step 902 of method 900 shown in Figure 9, which will not be described in detail here.
[0267] Optionally, the detailed implementation process of the acquisition unit 1001 acquiring the first cloud resource authorization specification can be found in step 502 of method 500 shown in Figure 5, step 605 of method 600 shown in Figure 6, step 705 of method 700 shown in Figure 7, step 804 of method 800 shown in Figure 8, or relevant content in step 902 of method 900 shown in Figure 9, which will not be described in detail here.
[0268] Optionally, the first correspondence further includes identification information of the first software module, and the acquiring unit 1001 is configured to:
[0269] Obtaining identification information of the first software module;
[0270] A first cloud resource authorization specification is obtained from the first corresponding relationship based on the authorization code and the identification information.
[0271] Optionally, the acquiring unit 1001 is configured to:
[0272] Obtaining an authorization code corresponding to the first software module, where the authorization code is obtained by encrypting the first cloud resource authorization specification using a private key;
[0273] The authorization code is decrypted using the public key corresponding to the private key to obtain the first cloud resource authorization specification.
[0274] Optionally, the first cloud resource authorization specification includes the number of computing instances and resource specifications occupied by a single computing instance;
[0275] The total cloud resources occupied by the second computing instance set do not exceed the authorized specifications of the first cloud resources in the following situations:
[0276] The number of computing instances included in the second computing instance set does not exceed the number of computing instances, and the resource specifications occupied by each computing instance included in the second computing instance set do not exceed the resource specifications occupied by the single computing instance.
[0277] Optionally, the computing instances included in the second computing instance set are containers, and the containers included in the second computing instance set belong to at least one container set. The first cloud resource authorization specification also includes one or more of the following: the number of service gateways, the number of namespaces, the number of container sets, or the number of machines; the situation where the total cloud resources occupied by the second computing instance set does not exceed the first cloud resource authorization specification also includes one or more of the following situations: the number of service gateways communicating with the containers included in the second computing instance set does not exceed the number of service gateways, the number of the at least one container set does not exceed the number of container sets, the number of machines where the containers included in the second computing instance set are located does not exceed the number of machines, or the number of namespaces to which the at least one container set belongs does not exceed the number of namespaces.
[0278] Optionally, the first cloud resource authorization specification includes one or more of the following: the number of embedded network processors NPUs, the number of graphics processors GPUs, the number of central processing units CPUs, the number of CPU cores, memory size, network bandwidth size, the number of network interfaces, or storage volume size.
[0279] Optionally, the obtaining unit 1001 is further configured to obtain an operating scope authorized to the first software module;
[0280] The processing unit 1002 is configured to run a first software module using a first computing instance set within the operating scope.
[0281] Optionally, the detailed implementation process of the obtaining unit 1001 obtaining the operating scope authorized to the first software module can be found in the relevant content of step 905 of the method 900 shown in FIG9 , which will not be described in detail here.
[0282] Optionally, the detailed implementation process of the processing unit 1002 using the first computing instance set to run the first software module within the operating scope can be found in the relevant content of step 905 of the method 900 shown in FIG9 , which will not be described in detail here.
[0283] Optionally, the running range includes one or more of the following: the total running time of the first software module, the total number of calls of the first software module, or the total number of concurrent calls of the first software module.
[0284] Optionally, the second computing instance set includes one or more of the following computing instances: a virtual machine, a bare metal server, or a container.
[0285] In an embodiment of the present application, the first cloud resource authorization specification is the resource specification authorized for the operation of the first software module, and the second computing instance set includes the first computing instance set. Therefore, when the acquisition unit obtains the operation request of the first software module and obtains the first cloud resource authorization specification corresponding to the first software module, the processing unit uses the first computing instance set to operate the first software module when the total cloud resources occupied by the second computing instance set does not exceed the first cloud resource authorization specification. This avoids expanding the resources occupied by the operation of the first software module, thereby avoiding expanding the scope of use of the first software module and thus preventing economic losses to the software vendor.
[0286] Referring to Figure 11 , an embodiment of the present application provides a computing device 1100. For example, the computing device 1100 may be a device included in the cloud service platform 101 or a device included in the cloud transaction platform 102 in the cloud system 100 shown in Figures 1 , 2 , 3 , or 4 , or a device in the cloud transaction platform of the method 500 shown in Figure 5 , or a device in the cloud service platform of the method 600 shown in Figure 6 , or a device in the cloud service platform of the method 700 shown in Figure 7 , or a device in the cloud service platform of the method 800 shown in Figure 8 , or a device in the cloud service platform of the method 900 shown in Figure 9 .
[0287] As shown in Figure 11 , computing device 1100 includes a bus 1102, a processor 1104, a memory 1106, and a communication interface 1108. Processor 1104, memory 1106, and communication interface 1108 communicate with each other via bus 1102. Computing device 1100 may be a server or a terminal device. It should be understood that this application does not limit the number of processors and memories in computing device 1100.
[0288] Bus 1102 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, among others. Buses may be classified as address buses, data buses, control buses, and the like. For ease of illustration, FIG11 illustrates a single bus line, but this does not imply a single bus or type of bus. Bus 1102 may include a path for transmitting information between various components of computing device 1100 (e.g., memory 1106, processor 1104, and communication interface 1108).
[0289] The processor 1104 may include any one or more processors such as a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).
[0290] The memory 1106 may include volatile memory, such as random access memory (RAM). The processor 1104 may also include non-volatile memory, such as read-only memory (ROM), flash memory, hard disk drive (HDD), or solid state drive (SSD).
[0291] Referring to FIG11 , the memory 1106 stores executable program code, and the processor 1104 executes the executable program code to respectively implement the functions of the acquisition unit 1001 and the processing unit 1002 in the apparatus 1000 shown in FIG10 , thereby implementing the method provided by any of the above embodiments. In other words, the memory 1106 stores instructions for executing the method provided by any of the above embodiments. Alternatively,
[0292] The communication interface 1108 uses a transceiver module such as, but not limited to, a network interface card or a transceiver to implement communication between the computing device 1100 and other devices or a communication network.
[0293] Embodiments of the present application also provide a cluster. The cluster includes at least one computing device. The computing device can be a server, such as a central server, an edge server, or a local server in a local data center. In some embodiments, the computing device can also be a terminal device such as a desktop computer, a laptop computer, or a smartphone.
[0294] As shown in Figure 12, the cluster includes at least one computing device 1100. The memory 1106 of one or more computing devices 1100 in the cluster may store the same instructions for executing the method provided in any of the above embodiments.
[0295] In some possible implementations, the memory 1106 of one or more computing devices 1100 in the cluster may also store partial instructions for executing the aforementioned software module operation method. In other words, a combination of one or more computing devices 1100 may collectively execute instructions for executing the software module operation method provided in any of the aforementioned embodiments.
[0296] In some possible implementations, one or more computing devices in the cluster can be connected via a network. The network can be a wide area network (WAN) or a local area network (LAN), among others. FIG. 13 illustrates one possible implementation. As shown in FIG. 13 , two computing devices 1100A and 1100B are connected via a network. Specifically, each computing device is connected to the network via a communication interface within the computing device.
[0297] In this type of possible implementation, the memory 1106 in the computing device 1100A stores instructions for executing the functions of the acquisition unit 1001 in the embodiment shown in FIG10 . Simultaneously, the memory 1106 in the computing device 1100B stores instructions for executing the functions of the processing unit 1002 in the embodiment shown in FIG10 .
[0298] It should be understood that the functionality of the computing device 1100A shown in FIG13 may also be implemented by multiple computing devices 1100. Similarly, the functionality of the computing device 1100B may also be implemented by multiple computing devices 1100.
[0299] The present application also provides another embodiment of a cluster. The connection relationship between the computing devices in the cluster can be similar to the connection method of the cluster described in Figure 13. The difference is that the memory 1106 of one or more computing devices 1100 in the cluster can store the same instructions for executing the method provided in any of the above embodiments.
[0300] In some possible implementations, the memory 1106 of one or more computing devices 1100 in the cluster may also store partial instructions for executing the method provided in any of the above embodiments. In other words, the combination of one or more computing devices 1100 can jointly execute instructions for executing the method provided in any of the above embodiments.
[0301] The present application also provides a computer program product comprising instructions. The computer program product may be software or a program product comprising instructions that can be run on a computing device or stored on any available medium. When the computer program product is run on at least one computing device, the at least one computing device executes the method provided in any of the above embodiments.
[0302] The present application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium that can be stored by a computing device or a data storage device such as a data center that contains one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive). The computer-readable storage medium includes instructions that instruct the computing device to execute the method provided in any of the above embodiments.
[0303] Those skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware, or may be accomplished by a program to instruct the relevant hardware, and the program may be stored in a computer-readable storage medium, which may be a read-only memory, a disk, or an optical disk, etc.
[0304] The above description is merely an exemplary embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
Claims
1. A software module operation method, characterized in that: The method comprises: Obtaining a running request for a first software module, where the first software module is associated with a first user, and the running request for the first software module is: running the first software module that has been deployed in a first computing instance set, or deploying the first software module into an already activated first computing instance set for running, or activating a first computing instance set for the first software module and using the first computing instance set to run the first software module, where the first computing instance set includes at least one computing instance; Obtaining a first cloud resource authorization specification corresponding to the first software module; If the total cloud resources occupied by the second computing instance set does not exceed the first cloud resource authorization specification, the first software module is run using the first computing instance set, and the second computing instance set includes the first computing instance set.
2. The method according to claim 1, characterized in that The second computing instance set also includes a third computing instance set, and the third computing instance set includes at least one computing instance that has run the first software module.
3. The method according to claim 1 or 2, characterized in that The running request of the first software module is: running the first software module that has been deployed in the first computing instance set; the method further includes: If the total cloud resources occupied by the second set of computing instances exceeds the first cloud resource authorization specification, the first software module is refused to run.
4. The method according to claim 1 or 2, characterized in that: The operation request of the first software module is: deploying the first software module into the first computing instance set that has been opened for operation; the method further includes: If the total cloud resources occupied by the second set of computing instances exceeds the first cloud resource authorization specification, the first software module is refused to be deployed.
5. The method according to claim 1 or 2, characterized in that: The operation request of the first software module is: opening a first computing instance set for the first software module and using the first computing instance set to operate the first software module; The method further comprises: If the total cloud resources occupied by the second set of computing instances exceeds the first cloud resource authorization specification, the first set of computing instances is refused to be opened.
6. The method according to any one of claims 1 to 5, characterized in that: The obtaining of the first cloud resource authorization specification corresponding to the first software module includes: Obtaining an authorization code corresponding to the first software module; The first cloud resource authorization specification is obtained from a first corresponding relationship based on the authorization code, where the first corresponding relationship includes the authorization code and the first cloud resource authorization specification.
7. The method according to claim 6, characterized in that The first corresponding relationship also includes identification information of the first software module, and the method further includes: Obtaining identification information of the first software module; The obtaining the first cloud resource authorization specification from the first corresponding relationship based on the authorization code includes: The first cloud resource authorization specification is obtained from the first corresponding relationship based on the authorization code and the identification information.
8. The method according to any one of claims 1 to 5, characterized in that: The obtaining of the first cloud resource authorization specification corresponding to the first software module includes: Obtaining an authorization code corresponding to the first software module, where the authorization code is obtained by encrypting the first cloud resource authorization specification using a private key; The authorization code is decrypted using a public key corresponding to the private key to obtain the first cloud resource authorization specification.
9. The method according to any one of claims 1 to 8, characterized in that The first cloud resource authorization specification includes the number of computing instances and the resource specifications occupied by a single computing instance; The situation where the total cloud resources occupied by the second computing instance set does not exceed the first cloud resource authorization specification includes: The number of computing instances included in the second computing instance set does not exceed the number of computing instances, and the resource specifications occupied by each computing instance included in the second computing instance set does not exceed the resource specifications occupied by the single computing instance.
10. The method according to claim 9, characterized in that The computing instances included in the second computing instance set are containers, the containers included in the second computing instance set belong to at least one container set, and the first cloud resource authorization specification further includes one or more of the following: the number of service gateways, the number of namespaces, the number of container sets, or the number of machines; The situation where the total cloud resources occupied by the second computing instance set does not exceed the first cloud resource authorization specification also includes one or more of the following situations: the number of service gateways communicating with the containers included in the second computing instance set does not exceed the number of service gateways, and the at least one The number of container sets does not exceed the number of container sets, the number of machines on which the containers included in the second computing instance set are located does not exceed the number of machines, or the number of namespaces to which the at least one container set belongs does not exceed the number of namespaces.
11. The method according to any one of claims 1 to 10, characterized in that: The first cloud resource authorization specification includes one or more of the following: the number of embedded network processors NPUs, the number of graphics processors GPUs, the number of central processing units CPUs, the number of CPU cores, memory size, network bandwidth size, the number of network interfaces or storage volume size.
12. The method according to any one of claims 1 to 11, characterized in that: The method further comprises: Acquiring the operation scope authorized to the first software module; The using the first computing instance set to run the first software module includes: Within the operating scope, the first software module is run using the first computing instance set.
13. The method according to claim 12, characterized in that The operation range includes one or more of the following: the total operation time of the first software module, the total number of calls of the first software module, or the total number of concurrent calls of the first software module.
14. The method according to any one of claims 1 to 9, characterized in that: The second computing instance set includes one or more of the following computing instances: a virtual machine, a bare metal server, or a container.
15. A software module running device, characterized in that: The device comprises: an acquisition unit, configured to acquire an operation request of a first software module, the first software module being associated with a first user, the operation request of the first software module being: operating the first software module that has been deployed in a first computing instance set, or deploying the first software module into an already activated first computing instance set for operation, or activating a first computing instance set for the first software module and using the first computing instance set to operate the first software module, the first computing instance set including at least one computing instance; The acquisition unit is further used to acquire a first cloud resource authorization specification corresponding to the first software module; A processing unit is used to use the first computing instance set to run the first software module if the total cloud resources occupied by the second computing instance set does not exceed the first cloud resource authorization specification, and the second computing instance set includes the first computing instance set.
16. The device according to claim 15, characterized in that The second computing instance set also includes a third computing instance set, and the third computing instance set includes at least one computing instance that has run the first software module.
17. The device according to claim 15 or 16, characterized in that The running request of the first software module is: running the first software module that has been deployed in the first computing instance set; the processing unit is further used to: If the total cloud resources occupied by the second set of computing instances exceeds the first cloud resource authorization specification, the first software module is refused to run.
18. The device according to claim 15 or 16, characterized in that The operation request of the first software module is: deploying the first software module into the first computing instance set that has been opened for operation; the processing unit is further used to: If the total cloud resources occupied by the second set of computing instances exceeds the first cloud resource authorization specification, the first software module is refused to be deployed.
19. The device according to claim 15 or 16, characterized in that The running request of the first software module is: opening a first computing instance set for the first software module and using the first computing instance set to run the first software module; the processing unit is further used to: If the total cloud resources occupied by the second set of computing instances exceeds the first cloud resource authorization specification, the first set of computing instances is refused to be opened.
20. The device according to any one of claims 15 to 19, characterized in that The acquisition unit is used to: Obtaining an authorization code corresponding to the first software module; The first cloud resource authorization specification is obtained from a first corresponding relationship based on the authorization code, where the first corresponding relationship includes the authorization code and the first cloud resource authorization specification.
21. The device according to claim 20, characterized in that The first corresponding relationship also includes identification information of the first software module, and the acquiring unit is used to: Obtaining identification information of the first software module; The first cloud resource authorization specification is obtained from the first corresponding relationship based on the authorization code and the identification information.
22. The device according to any one of claims 15 to 19, characterized in that The acquisition unit is used to: Obtaining an authorization code corresponding to the first software module, where the authorization code is obtained by encrypting the first cloud resource authorization specification using a private key; The authorization code is decrypted using a public key corresponding to the private key to obtain the first cloud resource authorization specification.
23. The device according to any one of claims 15 to 22, characterized in that The first cloud resource authorization specification includes the number of computing instances and the resource specifications occupied by a single computing instance; The situation where the total cloud resources occupied by the second computing instance set does not exceed the first cloud resource authorization specification includes: The number of computing instances included in the second computing instance set does not exceed the number of computing instances, and the resource specifications occupied by each computing instance included in the second computing instance set does not exceed the resource specifications occupied by the single computing instance.
24. The device according to claim 23, characterized in that The computing instances included in the second computing instance set are containers, the containers included in the second computing instance set belong to at least one container set, and the first cloud resource authorization specification further includes one or more of the following: the number of service gateways, the number of namespaces, the number of container sets, or the number of machines; The case where the total cloud resources occupied by the second computing instance set does not exceed the first cloud resource authorization specification also includes one or more of the following cases: the number of service gateways communicating with the containers included in the second computing instance set does not exceed the number of service gateways, the number of at least one container set does not exceed the number of container sets, the number of machines on which the containers included in the second computing instance set are located does not exceed the number of machines, or the number of namespaces to which the at least one container set belongs does not exceed the number of namespaces.
25. The device according to any one of claims 15 to 24, characterized in that The first cloud resource authorization specification includes one or more of the following: the number of embedded network processors NPU, the number of graphics processors GPU, the number of central processing units CPU, the number of CPU cores, memory size, network bandwidth size, number of network interfaces or storage volume size.
26. The device according to any one of claims 15 to 25, characterized in that The acquisition unit is further used to acquire the operation scope authorized to the first software module; The processing unit is configured to run the first software module using the first computing instance set within the operating scope.
27. The device according to claim 26, characterized in that The operation range includes one or more of the following: the total operation time of the first software module, the total number of calls of the first software module, or the total number of concurrent calls of the first software module.
28. The device according to any one of claims 15 to 23, characterized in that The second computing instance set includes one or more of the following computing instances: a virtual machine, a bare metal server, or a container.
29. A computing device cluster, characterized in that: The cluster includes at least one computing device, each of the at least one computing device includes at least one processor and at least one memory, and the at least one memory stores computer-readable instructions; the at least one processor executes the computer-readable instructions so that the cluster executes the method according to any one of claims 1 to 14.
30. A computer storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 14 is implemented.
31. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 14 is implemented.
Citation Information
Patent Citations
Software module operation method and device and storage medium
CN118842840A
Method, device, and apparatus for resource usage control under cloud management platform architecture
CN108932166A
Method, device and system for scheduling calculation instances
CN114363414A
Cloud-edge collaborative application management method in edge computing and corresponding device
CN114625479A
Virtual machine deployment method and OMM virtual machine
US20200110631A1
