CN116566756A - Cloud service charging method and device - Google Patents

Cloud service charging method and device Download PDF

Info

Publication number
CN116566756A
CN116566756A CN202210109087.0A CN202210109087A CN116566756A CN 116566756 A CN116566756 A CN 116566756A CN 202210109087 A CN202210109087 A CN 202210109087A CN 116566756 A CN116566756 A CN 116566756A
Authority
CN
China
Prior art keywords
resources
cloud service
virtual machine
user
application
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202210109087.0A
Other languages
Chinese (zh)
Inventor
付森波
汤闻达
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Cloud Computing Technologies Co Ltd
Original Assignee
Huawei Cloud Computing Technologies Co Ltd
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 Huawei Cloud Computing Technologies Co Ltd filed Critical Huawei Cloud Computing Technologies Co Ltd
Priority to CN202210109087.0A priority Critical patent/CN116566756A/en
Priority to PCT/CN2023/070331 priority patent/WO2023142920A1/en
Publication of CN116566756A publication Critical patent/CN116566756A/en
Pending legal-status Critical Current

Links

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

Abstract

The embodiment of the application discloses a cloud service charging method and a device, wherein the method comprises the following steps: the method comprises the steps of obtaining total resources required by first cloud service provided for a user, obtaining current available resources of a virtual machine purchased by the user, and simultaneously providing cloud service for the user according to the available resources and first application resources, namely, the relationship of the total resources required by the first cloud service is jointly formed, determining the quantity of the first application resources required for additional application, determining the cost of the first cloud service according to the quantity of the first application resources, and charging the quantity of the first application resources under the condition of the same total resources of the first cloud service, so that the use cost of the cloud service is reduced.

Description

Cloud service charging method and device
Technical Field
The embodiment of the application relates to the technical field of Internet, in particular to a cloud service charging method and device.
Background
Cloud services (cloud services) generally refer to a cloud service provider providing a shared resource service to users. With the development of internet technology, cloud services have been rapidly developed and utilized. Currently, a cloud service platform may provide users with a variety of cloud services such as infrastructure as a service (infrastructure as a Service, iaaS), platform as a service (platform as a service, paaS), software as a service (software as a service, saaS), and the like. Cloud services typically include application platforms, databases, etc., reducing the complexity and maintenance costs of users in independently deploying the services.
The current industry cloud server charges according to the specification and the use time of the resources applied by the user, but the user often lacks knowledge of the accurate demand of the resources, so that the resources are applied for excessive, the applied resource utilization rate is not high, and the application cost is relatively high.
Disclosure of Invention
The embodiment of the application provides a cloud service charging method and device, which are used for reducing the use cost of cloud service.
An embodiment of the present application provides a cloud service charging method, including: acquiring total resources required by a first cloud service; acquiring available resources of purchased virtual machines of a user; determining a first application resource according to the available resource and the total resource required by the first cloud service, wherein the first application resource and the available resource are used for providing the first cloud service; and determining the price of the first cloud service according to the quantity of the first application resources.
According to the method, the resources needing additional application can be determined according to the available resources of the purchased virtual machine and the total resources required by the first cloud service, the user can enjoy the same cloud service only by purchasing and paying for the resources needing additional application, the utilization rate of the user resources is improved, and the use cost of the cloud service is reduced.
In one possible implementation, obtaining available resources of a purchased virtual machine of a user includes: receiving an instruction from a user, the instruction indicating a quality of service (quality of service, qoS) level, the QoS level being used to limit performance of the purchased virtual machine; and determining available resources of the purchased virtual machine according to the QoS level.
In the above possible implementation manner, the user may set a QoS level for the purchased virtual machine, where the QoS level may indicate the minimum level that the performance of the purchased virtual machine can reach, and the charging system needs to determine the available resources of the purchased virtual machine on the basis of meeting the QoS level, so as to avoid affecting the use experience of the user.
In one possible embodiment, the method further comprises: adjusting the resource allocation of the purchased virtual machine to detect the performance of the purchased virtual machine under different resource allocations; the determining available resources of the purchased virtual machine according to the QoS level includes: and determining available resources of the purchased virtual machine according to the QoS level and the performance of the purchased virtual machine under different resource allocations.
In the possible implementation manner, 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 degree indicated by the QoS level, and then all the adjusted resources are available resources of the purchased virtual machine, so that the influence of using the resources of the purchased virtual machine on the performance of the purchased virtual machine is avoided, and the user experience is ensured.
In one possible implementation, the step of obtaining available resources of the purchased virtual machine of the user includes: and determining available resources according to the quantity of the resources input by the user.
In the possible implementation manner, the available resources may also be input by the user, the charging system provides idle resources meeting the QoS level, and the user inputs the available resources in the range of the idle resources, so as to improve the acquisition flexibility of the available resources.
In one possible embodiment, the method further comprises: determining a service rate of the first cloud service according to the QoS level and the quantity of the first application resources; the determining the price of the first cloud service according to the amount of the first application resource includes: and determining the price of the first cloud service according to the quantity of the first application resources and the service rate.
In the above possible implementation manner, since the QoS level affects the number of the first application resources, the number of the first application resources is smaller than the number of total resources required by the first cloud service, so that the pressure of the cloud service provider for providing the first cloud service is reduced, and then the service rate can be provided for the cost of the first cloud service of the user, and the discount of the service cost is performed on the basis of the number of the first application resources and the provision cost of the first cloud service, so as to determine the price of the final first cloud service, and reduce the cloud service use cost of the user.
In one possible embodiment, the method further comprises: when the performance of the purchased virtual machine does not meet the QoS level, determining a second application resource which needs to be provided for the user; a new price is determined based on the number of first application resources and the number of second application resources.
In the above possible implementation manner, when the user uses the first cloud service, the user still uses the resources of the purchased virtual machine, and at this time, the available resources of the purchased virtual machine are occupied by the first cloud service, and there may be a situation that the performance does not meet the QoS level, and at this time, the charging system may apply for the second application resource for the user, so as to improve flexibility provided by the cloud service resource, so as to avoid affecting use experience of the purchased virtual machine by the user.
In one possible embodiment, after the step of determining the new price according to the number of the first application resources and the number of the second application resources, the method further includes: a notification is sent to the user indicating that the price of the first cloud service has changed.
In the possible implementation manner, the price of the current first cloud service of the user is reminded at any time, and the experience of using the cloud service by the user is improved.
A second aspect of the embodiments of the present application provides a cloud service charging apparatus, which may implement the method in the first aspect or any possible implementation manner of the first aspect. The apparatus comprises corresponding units or modules for performing the above-described methods. The units or modules included in the apparatus may be implemented in a software and/or hardware manner. The device may be, for example, a network device, a chip system, or a processor that supports the network device to implement the method, or a logic module or software that can implement all or part of the functions of the network device.
A third aspect of the embodiments of the present application provides a computer device, including: a processor coupled to a memory for storing instructions that when executed by the processor cause the computer device to implement the method of the first aspect or any of the possible implementations of the first aspect. The computer device may be, for example, a network device, or a chip system supporting the network device to implement the above method.
A fourth aspect of the embodiments of the present application provides a computer-readable storage medium having instructions stored therein, which when executed, cause a computer to perform the method provided by the foregoing first aspect or any of the possible implementations of the first aspect.
A fifth aspect of the embodiments of the present application provides a computer program product comprising computer program code which, when executed, causes a computer to perform the method provided by the foregoing first aspect or any of the possible implementations of the first aspect.
Drawings
Fig. 1 is a schematic architecture diagram of a cloud service management platform according to an embodiment of the present application;
Fig. 2 is a flow chart of a cloud service charging method according to an embodiment of the present application;
fig. 3 is a schematic diagram of a use situation of resources of a purchased virtual machine and an applied cloud service according to an embodiment of the present application;
fig. 4 is a schematic diagram of use cases of another purchased virtual machine and an applied cloud service resource according to an embodiment of the present application;
fig. 5 is a schematic diagram of a cloud service application interface provided in an embodiment of the present application;
FIG. 6 is a schematic diagram of another cloud service application interface according to an embodiment of the present disclosure;
fig. 7 is a schematic diagram of a cloud service application implementation flow provided in an embodiment of the present application;
fig. 8 is a schematic structural diagram of a cloud service charging device according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
The embodiment of the application provides a cloud service charging method and device, which are used for reducing the use cost of cloud service.
Embodiments of the present application will now be described with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some, but not all embodiments of the present application. As one of ordinary skill in the art can appreciate, with the development of technology and the appearance of new scenes, the technical solutions provided in the embodiments of the present application are applicable to similar technical problems.
The terms first, second and the like in the description and in the claims of the present application and in the above-described figures, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments described herein may be implemented in other sequences than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The word "exemplary" is used herein to mean "serving as an example, embodiment, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments.
In addition, numerous specific details are set forth in the following detailed description in order to provide a better understanding of the present application. It will be understood by those skilled in the art that the present application may be practiced without some of these specific details. In some instances, methods and means well known to those skilled in the art have not been described in detail in order to facilitate a salient point of the subject matter of the present application.
Some concepts provided by the embodiments of the present application are explained first.
Cloud services are a product of a fusion of traditional computer and network technology developments such as distributed computing (distributed computing), parallel computing (parallel computing), utility computing (utility computing), network storage (network storage technologies), virtualization (virtualization), load balancing (load balancing) content distribution network (content delivery network). Cloud services are an increasing, usage and interaction model of internet-based related services, generally involving providing dynamically extensible and often virtualized resources over the internet. It is understood that the cloud is a metaphor for networks and the internet. In the past, the telecommunications network was often represented in the figures by a cloud, which later was also used to abstract the internet and underlying infrastructure. In practice, cloud services refer to obtaining a desired service in an on-demand, easily scalable manner over a network. Such services may be internet technology (internet technology, IT) related to software, the internet, or other services, which means that computing power may also be circulated as a commodity through the internet.
In short, multiple clients can share the system resource of a cloud service provider, and can enjoy professional IT service without erecting any equipment and equipment management personnel, which can greatly reduce the operation cost for general entrepreneurs and small and medium enterprises.
Gao Jieyun service: the additional domain-specific, strongly related services offered by cloud service providers over common virtual machine resources. Such as big data processing, databases, etc., typically include a set of separately applied machine resource costs and additional service costs. Because the user adopts the special service, the phenomenon that the utilization rate of the part of resources is not high is easy to occur as the part of resources are the same as the virtual machine originally applied for by the user, and the cloud service in the embodiment of the application takes the high-order cloud service as an example.
The number of cycles per instruction (cycles per instruction, CPI) is the average number of instructions per program instruction needed to complete execution and is the reciprocal of IPC.
Instruction number per cycle (instructions per cycle, IPC): the number of instructions completed per clock cycle is the inverse of CPI.
The architecture of the system architecture applied by the technical solution of the embodiment of the present application may be as shown in the architecture schematic diagram of the cloud service management platform 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. Where resource management system 130 is coupled to resource pool 140, user 150 may purchase and use cloud service resources in resource pool 140 through application website 110. It should be understood that fig. 1 is merely illustrated by way of example with one user applying for cloud service resources. In practical cases, the number of users and the number of cloud service resources are not specifically limited. Moreover, fig. 1 is only one possible implementation manner of the cloud service management platform, and in practical application, the cloud service management platform 100 may further include other modules, which is not limited by the embodiment of the present application.
The application website 110 may be a website of a cloud service platform, the application website 110 may subscribe various cloud services on the current cloud service platform on an application interface of a user using a terminal device, and the application interface may also display a resource type, a specification, a quantity and a price included in each cloud service, where the resource type of the resource includes an instance (such as a virtual machine and a container) required by the cloud service to serve additional services (such as a flow, a database type, and a storage package waiting), and the specification of the resource may include a core number of vCPU of the virtual machine, a size of a memory, a size of a storage package, and the like. When a user selects to purchase a certain cloud service resource, an application interface of the cloud service generates application information, wherein the application information can comprise user information, the type, specification, quantity and price of the resource ordered by the user.
The price on the application interface is determined by the charging system 120 according to the type and the amount of the resources of the cloud service that the user needs to apply for.
The resource management system 130 may monitor and manage the various cloud service resources in the resource pool 140, provide the user 150 with cloud service resources of corresponding types and numbers according to the application information, and then generate usage records of the various cloud service resources according to the usage situation of the user. The resource management system 130 may also feed back to the application interface, such as feeding back the currently idle cloud computing resources, etc., according to the overall situation of various cloud service resources in the resource pool 140.
The resource pool 140 is used to provide various IAAS cloud services, such as a cloud host, cloud storage, bandwidth, and the like, and may provide a platform as a service (platform as a service, paaS) such as a relational database service (relational database service, RDS), software as a service (SaaS), and the like, and may provide a rich cloud service that may be used by a software development cloud or the like through a network, which is not limited in this application.
The user 150 may access the please website 110 through a terminal device, which may be, for example, a mobile phone, a notebook computer, a tablet computer, a personal desktop computer, or the like.
The use of cloud resources like the use of water and electricity is always one of the targets that the cloud computing field is continuously pursuing, however, to date, no public cloud or private cloud manufacturer can achieve the target. The method is limited by the implementation of resource wire drawing and isolation technologies such as a computer architecture, a software operating system and the like, and although hardware infrastructures in the cloud data center are interconnected through a high-speed network, the development speed of each module in the cloud data center is seriously uneven. For example, the memory access speed is seriously delayed from the computation speed of the processor, the memory access speed and the ethernet bandwidth capability are seriously delayed from the memory access, and the resources such as computation and storage of the cloud data center cannot form high-speed sharing among hosts due to bottlenecks in various aspects. If the water and electricity are classified as a single resource, the acquisition of the cloud resource by the user application is not limited to the single resource, but is required to meet the normal operation of the application by simultaneously seeking on multidimensional resources such as calculation, storage and the like. Moreover, in the use experience of the user resource, if the use of the user resource exceeds the capacity of a single host, there is a significant performance change feeling, so that the user resource is generally issued by a virtual machine with the capacity of the single host or less.
Therefore, the user mainly adopts a format of order to purchase a certain size and pay according to subscription on the use of resources in public clouds in most scenes. Specification assignment of virtual machine instances does not have flexibility, and currently Virtual Machine (VM) distribution is performed based on static allocation rates. The user can charge according to the ordering specification no matter whether the user actually uses or not or the actual using degree after buying, which causes waste to the user, and the use cost of the user about the virtual machine instance is actually increased by changing the phase.
In order to solve the above problems, the embodiments of the present application provide a cloud service charging method, which combines the available resources of the purchased virtual machine of the user and the first application resources to provide the first cloud service for the user, and reduces the number of application resources of the user on the basis of the same cloud service providing effect.
Referring to fig. 2, fig. 2 is a flow chart of a cloud service charging method according to an embodiment of the present application, which is described below.
Step 201, a charging system acquires total resources required by a first cloud service.
In this embodiment, generally, a user applies for a cloud service while buying a virtual machine, for example, when the user needs to build a database and does not want to maintain the database, the cloud service provider may apply for the cloud service of the database, and the cloud service provider maintains the database for the user. Wherein the total resources required for the first cloud service may be a minimum configuration set by the cloud service provider, for example taking the purchase of a data processing service (map reduce service, MRS) as an example: the user purchases an MRS cluster in a year/month pack mode, the cluster node is configured as 2 main (master) nodes of 16 cores and 32GB, 3 core nodes of 4 cores and 16GB, each master node carries a 40GB system disk by default and plans a 200GB storage space, and each core node carries a 40GB system disk by default and plans a 100GB storage space. The total resources required by the first cloud service can be the number of resources which can be freely increased by the user on the basis of the lowest configuration, and the user can increase the number of master nodes and core nodes on the application interface.
In this embodiment, after the user purchases the virtual machine, the purchase mode of the first cloud service may be selected through the application interface, and the cloud service platform provides two purchase modes for the user: the first mode is to directly purchase according to total resources required by a certain cloud service and charge based on the total resources, the second mode is to determine resources required to be additionally applied based on available resources of a virtual machine purchased by a user and total resources required by the cloud service, a charging system charges the additionally applied resources and applies for the resources, and then a corresponding number of resources are managed through a resource management system. When the user applies for interface selection scheme two, step 201 is triggered.
Step 202, the charging system obtains available resources of the purchased virtual machine of the user.
In this embodiment, since the user applies that the first cloud service is not to maintain data, and the data is submitted to the cloud service provider for maintenance, the resources of the virtual machine purchased by the user are not necessarily in an overload state at this time, and when the resources of the virtual machine purchased by the user are not used up, the remaining unused resources are available as resources of the first cloud service, the remaining resources are available as resources of the virtual machine purchased, and the exemplary available resources of the virtual machine purchased are 40%, and the remaining 60% can be available as resources. When available resources exist in the purchased virtual machine of the user, the available resources are in an idle state currently, and the charging system can acquire the resource use condition of the purchased virtual machine of the user so as to acquire the available resources in the purchased virtual machine of the user. The number of the purchased virtual machines of the user may be one or more, and accordingly, the charging system may determine available resources corresponding to the one or more purchased virtual machines.
In one example, the billing system may directly take the remaining resources of the purchased virtual machine as available resources (e.g., the remaining specifications of the vCPU and memory), or determine the available resources from the remaining resources of the purchased virtual machine minus the reserved resources, where the reserved resources are resources that reduce the change in usage performance of the user's purchased virtual machine.
In another example, since the available resources of the virtual machine are purchased by the user, the original traffic load pressure of the user increases, which not only affects the quality of service (quality of service, qoS) of the user's own traffic, but also affects the QoS guarantee of the cloud service. The embodiment of the application can provide corresponding available resource utilization suggestions for the user by giving the QoS available resource classification of the original service to the user, and different QoS classifications mean how many available resources for providing the first cloud service are in the virtual machine. In this embodiment, the manner in which the charging system obtains the available resources may be that the user issues a command on the application interface to indicate the QoS level of the purchased virtual machine of the user, and the charging system may determine the available resources on the basis of ensuring that the load of the purchased virtual machine meets the QoS level. For example, the present application may configure QoS level options for individual virtual machines on an application interface, each virtual machine may select any of high, medium, and low.
Specifically, the manner in which the charging system determines available resources of the purchased virtual machine based on the QoS level may be to perform portrait processing on the load of the purchased virtual machine of the user, and during the operation of the load of the purchased virtual machine, determine the QoS degradation degree of the purchased virtual machine by adjusting the resource allocation of the purchased virtual machine, and then continue to repeatedly adjust the resource supply of the load, so as to probe the amount of available resources available for the service load. Illustratively, the resource supply of the purchased virtual machine is gradually reduced so that the performance (QoS degradation degree) of the purchased virtual machine reaches a limit degree of allowable degradation, which is defined by the QoS level, and the resource supply reduced when the performance of the virtual machine reaches the limit degree of allowable degradation is the available resource of the virtual machine.
The QoS level on the virtual machine may be a level indicating all purchased virtual machines by one QoS level, or each virtual machine may be marked with its corresponding QoS level, where the QoS level includes three types, i.e., high, medium, and low, and different degradation levels correspond to QoS high, medium, and low. The extent of degradation is characterized by CPI or IPC changes that occur after the lack of resource supply. Illustratively, taking IPC as an example, IPC (sufficient supply of resources)/IPC (reduced supply of resources) =degree of degradation. The specific degradation degree actual value may be configured, and an exemplary "QoS advanced guarantee" corresponds to a degradation degree of 1.2, or any value between 1.1 and 1.5; the "QoS mid-level guarantee" corresponds to a degradation degree of 1.5, or any value between 1.5-2.0; the "QoS low-level guarantee" corresponds to a degradation degree of 2.0, or an arbitrary value between 2.0-3.0. The billing system may explore the amount of available resources for use by the traffic load by approximating the QoS degradation level for each virtual machine infinitely for each virtual machine.
In another example, the billing system may also display available resources determined by the same manner as the previous example according to QoS levels at the application interface, where the user may freely input resources within the available resources as available resources, without limitation. This embodiment is exemplified by a second example.
Step 203, the charging system determines a first application resource according to the available resource and the total resource required by the first cloud service, where the first application resource and the available resource are used for providing the first cloud service.
In this embodiment, since the total number of resources required by the cloud service provider to provide the first cloud service for the user is fixed at the current moment, when the available resources exist in the purchased virtual machine of the user, the available resources can be used as the resources of the first cloud service, and when the number of the available resources does not meet the total number of resources required by the first cloud service, the number of first application resources required by the user to apply for can be determined according to the difference between the total number of resources required by the cloud service provider to provide the first cloud service and the available resources, the first cloud service is provided for the user by combining the available resources and the first application resources, and the number of resources required by the user to apply for the first cloud service is reduced, thereby correspondingly saving the cost of the cloud service.
For the solution of other cloud service providers currently, as shown in fig. 3, the use condition of resources of one purchased virtual machine and the applied cloud service provided in the embodiment of the present application is that the user has purchased three virtual machines with the same specification, 40%, 20% and 60% of unused resources respectively, and the use condition of the applied virtual machine as the cloud service may be 40%, 80% and 50%. The embodiment of the application provides the suggestion of the utilization of the available resources for the user on the basis of giving different QoS levels to the user, which is equivalent to selecting to migrate the load on the virtual machine of the cloud service to the unused resources of the purchased virtual machine, such as migrating the load of the virtual machine with the load of 40% in the cloud service virtual machine to the purchased virtual machine with the unused resources of 60% in fig. 3, so as to reduce the application quantity of the resources of the cloud service, improve the utilization rate of the resources of the purchased virtual machine, reduce the use cost, and achieve the effect of the use condition of the other purchased virtual machine and the applied cloud service resources as shown in fig. 4.
The specific process of applying resources by the user may refer to a schematic diagram of a cloud service application interface provided in the embodiment of the present application shown in fig. 5. Taking 3 purchased virtual machines purchased by the user as examples, VM1, VM2, and VM3. The 3 virtual machines have the same specification, namely, the virtual processors with 16 cores (16U) and the memory with 32G are the same, the total amount of resources required by the first cloud service can be 42U and 112GB, the user can select the QoS level required to be limited by the virtual machine in the given 3 QoS guarantee priorities, and correspondingly, the charging system can calculate the available resources which can be currently provided by the virtual machine under the QoS level limitation, such as the 4U virtual processor and the 2GB memory corresponding to the VM1 with high QoS level in FIG. 5, the 8U virtual processor and the 24GB memory corresponding to the VM2 with low QoS level, and the 4U virtual processor and the 16GB memory corresponding to the VM3 with low QoS level. At this time, the summary of the available resources and the resources that need additional applications may also be displayed on the interface, for example, the current available resources that the user can provide are summarized into a 16U virtual processor and 42GB memory, and then the user can determine that the number of resources that need additional applications is 28U virtual processor and 70GB memory.
Step 204, the charging system determines the price of the first cloud service according to the quantity of the first application resources.
In this embodiment, after determining the number of the first application resources, the charging system may determine the usage price of the first application resources that need to be additionally applied according to the price table corresponding to the number of the first application resources and the resources, and of course, may further add the price of providing the cloud service by the cloud service provider, so as to obtain the price of using the cloud service by the user.
After the charging system determines the price of the cloud service, the price of the first cloud service can be displayed on an application interface of the user through an application website, and after the user finishes paying, the charging system can provide the first application resource for additional application for the user. As shown in fig. 6, a schematic diagram of another cloud service application interface is shown at any location of the application interface in fig. 5, for example, below the application interface, where the price of the first cloud service is exemplified by 0.3 yuan per hour in fig. 6, which is not limited herein.
In this embodiment of the present application, the charging system may further determine a service rate of the first cloud service price according to a QoS level provided by the user and the number of first application resources, where different QoS guarantee levels affect the cloud service charging rate: although the degradation effect obtained by reducing the resource supply of different service loads is different enough, the available resources generated by the QoS low-level guarantee are more than other levels under different load conditions, so that the user can obtain lower cloud service charging rate. In contrast, since the degradation degree allowed by the QoS high-level guarantee is low, the available amount of resources is low compared with the QoS low-level guarantee, which results in that more resources are additionally applied for guaranteeing the QoS of the cloud service, and thus higher charging rate of the cloud service is generated. For example, in an extreme case, for example, the purchased virtual machine is all QoS low-level guarantee, and the available resources of the purchased virtual machine meet the requirement of the first cloud service, without applying for additional resources, the cloud service provider can provide the saved resources to other users, so that a high discount can be set for the current user; if all the purchased virtual machines are QoS advanced guarantees, the cloud service provider needs to additionally 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 the present application can provide a certain available resource for providing the first cloud service, so compared with the traditional cloud service application mode, the user adopting the scheme of the embodiment of the present application can reduce the number of additional application resources, and can obtain more charging discounts. The billing system may determine a price of the first cloud service that the user is ultimately required to pay based on the service rate and the additionally applied first application resources.
Since the user may still 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 are occupied by the first cloud service, when the user continues to store data in the purchased virtual machine, the performance of the purchased virtual machine may be reduced, for example, the QoS degradation degree of the purchased virtual machine becomes high, at this time, the QoS degradation degree of the purchased virtual machine does not meet the QoS level set by the original purchased virtual machine, and then the charging system may use the purchased virtual machine for the load part of the first cloud service to perform secondary scheduling, for example, migrate the load part for the first cloud service to the second application resource of the additional application, so as to avoid continuing to use the available resources of the purchased virtual machine, so that the user may use the first cloud service while guaranteeing the running performance of the purchased virtual machine.
After the charging system determines the new price, a notification indicating that the price of the first cloud service changes can be sent to the user, 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 charging system can also record the reason that the price of the first cloud service changes at the same time and display the reason to the user through the application interface.
Specifically, the implementation process of the embodiment of the present application may refer to a schematic implementation flow diagram of the cloud service application provided in fig. 7, as shown in fig. 7, step 701: a user initiates a first cloud service application; a step of; 702: the application website displays QoS level options on an application interface of user equipment used by a user; step 703: the user selects a QoS level; step 704: the application website sends the QoS level to a charging system; step 705: the charging system acquires total resources required by the first cloud service, checks QoS degradation degree in a resource supply reducing mode to acquire available resources, and then determines first application resources and prices of the first cloud service; step 706: the charging system sends available resources, first application resources and prices of the first cloud service to an application website; step 707: the application website displays the available resources, the first application resources and the price of the first cloud service on an application interface; step 708: the user confirms and pays fees; step 709: the application website sends the number of the first application resources to the resource management system so that the resource management system provides a first cloud service for the user by corresponding resources in the resource pool; step 710: when the QoS degradation of the purchased virtual machine does not meet the QoS level, the charging system determines a second application resource which needs to be additionally applied, and determines a new price according to the first application resource and the second application resource; step 711, the charging system sends the quantity of the second application resources and the new price to the application website; step 712: the charging system sends a notice to the user; step 713: the application website sends the number of the second application resources to the resource management system so that the resource management system provides the first cloud service for the user with the corresponding resources in the resource pool; step 714: the user initiates a price inquiry request to the application website according to the notification; step 715: the application website displays the number of the first application resources, the number of the second application resources, and the new price.
In the scheme of the embodiment of the application, the charging system can acquire the total resources required by the first cloud service, then acquire the available resources of the purchased virtual machine, namely, the first application resources needing to be additionally applied can be determined according to the available resources and the total resources required by the first cloud service, then the cost of the cloud service is determined only according to the quantity of the first application resources of the additional application, and under the condition of the same total resources required by the first cloud service, the quantity of the first application resources is only required to be charged, the resources of the quantity of the available resources are not required to be charged, and the use cost of the cloud service is reduced.
The method for charging the cloud service is described above, and a device for executing the method is described below.
Referring to fig. 8, fig. 8 is a schematic structural diagram of a cloud service charging device according to an embodiment of the present application, where the device 80 includes:
an obtaining unit 801, configured to obtain total resources required by the first cloud service and available resources of the purchased virtual machine of the user;
the determining unit 802 is configured to determine a first application resource according to the available resource and a total resource of the first cloud service, where the first application resource and the available resource are used to provide the first cloud service, and determine a price of the first cloud service according to the number of the first application resource.
Optionally, the acquiring unit 801 is specifically configured to: receiving an instruction of a user, wherein the instruction indicates a quality of service (QoS) level, and the QoS level is used for limiting the performance of purchased virtual machines; and determining available resources of the purchased virtual machine according to the QoS level.
Optionally, the apparatus 80 further comprises an adjusting unit 803, the adjusting unit 803 being specifically configured to: 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 801 is specifically configured to: and determining available resources of the purchased virtual machine according to the QoS level and the performance of the purchased virtual machine under different resource allocations.
Optionally, the acquiring unit 801 is specifically configured to: and determining available resources according to the quantity of the resources input by the user.
Optionally, the determining unit 802 is further configured to: determining a service rate of the first cloud service according to the QoS level and the quantity of the first application resources; and determining the price of the first cloud service according to the quantity of the first application resources and the service rate.
Optionally, the determining unit 802 is further configured to: when the performance of the purchased virtual machine does not meet the QoS level, determining a second application resource which needs to be provided for the user; a new price is determined based on the number of first application resources and the number of second application resources.
Optionally, the apparatus 80 further includes a sending unit 804, where the receiving unit 804 is specifically configured to: a notification is sent to the user indicating that the price of the first cloud service has changed.
The obtaining unit 801 of the apparatus 80 is configured to perform the steps 201 and 202 in the method embodiment of fig. 2, and the determining unit 802 of the apparatus 80 is configured to perform the steps 203 and 204 in the method embodiment of fig. 2, which are not described herein.
Fig. 9 is a schematic diagram of a possible logic structure of a computer device 90 according to an embodiment of the present application. The computer device 90 includes: processor 901, communication interface 902, storage system 903, and bus 904. The processor 901, the communication interface 902, and the storage system 903 are interconnected by a bus 904. In an embodiment of the present application, the processor 901 is configured to control and manage the actions of the computer device 90, for example, the processor 901 is configured to perform the steps performed by the billing system in the method embodiment of fig. 2. The communication interface 902 is used to support communication by the computer device 90. Storage system 903 is used to store program code and data for computer device 90.
The processor 901 may be, among other things, 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 device, a transistor logic device, a hardware component, or any combination thereof. Which may implement or perform the various exemplary logic blocks, modules, and circuits described in connection with this disclosure. Processor 901 may also be a combination that implements computing functionality, such as a combination comprising one or more microprocessors, a combination of digital signal processors and microprocessors, and the like. Bus 904 may be a peripheral component interconnect standard (Peripheral Component Interconnect, PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, among others. The buses may be divided into address buses, data buses, control buses, etc. For ease of illustration, only one thick line is shown in fig. 9, but not only one bus or one type of bus.
The transmitting unit 804 in the apparatus 80 corresponds to the communication interface 902 in the computer device 90, and the acquiring unit 801, the determining unit 802, and the adjusting unit 803 in the apparatus 80 correspond to the processor 901 in the computer device 90.
The computer device 90 of the present embodiment may correspond to the charging device in the foregoing embodiment of the method of fig. 2, and the communication interface 902 in the computer device 90 may implement the functions and/or the various steps implemented in the charging device in the foregoing embodiment of the method of fig. 2, which are not described herein for brevity.
It should be understood that the division of the units in the above apparatus is merely a division of a logic function, and may be fully or partially integrated into a physical entity or may be physically separated when actually implemented. And the units in the device can be all realized in the form of software calls through the processing element; or can be realized in hardware; it is also possible that part of the units are implemented in the form of software, which is called by the processing element, and part of the units are implemented in the form of hardware. For example, each unit may be a processing element that is set up separately, may be implemented as integrated in a certain chip of the apparatus, or may be stored in a memory in the form of a program, and the functions of the unit may be called and executed by a certain processing element of the apparatus. Furthermore, all or part of these units may be integrated together or may be implemented independently. The processing element described herein may in turn be a processor, which may be an integrated circuit with signal processing capabilities. In implementation, each step of the above method or each unit above may be implemented by an integrated logic circuit of hardware in a processor element or in the form of software called by a processing element.
In one example, the unit in any of the above apparatuses may be one or more integrated circuits configured to implement the above methods, for example: one or more specific integrated circuits (application specific integrated circuit, ASIC), or one or more microprocessors (digital singnal 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 apparatus may be implemented in the form of a scheduler of processing elements, the processing elements may be general-purpose processors, such as a central processing unit (central processing unit, CPU) or other processor that may invoke the program. For another example, the units may be integrated together and implemented in the form of a system-on-a-chip (SOC).
In another embodiment of the present application, there is also provided a computer readable storage medium having stored therein computer executable instructions which, when executed by a processor of a device, perform the method performed by the charging system in the method embodiment described above.
In another embodiment of the present application, there is also provided a computer program product comprising computer-executable instructions stored in a computer-readable storage medium. When the processor of the device executes the computer-executable instructions, the device performs the method performed by the billing system in the method embodiment described above.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may 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 in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a random access memory (RAM, random access memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.

Claims (17)

1. The cloud service charging method is characterized by comprising the following steps of:
acquiring total resources required by a first cloud service;
acquiring available resources of purchased virtual machines of a user;
determining a first application resource according to the available resource and the total resource required by the first cloud service, wherein the first application resource and the available resource are used for providing the first cloud service for the user;
and determining the price of the first cloud service according to the quantity of the first application resources.
2. The method of claim 1, wherein the obtaining available resources of the user's purchased virtual machine comprises:
receiving an instruction of a user, wherein the instruction indicates a quality of service (QoS) level, and the QoS level is used for limiting the performance of the purchased virtual machine;
and determining the available resources of the purchased virtual machine according to the QoS level.
3. The method according to claim 2, wherein the method further comprises:
adjusting the resource allocation of the purchased virtual machine to detect the performance of the purchased virtual machine under different resource allocations;
the determining the available resources of the purchased virtual machine according to the QoS level includes:
and 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.
4. The method of claim 1, wherein the obtaining available resources of the user's purchased virtual machine comprises:
and determining the available resources according to the quantity of the resources input by the user.
5. A method according to claim 2 or 3, characterized in that the method further comprises:
determining a service rate of the first cloud service according to the QoS level and the quantity of the first application resources;
the determining the price of the first cloud service according to the number of the first application resources includes:
and determining the price of the first cloud service according to the quantity of the first application resources and the service rate.
6. The method of claim 2, 3 or 5, further comprising:
when the performance of the purchased virtual machine does not meet the QoS level, determining a second application resource which needs to be provided for the user;
and determining a new price according to the quantity of the first application resources and the quantity of the second application resources.
7. The method of claim 6, wherein after determining a new price based on the number of first application resources and the number of second application resources, the method further comprises:
And sending a notification to the user, wherein the notification indicates that the price of the first cloud service changes.
8. A cloud service billing apparatus, comprising:
the acquisition unit is used for acquiring total resources required by the first cloud service and available resources of the purchased virtual machine of the user;
and the determining unit is used for determining a first application resource according to the available resource and the total resource of the first cloud service, wherein the first application resource and the available resource are used for providing the first cloud service for the user, and determining the price of the first cloud service according to the quantity of the first application resource.
9. The apparatus according to claim 8, wherein the acquisition unit is specifically configured to:
receiving an instruction of a user, wherein the instruction indicates a quality of service (QoS) level, and the QoS level is used for limiting the performance of the purchased virtual machine;
and determining the available resources of the purchased virtual machine according to the QoS level.
10. The device according to claim 9, characterized in that it further comprises an adjustment unit, in particular 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 configured to:
and 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.
11. The apparatus according to claim 8, wherein the acquisition unit is specifically configured to:
and determining the available resources according to the quantity of the resources input by the user.
12. The apparatus according to claim 9 or 10, wherein the determining unit is further configured to:
determining a service rate of the first cloud service according to the QoS level and the quantity of the first application resources;
and determining the price of the first cloud service according to the quantity of the first application resources and the service rate.
13. The apparatus according to claim 9, 10 or 12, wherein the determining unit is further configured to:
when the performance of the purchased virtual machine does not meet the QoS level, determining a second application resource which needs to be provided for the user;
and determining a new price according to the quantity of the first application resources and the quantity of the second application resources.
14. The apparatus according to claim 13, characterized in that the apparatus further comprises a transmitting unit, in particular for:
And sending a notification to the user, wherein the notification indicates that the price of the first cloud service changes.
15. A computer device, comprising: a processor coupled to the memory,
the processor is configured to execute instructions stored in the memory to cause the computer device to perform the method of any one of claims 1 to 7.
16. A computer readable storage medium having instructions stored therein which, when executed, cause a computer to perform the method of any of claims 1 to 7.
17. A computer program product comprising computer program code means for causing a computer to carry out the method as claimed in any one of claims 1 to 7 when said computer program code means is run on the computer.
CN202210109087.0A 2022-01-28 2022-01-28 Cloud service charging method and device Pending CN116566756A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210109087.0A CN116566756A (en) 2022-01-28 2022-01-28 Cloud service charging method and device
PCT/CN2023/070331 WO2023142920A1 (en) 2022-01-28 2023-01-04 Cloud service billing method and apparatus

Applications Claiming Priority (1)

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

Publications (1)

Publication Number Publication Date
CN116566756A true CN116566756A (en) 2023-08-08

Family

ID=87470532

Family Applications (1)

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

Country Status (2)

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

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9727847B2 (en) * 2011-06-14 2017-08-08 Empire Technology Development Llc Peak-performance-aware billing for cloud computing environment
US9251115B2 (en) * 2013-03-07 2016-02-02 Citrix Systems, Inc. Dynamic configuration in cloud computing environments
CN112583609A (en) * 2019-09-27 2021-03-30 中兴通讯股份有限公司 Cloud charging method and device, 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
WO2023142920A1 (en) 2023-08-03

Similar Documents

Publication Publication Date Title
US11204793B2 (en) Determining an optimal computing environment for running an image
US10972542B2 (en) Data storage method and apparatus
US8713147B2 (en) Matching a usage history to a new cloud
US11656895B1 (en) Computing resource provisioning
US9635103B2 (en) Dynamic virtual resource request rate control for utilizing physical resources
US9491313B2 (en) Optimizing storage between mobile devices and cloud storage providers
US9842004B2 (en) Adjusting resource usage for cloud-based networks
US8914511B1 (en) Managing resources in virtualization systems
US11502972B2 (en) Capacity optimization in an automated resource-exchange system
US20220283871A1 (en) Multi-Account Cloud Service Usage Package Sharing Method and Apparatus, and Related Device
US9699114B1 (en) Providing use of local or private cloud infrastructure resources to public cloud providers
CN113516507A (en) Resource charging method and device for multi-cloud management platform
Ellman et al. Cloud computing deployment: a cost-modelling case-study
WO2022100534A1 (en) Virtual instance setting method and apparatus
Vuyyuru et al. An overview of cloud computing technology
US10686677B1 (en) Flexible capacity reservations for network-accessible resources
JP2023543744A (en) Resource scheduling method, system, electronic device and computer readable storage medium
García et al. An efficient cloud scheduler design supporting preemptible instances
CN116566756A (en) Cloud service charging method and device
WO2017133421A1 (en) Method and device for sharing resources among multiple tenants
JP2006523875A (en) Apparatus, method and program for providing computer resource measurement capacity
CN111143055A (en) Virtual cloud host pre-allocation method and device, readable storage medium and electronic equipment
CN110955644A (en) IO control method, device, equipment and storage medium of storage system
CN110570225A (en) Virtual cloud desktop use charging method, system, medium and electronic equipment
CN116996385A (en) Resource sharing method and related device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication