WO2023142920A1 - Cloud service billing method and apparatus - Google Patents

Cloud service billing method and apparatus Download PDF

Info

Publication number
WO2023142920A1
WO2023142920A1 PCT/CN2023/070331 CN2023070331W WO2023142920A1 WO 2023142920 A1 WO2023142920 A1 WO 2023142920A1 CN 2023070331 W CN2023070331 W CN 2023070331W WO 2023142920 A1 WO2023142920 A1 WO 2023142920A1
Authority
WO
WIPO (PCT)
Prior art keywords
cloud service
virtual machine
user
resources
resource
Prior art date
Application number
PCT/CN2023/070331
Other languages
French (fr)
Chinese (zh)
Inventor
付森波
汤闻达
Original Assignee
华为云计算技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为云计算技术有限公司 filed Critical 华为云计算技术有限公司
Publication of WO2023142920A1 publication Critical patent/WO2023142920A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications
    • H04L12/1403Architecture for metering, charging or billing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/14Payment architectures specially adapted for billing systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5003Managing SLA; Interaction between SLA and QoS

Definitions

  • the embodiments of the present application relate to the technical field of the Internet, and in particular, to a cloud service charging method and device.
  • Cloud service usually refers to cloud service providers providing users with shared resource services. With the development of Internet technology, cloud services have been rapidly developed and used. At present, cloud service platforms can provide users with various cloud services such as infrastructure as a service (IaaS), platform as a service (PaaS), software as a service (SaaS), etc. . Cloud services usually include application platforms, databases, etc., reducing the complexity and maintenance costs of users deploying services independently.
  • IaaS infrastructure as a service
  • PaaS platform as a service
  • SaaS software as a service
  • cloud servers in the industry are billed according to the specifications and usage time of resources requested by users, but users often lack the knowledge of accurate resource requirements, resulting in excessive resource applications and low utilization of applied resources, which is equivalent to the cost of cloud services.
  • the use cost is higher.
  • Embodiments of the present application provide a cloud service charging method and device, which are used to reduce the cost of using cloud services.
  • the first aspect of the embodiment of the present application provides a cloud service billing method, including: obtaining the total resources required by the first cloud service; obtaining the available resources of the virtual machine purchased by the user; The total required resources determine the first application resources, and the first application resources and available resources are used to provide the first cloud service; the price of the first cloud service is determined according to the quantity of the first application resources.
  • the resources that need to be additionally applied can be determined according to the available resources of the virtual machine purchased by the user and the total resources required by the first cloud service.
  • the user only needs to purchase and pay for the additionally applied resources to enjoy To the same cloud service, the utilization rate of user resources is improved, and the cost of using cloud service is reduced.
  • obtaining the available resources of the virtual machine purchased by the user includes: receiving an instruction from the user, the instruction indicates a quality of service (quality of service, QoS) level, and the QoS level is used to limit the performance of the virtual machine purchased ; Determine the available resources of the purchased virtual machine according to the QoS level.
  • QoS quality of service
  • the user can set the QoS level for the purchased virtual machine.
  • the QoS level can indicate the minimum performance of the purchased virtual machine. Available resources of purchased virtual machines to avoid affecting user experience.
  • the method further includes: adjusting the resource allocation of the purchased virtual machine to detect the performance of the purchased virtual machine under different resource allocations; the above steps determine the available resources of the purchased virtual machine according to the QoS level Including: determining the available resources of the purchased virtual machine according to the QoS level and the performance of the purchased virtual machine under different resource allocations.
  • the resource supply of the purchased virtual machine is slowly adjusted so that the performance of the purchased virtual machine is reduced to the minimum level indicated by the QoS level, then all adjusted resources are the available resources of the purchased virtual machine, and avoid using The resources of the purchased virtual machine affect the performance of the purchased virtual machine to ensure user experience.
  • the above step of obtaining the available resources of the virtual machine purchased by the user includes: determining the available resources according to the quantity of resources input by the user.
  • the available resources can also be input by the user himself, and the billing system provides idle resources satisfying the QoS level, and the user enters the available resources within the range of the idle resources, so as to improve the flexibility of obtaining available resources.
  • the method further includes: determining the service rate of the first cloud service according to the QoS level and the quantity of the first applied resource; the above steps determine the price of the first cloud service according to the quantity of the first applied resource Including: determining the price of the first cloud service according to the quantity of the first application resource and the service fee rate.
  • the QoS level affects the amount of the first application resources
  • the number of the first application resources is less than the total resources required by the first cloud service, which reduces the pressure on the cloud service provider to provide the first cloud service
  • the service fee rate can be provided for the user's first cloud service fee
  • the service fee discount can be carried out on the basis of the quantity of the first application resources and the provision fee of the first cloud service, so as to determine the final first cloud service
  • the price can reduce the user's cloud service usage cost.
  • the method further includes: when the performance of the purchased virtual machine does not meet the QoS level, determining the second application resource that needs to be provided to the user; according to the quantity of the first application resource and the second application resource The quantity determines the new price.
  • the billing system can apply for a second application resource for the user to improve the flexibility of cloud service resource provision, so as to avoid affecting the user experience of the purchased virtual machine.
  • the method further includes: sending a notification to the user, the notification indicating that the first cloud service price changes.
  • the user is reminded of the current price of the first cloud service at any time, so as to improve the user's experience of using the cloud service.
  • the second aspect of the embodiments of the present application provides a cloud service billing device, which can implement the method in the first aspect or any possible implementation manner of the first aspect.
  • the apparatus includes corresponding units or modules for performing the above method.
  • the units or modules included in the device can be realized by means of software and/or hardware.
  • the device can be, for example, a network device, or a chip, a chip system, or a processor that supports the network device to implement the above method, or a logic module or software that can realize all or part of the functions of the network device.
  • the third aspect of the embodiment of the present application provides a computer device, including: a processor, the processor is coupled with a memory, and the memory is used to store instructions, and when the instructions are executed by the processor, the computer device implements the above first aspect Or the method in any possible implementation manner in the first aspect.
  • the computer device may be, for example, a network device, or a chip or a chip system that supports the network device to implement the above method.
  • the fourth aspect of the embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium stores instructions, and when the instructions are executed, the computer executes the first aspect or any possibility of the first aspect The method provided by the embodiment.
  • the fifth aspect of the embodiment of the present application provides a computer program product.
  • the computer program product includes computer program code.
  • the computer program code When executed, the computer executes the first aspect or any possible implementation of the first aspect. method provided.
  • Fig. 1 is a schematic diagram of the architecture of the cloud service management platform provided by the embodiment of the present application
  • FIG. 2 is a schematic flow diagram of a cloud service charging method provided in an embodiment of the present application
  • FIG. 3 is a schematic diagram of resource usage of a purchased virtual machine and applied for cloud service provided by an embodiment of the present application
  • FIG. 4 is a schematic diagram of usage of another purchased virtual machine and applied cloud service resources provided by the embodiment of the present application.
  • FIG. 5 is a schematic diagram of a cloud service application interface provided by an embodiment of the present application.
  • FIG. 6 is a schematic diagram of another cloud service application interface provided by the embodiment of the present application.
  • FIG. 7 is a schematic diagram of the implementation process of cloud service application provided by the embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of a cloud service billing device provided in an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of a computer device provided by an embodiment of the present application.
  • Embodiments of the present application provide a cloud service charging method and device, which are used to reduce the cost of using cloud services.
  • Cloud services are distributed computing, parallel computing, utility computing, network storage technologies, virtualization, load balancing, and content distribution networks. delivery network) and other traditional computer and network technology development fusion product. Cloud services are the accretion, usage, and interaction patterns of Internet-based related services, usually involving the provision of dynamically scalable and often virtualized resources over the Internet. Understandably, the cloud is a metaphor for the network, the Internet. In the past, the cloud was often used to represent the telecommunications network in the figure, and later it was also used to abstractly represent the Internet and the underlying infrastructure. In fact, cloud services refer to obtaining required services in an on-demand and easily scalable manner through the network. This kind of service can be Internet technology (internet technology, IT) and software, Internet-related, or other services. It means that computing power can also be circulated as a commodity through the Internet.
  • IT Internet technology
  • High-level cloud services Compared with ordinary virtual machine resources, additional services that are strongly related to specific fields provided by cloud service providers. For example, big data processing, databases, etc., usually include a set of machine resource fees for independent applications and additional service fees. Because the user adopts a dedicated service, it is easy to cause the utilization rate of this part of the resource to be the same as the virtual machine he originally applied for.
  • the cloud service in the embodiment of this application takes the high-end cloud service as an example.
  • Cycles per instruction The average number of instructions required to execute each program instruction is the reciprocal of IPC.
  • IPC Instructions per cycle
  • the system architecture to which the technical solution of the embodiment of the present application is applied may be a schematic diagram of the architecture of the cloud service management platform as shown in FIG. 1 .
  • the cloud service management platform 100 may include an application website 110 , a billing system 120 and a resource management system 130 .
  • the resource management system 130 is connected to the resource pool 140 , and the user 150 can purchase and use cloud service resources in the resource pool 140 through the application website 110 .
  • FIG. 1 only uses a user applying for a cloud service resource as an example for illustration. In actual situations, this application does not specifically limit the number of users and the number of cloud service resources.
  • FIG. 1 is only a possible implementation of the cloud service management platform. In practical applications, the cloud service management platform 100 may also include other modules, which are not limited in this embodiment of the present application.
  • the application website 110 can be a website of a cloud service platform.
  • the application website 110 can order various cloud services on the current cloud service platform on the application interface of the user's terminal device, and the application interface will also display the resources included in each cloud service.
  • Type, specification, quantity, and price wherein, the resource type of resource includes the instance (such as virtual machine and container) required by the cloud service and additional services (such as traffic, database type, storage package, etc.), and the specification of resource may include The number of vCPU cores, memory size, and storage package size of the virtual machine.
  • the application interface of the cloud service will generate application information, which may include user information, the resource type, specification, quantity, and price ordered by the user.
  • the price on the application interface is determined by the billing system 120 according to the type and quantity of cloud service resources that the user needs to apply for.
  • the resource management system 130 can monitor and manage the various cloud service resources in the resource pool 140 as a whole, and provide the user 150 with corresponding types and quantities of cloud service resources according to the application information, and then generate various cloud service resources according to the user's usage conditions. Usage records of service resources.
  • the resource management system 130 can also give feedback to the application interface according to the overall situation of various cloud service resources in the resource pool 140, such as feeding back the currently idle cloud computing resources and so on.
  • the resource pool 140 is used to provide users with various IAAS cloud services, such as cloud hosts, cloud storage, bandwidth, etc., and can also provide users with platform as a service (platform as a service, PaaS) such as relational database service (relational database service). , RDS), software-as-a-service (software-as-a-service, SaaS), etc., can also provide software development cloud and other rich cloud services that can be used through the network, which is not limited in this application.
  • the user 150 can access the website 110 through a terminal device.
  • the terminal device can be a mobile phone, a notebook computer, a tablet computer, or a personal desktop computer and the like.
  • hydropower is compared to a single resource
  • the acquisition of cloud resources by user applications is not limited to a single resource, but requires multi-dimensional resources such as computing and storage to meet the normal operation of the application.
  • multi-dimensional resources such as computing and storage
  • the usage of user resources exceeds the capacity of a single host, there will be significant performance changes. Therefore, virtual machines that are less than or equal to the capacity of a single host are generally distributed.
  • the user mainly adopts a form of specification subscription for the use of resources in the public cloud, purchasing a quantity of a certain specification and billing according to the contract.
  • the static allocation rate is still the main method for virtual machine (virtual machine, VM) provisioning. Regardless of whether the user actually uses it or not and how much it is used after purchasing, the user will be charged according to the order specification, which causes waste for the user and actually increases the user's cost of using the virtual machine instance in disguise.
  • the embodiment of the present application provides a cloud service billing method, combining the available resources of the user's purchased virtual machine and the first application resource to provide the user with the first cloud service, based on the effect of the same cloud service On the one hand, reduce the number of resources that users apply for.
  • FIG. 2 is a schematic flowchart of a cloud service charging method provided by an embodiment of the present application, which is specifically described as follows.
  • Step 201 The billing system acquires the total resources required by the first cloud service.
  • the cloud service provider maintains a database for this user.
  • the total resources required by the first cloud service can be the minimum configuration set by the cloud service provider.
  • MRS data processing services
  • users purchase MRS clusters by yearly/monthly subscription
  • the cluster nodes are configured as two 16-core 32GB master nodes, three 4-core 16GB core nodes, and each master node carries a 40GB system disk by default and plans a 200GB storage space.
  • Each core node carries a 40GB system disk by default and plans to store 100GB of storage space.
  • the total resources required by the first cloud service can also be based on the minimum configuration, and the user can freely increase the number of resources. For example, the user can increase the number of master nodes and core nodes on the application interface.
  • the cloud service platform provides the user with two purchase methods: the first method is to directly follow the Purchase and bill based on the total resources.
  • the second method is to determine the resources that need to be additionally applied based on the available resources of the virtual machine purchased by the user and the total resources required by the cloud service.
  • the billing system charges for the additionally applied resources , and apply for resources, and then manage the corresponding number of resources through the resource management system.
  • Step 202 The billing system obtains the available resources of the purchased virtual machine of the user.
  • the resources of the virtual machine purchased by the user are not necessarily in an overloaded state.
  • the remaining unused resources are the resources that can be used as the first cloud service, and the remaining resources are the available resources of the purchased virtual machine.
  • the purchased virtual machine The used resources are 40%, and the remaining 60% can be used as available resources.
  • the billing system can obtain the resource usage of the user's purchased virtual machine to obtain the available resources in the user's purchased virtual machine.
  • the number of virtual machines purchased by the user may be one or more, and correspondingly, the billing system may determine available resources corresponding to the one or more purchased virtual machines.
  • the billing system can directly use the remaining resources of the purchased virtual machine as available resources (such as the remaining specifications of vCPU and memory), or determine the available resources according to the remaining resources of the purchased virtual machine minus the reserved resources, Wherein, the reserved resources are resources for reducing changes in usage performance of virtual machines purchased by users.
  • the embodiment of the present application can provide the user with corresponding available resource utilization suggestions by giving the QoS available resource classification of the original service to the user. Different QoS classifications mean the amount of available resources for providing the first cloud service in the virtual machine.
  • the billing system can acquire available resources by issuing instructions on the application interface to indicate the QoS level of the user's purchased virtual machine, and the billing system can ensure that the load of the purchased virtual machine meets the QoS level Based on the determination of available resources.
  • the application can configure QoS level options for each virtual machine on the application interface, and each virtual machine can choose any one of high, medium and low.
  • the billing system can determine the available resources of the purchased virtual machine based on the QoS level by performing portrait processing on the user's purchased virtual machine load, and adjusting the purchased virtual machine load during the running period of the purchased virtual machine.
  • Resource allocation determine the degree of QoS degradation of the purchased virtual machine, and then continue to repeatedly adjust the resource supply of the load, and detect the amount of available resources available for the business load.
  • the resource supply of the purchased virtual machine is slowly reduced, so that the performance (QoS degradation degree) of the purchased virtual machine reaches the limit degree of allowable degradation, and the limit degree of allowable degradation is limited by the QoS level, then the performance of the virtual machine reaches The reduced resource provisioning that allows the extreme degree of degradation is the available resource for that virtual machine.
  • the QoS level on the virtual machine can be a QoS level indicating the level of all purchased virtual machines, or each virtual machine is marked with its corresponding QoS level.
  • the QoS level includes high, medium, and low, with different degradations.
  • the degree corresponds to QoS high, medium, and low.
  • the actual value of the specific degradation degree can be configured.
  • QoS advanced guarantee corresponds to a degradation degree of 1.2, or any value between 1.1-1.5
  • QoS intermediate guarantee corresponds to a degradation degree of 1.5, or a value between 1.5-2.0 Any value
  • QoS low-level guarantee corresponds to a degradation level of 2.0, or any value between 2.0 and 3.0.
  • the billing system can infinitely approximate the QoS degradation degree corresponding to each virtual machine for each virtual machine, so as to detect the amount of available resources available for the service load.
  • the billing system can also display the available resources determined according to the QoS level in the same manner as the previous example on the application interface, and the user can freely input the resources within the scope of the available resources on the application interface.
  • the resources of are used as available resources, which are not limited here. This embodiment takes the second example as an example.
  • Step 203 The billing system determines the first application resources according to the available resources and the total resources required by the first cloud service, and the first application resources and available resources are used to provide the first cloud service.
  • the available resources can be used as the resources of the first cloud service, when the number of available resources does not meet the total resources required by the first cloud service, the difference between the total resources required for the first cloud service and the available resources can be provided by the cloud service provider Determine the number of first application resources that the user needs to apply for, and provide the user with the first cloud service in combination with the available resources and the first application resources. The number of resources for the user to apply for the first cloud service is reduced, and the cost of the cloud service is correspondingly saved.
  • the resource usage of a purchased virtual machine and applied cloud service provided by the embodiment of this application is shown in Figure 3.
  • the user has purchased three virtual machines of the same specification. There are respectively 40%, 20% and 60% of unused resources, while the usage of the virtual machine as a cloud service applied for may be 40%, 80% and 50%.
  • the embodiment of this application provides users with suggestions on the utilization of available resources on the basis of different QoS levels given by users, which is equivalent to choosing to migrate the load on the virtual machine of the cloud service to the unused resources of the purchased virtual machine, as shown in the figure
  • migrate the load of 40% of the virtual machines in the cloud service virtual machine to the purchased virtual machines with 60% unused resources reduce the number of cloud service resource applications, improve the resource utilization of the purchased virtual machines, and reduce Use cost, effect
  • FIG. 4 another purchased virtual machine and usage of cloud service resources provided by the embodiment of the present application are shown.
  • VM1, VM2, and VM3 For the specific process of the user applying for resources, refer to the schematic diagram of a cloud service application interface provided by the embodiment of the present application shown in FIG. 5 .
  • the specifications of the three virtual machines are the same, all of which are 16-core (16U) virtual processors and 32G memory.
  • the total resources required can be 42U and 112GB. Users can choose the QoS level required by the virtual machine from the three given QoS guarantee priorities.
  • the billing system can calculate the current The available resources that can be provided under the QoS level limit, as shown in Figure 5, the 4U virtual processor and 2GB memory corresponding to VM1 with a high QoS level, and the 8U virtual processor and 24GB memory corresponding to VM2 with a low QoS level, QoS The level is the 4U virtual processor and 16GB memory corresponding to the VM3 in the level.
  • the interface can also display the summary of available resources and resources that need additional application. For example, the available resources currently available to the user are summarized as 16U virtual processor and 42GB memory, and then it can be determined that the user needs additional application. The number of resources is 28U virtual processors and 70GB memory.
  • Step 204 The billing system determines the price of the first cloud service according to the quantity of the first applied resource.
  • the billing system after the billing system determines the quantity of the first application resource, it can determine the usage price of the first application resource requiring an additional application according to the quantity of the first application resource and the price list corresponding to the resource.
  • the price of the cloud service provided by the cloud service provider can be added to the price for the user to use the cloud service.
  • the price of the first cloud service can be displayed on the user's application interface through the application website, and after the user's payment is completed, the billing system can provide the user with the additionally applied first application resource.
  • FIG. 6 another cloud service application interface is shown. Any position on the application interface in FIG. 5 , such as below the application interface, displays the price of the first cloud service. In FIG. Take 0.3 yuan per hour as an example, which is not limited here.
  • the billing system can also determine the service charge rate of the first cloud service price according to the QoS level provided by the user and the quantity of the first application resource, wherein different QoS guarantee levels affect the cloud service charge rate: although Different business loads can obtain different degradation effects after reducing resource supply, but "QoS low-level guarantee” can produce more available resources than other levels under different load conditions, so users can get lower cloud service billing rate.
  • QoS Advanced Guarantee allows a lower degree of degradation, the amount of available resources available is lower than that of "QoS Low-Level Guarantee”.
  • more resources will be applied for, resulting in Higher cloud service billing rates.
  • the embodiment of this application can provide certain available resources for providing the first cloud service. Therefore, compared with the traditional cloud service application method, the user adopts the solution of the embodiment of this application The number of additional application resources can be reduced, and more billing discounts can be obtained.
  • the billing system can determine the price of the first cloud service that the user needs to pay finally according to the service rate and the additionally applied first application resources.
  • the user may continue to use the purchased virtual machine to store data after applying for the First Cloud service, but at this time the available resources of the purchased virtual machine have been occupied by the First Cloud service, when the user continues to store data on the purchased virtual machine In this case, the performance of the purchased virtual machine will decrease, for example, the degree of QoS degradation becomes higher. At this time, the degree of QoS degradation of the purchased virtual machine does not meet the original QoS level set for the purchased virtual machine.
  • Secondary scheduling of the load part of the purchased virtual machine used for the first cloud service for example, migrating the load part used for the first cloud service to the additionally applied second application resource, to avoid continuing to use the available resources of the purchased virtual machine , so that the user can use the first cloud service while ensuring the running performance of the purchased virtual machine.
  • the quantity of applied resources and the provision fee of the first cloud service determine the new price.
  • the billing system After the billing system determines the new price, it can send a notification to the user indicating that the price of the first cloud service has changed, so that the user can send a price query request through the application interface at any time, and the application interface can display the current new price on the application interface.
  • the billing system can also simultaneously record the reason for the price change of the first cloud service, and display it to the user through the application interface.
  • step 701 the user initiates the first cloud service application;
  • step 702 the application website is used by the user The QoS level option is displayed on the application interface of the user equipment;
  • step 703 the user selects the QoS level;
  • step 704 the application website sends the QoS level to the billing system;
  • step 705 the billing system obtains the total resources required for the first cloud service, Check the QoS degradation degree to obtain available resources by reducing resource supply, and then determine the price of the first application resource and the first cloud service;
  • Step 706 the billing system sends the available resources, the first application resource and the price of the first cloud service to the application website;
  • step 707 the application website displays the available resources, the price of the first application resource and the price of the first cloud service on the application interface;
  • step 708 the user confirms and pays the fee;
  • step 709 the application website displays the amount of the first application resource Send it
  • the billing system sends the quantity of the second application resource and the new price to the application website;
  • Step 712 Billing The system sends a notification to the user;
  • step 713 the application website sends the quantity of the second application resource to the resource management system, so that the resource management system provides the user with the first cloud service with the corresponding resources in the resource pool;
  • step 714 the user Initiate a price query request to the application website according to the notification;
  • the billing system can obtain the total resources required by the first cloud service, and then obtain the available resources of the purchased virtual machine, which can be determined according to the available resources and the total resources required by the first cloud service.
  • the first application resource that requires an additional application and then only need to determine the cost of the cloud service according to the number of the additional application first application resources, in the case of the same total resources required by the first cloud service, only the first application resource Billing for the number of available resources does not need to be billed for the number of available resources, reducing the cost of using cloud services.
  • FIG. 8 it is a schematic structural diagram of a cloud service billing device provided by an embodiment of the present application.
  • the device 80 includes:
  • An obtaining unit 801 configured to obtain the total resources required by the first cloud service and the available resources of the purchased virtual machine of the user;
  • the determining unit 802 is configured to determine the first application resource according to the available resources and the total resources of the first cloud service, the first application resources and the available resources are used to provide the first cloud service, and determine the first cloud service according to the quantity of the first application resources s price.
  • the obtaining unit 801 is specifically configured to: receive an instruction from a user, the instruction indicates a quality of service (QoS) level, and the QoS level is used to limit the performance of the purchased virtual machine; determine the available resources of the purchased virtual machine according to the QoS level.
  • QoS quality of service
  • the device 80 further includes an adjustment unit 803, the adjustment unit 803 is specifically configured to: adjust the resource allocation of the purchased virtual machine, so as to detect the performance of the purchased virtual machine under different resource allocations; the acquisition unit 801 is specifically configured to: according to The QoS level and the performance of the purchased virtual machine under different resource allocations determine the available resources of the purchased virtual machine.
  • the obtaining unit 801 is specifically configured to: determine available resources according to the quantity of resources input by the user.
  • the determining unit 802 is further configured to: determine the service charge rate of the first cloud service according to the QoS level and the quantity of the first applied resource; determine the price of the first cloud service according to the quantity of the first applied resource and the service charge rate.
  • the determining unit 802 is also used to: determine the second application resource that needs to be provided to the user when the performance of the purchased virtual machine does not meet the QoS level; new price.
  • the device 80 further includes a sending unit 804, and the receiving unit 804 is specifically configured to: send a notification to the user, the notification indicating that the price of the first cloud service changes.
  • the acquisition unit 801 of the device 80 is used to execute step 201 and step 202 in the method embodiment of FIG. 2
  • the determination unit 802 of the device 80 is used to execute step 203 and step 204 in the method embodiment of FIG. 2 , which will not be repeated here.
  • FIG. 9 is a schematic diagram of a possible logical structure of a computer device 90 provided by an embodiment of the present application.
  • the computer device 90 includes: a processor 901 , a communication interface 902 , a storage system 903 and a bus 904 .
  • the processor 901 , the communication interface 902 and the storage system 903 are connected to each other through a bus 904 .
  • the processor 901 is used to control and manage the actions of the computer device 90, for example, the processor 901 is used to execute the steps performed by the billing system in the method embodiment in FIG. 2 .
  • the communication interface 902 is used to support the computer device 90 to communicate.
  • the storage system 903 is used for storing program codes and data of the computer device 90 .
  • the processor 901 may be a central processing unit, a general purpose processor, a digital signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It can implement or execute the various illustrative logical blocks, modules and circuits described in connection with the present disclosure.
  • the processor 901 may also be a combination that implements computing functions, for example, a combination of one or more microprocessors, a combination of a digital signal processor and a microprocessor, and the like.
  • the bus 904 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (Extended Industry Standard Architecture, EISA) bus or the like.
  • PCI Peripheral Component Interconnect
  • EISA Extended Industry Standard Architecture
  • the sending unit 804 in the device 80 is equivalent to the communication interface 902 in the computer device 90
  • the acquiring unit 801 , determining unit 802 and adjusting unit 803 in the device 80 are equivalent to the processor 901 in the computer device 90 .
  • the computer device 90 in this embodiment may correspond to the billing device in the above-mentioned method embodiment in FIG. Or the various steps implemented, for the sake of brevity, will not be repeated here.
  • each unit in the device can be implemented in the form of software called by the processing element; they can also be implemented in the form of hardware; some units can also be implemented in the form of software called by the processing element, and some units can be implemented in the form of hardware.
  • each unit can be a separate processing element, or it can be integrated in a certain chip of the device.
  • it can also be stored in the memory in the form of a program, which is called and executed by a certain processing element of the device. Function.
  • all or part of these units can be integrated together, or implemented independently.
  • the processing element mentioned here may also be a processor, which may be an integrated circuit with signal processing capabilities.
  • each step of the above method or each unit above may be implemented by an integrated logic circuit of hardware in the processor element or implemented in the form of software called by the processing element.
  • the units in any of the above devices may be one or more integrated circuits configured to implement the above method, for example: one or more specific integrated circuits (application specific integrated circuit, ASIC), or, one or Multiple microprocessors (digital signal processor, DSP), or, one or more field programmable gate arrays (field programmable gate array, FPGA), or a combination of at least two of these integrated circuit forms.
  • ASIC application specific integrated circuit
  • DSP digital signal processor
  • FPGA field programmable gate array
  • the units in the device can be implemented in the form of a processing element scheduler
  • the processing element can be a general-purpose processor, such as a central processing unit (central processing unit, CPU) or other processors that can call programs.
  • CPU central processing unit
  • these units can be integrated together and implemented in the form of a system-on-a-chip (SOC).
  • SOC system-on-a-chip
  • a computer-readable storage medium is also provided.
  • Computer-executable instructions are stored in the computer-readable storage medium.
  • the processor of the device executes the computer-executable instructions
  • the device executes the above-mentioned method embodiment. The method performed by the billing system in .
  • a computer program product in another embodiment, includes computer-executable instructions, and the computer-executable instructions are stored in a computer-readable storage medium.
  • the processor of the device executes the computer-executed instructions
  • the device executes the method executed by the billing system in the above method embodiment.
  • the disclosed system, device and method can be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
  • the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium.
  • the technical solution of the present application is essentially or part of the contribution to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), magnetic disk or optical disc, etc., which can store program codes. .

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Finance (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present application discloses a cloud service billing method and apparatus. The method comprises: acquiring total resources required by a first cloud service provided for a user; then, acquiring current available resources of a purchased virtual machine of the user, so that it is possible to determine a number of first application resources requiring additional applications according to a relationship between available resources and first application resources simultaneously providing cloud services to a user, which together form a relationship of total resources required by a first cloud service; then, a cost of the first cloud service can be determined can be determined according only to the number of first application resources, and in situations having identical total resources of the first cloud service, it is only necessary to bill for the number of first application resources, thereby reducing the use cost of the cloud service.

Description

一种云服务计费方法以及装置A cloud service billing method and device
本申请要求与2022年1月28日提交中国国家知识产权局,申请号为202210109087.0,发明名称为“一种云服务计费方法以及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed with the State Intellectual Property Office of China on January 28, 2022, with the application number 202210109087.0, and the title of the invention is "a cloud service billing method and device", the entire content of which is incorporated by reference in this application.
技术领域technical field
本申请实施例涉及互联网技术领域,尤其涉及一种云服务计费方法以及装置。The embodiments of the present application relate to the technical field of the Internet, and in particular, to a cloud service charging method and device.
背景技术Background technique
云服务(cloud serving)通常指云服务提供商为用户提供共享资源服务。随着互联网技术的发展,云服务已经得到了快速的发展和运用。目前,云服务平台可以向用户提供基础设施即服务(infrastructure as a Service,IaaS)、平台即服务(platform as a service,PaaS)、软件即服务(software as a service,SaaS)等多种云服务。云服务通常包括应用平台、数据库等,减少了用户在独立部署服务的复杂度和维护成本。Cloud service (cloud serving) usually refers to cloud service providers providing users with shared resource services. With the development of Internet technology, cloud services have been rapidly developed and used. At present, cloud service platforms can provide users with various cloud services such as infrastructure as a service (IaaS), platform as a service (PaaS), software as a service (SaaS), etc. . Cloud services usually include application platforms, databases, etc., reducing the complexity and maintenance costs of users deploying services independently.
当前业界云服务器按照用户申请的资源的规格和使用时长进行计费,但是用户常常缺乏对资源准确需求的认知,导致资源申请超量,已申请的资源利用率不高,相当于云服务的使用成本较高。At present, cloud servers in the industry are billed according to the specifications and usage time of resources requested by users, but users often lack the knowledge of accurate resource requirements, resulting in excessive resource applications and low utilization of applied resources, which is equivalent to the cost of cloud services. The use cost is higher.
发明内容Contents of the invention
本申请实施例提供了一种云服务计费方法以及装置,用于减少云服务的使用成本。Embodiments of the present application provide a cloud service charging method and device, which are used to reduce the cost of using cloud services.
本申请实施例第一方面提供了一种云服务计费方法,包括:获取第一云服务所需的总资源;获取用户的已购虚拟机的可用资源;根据可用资源和第一云服务所需的总资源确定第一申请资源,第一申请资源和可用资源用于提供第一云服务;根据第一申请资源的数量确定第一云服务的价格。The first aspect of the embodiment of the present application provides a cloud service billing method, including: obtaining the total resources required by the first cloud service; obtaining the available resources of the virtual machine purchased by the user; The total required resources determine the first application resources, and the first application resources and available resources are used to provide the first cloud service; the price of the first cloud service is determined according to the quantity of the first application resources.
上述方法中,可根据用户已购虚拟机的可用资源和第一云服务所需的总资源确定需要额外申请的资源,该用户只需根据对该额外申请的资源进行购买和付费,就能享受到相同的云服务,提升了用户资源的利用率,减少了云服务的使用成本。In the above method, the resources that need to be additionally applied can be determined according to the available resources of the virtual machine purchased by the user and the total resources required by the first cloud service. The user only needs to purchase and pay for the additionally applied resources to enjoy To the same cloud service, the utilization rate of user resources is improved, and the cost of using cloud service is reduced.
在一种可能的实施方式中,获取用户的已购虚拟机的可用资源包括:接收用户的指令,指令指示服务质量(quality of service,QoS)级别,QoS级别用于限制已购虚拟机的性能;根据QoS级别确定已购虚拟机的可用资源。In a possible implementation manner, obtaining the available resources of the virtual machine purchased by the user includes: receiving an instruction from the user, the instruction indicates a quality of service (quality of service, QoS) level, and the QoS level is used to limit the performance of the virtual machine purchased ; Determine the available resources of the purchased virtual machine according to the QoS level.
上述可能的实施方式中,用户可以为已购虚拟机设定QoS级别,该QoS级别可以指示已购虚拟机的性能所能达到的最低程度,计费系统需要在满足该QoS级别的基础上确定已购虚拟机的可用资源,以避免影响用户的使用体验。In the above-mentioned possible implementation, the user can set the QoS level for the purchased virtual machine. The QoS level can indicate the minimum performance of the purchased virtual machine. Available resources of purchased virtual machines to avoid affecting user experience.
在一种可能的实施方式中,该方法还包括:调整已购虚拟机的资源分配,以检测已购虚拟机在不同资源分配下的性能;上述步骤根据QoS级别确定已购虚拟机的可用资源包括:根据QoS级别和已购虚拟机在不同资源分配下的性能确定已购虚拟机的可用资源。In a possible implementation manner, the method further includes: adjusting the resource allocation of the purchased virtual machine to detect the performance of the purchased virtual machine under different resource allocations; the above steps determine the available resources of the purchased virtual machine according to the QoS level Including: determining the available resources of the purchased virtual machine according to the QoS level and the performance of the purchased virtual machine under different resource allocations.
上述可能的实施方式中,慢慢调整已购虚拟机的资源供给,使得已购虚拟机的性能降 低到QoS级别指示的最低程度,则所有调整的资源为已购虚拟机的可用资源,避免使用已购虚拟机的资源影响该已购虚拟机的性能,保障用户体验。In the above possible implementation mode, the resource supply of the purchased virtual machine is slowly adjusted so that the performance of the purchased virtual machine is reduced to the minimum level indicated by the QoS level, then all adjusted resources are the available resources of the purchased virtual machine, and avoid using The resources of the purchased virtual machine affect the performance of the purchased virtual machine to ensure user experience.
在一种可能的实施方式中,上述步骤获取用户的已购虚拟机的可用资源包括:根据用户输入的资源的数量确定可用资源。In a possible implementation manner, the above step of obtaining the available resources of the virtual machine purchased by the user includes: determining the available resources according to the quantity of resources input by the user.
上述可能的实施方式中,可用资源还可以是由用户自己输入的,计费系统提供满足QoS级别下的空闲资源,用户在该空闲资源的范围下输入可用资源,提高可用资源的获取灵活性。In the above possible implementation manner, the available resources can also be input by the user himself, and the billing system provides idle resources satisfying the QoS level, and the user enters the available resources within the range of the idle resources, so as to improve the flexibility of obtaining available resources.
在一种可能的实施方式中,该方法还包括:根据QoS级别和第一申请资源的数量确定第一云服务的服务费率;上述步骤根据第一申请资源的数量确定第一云服务的价格包括:根据第一申请资源的数量和服务费率确定第一云服务的价格。In a possible implementation manner, the method further includes: determining the service rate of the first cloud service according to the QoS level and the quantity of the first applied resource; the above steps determine the price of the first cloud service according to the quantity of the first applied resource Including: determining the price of the first cloud service according to the quantity of the first application resource and the service fee rate.
上述可能的实施方式中,由于QoS级别影响第一申请资源的多少,第一申请资源的数量小于第一云服务所需的总资源的数量,减少了云服务提供商提供第一云服务的压力,则可以为该用户的第一云服务的费用提供服务费率,在基于第一申请资源的数量以及第一云服务的提供费用的基础上进行服务费用的折扣,以确定最终第一云服务的价格,减少用户的云服务使用成本。In the above possible implementation manners, since the QoS level affects the amount of the first application resources, the number of the first application resources is less than the total resources required by the first cloud service, which reduces the pressure on the cloud service provider to provide the first cloud service , then the service fee rate can be provided for the user's first cloud service fee, and the service fee discount can be carried out on the basis of the quantity of the first application resources and the provision fee of the first cloud service, so as to determine the final first cloud service The price can reduce the user's cloud service usage cost.
在一种可能的实施方式中,该方法还包括:当已购虚拟机的性能不满足QoS级别时,确定需要提供给用户的第二申请资源;根据第一申请资源的数量和第二申请资源的数量确定新的价格。In a possible implementation, the method further includes: when the performance of the purchased virtual machine does not meet the QoS level, determining the second application resource that needs to be provided to the user; according to the quantity of the first application resource and the second application resource The quantity determines the new price.
上述可能的实施方式中,当用户使用第一云服务的过程中,用户仍在使用已购虚拟机的资源,此时已购虚拟机的可用资源被第一云服务占用,可能存在性能不满足QoS级别的情况,此时计费系统可以为替用户申请第二申请资源,提高云服务资源提供的灵活性,以避免影响用户已购虚拟机的使用体验。In the above possible implementation manners, when the user is using the first cloud service, the user is still using the resources of the purchased virtual machine. At this time, the available resources of the purchased virtual machine are occupied by the first cloud service, and the performance may not meet the requirements. In the case of QoS level, at this time, the billing system can apply for a second application resource for the user to improve the flexibility of cloud service resource provision, so as to avoid affecting the user experience of the purchased virtual machine.
在一种可能的实施方式中,上述步骤根据第一申请资源的数量和第二申请资源的数量确定新的价格之后,该方法还包括:向所述用户发送通知,该通知指示第一云服务的价格发生变化。In a possible implementation manner, after the above steps determine the new price according to the quantity of the first application resource and the quantity of the second application resource, the method further includes: sending a notification to the user, the notification indicating that the first cloud service price changes.
上述可能的实施方式中,随时提醒用户当前第一云服务的价格,提高用户使用云服务的体验。In the above possible implementation manners, the user is reminded of the current price of the first cloud service at any time, so as to improve the user's experience of using the cloud service.
本申请实施例第二方面提供了一种云服务计费装置,可以实现上述第一方面或第一方面中任一种可能的实施方式中的方法。该装置包括用于执行上述方法的相应的单元或模块。该装置包括的单元或模块可以通过软件和/或硬件方式实现。该装置例如可以为网络设备,也可以为支持网络设备实现上述方法的芯片、芯片系统、或处理器等,还可以为能实现全部或部分网络设备功能的逻辑模块或软件。The second aspect of the embodiments of the present application provides a cloud service billing device, which can implement the method in the first aspect or any possible implementation manner of the first aspect. The apparatus includes corresponding units or modules for performing the above method. The units or modules included in the device can be realized by means of software and/or hardware. The device can be, for example, a network device, or a chip, a chip system, or a processor that supports the network device to implement the above method, or a logic module or software that can realize all or part of the functions of the network device.
本申请实施例第三方面提供了一种计算机设备,包括:处理器,该处理器与存储器耦合,该存储器用于存储指令,当指令被处理器执行时,使得该计算机设备实现上述第一方面或第一方面中任一种可能的实施方式中的方法。该计算机设备例如可以为网络设备,也可以为支持网络设备实现上述方法的芯片或芯片系统等。The third aspect of the embodiment of the present application provides a computer device, including: a processor, the processor is coupled with a memory, and the memory is used to store instructions, and when the instructions are executed by the processor, the computer device implements the above first aspect Or the method in any possible implementation manner in the first aspect. The computer device may be, for example, a network device, or a chip or a chip system that supports the network device to implement the above method.
本申请实施例第四方面提供了一种计算机可读存储介质,该计算机可读存储介质中保 存有指令,当该指令被执行时,使得计算机执行前述第一方面或第一方面任一种可能的实施方式提供的方法。The fourth aspect of the embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium stores instructions, and when the instructions are executed, the computer executes the first aspect or any possibility of the first aspect The method provided by the embodiment.
本申请实施例第五方面提供了一种计算机程序产品,计算机程序产品中包括计算机程序代码,当该计算机程序代码被执行时,使得计算机执行前述第一方面或第一方面任一种可能的实施方式提供的方法。The fifth aspect of the embodiment of the present application provides a computer program product. The computer program product includes computer program code. When the computer program code is executed, the computer executes the first aspect or any possible implementation of the first aspect. method provided.
附图说明Description of drawings
图1为本申请实施例提供的云服务管理平台的架构示意图;Fig. 1 is a schematic diagram of the architecture of the cloud service management platform provided by the embodiment of the present application;
图2为本申请实施例提供的一种云服务计费方法的流程示意图;FIG. 2 is a schematic flow diagram of a cloud service charging method provided in an embodiment of the present application;
图3为本申请实施例提供的一种已购虚拟机和申请的云服务的资源的使用情况示意图;FIG. 3 is a schematic diagram of resource usage of a purchased virtual machine and applied for cloud service provided by an embodiment of the present application;
图4为本申请实施例提供的另一种已购虚拟机和申请的云服务资源的使用情况示意图;FIG. 4 is a schematic diagram of usage of another purchased virtual machine and applied cloud service resources provided by the embodiment of the present application;
图5为本申请实施例提供的一种云服务申请界面的示意图;FIG. 5 is a schematic diagram of a cloud service application interface provided by an embodiment of the present application;
图6为本申请实施例提供的另一种云服务申请界面的示意图;FIG. 6 is a schematic diagram of another cloud service application interface provided by the embodiment of the present application;
图7为本申请实施例提供的云服务申请实现流程示意图;FIG. 7 is a schematic diagram of the implementation process of cloud service application provided by the embodiment of the present application;
图8为本申请实施例提供的一种云服务计费装置的结构示意图;FIG. 8 is a schematic structural diagram of a cloud service billing device provided in an embodiment of the present application;
图9为本申请实施例提供的一种计算机设备的结构示意图。FIG. 9 is a schematic structural diagram of a computer device provided by an embodiment of the present application.
具体实施方式Detailed ways
本申请实施例提供了一种云服务计费方法以及装置,用于减少云服务的使用成本。Embodiments of the present application provide a cloud service charging method and device, which are used to reduce the cost of using cloud services.
下面结合附图,对本申请的实施例进行描述,显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。本领域普通技术人员可知,随着技术的发展和新场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。Embodiments of the present application are described below in conjunction with the accompanying drawings. Apparently, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Those of ordinary skill in the art know that, with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second" and the like in the specification and claims of the present application and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having", as well as any variations thereof, are intended to cover a non-exclusive inclusion, for example, a process, method, system, product or device comprising a sequence of steps or elements is not necessarily limited to the expressly listed instead, may include other steps or elements not explicitly listed or inherent to the process, method, product or apparatus.
在这里专用的词“示例性”意为“用作例子、实施例或说明性”。这里作为“示例性”所说明的任何实施例不必解释为优于或好于其它实施例。The word "exemplary" is used exclusively herein to mean "serving as an example, embodiment, or illustration." Any embodiment described herein as "exemplary" is not necessarily to be construed as superior or better than other embodiments.
另外,为了更好的说明本申请,在下文的具体实施方式中给出了众多的具体细节。本领域技术人员应当理解,没有某些具体细节,本申请同样可以实施。在一些实例中,对于本领域技术人员熟知的方法和手段未作详细描述,以便于凸显本申请的主旨。In addition, in order to better illustrate the present application, numerous specific details are given in the following specific implementation manners. It will be understood by those skilled in the art that the present application may be practiced without certain of the specific details. In some instances, methods and means well known to those skilled in the art are not described in detail in order to highlight the gist of the present application.
首先对本申请实施例提供的一些概念做解释说明。First, some concepts provided by the embodiments of the present application are explained.
云服务是分布式计算(distributed computing)、并行计算(parallel computing)、效用计算(utility computing)、网络存储(network storage technologies)、虚拟化 (virtualization)、负载均衡(load balance)内容分发网络(content delivery network)等传统计算机和网络技术发展融合的产物。云服务是基于互联网的相关服务的增加、使用和交互模式,通常涉及通过互联网来提供动态易扩展且经常是虚拟化的资源。可以理解的,云是网络、互联网的一种比喻说法。过去在图中往往用云来表示电信网,后来也用来抽象的表示互联网和底层基础设施。实际上,云服务指的是通过网络以按需、易扩展的方式获得所需服务。这种服务可以是互联网技术(internet technology,IT)和软件、互联网相关,也可以是其他服务,它意味着计算能力也可以作为一种商品通过互联网进行流通。Cloud services are distributed computing, parallel computing, utility computing, network storage technologies, virtualization, load balancing, and content distribution networks. delivery network) and other traditional computer and network technology development fusion product. Cloud services are the accretion, usage, and interaction patterns of Internet-based related services, usually involving the provision of dynamically scalable and often virtualized resources over the Internet. Understandably, the cloud is a metaphor for the network, the Internet. In the past, the cloud was often used to represent the telecommunications network in the figure, and later it was also used to abstractly represent the Internet and the underlying infrastructure. In fact, cloud services refer to obtaining required services in an on-demand and easily scalable manner through the network. This kind of service can be Internet technology (internet technology, IT) and software, Internet-related, or other services. It means that computing power can also be circulated as a commodity through the Internet.
简单来说,多个客户可以共享一个云服务提供商的系统资源,他们无需架设任何设备以及配备管理人员,便可享有专业的IT服务,这对于一般创业者、中小企业来说,可以极大地降低运营成本。In simple terms, multiple customers can share the system resources of a cloud service provider, and they can enjoy professional IT services without setting up any equipment and manpower, which can greatly benefit ordinary entrepreneurs and small and medium-sized enterprises. Reduce operating costs.
高阶云服务:相比普通虚拟机资源来说,由云服务提供商提供的额外的和特定领域强相关的服务。比如大数据处理,数据库等,通常包括一组独立申请的机器资源费用和外加的服务费用。由于用户采取了专用的服务,容易导致这部分的资源同他原本申请的虚拟机一样会出现利用率不高的现象,本申请实施例的云服务以高阶云服务为例。High-level cloud services: Compared with ordinary virtual machine resources, additional services that are strongly related to specific fields provided by cloud service providers. For example, big data processing, databases, etc., usually include a set of machine resource fees for independent applications and additional service fees. Because the user adopts a dedicated service, it is easy to cause the utilization rate of this part of the resource to be the same as the virtual machine he originally applied for. The cloud service in the embodiment of this application takes the high-end cloud service as an example.
每指令周期数(cycles per instruction,CPI):每个程序指令执行完成所需要的平均指令条数,是IPC的倒数。Cycles per instruction (CPI): The average number of instructions required to execute each program instruction is the reciprocal of IPC.
每周期指令数(instructions per cycle,IPC):每个时钟周期平均执行完成的指令条数,是CPI的倒数。Instructions per cycle (IPC): The average number of instructions executed per clock cycle is the reciprocal of CPI.
本申请实施例的技术方案所应用的系统架构可以如图1所示的云服务管理平台的架构示意图。如图1所示,所述云服务管理平台100可以包括申请网站110、计费系统120以及资源管理系统130。其中,资源管理系统130与资源池140相连,用户150可以通过申请网站110购买和使用资源池140中的云服务资源。应理解,图1仅以一个用户申请云服务资源为例进行了举例说明。实际情况中,本申请不对用户数量和云服务资源数量进行具体限定。并且,图1仅仅是云服务管理平台的一种可能的实现方式,实际应用中,所述云服务管理平台100还可以包括其他模块,本申请实施例并不对此进行限制。The system architecture to which the technical solution of the embodiment of the present application is applied may be a schematic diagram of the architecture of the cloud service management platform as shown in FIG. 1 . As shown in FIG. 1 , the cloud service management platform 100 may include an application website 110 , a billing system 120 and a resource management system 130 . Wherein, the resource management system 130 is connected to the resource pool 140 , and the user 150 can purchase and use cloud service resources in the resource pool 140 through the application website 110 . It should be understood that FIG. 1 only uses a user applying for a cloud service resource as an example for illustration. In actual situations, this application does not specifically limit the number of users and the number of cloud service resources. Moreover, FIG. 1 is only a possible implementation of the cloud service management platform. In practical applications, the cloud service management platform 100 may also include other modules, which are not limited in this embodiment of the present application.
申请网站110可以是云服务平台的网站,申请网站110可以在用户使用终端设备的申请界面上订购当前云服务平台上的各类云服务,申请界面上还会展示每种云服务中包括的资源种类、规格、数量以及价格,其中,资源的资源种类包括该云服务所需的实例(例如虚拟机和容器)以额外的服务(例如流量、数据库类型、存储包等待),资源的规格可以包括虚拟机的vCPU的核数、内存的大小,存储包的大小等。当用户选择购买某云服务资源后,云服务的申请界面将生成申请信息,该申请信息可以包括用户信息、用户订购的资源种类、规格、数量以及价格。The application website 110 can be a website of a cloud service platform. The application website 110 can order various cloud services on the current cloud service platform on the application interface of the user's terminal device, and the application interface will also display the resources included in each cloud service. Type, specification, quantity, and price, wherein, the resource type of resource includes the instance (such as virtual machine and container) required by the cloud service and additional services (such as traffic, database type, storage package, etc.), and the specification of resource may include The number of vCPU cores, memory size, and storage package size of the virtual machine. When a user chooses to purchase a certain cloud service resource, the application interface of the cloud service will generate application information, which may include user information, the resource type, specification, quantity, and price ordered by the user.
其中,申请界面上的价格为计费系统120根据用户需要申请的云服务的资源的种类以及数量确定的。Wherein, the price on the application interface is determined by the billing system 120 according to the type and quantity of cloud service resources that the user needs to apply for.
资源管理系统130可以对资源池140中的各种云服务资源进行整体监控和管理,并根据申请信息为该用户150提供相应种类和数量的云服务资源,然后根据用户的使用情况生 成各种云服务资源的使用记录。资源管理系统130还可以根据资源池140中各种云服务资源的整体情况,向申请界面进行反馈,比如反馈出当前空闲的云计算资源等等。The resource management system 130 can monitor and manage the various cloud service resources in the resource pool 140 as a whole, and provide the user 150 with corresponding types and quantities of cloud service resources according to the application information, and then generate various cloud service resources according to the user's usage conditions. Usage records of service resources. The resource management system 130 can also give feedback to the application interface according to the overall situation of various cloud service resources in the resource pool 140, such as feeding back the currently idle cloud computing resources and so on.
资源池140用于向用户提供各个IAAS云服务,例如,云主机、云存储、带宽等等,还可以向用户提供平台即服务(platform as a service,PaaS)比如关系型数据库服务(relational database service,RDS)、软件即服务(software-as-a-service,SaaS)等等,还可以提供软件开发云等通过网络可以使用的丰富的云服务,本申请不对此进行限定。The resource pool 140 is used to provide users with various IAAS cloud services, such as cloud hosts, cloud storage, bandwidth, etc., and can also provide users with platform as a service (platform as a service, PaaS) such as relational database service (relational database service). , RDS), software-as-a-service (software-as-a-service, SaaS), etc., can also provide software development cloud and other rich cloud services that can be used through the network, which is not limited in this application.
用户150可以通过终端设备访问该请网站110,示例性的,终端设备可以是手机、笔记本电脑、平板电脑或者个人台式电脑等等。The user 150 can access the website 110 through a terminal device. Exemplarily, the terminal device can be a mobile phone, a notebook computer, a tablet computer, or a personal desktop computer and the like.
像用水用电一样地使用云资源,始终是云计算领域持续追究的目标之一,然而到目前为止,业界尚没有一家公有云或私有云厂家能实现这一目标。受限于计算机体系结构、软件操作系统等资源抽线与隔离技术实现,尽管云数据中心内的硬件基础设施已通过高速网络进行互联,但云数据中心内各个模块的发展速度严重不均。比如内存的存取速度严重滞后于处理器的计算速度,存储器的存取速度以及以太网带宽能力严重滞后于内存存取,各方面的瓶颈导致云数据中心的计算、存储等资源无法形成主机间的高速共享。如果把水电类比为单一资源,用户应用关于云资源的获取其实并不局限于单一资源,而是要在计算、存储等多维资源上同时有诉求以满足应用的正常运转。不仅如此,在用户资源的使用体验上,假如用户资源的使用超过单台主机的容量,就会有较为显著的性能变化感受,所以一般以小于等于单台主机容量的虚拟机进行发放。Using cloud resources like water and electricity has always been one of the goals that the cloud computing field continues to pursue. However, so far, no public cloud or private cloud manufacturer in the industry has been able to achieve this goal. Limited by resource extraction and isolation technologies such as computer architecture and software operating system, although the hardware infrastructure in the cloud data center has been interconnected through a high-speed network, the development speed of each module in the cloud data center is severely uneven. For example, the access speed of the memory lags behind the computing speed of the processor, the access speed of the memory and the bandwidth capacity of the Ethernet seriously lag behind the access of the memory. high-speed sharing. If hydropower is compared to a single resource, the acquisition of cloud resources by user applications is not limited to a single resource, but requires multi-dimensional resources such as computing and storage to meet the normal operation of the application. Not only that, in terms of user resource usage experience, if the usage of user resources exceeds the capacity of a single host, there will be significant performance changes. Therefore, virtual machines that are less than or equal to the capacity of a single host are generally distributed.
有鉴于此,用户在大部分场景下的公有云中资源使用上,主要采取一种规格订购的形式,购买一定规格的量,并按签约计费。虚拟机实例的规格指定并没有灵活性,目前还是以静态分配率为主进行虚拟机(virtual machine,VM)发放。用户购买后不管实际是否使用、实际使用程度如何,都会按照订购规格收费,这造成用户存在浪费,实际上变相提高了用户关于虚拟机实例的使用成本。In view of this, in most scenarios, the user mainly adopts a form of specification subscription for the use of resources in the public cloud, purchasing a quantity of a certain specification and billing according to the contract. There is no flexibility in specifying the specifications of virtual machine instances. At present, the static allocation rate is still the main method for virtual machine (virtual machine, VM) provisioning. Regardless of whether the user actually uses it or not and how much it is used after purchasing, the user will be charged according to the order specification, which causes waste for the user and actually increases the user's cost of using the virtual machine instance in disguise.
为解决上述问题,本申请实施例提供了一种云服务计费方法,结合用户的已购虚拟机的可用资源以及第一申请资源为用户提供第一云服务,在相同云服务提供效果的基础上,减少用户申请资源的数量。In order to solve the above problems, the embodiment of the present application provides a cloud service billing method, combining the available resources of the user's purchased virtual machine and the first application resource to provide the user with the first cloud service, based on the effect of the same cloud service On the one hand, reduce the number of resources that users apply for.
请参阅图2,如图2所示为本申请实施例提供的一种云服务计费方法的流程示意图,具体如下所述。Please refer to FIG. 2 . FIG. 2 is a schematic flowchart of a cloud service charging method provided by an embodiment of the present application, which is specifically described as follows.
步骤201.计费系统获取第一云服务所需的总资源。 Step 201. The billing system acquires the total resources required by the first cloud service.
本实施例中,一般来说,用户购买虚拟机使用的同时会申请云服务,例如,用户需要建立一个数据库又不想维护该数据库的情况下,可以向云服务提供商申请数据库的云服务,由云服务提供商为该用户维护数据库。其中,第一云服务所需的总资源可以是由云服务提供商设定的最低配置,例如以数据处理服务(map reduce service,MRS)购买为例:用户以包年/包月方式购买MRS集群,该集群节点配置为2个16核32GB的主(master)节点,3个4核16GB的核心(core)节点,并且每个master节点下默认携带一个40GB的系统盘并规划200GB的存储空间,每个core节点下默认携带一个40GB的系统盘并规划100GB的存储空间。第一云服务所需的总资源还可以是用户在最低配置的基础上,自由提高资源 数量,示例性的,用户可以在申请界面上增加master节点和core节点的数量。In this embodiment, generally speaking, when a user purchases a virtual machine to use, he will apply for a cloud service. For example, if the user needs to create a database but does not want to maintain the database, he can apply for the cloud service of the database from the cloud service provider. The cloud service provider maintains a database for this user. Among them, the total resources required by the first cloud service can be the minimum configuration set by the cloud service provider. For example, take the purchase of data processing services (map reduce service, MRS) as an example: users purchase MRS clusters by yearly/monthly subscription , the cluster nodes are configured as two 16-core 32GB master nodes, three 4-core 16GB core nodes, and each master node carries a 40GB system disk by default and plans a 200GB storage space. Each core node carries a 40GB system disk by default and plans to store 100GB of storage space. The total resources required by the first cloud service can also be based on the minimum configuration, and the user can freely increase the number of resources. For example, the user can increase the number of master nodes and core nodes on the application interface.
本实施例中,当用户购买虚拟机后,可以通过申请界面选择第一云服务的购买方式,云服务平台向用户提供两种购买方式:方式一为直接按照某种云服务所需要的总资源进行购买,并基于该总资源进行计费,方式二为基于用户已购虚拟机的可用资源和云服务所需的总资源确定需要额外申请的资源,计费系统对额外申请的资源进行计费,并申请资源,然后通过资源管理系统管理相应数量的资源。当用户在申请界面选择方案二后,则触发步骤201。In this embodiment, after the user purchases a virtual machine, he can select the purchase method of the first cloud service through the application interface, and the cloud service platform provides the user with two purchase methods: the first method is to directly follow the Purchase and bill based on the total resources. The second method is to determine the resources that need to be additionally applied based on the available resources of the virtual machine purchased by the user and the total resources required by the cloud service. The billing system charges for the additionally applied resources , and apply for resources, and then manage the corresponding number of resources through the resource management system. When the user selects option 2 on the application interface, step 201 is triggered.
步骤202.计费系统获取用户的已购虚拟机的可用资源。 Step 202. The billing system obtains the available resources of the purchased virtual machine of the user.
本实施例中,由于用户申请第一云服务是不想维护数据,并将数据交由云服务提供商维护,则此时用户已购虚拟机的资源不一定处于过载状态,当用户的已购虚拟机的资源没有用完时,该剩余的没有使用的资源则为可以用来作为第一云服务的资源,该剩余的资源则为已购虚拟机的可用资源,示例性的,已购虚拟机已使用的资源为40%,则剩余的60%可以作为可用资源。用户已购虚拟机存在可用资源时,该可用资源当前处于空闲状态,计费系统可以获取该用户的已购虚拟机的资源使用情况,以获取用户已购虚拟机中的可用资源。其中,该用户的已购虚拟机的数量可以为一个或多个,相应的,计费系统可以确定该一个或多个已购虚拟机对应的可用资源。In this embodiment, since the user does not want to maintain the data when applying for the first cloud service, and the data is handed over to the cloud service provider for maintenance, the resources of the virtual machine purchased by the user are not necessarily in an overloaded state. When the resources of the virtual machine are not used up, the remaining unused resources are the resources that can be used as the first cloud service, and the remaining resources are the available resources of the purchased virtual machine. Exemplarily, the purchased virtual machine The used resources are 40%, and the remaining 60% can be used as available resources. When the user's purchased virtual machine has available resources, the available resources are currently idle, and the billing system can obtain the resource usage of the user's purchased virtual machine to obtain the available resources in the user's purchased virtual machine. Wherein, the number of virtual machines purchased by the user may be one or more, and correspondingly, the billing system may determine available resources corresponding to the one or more purchased virtual machines.
在一个示例中,计费系统可以直接将已购虚拟机的剩余资源作为可用资源(例如vCPU的和内存的剩余规格),或者根据已购虚拟机的剩余资源减去预留资源确定可用资源,其中,该预留资源为减少用户已购虚拟机的使用性能变化的资源。In an example, the billing system can directly use the remaining resources of the purchased virtual machine as available resources (such as the remaining specifications of vCPU and memory), or determine the available resources according to the remaining resources of the purchased virtual machine minus the reserved resources, Wherein, the reserved resources are resources for reducing changes in usage performance of virtual machines purchased by users.
在另一个示例中,由于利用用户已购虚拟机的可用资源,所以用户原业务负载压力会增大,不仅会对用户自身业务产生服务质量(quality of service,QoS)影响,也会对云服务的QoS保障产生影响。本申请实施例可以通过给予用户原业务的QoS可用资源分级,向用户提供对应的可用资源利用建议,不同QoS分级意味着虚拟机中提供第一云服务的可用资源的多寡。本实施例中计费系统获取可用资源的方式可以是,用户在申请界面上下发指令,以指示用户的已购虚拟机的QoS级别,计费系统可以在保障已购虚拟机的负载满足QoS级别的基础上确定可以用资源。示例性的,本申请可以在申请界面上为各个虚拟机配置QoS级别选项,每个虚拟机可以选择高、中和低的任一种。In another example, due to the use of the available resources of the virtual machine purchased by the user, the pressure on the user's original business load will increase, which will not only affect the quality of service (QoS) of the user's own business, but also affect the cloud service. impact on the QoS guarantee. The embodiment of the present application can provide the user with corresponding available resource utilization suggestions by giving the QoS available resource classification of the original service to the user. Different QoS classifications mean the amount of available resources for providing the first cloud service in the virtual machine. In this embodiment, the billing system can acquire available resources by issuing instructions on the application interface to indicate the QoS level of the user's purchased virtual machine, and the billing system can ensure that the load of the purchased virtual machine meets the QoS level Based on the determination of available resources. Exemplarily, the application can configure QoS level options for each virtual machine on the application interface, and each virtual machine can choose any one of high, medium and low.
具体的,计费系统基于QoS级别确定已购虚拟机的可用资源的方式可以是,对用户的已购虚拟机负载进行画像处理,在已购虚拟机负载运行期间,通过调整已购虚拟机的资源分配,确定该已购虚拟机的QoS劣化程度,然后继续反复调整负载的资源供应,探查该业务负载可供使用的可用资源的数量。示例性的,慢慢减少已购虚拟机的资源供应,使得已购虚拟机的性能(QoS劣化程度)达到允许劣化的极限程度,允许劣化的极限程度由QoS级别限定,则虚拟机的性能到达允许劣化的极限程度时减少的资源供应为该虚拟机的可用资源。Specifically, the billing system can determine the available resources of the purchased virtual machine based on the QoS level by performing portrait processing on the user's purchased virtual machine load, and adjusting the purchased virtual machine load during the running period of the purchased virtual machine. Resource allocation, determine the degree of QoS degradation of the purchased virtual machine, and then continue to repeatedly adjust the resource supply of the load, and detect the amount of available resources available for the business load. Exemplarily, the resource supply of the purchased virtual machine is slowly reduced, so that the performance (QoS degradation degree) of the purchased virtual machine reaches the limit degree of allowable degradation, and the limit degree of allowable degradation is limited by the QoS level, then the performance of the virtual machine reaches The reduced resource provisioning that allows the extreme degree of degradation is the available resource for that virtual machine.
虚拟机上的QoS级别可以是由一个QoS级别指示所有已购虚拟机的级别,也可以是每个虚拟机都标有其对应QoS级别,该QoS级别包括高、中、低三种,不同劣化程度与QoS高、中、低进行对应。劣化程度由缺少资源供应后所产生的CPI或IPC变化进行表征。示 例性的,以IPC为例,IPC(足量供应资源)/IPC(减少资源供应)=劣化程度。具体的劣化程度实际值可以配置,示例性的,“QoS高级保障”对应劣化程度1.2,或者1.1-1.5之间的任意值;“QoS中级保障”对应劣化程度1.5,或者1.5-2.0之间的任意值;“QoS低级保障”对应劣化程度2.0,或者2.0-3.0之间的任意值。计费系统可以通过对每个虚拟机无限逼近各个虚拟机对应的QoS劣化程度,以探查该业务负载可供使用的可用资源的数量。The QoS level on the virtual machine can be a QoS level indicating the level of all purchased virtual machines, or each virtual machine is marked with its corresponding QoS level. The QoS level includes high, medium, and low, with different degradations. The degree corresponds to QoS high, medium, and low. The degree of deterioration is characterized by the change of CPI or IPC after the lack of resource supply. Exemplarily, taking IPC as an example, IPC (enough resource supply)/IPC (reduced resource supply) = degree of degradation. The actual value of the specific degradation degree can be configured. For example, "QoS advanced guarantee" corresponds to a degradation degree of 1.2, or any value between 1.1-1.5; "QoS intermediate guarantee" corresponds to a degradation degree of 1.5, or a value between 1.5-2.0 Any value; "QoS low-level guarantee" corresponds to a degradation level of 2.0, or any value between 2.0 and 3.0. The billing system can infinitely approximate the QoS degradation degree corresponding to each virtual machine for each virtual machine, so as to detect the amount of available resources available for the service load.
在另一个示例中,计费系统还可以在申请界面显示由上一个示例的相同方式根据QoS级别确定的可供使用的资源,用户可以在申请界面上自由输入在该可供使用的资源范围内的资源作为可用资源,此处不作限定。本实施例以第二个示例为例。In another example, the billing system can also display the available resources determined according to the QoS level in the same manner as the previous example on the application interface, and the user can freely input the resources within the scope of the available resources on the application interface. The resources of are used as available resources, which are not limited here. This embodiment takes the second example as an example.
步骤203.计费系统根据可用资源和第一云服务所需的总资源确定第一申请资源,第一申请资源和可用资源用于提供第一云服务。 Step 203. The billing system determines the first application resources according to the available resources and the total resources required by the first cloud service, and the first application resources and available resources are used to provide the first cloud service.
本实施例中,由于云服务提供商为用户提供第一云服务所需的总资源的数量在当前时刻是固定的,在用户的已购虚拟机存在可用资源的情况下,可以利用该可用资源作为第一云服务的资源,当该可用资源的数量不满足第一云服务所需的总资源的时候,可以根据云服务提供商提供第一云服务所需的总资源与可用资源的差值确定该用户需要申请的第一申请资源的数量,结合可用资源和第一申请资源为用户提供第一云服务,该用户申请第一云服务的资源数量减少,相应节省了云服务的成本。In this embodiment, since the amount of total resources required by the cloud service provider to provide the user with the first cloud service is fixed at the current moment, if the user's purchased virtual machine has available resources, the available resources can be used As the resources of the first cloud service, when the number of available resources does not meet the total resources required by the first cloud service, the difference between the total resources required for the first cloud service and the available resources can be provided by the cloud service provider Determine the number of first application resources that the user needs to apply for, and provide the user with the first cloud service in combination with the available resources and the first application resources. The number of resources for the user to apply for the first cloud service is reduced, and the cost of the cloud service is correspondingly saved.
对于当前其他云服务提供商的方案中,本申请实施例提供的一种已购虚拟机和申请的云服务的资源的使用情况如图3所示,用户已购相同规格的三台虚拟机,分别有40%、20%和60%未使用资源,而在申请的作为云服务的虚拟机的所使用的情况可能是40%、80%和50%。本申请实施例在用户给予不同QoS级别的基础上,向用户提供可用资源利用的建议,相当于选择将在云服务的虚拟机上的负载迁移到已购虚拟机的未使用资源上,如图3中将云服务虚拟机中负载为40%的虚拟机的负载迁移到60%未使用资源的已购虚拟机中,缩小云服务的资源申请数量,提高已购虚拟机的资源利用率,减少使用成本,效果如图4所示的本申请实施例提供的另一种已购虚拟机和申请的云服务资源的使用情况。For the current solutions of other cloud service providers, the resource usage of a purchased virtual machine and applied cloud service provided by the embodiment of this application is shown in Figure 3. The user has purchased three virtual machines of the same specification. There are respectively 40%, 20% and 60% of unused resources, while the usage of the virtual machine as a cloud service applied for may be 40%, 80% and 50%. The embodiment of this application provides users with suggestions on the utilization of available resources on the basis of different QoS levels given by users, which is equivalent to choosing to migrate the load on the virtual machine of the cloud service to the unused resources of the purchased virtual machine, as shown in the figure In step 3, migrate the load of 40% of the virtual machines in the cloud service virtual machine to the purchased virtual machines with 60% unused resources, reduce the number of cloud service resource applications, improve the resource utilization of the purchased virtual machines, and reduce Use cost, effect As shown in FIG. 4 , another purchased virtual machine and usage of cloud service resources provided by the embodiment of the present application are shown.
用户申请资源的具体过程可以参阅图5所示的本申请实施例提供的一种云服务申请界面的示意图。以用户已购的已购虚拟机为3个为例,如VM1、VM2和VM3。3个虚拟机规格一样,都为16核(16U)的虚拟处理器和32G的内存,第一云服务所需的总资源的数量可以是42U和112GB,用户可以在给出的3个QoS保障优先级中选择该虚拟机所需要限定的QoS级别,相应的,计费系统即可以计算出该虚拟机当前在该QoS级别限定下所能提供的可用资源,如图5中QoS级别为高的VM1对应的4U虚拟处理器和2GB内存,QoS级别为低的VM2对应的8U虚拟处理器和24GB内存,QoS级别为中的VM3对应的4U虚拟处理器和16GB内存。此时,在该界面上还可以显示可用资源的汇总以及还需要额外申请的资源,例如当前该用户所能提供可用资源汇总为16U虚拟处理器和42GB内存,然后即可确定该用户需要额外申请的资源的数量为28U虚拟处理器和70GB内存。For the specific process of the user applying for resources, refer to the schematic diagram of a cloud service application interface provided by the embodiment of the present application shown in FIG. 5 . Take the three virtual machines purchased by the user as an example, such as VM1, VM2, and VM3. The specifications of the three virtual machines are the same, all of which are 16-core (16U) virtual processors and 32G memory. The total resources required can be 42U and 112GB. Users can choose the QoS level required by the virtual machine from the three given QoS guarantee priorities. Correspondingly, the billing system can calculate the current The available resources that can be provided under the QoS level limit, as shown in Figure 5, the 4U virtual processor and 2GB memory corresponding to VM1 with a high QoS level, and the 8U virtual processor and 24GB memory corresponding to VM2 with a low QoS level, QoS The level is the 4U virtual processor and 16GB memory corresponding to the VM3 in the level. At this point, the interface can also display the summary of available resources and resources that need additional application. For example, the available resources currently available to the user are summarized as 16U virtual processor and 42GB memory, and then it can be determined that the user needs additional application. The number of resources is 28U virtual processors and 70GB memory.
步骤204.计费系统根据第一申请资源的数量确定第一云服务的价格。 Step 204. The billing system determines the price of the first cloud service according to the quantity of the first applied resource.
本实施例中,计费系统在确定第一申请资源的数量后,即可以根据该第一申请资源的数量与该资源对应的价格表确定需要额外申请的第一申请资源的使用价格,当然还可以再 加上云服务提供商提供云服务的价格,即可获得用户使用云服务的价格。In this embodiment, after the billing system determines the quantity of the first application resource, it can determine the usage price of the first application resource requiring an additional application according to the quantity of the first application resource and the price list corresponding to the resource. The price of the cloud service provided by the cloud service provider can be added to the price for the user to use the cloud service.
当计费系统确定云服务的价格后,可以通过申请网站在用户的申请界面上显示第一云服务的价格,用户支付完成后,计费系统可以将额外申请的第一申请资源提供给用户。如图6所示的另一种云服务申请界面的示意图,在图5的申请界面的任意位置,例如申请界面下方,显示该第一云服务的价格,图6中第一云服务的价格以0.3元每小时为例,此处不作限定。After the billing system determines the price of the cloud service, the price of the first cloud service can be displayed on the user's application interface through the application website, and after the user's payment is completed, the billing system can provide the user with the additionally applied first application resource. As shown in FIG. 6 , another cloud service application interface is shown. Any position on the application interface in FIG. 5 , such as below the application interface, displays the price of the first cloud service. In FIG. Take 0.3 yuan per hour as an example, which is not limited here.
本申请实施例中,计费系统还可以根据用户提供的QoS级别以及第一申请资源的数量确定第一云服务价格的服务费率,其中,不同QoS保障等级影响云服务计费费率:尽管不同业务负载在减少资源供应后所能得到的劣化效果不一而足,但“QoS低级保障”所能产生的可用资源在不同负载情况下相比其他级别均较多,所以用户可以获得更低的云服务计费费率。相反,由于“QoS高级保障”允许的劣化程度较低,所以可获得的可用资源数量相比“QoS低级保障”较低,导致为保障云服务的QoS,会额外申请较多的资源,因此产生更高的云服务计费费率。示例性的,极端情况下,例如已购虚拟机全是QoS低级保障,且已购虚拟机的可用资源满足第一云服务的需求,不需要额外申请资源,云服务提供商可以将节省的资源提供给其他用户,因此可以设置高的折扣给当前的用户;已购虚拟机全是QoS高级保障的话,则云服务提供商需要额外提供多的资源,因此可以设置低折扣。不过需要说明的是,无论采取何种QoS保障等级,本申请实施例均能提供一定的可用资源用于提供第一云服务,所以相比传统云服务申请方式,用户采用本申请实施例的方案可以减少额外申请资源的数量,可获得更多的计费折扣。计费系统可以根据该服务费率和额外申请的第一申请资源确定用户最终需要支付的第一云服务的价格。In this embodiment of the application, the billing system can also determine the service charge rate of the first cloud service price according to the QoS level provided by the user and the quantity of the first application resource, wherein different QoS guarantee levels affect the cloud service charge rate: although Different business loads can obtain different degradation effects after reducing resource supply, but "QoS low-level guarantee" can produce more available resources than other levels under different load conditions, so users can get lower cloud service billing rate. On the contrary, because "QoS Advanced Guarantee" allows a lower degree of degradation, the amount of available resources available is lower than that of "QoS Low-Level Guarantee". As a result, in order to guarantee the QoS of cloud services, more resources will be applied for, resulting in Higher cloud service billing rates. Exemplary, in extreme cases, for example, all the purchased virtual machines have low-level QoS guarantees, and the available resources of the purchased virtual machines meet the requirements of the first cloud service, and there is no need to apply for additional resources. The cloud service provider can use the saved resources It is provided to other users, so a high discount can be set for the current user; if the purchased virtual machines are all QoS advanced guarantees, the cloud service provider needs to provide more resources, so a low discount can be set. However, it should be noted that no matter what QoS guarantee level is adopted, the embodiment of this application can provide certain available resources for providing the first cloud service. Therefore, compared with the traditional cloud service application method, the user adopts the solution of the embodiment of this application The number of additional application resources can be reduced, and more billing discounts can be obtained. The billing system can determine the price of the first cloud service that the user needs to pay finally according to the service rate and the additionally applied first application resources.
由于用户在申请第一云服务后续仍然可能会继续使用已购虚拟机存储数据,但是此时已购虚拟机的可用资源已被第一云服务占用,当该用户继续在已购虚拟机存储数据时,会导致已购虚拟机的性能会下降,例如QoS劣化程度变高,此时已购虚拟机的QoS劣化程度不满足原本该已购虚拟机设定的QoS级别,则计费系统可以将已购虚拟机用于第一云服务的负载部分做二次调度,例如将用于第一云服务的负载部分迁移到额外申请的第二申请资源,避免继续使用该已购虚拟机的可用资源,使得该用户可以在保障已购虚拟机运行性能的情况下使用第一云服务,需要说明的是,额外申请第二申请资源后,计费系统还需要基于当前申请的第一申请资源和第二申请资源的数量,以及第一云服务的提供费用确定新的价格。Since the user may continue to use the purchased virtual machine to store data after applying for the First Cloud service, but at this time the available resources of the purchased virtual machine have been occupied by the First Cloud service, when the user continues to store data on the purchased virtual machine In this case, the performance of the purchased virtual machine will decrease, for example, the degree of QoS degradation becomes higher. At this time, the degree of QoS degradation of the purchased virtual machine does not meet the original QoS level set for the purchased virtual machine. Secondary scheduling of the load part of the purchased virtual machine used for the first cloud service, for example, migrating the load part used for the first cloud service to the additionally applied second application resource, to avoid continuing to use the available resources of the purchased virtual machine , so that the user can use the first cloud service while ensuring the running performance of the purchased virtual machine. 2. The quantity of applied resources and the provision fee of the first cloud service determine the new price.
当计费系统确定新的价格后,可以向用户发送一个指示第一云服务的价格发生变化的通知,以使得用户可以随时通过申请界面发送价格查询请求,申请界面可以将当前的新的价格展示在申请界面上。计费系统也可以同时记录该第一云服务价格发生变化的原因,并通过申请界面展示给用户。After the billing system determines the new price, it can send a notification to the user indicating that the price of the first cloud service has changed, so that the user can send a price query request through the application interface at any time, and the application interface can display the current new price on the application interface. The billing system can also simultaneously record the reason for the price change of the first cloud service, and display it to the user through the application interface.
具体的,本申请实施例的实施过程可以参照图7提供的云服务申请实现流程示意图,如图7所示,步骤701:用户发起第一云服务申请;步骤;702:申请网站在用户使用的用户设备的申请界面上展示QoS级别选项;步骤703:用户选择QoS级别;步骤704:申请网站将QoS级别发送给计费系统;步骤705:计费系统获取第一云服务所需的总资源,通过 减少资源供应的方式检查QoS劣化程度获取可用资源,再确定第一申请资源和第一云服务的价格;步骤706:计费系统将可用资源、第一申请资源和第一云服务的价格发送给申请网站;步骤707:申请网站将可用资源、第一申请资源和第一云服务的价格在申请界面上展示;步骤708:用户确定并缴费;步骤709:申请网站将第一申请资源的数量发送给资源管理系统,以使得资源管理系统将资源池中相应的资源为该用户提供第一云服务;步骤710:当已购虚拟机出现QoS劣化不满足QoS级别时,计费系统确定需要额外申请的第二申请资源,以及根据第一申请资源和第二申请资源确定新的价格;步骤711.计费系统将第二申请资源的数量和新的价格发送到申请网站;步骤712:计费系统向用户发送通知;步骤713:申请网站将第二申请资源的数量发送给资源管理系统,以使得该资源管理系统将资源池中相应的资源为该用户提供第一云服务;步骤714:用户根据通知向申请网站发起价格查询请求;步骤715:申请网站展示第一申请资源的数量、第二申请资源的数量,以及展示新的价格。Specifically, the implementation process of the embodiment of the present application can refer to the schematic diagram of the cloud service application implementation process provided in Figure 7. As shown in Figure 7, step 701: the user initiates the first cloud service application; step 702: the application website is used by the user The QoS level option is displayed on the application interface of the user equipment; step 703: the user selects the QoS level; step 704: the application website sends the QoS level to the billing system; step 705: the billing system obtains the total resources required for the first cloud service, Check the QoS degradation degree to obtain available resources by reducing resource supply, and then determine the price of the first application resource and the first cloud service; Step 706: the billing system sends the available resources, the first application resource and the price of the first cloud service to the application website; step 707: the application website displays the available resources, the price of the first application resource and the price of the first cloud service on the application interface; step 708: the user confirms and pays the fee; step 709: the application website displays the amount of the first application resource Send it to the resource management system, so that the resource management system provides the user with the first cloud service with the corresponding resources in the resource pool; Step 710: When the purchased virtual machine has QoS degradation and does not meet the QoS level, the billing system determines that additional Apply for the second application resource, and determine the new price according to the first application resource and the second application resource; Step 711. The billing system sends the quantity of the second application resource and the new price to the application website; Step 712: Billing The system sends a notification to the user; step 713: the application website sends the quantity of the second application resource to the resource management system, so that the resource management system provides the user with the first cloud service with the corresponding resources in the resource pool; step 714: the user Initiate a price query request to the application website according to the notification; Step 715: The application website displays the quantity of the first application resource, the quantity of the second application resource, and displays the new price.
本申请实施例的方案中,计费系统可以获取第一云服务所需的总资源,然后再获取已购虚拟机的可用资源,即可根据可用资源和第一云服务所需的总资源确定需要额外申请的第一申请资源,然后只需根据该额外申请的第一申请资源的数量确定云服务的费用,在相同第一云服务所需的总资源的情况下只需对第一申请资源的数量进行计费,不需要对可用资源数量的资源进行计费,减少了云服务的使用成本。In the solution of the embodiment of this application, the billing system can obtain the total resources required by the first cloud service, and then obtain the available resources of the purchased virtual machine, which can be determined according to the available resources and the total resources required by the first cloud service. The first application resource that requires an additional application, and then only need to determine the cost of the cloud service according to the number of the additional application first application resources, in the case of the same total resources required by the first cloud service, only the first application resource Billing for the number of available resources does not need to be billed for the number of available resources, reducing the cost of using cloud services.
上面讲述了云服务计费的方法,下面对执行该方法的装置进行描述。The method for cloud service billing has been described above, and the device for implementing the method will be described below.
请参阅图8,如图8所示为本申请实施例提供的一种云服务计费装置的结构示意图,该装置80包括:Please refer to FIG. 8 . As shown in FIG. 8 , it is a schematic structural diagram of a cloud service billing device provided by an embodiment of the present application. The device 80 includes:
获取单元801,用于获取第一云服务所需的总资源,和用户的已购虚拟机的可用资源;An obtaining unit 801, configured to obtain the total resources required by the first cloud service and the available resources of the purchased virtual machine of the user;
确定单元802,用于根据可用资源和第一云服务的总资源确定第一申请资源,第一申请资源和可用资源用于提供第一云服务,根据第一申请资源的数量确定第一云服务的价格。The determining unit 802 is configured to determine the first application resource according to the available resources and the total resources of the first cloud service, the first application resources and the available resources are used to provide the first cloud service, and determine the first cloud service according to the quantity of the first application resources s price.
可选的,获取单元801具体用于:接收用户的指令,指令指示服务质量QoS级别,QoS级别用于限制已购虚拟机的性能;根据QoS级别确定已购虚拟机的可用资源。Optionally, the obtaining unit 801 is specifically configured to: receive an instruction from a user, the instruction indicates a quality of service (QoS) level, and the QoS level is used to limit the performance of the purchased virtual machine; determine the available resources of the purchased virtual machine according to the QoS level.
可选的,装置80还包括调整单元803,调整单元803具体用于:调整已购虚拟机的资源分配,以检测已购虚拟机在不同资源分配下的性能;获取单元801具体用于:根据QoS级别和已购虚拟机在不同资源分配下的性能确定已购虚拟机的可用资源。Optionally, the device 80 further includes an adjustment unit 803, the adjustment unit 803 is specifically configured to: adjust the resource allocation of the purchased virtual machine, so as to detect the performance of the purchased virtual machine under different resource allocations; the acquisition unit 801 is specifically configured to: according to The QoS level and the performance of the purchased virtual machine under different resource allocations determine the available resources of the purchased virtual machine.
可选的,获取单元801具体用于:根据用户输入的资源的数量确定可用资源。Optionally, the obtaining unit 801 is specifically configured to: determine available resources according to the quantity of resources input by the user.
可选的,确定单元802还用于:根据QoS级别和第一申请资源的数量确定第一云服务的服务费率;根据第一申请资源的数量和服务费率确定第一云服务的价格。Optionally, the determining unit 802 is further configured to: determine the service charge rate of the first cloud service according to the QoS level and the quantity of the first applied resource; determine the price of the first cloud service according to the quantity of the first applied resource and the service charge rate.
可选的,确定单元802还用于:当已购虚拟机的性能不满足QoS级别时,确定需要提供给用户的第二申请资源;根据第一申请资源的数量和第二申请资源的数量确定新的价格。Optionally, the determining unit 802 is also used to: determine the second application resource that needs to be provided to the user when the performance of the purchased virtual machine does not meet the QoS level; new price.
可选的,装置80还包括发送单元804,接收单元804具体用于:向用户发送通知,通知指示第一云服务的价格发生变化。Optionally, the device 80 further includes a sending unit 804, and the receiving unit 804 is specifically configured to: send a notification to the user, the notification indicating that the price of the first cloud service changes.
装置80的获取单元801用于执行图2方法实施例中的步骤201和步骤202,装置80 的确定单元802用于执行图2方法实施例中的步骤203和步骤204,此处不再赘述。The acquisition unit 801 of the device 80 is used to execute step 201 and step 202 in the method embodiment of FIG. 2 , and the determination unit 802 of the device 80 is used to execute step 203 and step 204 in the method embodiment of FIG. 2 , which will not be repeated here.
图9所示,为本申请的实施例提供的计算机设备90的一种可能的逻辑结构示意图。计算机设备90包括:处理器901、通信接口902、存储系统903以及总线904。处理器901、通信接口902以及存储系统903通过总线904相互连接。在本申请的实施例中,处理器901用于对计算机设备90的动作进行控制管理,例如,处理器901用于执行图2的方法实施例中计费系统所执行的步骤。通信接口902用于支持计算机设备90进行通信。存储系统903,用于存储计算机设备90的程序代码和数据。FIG. 9 is a schematic diagram of a possible logical structure of a computer device 90 provided by an embodiment of the present application. The computer device 90 includes: a processor 901 , a communication interface 902 , a storage system 903 and a bus 904 . The processor 901 , the communication interface 902 and the storage system 903 are connected to each other through a bus 904 . In the embodiment of the present application, the processor 901 is used to control and manage the actions of the computer device 90, for example, the processor 901 is used to execute the steps performed by the billing system in the method embodiment in FIG. 2 . The communication interface 902 is used to support the computer device 90 to communicate. The storage system 903 is used for storing program codes and data of the computer device 90 .
其中,处理器901可以是中央处理器单元,通用处理器,数字信号处理器,专用集成电路,现场可编程门阵列或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。处理器901也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,数字信号处理器和微处理器的组合等等。总线904可以是外设部件互连标准(Peripheral Component Interconnect,PCI)总线或扩展工业标准结构(Extended Industry Standard Architecture,EISA)总线等。总线可以分为地址总线、数据总线、控制总线等。为便于表示,图9中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。Wherein, the processor 901 may be a central processing unit, a general purpose processor, a digital signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It can implement or execute the various illustrative logical blocks, modules and circuits described in connection with the present disclosure. The processor 901 may also be a combination that implements computing functions, for example, a combination of one or more microprocessors, a combination of a digital signal processor and a microprocessor, and the like. The bus 904 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (Extended Industry Standard Architecture, EISA) bus or the like. The bus can be divided into address bus, data bus, control bus and so on. For ease of representation, only one thick line is used in FIG. 9 , but it does not mean that there is only one bus or one type of bus.
装置80中的发送单元804相当于计算机设备90中的通信接口902,装置80中的获取单元801、确定单元802和调整单元803相当于计算机设备90中的处理器901。The sending unit 804 in the device 80 is equivalent to the communication interface 902 in the computer device 90 , and the acquiring unit 801 , determining unit 802 and adjusting unit 803 in the device 80 are equivalent to the processor 901 in the computer device 90 .
本实施例的计算机设备90可对应于上述图2方法实施例中的计费设备,该计算机设备90中的通信接口902可以实现上述图2方法实施例中的计费设备所具有的功能和/或所实施的各种步骤,为了简洁,在此不再赘述。The computer device 90 in this embodiment may correspond to the billing device in the above-mentioned method embodiment in FIG. Or the various steps implemented, for the sake of brevity, will not be repeated here.
应理解以上装置中单元的划分仅仅是一种逻辑功能的划分,实际实现时可以全部或部分集成到一个物理实体上,也可以物理上分开。且装置中的单元可以全部以软件通过处理元件调用的形式实现;也可以全部以硬件的形式实现;还可以部分单元以软件通过处理元件调用的形式实现,部分单元以硬件的形式实现。例如,各个单元可以为单独设立的处理元件,也可以集成在装置的某一个芯片中实现,此外,也可以以程序的形式存储于存储器中,由装置的某一个处理元件调用并执行该单元的功能。此外这些单元全部或部分可以集成在一起,也可以独立实现。这里所述的处理元件又可以成为处理器,可以是一种具有信号的处理能力的集成电路。在实现过程中,上述方法的各步骤或以上各个单元可以通过处理器元件中的硬件的集成逻辑电路实现或者以软件通过处理元件调用的形式实现。It should be understood that the division of units in the above device is only a division of logical functions, and may be fully or partially integrated into a physical entity or physically separated during actual implementation. And the units in the device can all be implemented in the form of software called by the processing element; they can also be implemented in the form of hardware; some units can also be implemented in the form of software called by the processing element, and some units can be implemented in the form of hardware. For example, each unit can be a separate processing element, or it can be integrated in a certain chip of the device. In addition, it can also be stored in the memory in the form of a program, which is called and executed by a certain processing element of the device. Function. In addition, all or part of these units can be integrated together, or implemented independently. The processing element mentioned here may also be a processor, which may be an integrated circuit with signal processing capabilities. In the process of implementation, each step of the above method or each unit above may be implemented by an integrated logic circuit of hardware in the processor element or implemented in the form of software called by the processing element.
在一个例子中,以上任一装置中的单元可以是被配置成实施以上方法的一个或多个集成电路,例如:一个或多个特定集成电路(application specific integrated circuit,ASIC),或,一个或多个微处理器(digital singnal processor,DSP),或,一个或者多个现场可编程门阵列(field programmable gate array,FPGA),或这些集成电路形式中至少两种的组合。再如,当装置中的单元可以通过处理元件调度程序的形式实现时,该处理元件可以是通用处理器,例如中央处理器(central processing unit,CPU)或其它可以调用程序的处理器。再如,这些单元可以集成在一起,以片上系统(system-on-a-chip, SOC)的形式实现。In one example, the units in any of the above devices may be one or more integrated circuits configured to implement the above method, for example: one or more specific integrated circuits (application specific integrated circuit, ASIC), or, one or Multiple microprocessors (digital signal processor, DSP), or, one or more field programmable gate arrays (field programmable gate array, FPGA), or a combination of at least two of these integrated circuit forms. For another example, when the units in the device can be implemented in the form of a processing element scheduler, the processing element can be a general-purpose processor, such as a central processing unit (central processing unit, CPU) or other processors that can call programs. For another example, these units can be integrated together and implemented in the form of a system-on-a-chip (SOC).
在本申请的另一个实施例中,还提供一种计算机可读存储介质,计算机可读存储介质中存储有计算机执行指令,当设备的处理器执行该计算机执行指令时,设备执行上述方法实施例中计费系统所执行的方法。In another embodiment of the present application, a computer-readable storage medium is also provided. Computer-executable instructions are stored in the computer-readable storage medium. When the processor of the device executes the computer-executable instructions, the device executes the above-mentioned method embodiment. The method performed by the billing system in .
在本申请的另一个实施例中,还提供一种计算机程序产品,该计算机程序产品包括计算机执行指令,该计算机执行指令存储在计算机可读存储介质中。当设备的处理器执行该计算机执行指令时,设备执行上述方法实施例中计费系统所执行的方法。In another embodiment of the present application, a computer program product is also provided, the computer program product includes computer-executable instructions, and the computer-executable instructions are stored in a computer-readable storage medium. When the processor of the device executes the computer-executed instructions, the device executes the method executed by the billing system in the above method embodiment.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,read-only memory)、随机存取存储器(RAM,random access memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or part of the contribution to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), magnetic disk or optical disc, etc., which can store program codes. .

Claims (17)

  1. 一种云服务计费方法,其特征在于,包括:A cloud service billing method, characterized in that it comprises:
    获取第一云服务所需的总资源;Obtain the total resources required for the First Cloud service;
    获取用户的已购虚拟机的可用资源;Obtain the available resources of the purchased virtual machine of the user;
    根据所述可用资源和所述第一云服务所需的总资源确定第一申请资源,所述第一申请资源和所述可用资源用于为所述用户提供所述第一云服务;determining a first application resource according to the available resources and total resources required by the first cloud service, where the first application resource and the available resources are used to provide the user with the first cloud service;
    根据所述第一申请资源的数量确定所述第一云服务的价格。The price of the first cloud service is determined according to the quantity of the first application resource.
  2. 根据权利要求1所述的方法,其特征在于,所述获取所述用户的已购虚拟机的可用资源包括:The method according to claim 1, wherein said obtaining the available resources of the virtual machine purchased by the user comprises:
    接收用户的指令,所述指令指示服务质量QoS级别,所述QoS级别用于限制所述已购虚拟机的性能;receiving an instruction from a user, the instruction indicating a quality of service (QoS) level, and the QoS level is used to limit the performance of the purchased virtual machine;
    根据所述QoS级别确定所述已购虚拟机的所述可用资源。The available resources of the purchased virtual machine are determined according to the QoS level.
  3. 根据权利要求2所述的方法,其特征在于,所述方法还包括:The method according to claim 2, further comprising:
    调整所述已购虚拟机的资源分配,以检测所述已购虚拟机在不同资源分配下的性能;Adjusting the resource allocation of the purchased virtual machine to detect the performance of the purchased virtual machine under different resource allocations;
    所述根据所述QoS级别确定所述已购虚拟机的所述可用资源包括:The determining the available resources of the purchased virtual machine according to the QoS level includes:
    根据所述QoS级别和所述已购虚拟机在不同资源分配下的性能确定所述已购虚拟机的所述可用资源。The available resources of the purchased virtual machine are determined according to the QoS level and the performance of the purchased virtual machine under different resource allocations.
  4. 根据权利要求1所述的方法,其特征在于,所述获取所述用户的已购虚拟机的可用资源包括:The method according to claim 1, wherein said obtaining the available resources of the virtual machine purchased by the user comprises:
    根据用户输入的资源的数量确定所述可用资源。The available resources are determined according to the quantity of resources input by the user.
  5. 根据权利要求2或3所述的方法,其特征在于,所述方法还包括:The method according to claim 2 or 3, characterized in that the method further comprises:
    根据所述QoS级别和所述第一申请资源的数量确定所述第一云服务的服务费率;determining the service fee rate of the first cloud service according to the QoS level and the quantity of the first applied resource;
    所述根据所述第一申请资源的数量确定所述第一云服务的价格包括:The determining the price of the first cloud service according to the quantity of the first application resources includes:
    根据所述第一申请资源的数量和所述服务费率确定所述第一云服务的价格。The price of the first cloud service is determined according to the quantity of the first applied resource and the service fee rate.
  6. 根据权利要求2、3或5所述的方法,其特征在于,所述方法还包括:The method according to claim 2, 3 or 5, characterized in that the method further comprises:
    当所述已购虚拟机的性能不满足所述QoS级别时,确定需要提供给所述用户的第二申请资源;When the performance of the purchased virtual machine does not meet the QoS level, determine a second application resource that needs to be provided to the user;
    根据所述第一申请资源的数量和所述第二申请资源的数量确定新的价格。A new price is determined according to the quantity of the first application resource and the quantity of the second application resource.
  7. 根据权利要求6所述的方法,其特征在于,所述根据所述第一申请资源的数量和所述第二申请资源的数量确定新的价格之后,所述方法还包括:The method according to claim 6, wherein after the new price is determined according to the quantity of the first application resource and the quantity of the second application resource, the method further comprises:
    向所述用户发送通知,所述通知指示所述第一云服务的价格发生变化。A notification is sent to the user, the notification indicating that the price of the first cloud service changes.
  8. 一种云服务计费装置,其特征在于,包括:A cloud service billing device, characterized in that it comprises:
    获取单元,用于获取第一云服务所需的总资源,和用户的已购虚拟机的可用资源;An acquisition unit, configured to acquire the total resources required by the first cloud service and the available resources of the user's purchased virtual machine;
    确定单元,用于根据所述可用资源和所述第一云服务的总资源确定第一申请资源,所述第一申请资源和所述可用资源用于为所述用户提供所述第一云服务,根据所述第一申请资源的数量确定所述第一云服务的价格。A determining unit, configured to determine a first application resource according to the available resources and the total resources of the first cloud service, the first application resource and the available resources are used to provide the user with the first cloud service , determining the price of the first cloud service according to the quantity of the first application resource.
  9. 根据权利要求8所述的装置,其特征在于,所述获取单元具体用于:The device according to claim 8, wherein the acquiring unit is specifically used for:
    接收用户的指令,所述指令指示服务质量QoS级别,所述QoS级别用于限制所述已购虚拟机的性能;receiving an instruction from a user, the instruction indicating a quality of service (QoS) level, and the QoS level is used to limit the performance of the purchased virtual machine;
    根据所述QoS级别确定所述已购虚拟机的所述可用资源。The available resources of the purchased virtual machine are determined according to the QoS level.
  10. 根据权利要求9所述的装置,其特征在于,所述装置还包括调整单元,所述调整单元具体用于:The device according to claim 9, wherein the device further comprises an adjustment unit, and the adjustment unit is specifically used for:
    调整所述已购虚拟机的资源分配,以检测所述已购虚拟机在不同资源分配下的性能;Adjusting the resource allocation of the purchased virtual machine to detect the performance of the purchased virtual machine under different resource allocations;
    所述获取单元具体用于:The acquisition unit is specifically used for:
    根据所述QoS级别和所述已购虚拟机在不同资源分配下的性能确定所述已购虚拟机的所述可用资源。The available resources of the purchased virtual machine are determined according to the QoS level and the performance of the purchased virtual machine under different resource allocations.
  11. 根据权利要求8所述的装置,其特征在于,所述获取单元具体用于:The device according to claim 8, wherein the acquiring unit is specifically used for:
    根据用户输入的资源的数量确定所述可用资源。The available resources are determined according to the quantity of resources input by the user.
  12. 根据权利要求9或10所述的装置,其特征在于,所述确定单元还用于:The device according to claim 9 or 10, wherein the determining unit is further used for:
    根据所述QoS级别和所述第一申请资源的数量确定所述第一云服务的服务费率;determining the service fee rate of the first cloud service according to the QoS level and the quantity of the first applied resource;
    根据所述第一申请资源的数量和所述服务费率确定所述第一云服务的价格。The price of the first cloud service is determined according to the quantity of the first applied resource and the service fee rate.
  13. 根据权利要求9、10或12所述的装置,其特征在于,所述确定单元还用于:The device according to claim 9, 10 or 12, wherein the determination unit is further used for:
    当所述已购虚拟机的性能不满足所述QoS级别时,确定需要提供给所述用户的第二申请资源;When the performance of the purchased virtual machine does not meet the QoS level, determine a second application resource that needs to be provided to the user;
    根据所述第一申请资源的数量和所述第二申请资源的数量确定新的价格。A new price is determined according to the quantity of the first application resource and the quantity of the second application resource.
  14. 根据权利要求13所述的装置,其特征在于,所述装置还包括发送单元,所述发送单元具体用于:The device according to claim 13, wherein the device further comprises a sending unit, and the sending unit is specifically used for:
    向所述用户发送通知,所述通知指示所述第一云服务的价格发生变化。A notification is sent to the user, the notification indicating that the price of the first cloud service changes.
  15. 一种计算机设备,其特征在于,包括:处理器,所述处理器与存储器耦合,A computer device, characterized in that it includes: a processor coupled to a memory,
    所述处理器用于执行所述存储器中存储的指令,使得所述计算机设备执行如权利要求1至7中任一项所述的方法。The processor is configured to execute instructions stored in the memory, so that the computer device executes the method according to any one of claims 1-7.
  16. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有指令,当所述指令被执行时,使得计算机执行如权利要求1至7中任一项所述的方法。A computer-readable storage medium, characterized in that instructions are stored in the computer-readable storage medium, and when the instructions are executed, the computer executes the method according to any one of claims 1-7.
  17. 一种计算机程序产品,其特征在于,所述计算机程序产品中包括计算机程序代码,其特征在于,当所述计算机程序代码在计算机上运行时,使得计算机实现如权利要求1至7中任一项所述的方法。A computer program product, characterized in that the computer program product includes computer program code, characterized in that, when the computer program code is run on a computer, the computer implements any one of claims 1 to 7. the method described.
PCT/CN2023/070331 2022-01-28 2023-01-04 Cloud service billing method and apparatus WO2023142920A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210109087.0A CN116566756A (en) 2022-01-28 2022-01-28 Cloud service charging method and device
CN202210109087.0 2022-01-28

Publications (1)

Publication Number Publication Date
WO2023142920A1 true WO2023142920A1 (en) 2023-08-03

Family

ID=87470532

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/070331 WO2023142920A1 (en) 2022-01-28 2023-01-04 Cloud service billing method and apparatus

Country Status (2)

Country Link
CN (1) CN116566756A (en)
WO (1) WO2023142920A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103907128A (en) * 2011-06-14 2014-07-02 英派尔科技开发有限公司 Peak-performance-aware billing for cloud computing environment
US20140258446A1 (en) * 2013-03-07 2014-09-11 Citrix Systems, Inc. Dynamic configuration in cloud computing environments
WO2021057981A1 (en) * 2019-09-27 2021-04-01 中兴通讯股份有限公司 Cloud billing method and apparatus, cloud management platform and system, and storage medium
CN113037512A (en) * 2021-03-02 2021-06-25 北京金山云网络技术有限公司 Statistical method and device for network resource consumption and server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103907128A (en) * 2011-06-14 2014-07-02 英派尔科技开发有限公司 Peak-performance-aware billing for cloud computing environment
US20140258446A1 (en) * 2013-03-07 2014-09-11 Citrix Systems, Inc. Dynamic configuration in cloud computing environments
WO2021057981A1 (en) * 2019-09-27 2021-04-01 中兴通讯股份有限公司 Cloud billing method and apparatus, cloud management platform and system, and storage medium
CN113037512A (en) * 2021-03-02 2021-06-25 北京金山云网络技术有限公司 Statistical method and device for network resource consumption and server

Also Published As

Publication number Publication date
CN116566756A (en) 2023-08-08

Similar Documents

Publication Publication Date Title
US11080084B1 (en) Managing resources in virtualization systems
US10346216B1 (en) Systems, apparatus and methods for management of software containers
US10924537B2 (en) Systems, apparatus and methods for cost and performance-based management of resources in a cloud environment
US10346775B1 (en) Systems, apparatus and methods for cost and performance-based movement of applications and workloads in a multiple-provider system
US8914511B1 (en) Managing resources in virtualization systems
US8713147B2 (en) Matching a usage history to a new cloud
JP7260470B2 (en) Methods, systems and devices for online charging in cloud systems
US9888067B1 (en) Managing resources in container systems
US11019138B2 (en) Systems, apparatus and methods for cost and performance-based management of resources in a cloud environment
CN106257524A (en) A kind of charging method of cloud infrastructure services
WO2021104452A1 (en) Billing method and apparatus for cloud serving usage package, and related device
USRE48680E1 (en) Managing resources in container systems
USRE48714E1 (en) Managing application performance in virtualization systems
US20220283871A1 (en) Multi-Account Cloud Service Usage Package Sharing Method and Apparatus, and Related Device
CN113516507A (en) Resource charging method and device for multi-cloud management platform
WO2022100534A1 (en) Virtual instance setting method and apparatus
US10686677B1 (en) Flexible capacity reservations for network-accessible resources
US9979836B2 (en) Application-specific mobile data allocation
WO2023142920A1 (en) Cloud service billing method and apparatus
WO2023207951A1 (en) Cloud resource billing method and apparatus based on public cloud technology, and cloud management platform
WO2023221444A1 (en) Resource management method and related apparatus
CN108093062B (en) Cloud resource management method and device
WO2022261872A1 (en) Resource charging method and apparatus for multi-cloud management platform
CN109191204A (en) The accounting management method and device of virtual machine in cloud data system
JP2006523875A (en) Apparatus, method and program for providing computer resource measurement capacity

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23745805

Country of ref document: EP

Kind code of ref document: A1