Software module operation method and device and storage medium
By obtaining and following cloud resource authorization specifications, the resource occupation of software modules is controlled, which solves the problem of users' unlimited expansion of resource usage in cloud computing resource transactions and protects the economic interests of software suppliers.
Patent Information
- Application Number
- CN202310934312.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-04-24
- Filing Date
- 2023-07-27
- Publication Date
- 2024-10-25
AI Technical Summary
In cloud computing resource transactions, users may expand the resources occupied by computing instances used to run software modules without limit, causing the software supplier to suffer economic losses.
By obtaining the running request of the software module and the corresponding cloud resource authorization specifications, it is ensured that the software module is run or deployed under conditions that do not exceed the authorization specifications to avoid expanding resource occupation. Specific measures include obtaining the running request of the software module, obtaining its corresponding cloud resource authorization specification, and using the computing instance set to run or deploy the software module when the total occupied resources do not exceed the authorization specification.
It effectively avoids the economic losses caused by the expansion of resource occupation by software suppliers, ensures the control of the use scope of software modules, and protects the interests of suppliers.
Smart Images

Figure CN118842840A_ABST
Abstract
Description
[0001] This application claims the priority of Chinese patent application No. 202310449545.X, filed on April 24, 2023, and entitled “A method, device and system for software authorization”, the entire contents of which are incorporated herein by reference. Also, this application claims the priority of Chinese patent application No. 202310449857.0, filed on April 24, 2023, and entitled “A method, device and system for software authorization”, the entire contents of which are incorporated herein by reference. Also, this application claims the priority of Chinese patent application No. 202310449632.5, filed on April 24, 2023, and entitled “A method, device and system for software authorization”, the entire contents of which are incorporated herein by reference. 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 cloud computing resources continues to grow. The types of resources traded include computing, storage, network, and software assets. Among these transactions, one type of transaction for the right to use software modules is becoming increasingly frequent.
[0004] The supplier of the software module can upload the software module to the cloud store. Users can purchase the software module in the cloud store, deploy the software module on a computing instance in the cloud service platform, and use the computing instance to run the software module.
[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 supplier. Summary of the invention
[0006] The present application provides a software module operation method, device and storage medium to avoid economic losses to software suppliers. The technical solution is as follows:
[0007] In a first aspect, the present application provides a method for running a software module, in which a running request of a first software module is obtained, the first software module is associated with a first user, and the running request of 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 opened first computing instance set for running or 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 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.
[0008] The first cloud resource authorization specification is a 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 receiving the operation request of the first software module, the first cloud resource authorization specification corresponding to the first software module is obtained, and 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 operate the first software module. In this way, it is possible to avoid expanding the resources occupied by the operation of the first software module, thereby avoiding expanding the scope of use of the first software module, thereby avoiding economic losses to the software supplier.
[0009] In a possible implementation, 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. In this way, 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, thereby avoiding expanding the scope of use of the first software module and avoiding economic losses to the software supplier.
[0010] In another possible implementation, the request to run the first software module is: run the first software module that has been deployed in the first computing instance set; if the total cloud resources occupied by the second computing instance set exceeds the first cloud resource authorization specification, refuse to run the first software module, thereby avoiding expanding the resources occupied by running the first software module.
[0011] In another possible implementation, the request to run the first software module is: deploy the first software module into the first computing instance set that has been enabled for running; if the total cloud resources occupied by the second computing instance set exceeds the first cloud resource authorization specification, the first software module is rejected for deployment, thereby avoiding expanding the resources occupied by the deployment of the first software module.
[0012] In another possible implementation, 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; if the total cloud resources occupied by the second computing instance set exceeds the first cloud resource authorization specification, refusing to open the first computing instance set, thereby avoiding expanding the resources occupied by opening the first software module.
[0013] 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 corresponding relationship, where the first corresponding relationship includes the authorization code and the first cloud resource authorization specification. In this way, the first cloud resource authorization specification can be obtained through the authorization code.
[0014] 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 to improve the accuracy of obtaining the first cloud resource authorization specification.
[0015] In another possible implementation, an authorization code corresponding to the first software module is obtained, 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. In this way, the first cloud resource authorization specification can be obtained through the authorization code.
[0016] 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 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 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, so as to avoid expanding the resources occupied by running the first software module.
[0017] 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 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 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 at least one container set belongs does not exceed the number of namespaces.
[0018] 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.
[0019] In another possible implementation, the operation scope authorized to the first software module is obtained. Within the operation scope, the first software module is operated using the first computing instance set. In this way, the operation scope of the first software module is controlled to ensure the economic interests of the software supplier.
[0020] In another possible implementation, the operating range includes one or more of the following: the total operating 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.
[0021] 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.
[0022] In a second aspect, the present application provides a software module running 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.
[0023] 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 manner of the first aspect.
[0024] 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 manner of the first aspect.
[0025] 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 manner of the first aspect.
[0026] 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
[0027] Figure 1 It is a structural diagram of a cloud system provided by an embodiment of the present application;
[0028] Figure 2 is a schematic diagram of the structure of another cloud system provided in an embodiment of the present application;
[0029] Figure 3 is a schematic diagram of the structure of another cloud system provided in an embodiment of the present application;
[0030] Figure 4 is a schematic diagram of the structure of another cloud system provided in an embodiment of the present application;
[0031] Figure 5 It is a flow chart of a software module operation method provided in an embodiment of the present application;
[0032] Figure 6 is a flow chart of another software module operation method provided in an embodiment of the present application;
[0033] Figure 7 is a flow chart of another software module operation method provided in an embodiment of the present application;
[0034] Figure 8 is a flow chart of another software module operation method provided in an embodiment of the present application;
[0035] Fig. 9 is a flow chart of another software module operation method provided in an embodiment of the present application;
[0036] Fig.10 This is a schematic diagram of the structure of a software module operation device provided in Embodiment 4 of the present application;
[0037] Fig.11 is a schematic diagram of the structure of a computing device provided in an embodiment of the present application;
[0038] Fig.12 It is a schematic diagram of the structure of a cluster provided in an embodiment of the present application;
[0039] Fig.13 It is a schematic diagram of the structure of another cluster provided in an embodiment of the present application. DETAILED DESCRIPTION
[0040] The implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0041] See also Figure 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 , and the cloud service platform 101 can communicate with the cloud transaction platform 102 .
[0042] The cloud transaction platform 102 includes software assets and at least one cloud resource specification to be traded, and the cloud service platform 101 includes resources required for the operation of a software module, which is the software asset or a part of the software asset. Among them, at least one computing instance can be created on the cloud service platform 101, each computing instance occupies resources on the cloud service platform 101, and the computing instance is used to run the software module.
[0043] For the convenience of explanation, each user is referred to as a first user, and the first user can purchase the software asset or part of the software asset on the cloud trading platform 101. For the convenience of explanation, the software asset or part of the software asset purchased by the first user is referred to as a first software module, and 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.
[0044] When the first user purchases the first software module and the one cloud resource specification, the cloud transaction platform 102 conducts a transaction of the first software module and the one cloud resource specification with the first user, and authorizes the one cloud resource specification to the first software module. For ease of description, the one cloud resource specification is referred to as the first cloud resource authorization specification. The cloud service platform 101 can run the first software module.
[0045] 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.
[0046] In one embodiment, the cloud service platform 101 includes a first computing instance set, the first computing instance set includes at least one computing instance, and the 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.
[0047] Method 2: The cloud service platform 101 includes an activated first computing instance set, the first computing instance set 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.
[0048] Method three: the cloud service platform 101 opens 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.
[0049] 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.
[0050] In some embodiments, after completing the transaction of the first software module and the first cloud resource authorization specification, the cloud transaction platform 102 may generate an authorization code and save the 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, 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 identification of the first user and the first cloud resource authorization specification.
[0051] In some embodiments, see Figure 2 The cloud system 100 further includes a software supplier platform 103, which includes software assets. The software resources on the cloud transaction platform 102 are uploaded by the software supplier platform 103. After completing the transaction of the first software module and the first cloud resource authorization specification, the cloud transaction platform 102 generates a transaction order, which includes the first cloud resource authorization specification and the identification information of the first software module, and sends the transaction order to the software supplier platform 103. Optionally, the transaction order also includes the user identification of the first user and / or the identification information of the first software module.
[0052] The software supplier 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 identification of the first user, and the first cloud resource authorization specification.
[0053] In some embodiments, see Figure 3 The cloud transaction platform 102 includes a transaction module 1021 and a license server 1022 .
[0054] The transaction module 1021 is used to trade the first software module and the one cloud resource specification with the first user, and after the transaction is completed, generate a transaction order, the transaction order including the identification information of the first software module and the one cloud resource specification, and optionally, the transaction order may also include the user identification of the first user, and send the transaction order to the license server 1022.
[0055] 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 the sake of convenience, the cloud resource specification is referred to as a first cloud resource authorization specification.
[0056] 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.
[0057] In some embodiments, after generating the authorization code, the license server 1022 may also save it 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 identification of the first user, and the first cloud resource authorization specification.
[0058] 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.
[0059] In some embodiments, the license server 1022 can add the authorization code to the transaction order, so that the first user obtains 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.
[0060] In some embodiments, see Figure 3 , the cloud transaction platform 102 also includes a deployment manager 1023 .
[0061] After authorizing the first cloud resource authorization specification to the first software module, the license server 1022 sends a request including the module identifier of the first software module to the deployment manager 1023. The deployment manager 1023 is used to receive the request and deploy the first software module to the cloud service platform 101 based on the identifier information of the first software module.
[0062] 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.
[0063] 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.
[0064] In some embodiments, see Figure 4 When the software asset on the cloud transaction platform 102 is a software image, that is, the first software module is a software image, the computing instances included in the first computing instance set in the cloud transaction platform 102 are containers. The cloud service platform 101 includes a container management and scheduling module 1011, at least one service gateway 1012, and at least one machine 1013.
[0065] The container management scheduling module 1011 includes an image repository of a first user.
[0066] After completing the transaction of the first software module, the transaction module 1021 may store the first software module in the image repository of the first user.
[0067] When the first software module needs to be run, the first user can input a running request of the first software module to the container management and scheduling module 1011, and the container management and scheduling module 1011 activates the first computing instance set on the at least one machine 1013, and communicates with the container in the first computing instance set through some or all of the at least one service gateway 1012. The first software module is deployed in the first computing instance set, and the first computing instance set is used to run the first software module.
[0068] In some embodiments, when the software asset on the cloud trading platform 102 is a software copy, that is, the first software module is a software copy, and the cloud service platform 101 is a serverless platform. When the first software module needs to be run, the first user can input a running request of the first software module to the cloud service platform 101, and the cloud service platform 101 downloads the first software module from the cloud trading platform 102, activates the first computing instance set in the 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.
[0069] Next, the process of running the first software module will be described in detail through any of the following embodiments.
[0070] See also Figure 5 The present application embodiment provides a software module operation method 500, the method 500 is applied to Figure 1 , Figure 2 or Figure 3 The cloud system 100 shown. In the method 500, the cloud service platform includes a first computing instance set that has been opened for the first user. After the cloud transaction platform authorizes the first cloud resource authorization specification for the first software module, the first software module is deployed 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. See Figure 5 , the method 500 includes the following process.
[0071] 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, where the running request includes the first cloud resource authorization specification and identification information of the first software module.
[0072] The execution request is used to request that the first software module be deployed into the first computing instance that has been activated for centralized execution.
[0073] Optionally, the execution request may also include a 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.
[0074] 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, so the first software module is associated with the first user. The transaction module generates a transaction order, which includes identification information of the first software module, a user identification of the first user and the cloud resource specification, and sends the transaction order to the license server.
[0075] The license server receives the transaction order, uses the one cloud resource specification as the first cloud resource authorization specification, and authorizes the first cloud resource authorization specification to the first software module. The license server sends a run request for the first software module to the deployment manager, the run request including the first cloud resource authorization specification and identification information of the first software module. Optionally, the run request also includes a user identification of the first user and / or identification information of each computing instance in the first computing instance set.
[0076] In some embodiments, the cloud service platform includes at least one computing instance, and the at least one computing instance is activated in advance by the first user on the cloud service platform. The transaction module in the cloud transaction platform can obtain the identification information of each computing instance in the first computing instance set, and the first computing instance set includes the at least one computing instance or some computing instances in the at least one computing instance. The transaction order sent by the transaction module to the license server may also include the 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 operation request sent to the deployment manager also includes the identification information of each computing instance in the first computing instance set.
[0077] 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 has been activated by the first user. 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 not for the first time (second time, third time, ...), 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.
[0078] When the first user purchases the 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 corresponding relationship saved by the cloud service platform based on the user identification of the first user. If the cloud service platform does not include the third computing instance set, the identification information of the at least one computing instance is displayed. If the cloud service platform also includes the third computing instance set, the third computing instance set is obtained from the third corresponding relationship saved by the cloud service platform based on the user identification of the first user, 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 identification information of the displayed computing instances. The transaction module obtains the identification information of each computing instance in the first computing instance set selected by the first user.
[0079] Optionally, when a first user purchases a first software module, the transaction module in the cloud transaction platform receives identification information of each computing instance in a 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 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 a third computing instance set.
[0080] 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 including the at least one computing instance that the first user has activated, or the computing instances in the at least one computing instance excluding the third computing instance set.
[0081] In some embodiments, the first cloud resource authorization specification may be an 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.
[0082] In some embodiments, the first cloud resource authorization specification may be a resource specification of a single computing instance to be authorized, and 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 the first computing instance set for running the first software module, and the running request needs to include identification information of each computing instance in the first computing instance set.
[0083] 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.
[0084] In step 502, the total amount of cloud resources occupied by the second computing instance set is obtained through the following operations 5021-5022.
[0085] 5021: Obtain the cloud resource specifications occupied by each computing instance in the second computing instance set.
[0086] 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.
[0087] 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.
[0088] 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 corresponding relationship 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.
[0089] In some embodiments, the run request does not include the identification information of each computing instance in the first computing instance set, and the deployment manager obtains the identification information of the corresponding at least one computing instance from the second correspondence stored in the cloud service platform based on the user identification of the first user included in the run request, and the second computing instance set includes the at least one computing instance. Based on the identification information of each computing instance in the second computing instance set, the resource specifications occupied by each computing instance in the second computing instance set are queried from the cloud service platform. 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 except the third computing instance set.
[0090] 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.
[0091] 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.
[0092] In step 5022, the resource specifications occupied by each computing instance in the second computing instance set are accumulated to obtain the sum of cloud resources occupied by the second computing instance set. Optionally, the sum of cloud resources occupied by the second computing instance set includes 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,
[0093] The sum of cloud resources occupied by the second computing instance set includes resource specifications occupied by each computing instance in the second computing instance set. Optionally, the sum of cloud resources occupied by the second computing instance set includes 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.
[0094] 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.
[0095] In 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 obtains the first software module from the cloud transaction platform based on the identification information of the first software module, determines each computing instance included in the first computing instance set in the cloud service platform based on the identification information of each computing instance in the first computing instance set, 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 computing instance is used to run the first software module. 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.
[0096] In some embodiments, when the first cloud resource authorization specification is the authorized total resource specification, and the sum of cloud resources occupied by the second computing instance set is obtained by accumulating the resource specifications occupied by each computing instance in the second computing instance set, the deployment manager determines that the sum of cloud resources occupied by the second computing instance set does not exceed the first cloud resource authorization specification when the sum of 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.
[0097] 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 that: 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 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.
[0098] In some embodiments, when the first cloud resource authorization specification is the resource specification of a single computing instance, and the sum of cloud resources occupied by the second computing instance set includes the resource specification occupied by each computing instance in the second computing instance set, the deployment manager determines that the sum of cloud resources occupied by the second computing instance set does not exceed the first cloud resource authorization 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, determine each computing instance included in the first computing instance set in the cloud service platform, and deploy the first software module on each computing instance in the first computing instance set.
[0099] 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 that: 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.
[0100] In some embodiments, the first user may not activate the first computing instance set on the cloud service platform in advance, and the running request of the first software module sent by the license server to the deployment manager is used to request the deployment manager to activate the first computing instance set for the first software module and use the first computing instance set to run the first software module. In 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 includes the at least one computing instance, and deploys the first software module on each computing instance in the first computing instance set.
[0101] 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, uses at least one computing instance opened 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.
[0102] 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 uses a resource specification of each computing instance in at least one computing instance opened on the cloud service platform that is less than or equal to the resource specification of a single computing instance, and the number of opened 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 of each computing instance in the at least one computing instance 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 at least one computing instance 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 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 computing instance in 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 of each computing instance in the at least one computing instance 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 at least one computing instance is less than or equal to the storage volume size of a single computing instance.
[0103] 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.
[0104] In the embodiment of the present application, the running request of the first software module sent by the license server to the deployment manager includes the first cloud resource authorization specification, so that the deployment server obtains the total cloud resources occupied by the second computing instance set used to deploy the first software module, and deploys the first software module on the first computing instance set when the total cloud resources occupied by the second computing instance set does not exceed the first cloud resource authorization specification. In this way, it is possible to prevent the expansion of the cloud resources occupied by the first computing instance set used to deploy the first software module, avoid expanding the scope of use of the first software module, thereby protecting the interests of the software supplier and avoiding economic losses to the software supplier.
[0105] See also Figure 6 , the present application embodiment provides a software module operation method 400, the method 400 is applied to Figure 1 , Figure 2 or Figure 3 The cloud system 100 shown. In the method 400, 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 run 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. See Figure 6 , the method 600 includes the following process.
[0106] 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.
[0107] 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, which 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 a user identification of the first user.
[0108] 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.
[0109] 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.
[0110] 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.
[0111] 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, a short message or an email may be sent to the first user, and the short message or email may include the authorization code.
[0112] In some embodiments, the first user can purchase different cloud resource specifications for the first software module, so that the license server can authorize each cloud resource specification purchased by the first user for the first software module, and generate a different authorization code for each cloud resource specification. Optionally, the license server stores the user identification of the first user and the generated authorization code in a corresponding relationship between user identification and authorization code.
[0113] In some embodiments, the first cloud resource authorization specification may be an authorized total resource specification.
[0114] 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.
[0115] 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.
[0116] 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 opened 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 part 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.
[0117] Optionally, the operation by which the transaction module can obtain identification information of at least one computing instance can be:
[0118] The cloud service platform stores a second correspondence relationship, which includes the user identifier 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 relationship 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 transaction module obtains the identification information of the at least one computing instance selected by the first user. Or,
[0119] When a first user purchases a first software module, a 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, and the at least one computing instance is the above-mentioned m computing instances or some of the m computing instances.
[0120] For example, the transaction module may display at least one cloud resource specification as shown in Table 1 below to the first user, and the first user may choose to purchase cloud resource specification 1, and input identification information of two computing instances into the transaction module, where the identification information of the two computing instances is VM1 and VM2. The transaction module sends a transaction order to the license server, where the transaction order includes the identification information of the first software module, cloud resource specification 1, and identification information of the two computing instances VM1 and VM2.
[0121] Table 1
[0122] Specification Total number of CPUs Total memory size Cloud resource specifications 1 4CPU 8G Cloud resource specifications 2 8CPU 16G Cloud resource specifications 3 10CPU 32G
[0123] The license server receives the transaction order and authorizes cloud resource specification 1 to the first software module, that is, cloud resource specification 1 is the first cloud resource authorization specification. The two computing instances corresponding to VM1 and VM2 are authorized to the first software module. The contents authorized by the license server are shown in Table 2 below, and the deployment request sent to the deployment manager carries the contents shown in Table 2 below.
[0124] Table 2
[0125] Authorization Items Authorization Value Compute instance identification information VM1, VM2 Total number of CPUs 4 Total memory size 8G Total number of network interfaces Undefined Total storage volume size Undefined Total number of CPU cores Undefined
[0126] 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.
[0127] 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.
[0128] In mode 1, the deployment request includes identification information of at least one authorized computing instance, and 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 first software module is obtained from the cloud transaction platform, and the first software module is deployed on each computing instance in the at least one computing instance.
[0129] Mode 2: The deployment request includes the identification information of at least one authorized computing instance, and the deployment manager receives the 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 identification information of one or more computing instances authorized for deploying the first software module is obtained from the identification information of the n computing instances. Based on the identification information of the one or more computing instances, the one or more computing instances in the cloud service platform are determined. The first software module is obtained based on the identification information of the first software module, and the first software module is deployed on the one or more computing instances.
[0130] Mode 3: 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. The n computing instances in the cloud service platform are determined based on the identification information of the n 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 n computing instances.
[0131] Mode 4, the deployment request includes the user identifier of the first user, and the deployment manager obtains the identification information of the m computing instances from the second corresponding relationship saved by 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.
[0132] 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.
[0133] The first computing instance set includes the at least one computing instance or some 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 computing instances in the at least one computing instance, the first computing instance set includes the some computing instances.
[0134] In some embodiments, when a first user activates a first software module on a first set of computing instances on a cloud service platform, the first user also inputs the authorization code into the cloud service platform. The cloud service platform receives the authorization code and sends a request to run the first software module to a license server, where the request includes the authorization code.
[0135] In some embodiments, when a first user activates a first software module on a first computing instance set, 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.
[0136] Optionally, during implementation, the cloud service platform sends an acquisition request to the license server, the acquisition request including the user identifier of the first user. The license server receives the acquisition request, and based on the user identifier of the first user included in the acquisition request, obtains at least one corresponding authorization code from the correspondence between the user identifier and the authorization code, 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 to allow the first user to select an authorization code, obtains the authorization code selected by the first user, and sends a run request for the first software module to the license server, the run request including the authorization code.
[0137] 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 identification of the first user.
[0138] 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.
[0139] In step 605, the license server receives the run request, and based on the authorization code included in the run request, obtains the corresponding first cloud resource authorization specification from the first correspondence. Alternatively, based on the authorization code included in the run request and the identification information of the first software module, obtains the corresponding first cloud resource authorization specification from the first correspondence. Alternatively, based on the authorization code included in the run request, the identification information of the first software module, and the user identification of the first user, obtains the corresponding first cloud resource authorization specification from the first correspondence. Alternatively, the authorization code is decrypted using the public key included in the public-private key pair to obtain the first cloud resource authorization specification.
[0140] 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.
[0141] If the first user activates the first software module on the at least one computing instance at one 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] 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.
[0143] When the first user activates the first software module 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, and the third computing instance set includes computing instances that have run the first software module. The cloud service platform stores a third corresponding relationship, and the third corresponding relationship 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.
[0144] The operation request includes the user identification 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 the third corresponding relationship in the cloud service platform based on the user identification of the first user and the identification information of the first software module. The resource specifications of each computing instance in the third computing instance set are obtained 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 obtains the total cloud resources occupied by the second computing instance set 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.
[0145] In some embodiments, the detailed implementation process of the license server obtaining the resource specifications of each computing instance in the first computing instance set may be: the operation request includes the resource specifications of each computing instance in the first computing instance set, and the resource specifications of each computing instance in the first computing instance set are obtained from the operation request. The operation request includes the identification information of each computing instance in the first computing instance set, and based on the identification information of each computing instance in the first computing instance set, the resource specifications of each computing instance in the first computing instance set are queried from the cloud service platform.
[0146] 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.
[0147] In step 607, 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 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.
[0148] When the license server determines that the total cloud resources occupied by the second computing instance set exceeds the first cloud resource authorization specification, the license server 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.
[0149] 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.
[0150] 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 deploys the first software module on the activated 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, and 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. In this way, it is possible to 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.
[0151] See also Figure 7 , the present application embodiment provides a software module operation method 700, the method 700 is applied to Figure 1 , Figure 2 or Figure 3The cloud system 100 shown. 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, 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, the first computing instance can be used to run 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. Figure 7 , the method 700 includes the following process.
[0152] 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.
[0153] 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.
[0154] The license server receives the transaction order, uses the one 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.
[0155] 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.
[0156] 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.
[0157] 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, and the short message or email includes the authorization code.
[0158] In some embodiments, the first cloud resource authorization specification may be a resource specification occupied by an authorized single computing instance.
[0159] 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 opened by the first user on the cloud service platform. The transaction module in the cloud transaction platform may obtain a second computing instance set, and the second computing instance set includes the m computing instances or some of the m computing instances.
[0160] Optionally, the cloud service platform stores a correspondence between the user identification 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 correspondence between the user identification and the identification information of the computing instances stored in the cloud service platform based on the user identification 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 running the first software module from the m computing instances corresponding to the identification information of the m computing instances to form a second computing instance set. The transaction module obtains the second computing instance set.
[0161] 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.
[0162] For example, the transaction module may display at least one cloud resource specification as shown in Table 3 below to the first user, where each displayed cloud resource specification is a cloud resource specification occupied by a single computing instance, and the first user may choose to purchase cloud resource specification 4, and input identification information of two computing instances included in the second computing instance set to the transaction module, where the identification information of the two computing instances is VM1 and VM2. The transaction module sends a transaction order to the license server, where 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.
[0163] Table 3
[0164] Specification Number of CPUs in a single compute instance Memory size of a single computing instance Cloud resource specifications 4 1CPU 2G Cloud resource specifications 5 2CPU 4G Cloud resource specifications 6 3CPU 6G
[0165] The license server receives the transaction order and authorizes cloud resource specification 4 to the first software module, that is, cloud resource specification 4 is the first cloud resource authorization specification. The two computing instances corresponding to VM1 and VM2 are authorized to the first software module. The content authorized by the license server is shown in Table 4 below. The private key included in the public-private key pair is used to encrypt cloud resource specification 4, VM1, and VM2 to obtain an authorization code, and the authorization code is notified to the first user.
[0166] Table 4
[0167] Authorization Items Authorization Value Compute instance identification information VM1, VM2 Number of CPUs in a single compute instance 1 Memory size of a single computing instance 2G Number of network interfaces on a single compute instance Undefined Storage volume size of a single compute instance Undefined Number of CPU cores in a single computing instance Undefined
[0168] Step 702: The license server sends a deployment request to the deployment manager, where the deployment request includes identification information of the first software module and identification information of each computing instance in the second computing instance set.
[0169] 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.
[0170] 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 determines 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 first software module is obtained from the cloud service platform based on the identification information of the first software module, and the first software module is deployed on each computing instance in the second computing instance set.
[0171] 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.
[0172] Step 704: The first computing instance receives the execution request of the first software module and obtains the authorization code.
[0173] In step 704, the first user triggers a request to run the first software module to the first computing instance 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 inputs the authorization code to the first software module, and the first computing instance receives the authorization code.
[0174] Step 705: The first computing instance obtains the second computing instance set and the first cloud resource authorization specification based on the authorization code.
[0175] 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 authorization code is decrypted 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.
[0176] Step 706: If 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 runs the first software module.
[0177] 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.
[0178] 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. In this way, it is possible to 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.
[0179] See also Figure 8 , the present application embodiment provides a software module operation method 800, the method 800 is applied to Figure 1 , Figure 2 , Figure 3 or Figure 4 The cloud system 100 shown in FIG. 8 is a cloud trading platform that authorizes a first cloud resource authorization specification for a first software module. The first software module may be a software image. The cloud service platform creates a first computing instance set for running the first software module based on the first cloud resource authorization specification. Figure 8 , the method 800 includes the following process.
[0180] Step 801: The cloud transaction platform obtains a first software module and a first cloud resource authorization specification associated with a first user.
[0181] The first software module associated with the first user is a software module purchased by the first user.
[0182] 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.
[0183] The software supplier platform uploads the software image to be traded to the cloud trading platform, so that the first user can purchase the software image on the cloud trading 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.
[0184] 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, each cloud resource specification defining the number of containers capable of running the first software module and the container processing capacity.
[0185] 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 (neural-network processing units, NPUs), or the memory size. The cloud resource specification is used to limit the processing capacity of the container.
[0186] Optionally, the cloud resource specification also includes one or more of the following information: the number of service gateways, the number of sets of container sets, the number of machines, the validity period, or the maximum number of users that can be processed, etc. Assume that w is used to represent the number of service gateways, x is used to represent the number of containers, y is used to represent the number of sets, and z is used to represent the number of machines, and 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, and the y container sets include a total of x containers. The y container sets can be deployed on z machines, and each machine can be deployed with containers from one or more container sets, and the x containers communicate with the w service gateways.
[0187] 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, and 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.
[0188] Optionally, when purchasing the first cloud resource authorization specification, the first user may also configure a device identifier of at least one machine for running the first software module, and the first cloud resource authorization specification may also 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, etc.
[0189] 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 the first correspondence; optionally, 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 also encrypt the first cloud resource authorization specification using a private key to obtain the authorization code.
[0190] 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 the transaction order includes the identification information of the first software module and the one cloud resource specification, and send the transaction order to the license server. The license server receives the transaction order, uses the one 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 saves the corresponding relationship between the authorization code and the first cloud resource authorization specification in the first corresponding relationship, or saves the corresponding relationship between the authorization code, the identification information of the first software module, and the first cloud resource authorization specification in the first corresponding relationship. Alternatively, the license server encrypts the first cloud resource authorization specification using a private key to obtain an authorization code.
[0191] In some embodiments, the cloud transaction platform (license server) may not generate an authorization code, but the software supplier platform may generate the authorization code. In implementation, after generating a transaction order, the transaction module also sends the transaction order to the software supplier platform, and the software supplier platform generates an authorization code after receiving the transaction order. The corresponding relationship between the authorization code and the first cloud resource authorization specification is saved in the first corresponding relationship, or the corresponding relationship between the authorization code, the identification information of the first software module and the first cloud resource authorization specification is saved in the first corresponding relationship, or the corresponding relationship 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 corresponding relationship.
[0192] Next, an example is given to illustrate. Referring to Table 5 below, the cloud trading platform includes three cloud resource specifications corresponding to the first software module. The three cloud resource specifications are uploaded to the cloud trading platform by the software supplier and stored in the cloud trading platform.
[0193] Table 5
[0194] Container quantity Resource Specifications Number of collections Number of machines Cloud resource specifications 1 4 4CPU, 8G memory 2 2 Cloud resource specifications 2 8 6CPU, 16G memory 4 4 Cloud resource specifications 3 16 10CPU, 32G memory 8 6
[0195] 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 the two machines used to run the first software module. In this way, the cloud trading platform authorizes cloud resource specification 1 to the first software module and obtains the first cloud resource authorization specification, which includes device identifiers ID1 and ID2, and cloud resource specification 1, as shown in Table 6 below.
[0196] Table 6
[0197] Authorization Items Authorization Value Validity 2025-12-31 Equipment identification ID1 and ID2 Number of collections 2 Container quantity 4 Number of CPUs for a single container 4 Memory size of a single container 8G
[0198] In some embodiments, the first user can configure the first cloud resource authorization specification on the cloud trading platform, the cloud trading platform calculates the price of the first cloud resource authorization specification, and the first user completes the transaction of the first cloud resource authorization specification based on the price. Then the cloud transaction generates an authorization code, and the corresponding relationship between the authorization code and the first cloud resource authorization specification is saved in the first corresponding relationship, or the corresponding relationship between the authorization code, the identification information of the first software module and the first cloud resource authorization specification is saved in the first corresponding relationship. Alternatively, the cloud trading platform can also use a private key to encrypt the first cloud resource authorization specification to obtain the authorization code.
[0199] 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.
[0200] The cloud service platform includes a container management and scheduling module, the container management and scheduling module includes an image repository corresponding to a first user, and 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 saves the first software module.
[0201] After the cloud trading platform generates the authorization code, it can notify the first user of the authorization code. For example, the cloud trading platform can send the authorization code to the terminal device corresponding to the first user or display the authorization code to the first user.
[0202] Step 803: The container management scheduling module obtains the target resource specification configured by the first user, where the target resource specification defines the number of containers and the container processing capacity for running the first software module.
[0203] The container management scheduling module allows the first user to configure the target resource specifications for running the software image. Optionally, the container management scheduling module displays a configuration interface, the first user can configure the target resource specifications in the configuration interface, and the container management scheduling module obtains the target resource specifications from the configuration interface.
[0204] After obtaining the target resource specification, the container management and scheduling module may save the target resource specification. 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 specification.
[0205] 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.
[0206] 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.
[0207] In some embodiments, the container management and scheduling module obtains the corresponding first cloud resource authorization specification from the first correspondence stored in the cloud trading platform or the software supplier 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 in the cloud trading platform or the software supplier platform based on the authorization code and the 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 in the cloud trading platform or the software supplier platform based on the authorization code, the user identification of the first user and the identification information of the first software module.
[0208] 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.
[0209] 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 scheduling module, which receives and saves the public key.
[0210] 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.
[0211] In step 805, the container management scheduling module can obtain the corresponding target resource specification from the stored correspondence between the user identification and the target resource specification based on the user identification of the first user, compare the first cloud resource authorization specification with the target resource specification, and create at least one container in the cloud service platform based on the target resource specification when the target resource specification does not exceed the first cloud resource authorization specification.
[0212] In some implementations, the container management and scheduling module may further create at least one service gateway in the cloud service platform, and 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 in the first cloud resource authorization specification.
[0213] Among them, the at least one created container may belong to at least one container set, each container set includes one or more containers. The at least one container set is deployed in one or more machines on the cloud service platform, and for each of the one or more machines, the machine is used to run containers in the one or more container sets. In other words, the number of at least one container set does not exceed the number of container sets in the first cloud resource authorization specification, the number of machines where 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.
[0214] 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.
[0215] 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, where the third computing instance set includes a container that has run a first software module related to the first user.
[0216] 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 specification.
[0217] If the first user has triggered the container management scheduling module to create a container for the first software module before the current time, that is to say, 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 saves a third corresponding relationship, and the third corresponding relationship includes the user identifier of the first user, the identification information of the first software module and the third computing instance set, and the third computing instance set includes the container that has 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 accumulates the resource specifications occupied by each container in the third computing instance set and the target resource specifications to obtain the total cloud resources occupied by the second computing instance set.
[0218] 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.
[0219] 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.
[0220] In an embodiment of the present application, the cloud service platform obtains the 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. Among them, creating at least one container on the cloud service platform based on the first cloud resource authorization specification can make the total cloud resources occupied by the at least one container not exceed the first cloud resource authorization specification, so as to prevent the expansion of the cloud resources occupied by the at least one container used to deploy the first software module, avoid expanding the scope of use of the first software module, thereby protecting the interests of the software supplier and avoiding economic losses to the software supplier.
[0221] See also Fig. 9 , the present application embodiment provides a software module operation method 900, the method 900 is applied to Figure 1 , Figure 2 or Figure 3 The cloud system 100 is shown. In the method 900, the cloud transaction platform authorizes a first cloud resource authorization specification for a first software module, the first software module may be a software copy, and the Serverless platform creates a first computing instance set for running the first software module based on the first cloud resource authorization specification. Fig. 9 , the method 900 includes the following process.
[0222] 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.
[0223] The first software module associated with the first user is a software module purchased by the first user.
[0224] 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.
[0225] The software supplier platform uploads the software copy to be traded to the cloud trading platform, so that the first user can purchase the software copy on the cloud trading platform, that is, purchase the first software module.
[0226] 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, each cloud resource specification defining the number of computing instances capable of running the first software module and the processing capacity of the computing instances.
[0227] 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.
[0228] Optionally, the cloud resource specification also includes one or more of the following information: number of computing instances, validity period, or operating range, etc. Optionally, the operating range includes one or more of the following: total operating time of the first software module, total number of calls of the first software module, or total concurrency of the first software module.
[0229] When the first user purchases the first software module, the cloud trading platform stores the first user's user identification and the download address of the first software module in a corresponding relationship between the user identification and the download address. Also, 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 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.
[0230] In some embodiments, the cloud transaction platform may also generate an authorization code and notify the user of the authorization code.
[0231] In some embodiments, the cloud trading platform stores the correspondence between the authorization code and the first cloud resource authorization specification in a first correspondence. Alternatively, the cloud trading platform allocates 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, the first software module is a software copy, and the identification information of the first software module may be a copy identification of the software copy, etc.
[0232] 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, the transaction order includes the one cloud resource specification, and send the transaction order to the license server. The license server receives the transaction order, uses the one 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 notifies the user of the authorization code.
[0233] The license server stores the correspondence between the authorization code and the first cloud resource authorization specification in the first correspondence. Alternatively, the license server may also 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.
[0234] Step 902: The Serverless platform receives a request for executing the first software module, the request for executing the first software module includes the authorization code, and obtains the first cloud resource authorization specification from the cloud transaction platform based on the authorization code.
[0235] In step 902, the serverless platform also downloads a first software module associated with the first user. Optionally, the serverless platform obtains the download address of the first software module from the correspondence between the user identifier and the download address in the cloud trading platform based on the user identifier of the first user. Based on the download address, the first software module is downloaded from the cloud trading platform.
[0236] In step 902, the first user triggers a request to the Serverless platform to run the first software module by activating the first software module on the Serverless platform. The Serverless platform receives the run request and obtains the first cloud resource authorization specification from the cloud transaction platform based on the authorization code included in the run request. Optionally, the first cloud resource authorization specification can be obtained by the above two methods, method a and method b.
[0237] In method a, the identification information of the first software module is allocated by the cloud trading platform, and the first corresponding relationship stores the corresponding relationship between the authorization code, the identification information of the first software module, and the first cloud resource authorization specification. The serverless platform sends a request to the cloud trading platform, and the request includes the authorization code and the identification information of the first software module. The cloud trading platform receives the request, obtains the first cloud resource authorization specification from the first corresponding relationship based on the authorization code and the identification information of the first software simulation, and sends the first cloud resource authorization specification to the serverless platform. The serverless platform receives the first cloud resource authorization specification.
[0238] Method b: The identification information of the first software module is not assigned by the cloud trading platform, and the first correspondence relationship stores the correspondence relationship between the authorization code and the first cloud resource authorization specification. When the first user activates the first software module for the first time, the Serverless platform assigns the identification information of the first software module and sends a request to the cloud trading platform, which includes the authorization code and the identification information of the first software module. The cloud trading platform receives the request, and based on the authorization code, obtains the correspondence relationship between the authorization code and the first cloud resource authorization specification from the first correspondence relationship, and sends the first cloud resource authorization specification to the Serverless platform. The Serverless platform receives the first cloud resource authorization specification.
[0239] 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.
[0240] Step 903: The Serverless platform obtains the target resource specification configured by the first user, where the target resource specification defines the number of computing instances and the processing capacity of the computing instances used to run the first software module.
[0241] The serverless platform allows the first user to configure a target resource specification for running the software copy. Optionally, the serverless platform displays a configuration interface, and the first user can configure the target resource specification in the configuration interface, and the serverless platform obtains the target resource specification from the configuration interface.
[0242] 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.
[0243] 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.
[0244] 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 specification occupied by each computing instance created does not exceed the resource specification occupied by a single computing instance in the first cloud resource authorization specification.
[0245] 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 specification when 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 exceeds the first cloud resource authorization specification, the first computing instance set is refused to be opened.
[0246] 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, where the third computing instance set includes computing instances that have run a first software module related to the first user.
[0247] 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 is equal to the target resource specification.
[0248] If the first user has triggered the Serverless platform to create a computing instance for the first software module before the current time, that is to say, 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 the third computing instance set, and the third computing instance set includes the computing instance that has 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 accumulates the resource specifications occupied by each computing instance in the third computing instance set and the target resource specifications to obtain the total cloud resources occupied by the second computing instance set.
[0249] Step 905: The Serverless platform runs a first software module based on at least one computing instance included in the first computing instance set.
[0250] In some embodiments, the first user may not need to input the target resource specifications, so that 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.
[0251] In some embodiments, the first cloud resource authorization specification also includes an operating scope, and the Serverless platform also obtains the operating scope that has been authorized to the first software module; within the operating scope, the first software module is used to run.
[0252] In an embodiment of the present application, the Serverless platform obtains the 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. Among them, creating at least one computing instance on the Serverless platform based on the first cloud resource authorization specification can make the total cloud resources occupied by the at least one computing instance not exceed the first cloud resource authorization specification, which can prevent the expansion of the cloud resources occupied by the at least one computing instance 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 supplier and avoiding economic losses to the software supplier.
[0253] See also Fig.10 The present application embodiment provides a software module operation device 1000, the device 1000 is applied to Figure 1 , Figure 2 , Figure 3 or Figure 4 The cloud trading platform or cloud service platform in the cloud system shown. Fig.10 , the device 1000 comprises:
[0254] The acquisition unit 1001 is used to acquire an operation request of a first software module, where the first software module is associated with a first user, and the operation request of the first software module is: to operate the first software module that has been deployed in a first computing instance set, or to deploy the first software module into an already opened first computing instance set for operation, or to open a first computing instance set for the first software module and use the first computing instance set to operate the first software module;
[0255] The acquisition unit 1001 is further used to acquire a first cloud resource authorization specification corresponding to the first software module;
[0256] 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.
[0257] Optionally, the detailed implementation process of obtaining the operation request by the obtaining unit 1001 can be found in Figure 5 Step 502 of method 500 is shown in Figure 6 Step 605 of method 600 is shown in Figure 7 Step 704 of method 700 is shown in Figure 8 Step 804 of method 800 is shown, or, see Fig. 9 The relevant contents in step 902 of the method 900 are not described in detail here.
[0258] Optionally, the detailed implementation process of the acquisition unit 1001 acquiring the first cloud resource authorization specification can be found in Figure 5 Step 502 of method 500 is shown in Figure 6 Step 605 of method 600 is shown in Figure 7 Step 705 of method 700 is shown in Figure 8 Step 804 of method 800 is shown, or, see Fig. 9 The relevant contents in step 902 of the method 900 are not described in detail here.
[0259] Optionally, the processing unit 1002 uses the first computing instance set to run the first software module. Figure 5 Step 503 of method 500 is shown in Figure 6 Step 607 of method 600 is shown in Figure 7 Step 706 of method 700 is shown in Figure 8 Step 806 of method 800 is shown, or, see Fig. 9 The relevant contents in step 905 of the method 900 are not described in detail here.
[0260] 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.
[0261] Optionally, 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 1002 is further used to:
[0262] If the total cloud resources occupied by the second computing instance set exceeds the first cloud resource authorization specification, the first software module is refused to run.
[0263] Optionally, the detailed implementation process of the processing unit 1002 refusing to run the first software module is shown in Figure 6 The relevant contents in step 607 of the method 600 are not described in detail here.
[0264] 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.
[0265] Optionally, the detailed implementation process of the processing unit 1002 refusing to deploy the first software module is shown in Figure 5 The relevant contents in step 503 of the method 500 are not described in detail here.
[0266] 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.
[0267] Optionally, the detailed implementation process of the processing unit 1002 refusing to activate the first software module is shown in Fig. 9 The relevant contents in step 904 of the method 900 are not described in detail here.
[0268] Optionally, the acquisition unit 1001 is configured to:
[0269] Obtaining an authorization code corresponding to the first software module;
[0270] 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.
[0271] Optionally, the detailed implementation process of obtaining the authorization code by the obtaining unit 1001 can be found in Figure 6 Step 605 of method 600 is shown in Figure 7 Step 704 of method 700 is shown in Figure 8 Step 804 of method 800 is shown, or, see Fig. 9 The relevant contents in step 902 of the method 900 are not described in detail here.
[0272] Optionally, the detailed implementation process of the acquisition unit 1001 acquiring the first cloud resource authorization specification can be found in Figure 5 Step 502 of method 500 is shown in Figure 6 Step 605 of method 600 is shown in Figure 7 Step 705 of method 700 is shown in Figure 8 Step 804 of method 800 is shown, or, see Fig. 9 The relevant contents in step 902 of the method 900 are not described in detail here.
[0273] Optionally, the first correspondence further includes identification information of the first software module, and the acquiring unit 1001 is configured to:
[0274] Obtaining identification information of the first software module;
[0275] A first cloud resource authorization specification is obtained from the first corresponding relationship based on the authorization code and the identification information.
[0276] Optionally, the acquisition unit 1001 is configured to:
[0277] 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;
[0278] The authorization code is decrypted using a public key corresponding to the private key to obtain the first cloud resource authorization specification.
[0279] Optionally, the first cloud resource authorization specification includes the number of computing instances and resource specifications occupied by a single computing instance;
[0280] The situations where the total cloud resources occupied by the second computing instance set does not exceed the authorized specifications of the first cloud resources include:
[0281] 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.
[0282] 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 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 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.
[0283] 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.
[0284] Optionally, the acquisition unit 1001 is further configured to acquire an operation scope that has been authorized to the first software module;
[0285] The processing unit 1002 is configured to run a first software module using a first computing instance set within the operating scope.
[0286] Optionally, the detailed implementation process of the acquisition unit 1001 acquiring the operation scope authorized to the first software module is shown in Fig. 9 The relevant contents in step 905 of the method 900 are not described in detail here.
[0287] Optionally, the processing unit 1002 uses the first computing instance set to run the first software module within the operating range. Fig. 9 The relevant contents in step 905 of the method 900 are not described in detail here.
[0288] 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.
[0289] 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.
[0290] In the embodiment of the present application, the first cloud resource authorization specification is a resource specification authorized for the operation of the first software module, and the second computing instance set includes the first computing instance set. Therefore, the acquisition unit obtains the operation request of the first software module and the first cloud resource authorization specification corresponding to 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 processing unit uses the first computing instance set to operate the first software module. In this way, it is possible to avoid expanding the resources occupied by the operation of the first software module, thereby avoiding expanding the scope of use of the first software module, thereby avoiding economic losses to the software supplier.
[0291] See also Fig.11 , the present application embodiment provides a computing device 700. For example, the computing device 700 may be Figure 1 , Figure 2 , Figure 3 or Figure 4 The cloud service platform 101 in the cloud system 100 shown in the figure includes a device or a cloud transaction platform 102 includes a device, or Figure 5 The device in the cloud trading platform of the method 500 shown, or Figure 6 The device in the cloud service platform of the method 600 shown, or Figure 7 The device in the cloud service platform of the method 700 shown, or Figure 8 The device in the cloud service platform of the method 800 shown, or Fig. 9 Devices in a cloud service platform of the method 900 are shown.
[0292] like Fig.11 As shown, the computing device 1100 includes: a bus 1102, a processor 1104, a memory 1106, and a communication interface 1108. The processor 1104, the memory 1106, and the communication interface 1108 communicate through the bus 1102. The computing device 1100 can be a server or a terminal device. It should be understood that the present application does not limit the number of processors and memories in the computing device 1100.
[0293] The bus 1102 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.11 The bus 1102 may include a path for transmitting information between various components of the computing device 1100 (eg, the memory 1106, the processor 1104, and the communication interface 1108).
[0294] The processor 1104 may include any one or more of a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).
[0295] The memory 1106 may include a volatile memory, such as a random access memory (RAM). The processor 1104 may also include a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD), or a solid state drive (SSD).
[0296] See also Fig.11 , the memory 1106 stores executable program codes, and the processor 1104 executes the executable program codes to respectively implement Fig.10 The functions of the acquisition unit 1001 and the processing unit 1002 in the device 1000 shown in the figure are implemented to realize the method provided by any of the above embodiments. That is, the memory 1106 stores instructions for executing the method provided by any of the above embodiments. Or,
[0297] 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.
[0298] The embodiment of the present application also provides 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 smart phone.
[0299] like Fig.12 As shown, the cluster includes at least one computing device 1100. The memory 1106 in 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.
[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 software module operation method. In other words, the combination of one or more computing devices 1100 may jointly execute instructions for executing the software module operation method provided in any of the above embodiments.
[0301] In some possible implementations, one or more computing devices in the cluster may be connected via a network, which may be a wide area network or a local area network. Fig.13 A possible implementation is shown. Fig.13 As shown, two computing devices 1100A and 1100B are connected via a network. Specifically, they are connected to the network via a communication interface in each computing device.
[0302] In this type of possible implementation, the memory 1106 in the computing device 1100A stores the execution Fig.10 Instructions for obtaining the functions of the unit 1001 in the embodiment shown. Meanwhile, the memory 1106 in the computing device 1100B stores instructions for executing the following Fig.10 Instructions for the functionality of processing unit 1002 in the illustrated embodiment.
[0303] It should be understood that Fig.13 The functions of the computing device 1100A shown in FIG. 1100A may also be completed by multiple computing devices 1100. Similarly, the functions of the computing device 1100B may also be completed by multiple computing devices 1100.
[0304] The present application embodiment also provides another cluster. The connection relationship between the computing devices in the cluster can be similar to that of Fig.13 The connection mode of the cluster is different in that the memory 1106 in 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.
[0305] 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 may jointly execute instructions for executing the method provided in any of the above embodiments.
[0306] The present application also provides a computer program product including instructions. The computer program product may be software or a program product including instructions that can be run on a computing device or stored in any available medium. When the computer program product is run on at least one computing device, the at least one computing device executes the method provided in any of the above embodiments.
[0307] The embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium that can be stored by a computing device or a data storage device such as a data center containing one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk). The computer-readable storage medium includes instructions that instruct the computing device to execute the method provided in any of the above embodiments.
[0308] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0309] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present application shall be included in the protection scope 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 running request of the first software module is: deploying the first software module into the first computing instance set that has been enabled for running; 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 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.
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 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.
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
Cited By
Software module running method and apparatus, and storage medium
EP4694091A1
Software module running method and apparatus, and storage medium
WO2024222422A1
