A cloud resource billing method, device, electronic device and storage medium
By configuring personalized service catalogs and billing related information in real time in the cloud resource management platform, the problem of a single billing method for existing cloud resources is solved, flexible and diverse billing processing is realized, and the diversity and flexibility of billing are improved. It meets the needs of customization and protects the privacy and security of resource application objects.
Patent Information
- Application Number
- CN202310626656.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-30
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2043-05-30
AI Technical Summary
The existing cloud resource billing method is single and the billing service data is fixed. It ignores that the service catalog and price may need to be dynamically adjusted according to different situations, which reduces the flexibility of billing.
By configuring personalized service catalogs and billing related information in real time in the cloud resource management platform, billing methods and prices can be dynamically adjusted according to user needs to achieve flexible and diverse billing processing.
It improves the diversity and flexibility of cloud resource billing, meets customization needs, improves interactivity and management capabilities, and protects the privacy and security of resource application objects.
Smart Images

Figure CN116723061B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the technical field of cloud computing services, and in particular to a cloud resource billing method, device, electronic device, and storage medium. Background Art
[0002] In recent years, cloud computing technology has developed by leaps and bounds and has gradually been applied to various industries. Cloud computing technology can process tens of thousands of data in a very short time, thereby achieving powerful network services.
[0003] The gradual popularization of cloud computing services has not only unlocked the bottleneck of enterprises' use of information resources, but also introduced new business opportunities, namely cloud resource billing. There are various methods for cloud resource billing. The existing technology usually pre-sets a set of general service price templates based on the user's cloud resource usage, sets billing options and billing methods in the template, and initializes the billing resource list through database scripts to calculate the fees according to the amount of cloud resources requested by the user.
[0004] In the process of implementing the present invention, the inventors found that the prior art has the following defects: the existing cloud resource billing method is to formulate a set of general templates based on the user's usage habits. This billing method is single, and the billing service data is relatively fixed. It ignores the possibility that information such as the service catalog and service price may need to be dynamically adjusted according to different situations, thereby reducing the flexibility of cloud resource billing. Summary of the invention
[0005] The embodiments of the present invention provide a cloud resource billing method, device, electronic device and storage medium, which can improve the diversity and flexibility of cloud resource billing.
[0006] In a first aspect, an embodiment of the present invention provides a cloud resource billing method, including:
[0007] Configure the current service catalog in real time based on the basic service items included in the service catalog pool of the cloud resource management platform;
[0008] Configuring personalized service billing association information for current service items included in the current service catalog;
[0009] In response to a cloud resource application request submitted by a user to the current service catalog, billing processing is performed on the cloud resources applied for by the user according to the personalized service billing association information.
[0010] The embodiment of the present invention configures the current service catalog in real time according to the basic service items included in the service catalog pool of the cloud resource management platform, and further configures personalized service billing association information for the current service items included in the current service catalog. The cloud resource management platform responds to the cloud resource application request submitted by the user to the current service catalog, and then performs billing processing on the cloud resources applied by the user according to the personalized service billing association information, thereby solving the problems of the single billing method and relatively fixed billing service data of existing cloud resources, and can improve the diversity and flexibility of cloud resource billing.
[0011] Optionally, before configuring the current service catalog in real time according to the basic service items included in the service catalog pool of the cloud resource management platform, the method further includes:
[0012] Creating the service catalog pool in the cloud resource management platform;
[0013] Configuring the basic service item for the service catalog pool;
[0014] The service type of the basic service item includes at least one of computing service, storage service, network service, security service and computer room service.
[0015] The above technical solution improves the maintainability and readability of the cloud resource management platform by configuring basic service items for the service catalog pool service created in the cloud resource management platform.
[0016] Optionally, configuring the current service catalog in real time according to the basic service items included in the service catalog pool of the cloud resource management platform includes:
[0017] Determine resource application objects that match the current service catalog;
[0018] Obtain cloud service demand data of the resource application object;
[0019] Determine a target basic service item from the basic service items included in the service catalog pool according to the cloud service demand data of the resource application object;
[0020] The current service catalog is configured in real time according to the target basic service item.
[0021] The above technical solution can meet the customization needs of cloud services and improve the interactivity and work efficiency of the cloud resource management platform by setting up a service catalog that matches user needs in advance according to user needs.
[0022] Optionally, configuring the current service catalog in real time according to the basic service items included in the service catalog pool of the cloud resource management platform includes:
[0023] Determine a version service catalog associated with the current service catalog;
[0024] The version information of the current service directory is determined according to the directory version information of the associated version service directory.
[0025] The above technical solution, by introducing the associated version service catalog, can partially adjust the service catalog of the next version according to the configuration information of the previous version, thereby improving the management capability of the cloud resource management platform and the user experience.
[0026] Optionally, the performing billing processing on the cloud resources applied for by the user according to the personalized service billing association information includes:
[0027] Determine the benchmark billing reference information of the current service item according to the personalized service billing association information; wherein the benchmark billing reference information includes a billing method, a billing unit price, and an effective time of the billing unit price matching;
[0028] Billing is performed on the cloud resources requested by the user according to the configuration content of the benchmark billing reference information.
[0029] Optionally, the performing billing processing on the cloud resources applied for by the user according to the configuration content of the benchmark billing reference information includes:
[0030] In the case where it is determined that there are multiple billing unit prices for the current service item, dynamically determining a target billing unit price for the current service item according to an effective time matched by each billing unit price and a current system time;
[0031] When it is determined that the billing method of the current service item is the segmented billing method, counting the resource usage of the cloud resources requested by the user, and determining the target billing unit price of the current service item according to the resource usage of the cloud resources requested by the user;
[0032] The cloud resources requested by the user are billed according to the target billing unit price of the current service item.
[0033] The above technical solution improves the flexibility and diversity of cloud resource billing methods by applying flexible and diverse billing methods to bill the cloud resources applied for by resource application objects.
[0034] Optionally, after configuring personalized service billing association information for the current service item included in the current service catalog, the method further includes:
[0035] Determine resource application objects that match the current service catalog;
[0036] A binding relationship between the current service directory and the resource application object is established.
[0037] The above technical solution can realize personalized service catalog customization of resource application objects by establishing a binding relationship between the current service catalog and the resource application object, and can realize the isolation of cloud resource application information between different resource application objects, thereby protecting the privacy and security of the resource application objects.
[0038] In a second aspect, an embodiment of the present invention further provides a cloud resource billing device, including:
[0039] The current service catalog configuration module is used to configure the current service catalog according to the basic service items included in the service catalog pool of the cloud resource management platform;
[0040] A service billing association information configuration module, used to configure personalized service billing association information for the current service item included in the current service catalog;
[0041] The cloud resource billing module is used to respond to the cloud resource application request submitted by the user to the current service catalog and perform billing processing on the cloud resources applied by the user according to the personalized service billing association information.
[0042] In a third aspect, an embodiment of the present invention further provides an electronic device, the electronic device comprising:
[0043] at least one processor; and
[0044] a memory communicatively connected to the at least one processor; wherein,
[0045] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the cloud resource billing method described in any embodiment of the present invention.
[0046] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the cloud resource billing method described in any embodiment of the present invention when executed.
[0047] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0049] Figure 1 It is a flow chart of a cloud resource billing method provided by an embodiment of the present invention;
[0050] Figure 2 It is a flow chart of a cloud resource billing method provided by an embodiment of the present invention;
[0051] Figure 3 It is a flowchart of a cloud resource billing method provided by an embodiment of the present invention;
[0052] Figure 4 It is a structural diagram of a cloud resource billing device provided by an embodiment of the present invention;
[0053] Figure 5 It is a structural schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0054] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0055] It should be noted that the terms "including" and "having" and any variations thereof in the specification and claims of the present invention and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or apparatus.
[0056] Figure 1It is a flow chart of a cloud resource billing method provided in an embodiment of the present invention. This embodiment is applicable to situations where cloud resource billing is performed according to different user needs. The method can be executed by a cloud resource billing device. The cloud resource billing device can be implemented in the form of software and / or hardware and can generally be integrated in an electronic device. The electronic device can be a terminal device with a cloud resource billing function or a server device. The embodiment of the present invention does not limit the specific device type of the electronic device.
[0057] Correspondingly, such as Figure 1 As shown, the method includes:
[0058] S110. Configure the current service catalog in real time according to the basic service items included in the service catalog pool of the cloud resource management platform.
[0059] Among them, the cloud resource management platform can be understood as a platform for integrated management of the cloud platform. The service catalog pool can be used to store all service types and basic service items that the cloud platform can provide. For example, the service types can include but are not limited to computing services, storage services, network services, security services, and computer room services. Basic service items can be understood as basic cloud resource service items that the cloud resource management platform can provide, such as but not limited to cloud hosts, cloud disks, and VPC (Virtual Private Cloud). The current service catalog can be a service catalog that is personalized for users based on the cloud resource management platform according to the user's current usage needs.
[0060] Accordingly, the administrator of the cloud resource management platform (hereinafter referred to as the platform administrator) can select the service type and matching basic service items required by the user based on the service catalog pool of the cloud resource management platform according to the user's current usage needs, so as to configure the current service catalog in real time and in a personalized manner.
[0061] Optionally, service types can be divided into two levels: parent class and subclass. If the service type parent class contains subclasses, the corresponding basic service items are configured for the subclasses. If the service type parent class does not contain subclasses, that is, there is only one level of service type, the corresponding basic service items can be directly configured for the parent class.
[0062] S120: Configure personalized service billing association information for the current service item included in the current service catalog.
[0063] Among them, the current service item can be understood as the basic service item that the platform manager has screened and included in the current service catalog. It is understandable that the number of current service items can be 1 or more. Personalized service billing association information can be used to determine billing-related information for the current service item, for example, it may include but is not limited to billing method, measurement unit, time unit, service number, unit price and effective time and other related information. Optionally, the billing method can be divided into segmented billing method and non-segmented billing method, etc. The segmented billing method can be to determine the matching billing unit price according to the statistical usage or usage status of cloud resources, and the non-segmented billing method can be that the billing unit price does not change dynamically with time or user usage status.
[0064] Accordingly, the platform administrator can configure personalized service billing association information matching each basic service item based on all basic service items in the service catalog determined by the user on the cloud resource management platform, thereby realizing flexible configuration of service item billing information.
[0065] For example, the basic service items in the service catalog pool can be referenced by multiple service catalogs, and the cloud resource management platform can customize the billing unit prices of the basic service items of different service catalogs to achieve price differentiation for the same basic service items. For example, the basic service items available in service catalog A are cloud hosts and cloud disks, and the basic service items available in service catalog B are cloud hosts and VPCs, but different billing unit prices can be set for the same basic service item, cloud hosts, in service catalogs A and B.
[0066] S130: In response to the cloud resource application request submitted by the user to the current service catalog, billing is performed on the cloud resources applied for by the user according to the personalized service billing association information.
[0067] The cloud resource application request may be a request from a user to use cloud resources. For example, cloud resources may include but are not limited to processor resources, storage resources, network resources, and security service resources.
[0068] Specifically, when the platform manager completes the configuration of the current service catalog on the cloud resource management platform, the relevant authorized users can submit cloud resource application requests for the current service catalog to the cloud resource management platform. The cloud resource management platform responds to the cloud resource application requests submitted by the users for the current service catalog, allocates matching cloud resources according to the current service catalog, and performs corresponding billing processing for each cloud resource applied by the user according to the personalized service billing association information.
[0069] It is understandable that the cloud resource application request submitted by the user to the current service catalog may be an application request for all cloud resources in the current service catalog or an application request for part of the cloud resources in the current service catalog, and can be dynamically adjusted according to the user's current usage needs.
[0070] The embodiment of the present invention configures the current service catalog in real time according to the basic service items included in the service catalog pool of the cloud resource management platform, and further configures personalized service billing association information for the current service items included in the current service catalog. The cloud resource management platform responds to the cloud resource application request submitted by the user to the current service catalog, and then performs billing processing on the cloud resources applied by the user according to the personalized service billing association information, thereby solving the problems of the single billing method and relatively fixed billing service data of existing cloud resources, and can improve the diversity and flexibility of cloud resource billing.
[0071] Figure 2 This is a flow chart of a cloud resource billing method provided by an embodiment of the present invention. This embodiment is further optimized and expanded based on the above embodiment, and provides multiple specific optional implementation methods for cloud resource billing based on service catalogs configured by different users. Figure 2 As shown, the method includes:
[0072] S210. Create a service catalog pool in the cloud resource management platform.
[0073] Before providing cloud services to the outside world, platform administrators can create an empty service catalog pool in the cloud resource management platform.
[0074] S220. Configure basic service items for the service catalog pool; wherein the service type of the basic service item may include at least one of computing service, storage service, network service, security service and computer room service.
[0075] Accordingly, the platform administrator can define the service type of at least one basic service item among the service types such as computing service, storage service, network service, security service and computer room service in the service catalog pool through the cloud resource management platform, and thus configure the corresponding basic service item according to the service type.
[0076] It can be understood that computing services can be understood as a type of service that provides users with powerful computing capabilities based on high-performance virtual processor resources. Storage services can be understood as a type of service that provides users with strong data storage capabilities based on large-capacity, high-reliability storage resources. Network services can be understood as a type of service that provides users with virtual network resources, network traffic information transmission and reception, and analysis and processing capabilities based on gateway and network server resources. Security services can be understood as a type of service that provides users with information and data security based on software / hardware firewall resources. Computer room services can be understood as a type of service that provides users with computer room service capabilities based on complete computer room resources. Furthermore, complete computer room resources can include servers, routers, switches, gateways, firewalls and other related resources.
[0077] Optionally, service types can be divided into parent and child levels.
[0078] Exemplarily, the platform manager defines the service types of basic service items in the service catalog pool through the cloud resource management platform, including computing services, storage services, network services, security services, and computer room services, among which the subclasses of computing services may include elastic cloud servers, bare metal, image services, cloud container instances, container cloud engines, and container image services; the subclasses of storage services may include cloud hard disks, cloud hard disk snapshots, cloud hard disk backups, object storage, file storage, and cloud backups; the subclasses of network services may include virtual private clouds, cloud firewalls, load balancing, and peer-to-peer connections; the subclasses of security services may include host security, vulnerability scanning, cloud bastion hosts, log auditing, database auditing, and network application firewalls. In this case, the platform manager needs to configure the corresponding basic service items for each subclass of computing services, storage services, network services, and security services and the parent class of computer room services in the cloud resource management platform.
[0079] The above technical solution improves the maintainability and readability of the cloud resource management platform by configuring basic service items for the service catalog pool service created in the cloud resource management platform.
[0080] S230. Configure the current service catalog in real time according to the basic service items included in the service catalog pool of the cloud resource management platform.
[0081] Optionally, configuring the current service catalog in real time according to the basic service items included in the service catalog pool of the cloud resource management platform may include: determining the resource application object that matches the current service catalog; obtaining cloud service demand data for the resource application object; determining the target basic service item from the basic service items included in the service catalog pool according to the cloud service demand data of the resource application object; and configuring the current service catalog in real time according to the target basic service item.
[0082] The resource application object may be a user or organization that applies for cloud resources. Cloud service demand data may be understood as data on the demand for various types of basic service items in cloud services. The target basic service item may be understood as the basic service item applied for by the current resource application object.
[0083] Before creating a service catalog, the platform administrator can first determine the resource application objects that match the current service catalog, and obtain cloud service demand data that matches the resource application objects based on the requirements of different resource application objects for various types of basic service items in the cloud service. Then, based on the cloud service demand data, matching basic service items are selected from the basic service items included in the service catalog pool as target basic service items, and then the current service catalog is configured in real time based on the target basic service items.
[0084] Exemplarily, the platform manager obtains that the resource application objects that match the current service catalog are AA organization and BB department. Among them, AA organization has higher requirements for computing services and storage services capabilities, and BB department has higher requirements for storage services and security services capabilities. Then, service catalog A can be configured for AA organization, and the basic service items available in service catalog A include computing services and storage services. Service catalog B can be configured for BB department, and the basic service items available in service catalog B include storage services and security services.
[0085] The above technical solution can meet the customization needs of cloud services and improve the interactivity and work efficiency of the cloud resource management platform by setting up a service catalog that matches user needs according to user needs.
[0086] Optionally, configuring the current service catalog in real time according to the basic service items included in the service catalog pool of the cloud resource management platform may include: determining an associated version service catalog of the current service catalog; and determining version information of the current service catalog according to catalog version information of the associated version service catalog.
[0087] The associated version service catalog can be understood as a previous version service catalog with the same service type and basic service items as the current service catalog. The catalog version information can be used to describe the information of the service catalog version number, for example, the catalog version information can be defined according to the year.
[0088] Specifically, the cloud resource management platform can manage multiple versions of service catalogs. The platform manager can search for associated versions of service catalogs that match the current service catalog based on the service type and basic service items, and then determine whether the current service catalog is exactly the same as the existing version of the service catalog based on the catalog version information of the associated version of the service catalog. If the current service catalog is exactly the same as the existing version of the service catalog, the version information of the existing version of the service catalog can be directly called as the version information of the current service catalog; if the current service catalog is not exactly the same as the existing version of the service catalog, new catalog version information can be defined for the current service catalog.
[0089] Exemplarily, if the current service catalog determined by the user includes computing services and storage services, the existing service catalogs in the cloud resource management platform that are the same as the computing services and storage services included in the current service catalog are: "Basic Service Catalog-2020 Edition", "Basic Service Catalog-2021 Edition" and "Basic Service Catalog-2022 Edition", and the billing price and description information of the basic service items in the current service catalog are exactly the same as those in the "Basic Service Catalog-2022 Edition", then the "Basic Service Catalog-2022 Edition" service catalog can be directly called as the current service catalog; if the price and description information of the basic service items in the current service catalog are not exactly the same as the billing price and description information of the basic service items in the "Basic Service Catalog-2020 Edition", "Basic Service Catalog-2021 Edition" and "Basic Service Catalog-2022 Edition" service catalogs, then a new version number can be defined for the current service catalog, such as "Basic Service Catalog-2023 Edition", and the billing price and / or description information of the basic service items that match the current service catalog can be added to the catalog version information of the "Basic Service Catalog-2023 Edition".
[0090] The above technical solution, by introducing the associated version service catalog, can partially adjust the service catalog of the next version according to the configuration information of the previous version, thereby improving the management capability of the cloud resource management platform and the user experience.
[0091] S240: Configure personalized service billing association information for the current service item included in the current service catalog.
[0092] Optionally, after configuring personalized service billing association information for the current service item included in the current service catalog, the following may also be included: determining a resource application object that matches the current service catalog; and establishing a binding relationship between the current service catalog and the resource application object.
[0093] The binding relationship can be understood as the corresponding relationship between the resource application object and the current service directory.
[0094] Accordingly, the platform manager can determine the resource application object that matches the current service catalog, thereby establishing a binding relationship between the current service catalog and the resource application object. The resource application object is also the organization or user that applies to use cloud resources.
[0095] For example, after the platform manager completes the creation of the service catalog based on the cloud service demand data, a binding relationship between the service catalog and the resource application object can be established in the cloud resource management platform. When the resource application object submits a cloud resource application request, it can only select basic service items in the service catalog to which the resource application object has been bound, and cannot see basic service items in other service catalog pools that are not bound to the organization.
[0096] The above technical solution can realize personalized service catalog customization of resource application objects by establishing a binding relationship between the current service catalog and the resource application object, and can realize the isolation of cloud resource application information between different resource application objects, thereby protecting the privacy and security of the resource application objects.
[0097] S250. In response to a cloud resource application request submitted by a user to the current service catalog, determine the benchmark billing reference information of the current service item according to the personalized service billing association information; wherein the benchmark billing reference information may include a billing method, a billing unit price, and an effective time for a billing unit price match, etc.
[0098] S260: Perform billing processing on the cloud resources requested by the user according to the configuration content of the benchmark billing reference information.
[0099] The billing method can be understood as the method of calculating the cost of cloud resource usage. The billing unit price can be understood as the unit price of cloud resource usage within any time range.
[0100] Correspondingly, the cloud resource management platform responds to the cloud resource application request submitted by the resource application object to the current service catalog, generates benchmark billing reference information such as the billing method, billing unit price, and effective time of the billing unit price matching that matches the current service item based on the personalized service billing association information, and performs billing processing on the cloud resources applied for by the resource application object based on the configuration content of the benchmark billing reference information.
[0101] Optionally, the benchmark billing reference information can set different service billing discount levels according to the current service catalog bound to different resource application objects. For example, the service billing discount level for old users can be set to 95% discount level, and no service billing discount level is set for new users.
[0102] Optionally, billing processing is performed on the cloud resources requested by the user according to the configuration content of the benchmark billing reference information, which may include: when it is determined that there are multiple billing unit prices for the current service item, dynamically determining the target billing unit price of the current service item according to the effective time of each billing unit price match and the current system time; when it is determined that the billing method of the current service item is a segmented billing method, counting the resource usage of the cloud resources requested by the user, and determining the target billing unit price of the current service item according to the resource usage of the cloud resources requested by the user; and billing processing is performed on the cloud resources requested by the user according to the target billing unit price of the current service item.
[0103] The target billing unit price can be understood as the unit price of cloud resource usage within any time range that dynamically matches the current system time. Resource usage can be understood as the amount of cloud resource usage.
[0104] Specifically, if the cloud resource management platform determines that there are multiple billing unit prices for the current service item, the target billing unit price of the current service item can be dynamically determined based on the effective time of each billing unit price match and the current system time, so as to bill the cloud resources within the effective time range using the target billing unit price. If the cloud resource management platform determines that the billing method of the current service item is a segmented billing method, resource volume thresholds of different levels can be set, and the target billing unit price of the current level service item can be determined based on the resource usage of the cloud resources requested by the user, and then the cloud resources requested by the user can be billed based on the target billing unit price of the current service item. If the cloud resource management platform determines that the billing method of the current service item is a non-segmented billing method, the resource usage billing unit price of the cloud resources can be set not to change with time or user usage status.
[0105] Exemplarily, it is assumed that the number of billing unit prices for the current service item is determined to be 2, among which the effective time of unit price A is 00:00-12:00, and the effective time of unit price B is 12:01-23:59. Assuming that the current system time is 9:00, the target billing unit price of the current service item can be dynamically determined as unit price A. If the billing method of the current service item is set to a segmented billing method, the target billing unit price of the current service item can be determined based on the usage status of the applied cloud resources by the resource application object. For example, billing is performed when the resource application object uses cloud resources, and no billing is performed when the resource application object does not use cloud resources; or, billing can also be performed based on resource usage. For example, when resource usage exceeds a certain gradient, a target billing unit price is set, and when resource usage does not exceed a certain gradient, another target billing unit price is set.
[0106] It should be noted that the embodiment of the present invention does not limit the specific charging method of segmented charging.
[0107] The above technical solution improves the flexibility and diversity of cloud resource billing methods by applying flexible and diverse billing methods to bill the cloud resources applied for by resource application objects.
[0108] The technical solution of the embodiment of the present invention provides a variety of optional cloud resource billing methods by configuring the service catalog according to different users, thereby improving the diversity of cloud resource billing, achieving price differentiation for the same basic service items, and improving the flexibility of cloud resource billing.
[0109] Figure 3 This is a flow chart of a cloud resource billing method provided by an embodiment of the present invention. In order to more clearly describe the technical solution provided by an embodiment of the present invention, in a specific example, the billing of government cloud resources is taken as an example for specific description. Figure 3As shown, the cloud resource billing method of the government cloud can be divided into six steps: define the service catalog pool, define service types and service items, define the service catalog, authorize and enable available service items, define service item prices on demand, and bind the service catalog to the organization.
[0110] Step 1: The administrator first defines a service catalog pool, and based on the cloud service types that the cloud resource management platform can provide, customizes common service types in the service catalog pool, such as computing services, storage services, network services, security services, and computer room services, and stores the service type data in the database. Service types can be divided into two levels at most: parent and child.
[0111] Step 2: The administrator defines the service type and service items. The administrator adds basic service items (such as cloud hosts, cloud disks, and VPCs) to the service catalog pool and enters the basic service item name, basic service item type, measurement standard, service description, and notes, etc. in the new pop-up box (configuration interface of basic service items) that pops up for each basic service item. After the configuration is completed, you can click Confirm to add the pop-up box. The cloud resource management platform can store the configured basic service item data in the database table.
[0112] Step 3. The administrator customizes the service catalog for the resource application object based on the basic service items in the service catalog pool and the needs of the resource application object. First, trigger the service catalog configuration interface, and enter the service catalog name and remarks in the new pop-up box (configuration interface of the service catalog) to create a new service catalog and save it in the database. Furthermore, the administrator can select the created service catalog and configure the available basic service items for it. Specifically, the administrator can select the newly created service catalog and click the "Configure" button to enter the configuration interface of the service catalog, and select the required service type and basic service items in the configuration interface of the service catalog. For example, the basic service items available in service catalog A are cloud hosts and cloud disks, and the basic service items available in service catalog B are cloud hosts and VPCs. Personalized service catalogs can be defined according to the service needs of different users.
[0113] Step 4: Authorize and enable available services. The cloud resource management platform can maintain multiple different versions of the service catalog for each resource application object. For example, the service catalog version can be defined according to the year, such as "Basic Service Catalog-2020 Edition", "Basic Service Catalog-2021 Edition" and "Basic Service Catalog-2022 Edition", etc. The service type and basic service items of each version can be the same, but each version of the service catalog can be modified and adjusted according to the price change or the description of the service item and other configuration information.
[0114] Step 5. Administrators can define service item prices as needed. When authorizing service items for a new service catalog, they need to set the prices applicable to the current service catalog in advance. Select the specified basic service item in the configuration interface of the basic service item and click the "Configure Price" button. When the price configuration interface pops up, the administrator can select the billing method (such as segmented billing or non-segmented billing, etc.), measurement unit, time unit, service number, unit price and effective time for the current service item in the new price interface. Check the required options and click OK to store the service item price data in the database and associate the service item data. Optionally, multiple prices can be set for each service item, and the system will automatically identify the actual price of the current service item according to the effective time of the price. It should be noted that when the service item price selects the segmented billing method, it is necessary to set the start and end time of the segmented time period and set the corresponding billing unit price for each time period.
[0115] Step 6: Bind the service catalog to the organization. Once the service catalog is created successfully, it can be bound to a designated organization (i.e., the resource application object). When users under the organization apply for services, they can only select service items in the service catalog that the organization has bound to, and cannot see service items in other service catalogs, thereby achieving isolation of the service catalog.
[0116] The above technical solution can customize service types and basic service items by providing a service catalog pool, and realize flexible addition of service resources. By providing a service catalog definition function, the basic service items in the service catalog pool can be referenced by multiple service catalogs, which improves the diversity of cloud resource billing.
[0117] It should be noted that any arrangement and combination of the technical features in the above embodiments also falls within the protection scope of the present invention.
[0118] Figure 4 Schematic diagram of a cloud resource billing device provided by an embodiment of the present invention. This embodiment can be applied to scenarios where cloud resource billing is performed according to different user requirements, and this embodiment does not specifically limit this. Figure 4 As shown, the cloud resource billing device includes: a current service catalog configuration module 310, a service billing associated information configuration module 320 and a cloud resource billing module 330.
[0119] Among them, the current service catalog configuration module 310 is used to configure the current service catalog according to the basic service items included in the service catalog pool of the cloud resource management platform; the service billing association information configuration module 320 is used to configure personalized service billing association information for the current service items included in the current service catalog; the cloud resource billing module 330 is used to respond to the cloud resource application request submitted by the user to the current service catalog, and perform billing processing on the cloud resources applied by the user according to the personalized service billing association information.
[0120] The embodiment of the present invention configures the current service catalog in real time according to the basic service items included in the service catalog pool of the cloud resource management platform, and further configures personalized service billing association information for the current service items included in the current service catalog. The cloud resource management platform responds to the cloud resource application request submitted by the user to the current service catalog, and then performs billing processing on the cloud resources applied by the user according to the personalized service billing association information, thereby solving the problems of the single billing method and relatively fixed billing service data of existing cloud resources, and can improve the diversity and flexibility of cloud resource billing.
[0121] Optionally, the billing device for cloud resources also includes: a service catalog pool creation module, used to create a service catalog pool in the cloud resource management platform; a basic service item configuration module, used to configure basic service items for the service catalog pool; wherein the service types of the basic service items include at least one of computing services, storage services, network services, security services and computer room services.
[0122] Optionally, the current service catalog configuration module 310 is specifically used to: determine the resource application object that matches the current service catalog; obtain the cloud service demand data of the resource application object; determine the target basic service item from the basic service items included in the service catalog pool based on the cloud service demand data of the resource application object; and configure the current service catalog in real time based on the target basic service item.
[0123] Optionally, the current service directory configuration module 310 is specifically used to: determine the associated version service directory of the current service directory; and determine the version information of the current service directory according to the directory version information of the associated version service directory.
[0124] Optionally, the cloud resource billing module 330 specifically includes: a benchmark billing reference information determination unit, used to determine the benchmark billing reference information of the current service item based on the personalized service billing association information; wherein the benchmark billing reference information includes the billing method, the billing unit price and the effective time of the billing unit price matching; a benchmark billing unit, used to perform billing processing on the cloud resources requested by the user according to the configuration content of the benchmark billing reference information.
[0125] Optionally, the benchmark billing unit is specifically used to: when it is determined that there are multiple billing unit prices for the current service item, dynamically determine the target billing unit price of the current service item according to the effective time of each billing unit price match and the current system time; when it is determined that the billing method of the current service item is a segmented billing method, count the resource usage of the cloud resources requested by the user, and determine the target billing unit price of the current service item according to the resource usage of the cloud resources requested by the user; and perform billing processing on the cloud resources requested by the user according to the target billing unit price of the current service item.
[0126] Optionally, the cloud resource billing device also includes: a resource application object determination module, used to determine the resource application object matching the current service directory; and a binding relationship establishment module, used to establish a binding relationship between the current service directory and the resource application object.
[0127] The cloud resource billing device provided in the embodiment of the present invention can execute the cloud resource billing method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0128] Figure 5 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0129] like Figure 5 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0130] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0131] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the billing method for cloud resources described in various embodiments of the present invention.
[0132] That is, the current service catalog is configured in real time according to the basic service items included in the service catalog pool of the cloud resource management platform; personalized service billing association information is configured for the current service items included in the current service catalog; in response to the cloud resource application request submitted by the user to the current service catalog, the cloud resources applied by the user are billed according to the personalized service billing association information.
[0133] In some embodiments, the billing method for cloud resources may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the billing method for cloud resources described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the billing method for cloud resources as described in the embodiments of the present invention in any other appropriate manner (e.g., by means of firmware).
[0134] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0135] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0136] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0137] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0138] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0139] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0140] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0141] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A cloud resource billing method, characterized in that: include: Configure the current service catalog in real time based on the basic service items included in the service catalog pool of the cloud resource management platform; Configuring personalized service billing association information for current service items included in the current service catalog; In response to a cloud resource application request submitted by a user to the current service catalog, billing the cloud resources applied for by the user according to the personalized service billing association information; The charging process for the cloud resources applied for by the user according to the personalized service charging association information includes: Determine the benchmark billing reference information of the current service item according to the personalized service billing association information; wherein the benchmark billing reference information includes a billing method, a billing unit price and an effective time of matching the billing unit price; In the case where it is determined that there are multiple billing unit prices for the current service item, dynamically determining a target billing unit price for the current service item according to an effective time matched by each billing unit price and a current system time; The target billing unit price is the usage unit price of cloud resources within any time range that dynamically matches the current system time; When it is determined that the billing method of the current service item is the segmented billing method, counting the resource usage of the cloud resources requested by the user, and determining the target billing unit price of the current service item according to the resource usage of the cloud resources requested by the user; The resource usage is the amount of cloud resources used. The cloud resources requested by the user are billed according to the target billing unit price of the current service item.
2. The method according to claim 1, characterized in that Before configuring the current service catalog in real time according to the basic service items included in the service catalog pool of the cloud resource management platform, the method further includes: Creating the service catalog pool in the cloud resource management platform; Configuring the basic service item for the service catalog pool; The service type of the basic service item includes at least one of computing service, storage service, network service, security service and computer room service.
3. The method according to claim 1, characterized in that The real-time configuration of the current service catalog based on the basic service items included in the service catalog pool of the cloud resource management platform includes: Determine resource application objects that match the current service catalog; Obtain cloud service demand data of the resource application object; Determine a target basic service item from the basic service items included in the service catalog pool according to the cloud service demand data of the resource application object; The current service catalog is configured in real time according to the target basic service item.
4. The method according to claim 1, characterized in that: The real-time configuration of the current service catalog based on the basic service items included in the service catalog pool of the cloud resource management platform includes: Determine a version service catalog associated with the current service catalog; The version information of the current service directory is determined according to the directory version information of the associated version service directory.
5. The method according to claim 1, characterized in that After configuring the personalized service charging association information for the current service item included in the current service catalog, the method further includes: Determine resource application objects that match the current service catalog; A binding relationship between the current service directory and the resource application object is established.
6. A cloud resource billing device, characterized in that: include: The current service catalog configuration module is used to configure the current service catalog according to the basic service items included in the service catalog pool of the cloud resource management platform; A service billing association information configuration module, used to configure personalized service billing association information for the current service item included in the current service catalog; A cloud resource billing module, configured to respond to a cloud resource application request submitted by a user to the current service catalog and perform billing processing on the cloud resources applied for by the user according to the personalized service billing association information; The cloud resource billing module includes: A benchmark billing reference information determination unit, configured to determine the benchmark billing reference information of the current service item according to the personalized service billing association information; wherein the benchmark billing reference information includes a billing method, a billing unit price, and an effective time of matching of the billing unit price; A benchmark billing unit is used to dynamically determine a target billing price for the current service item according to the effective time of each billing price match and the current system time when it is determined that there are multiple billing prices for the current service item; wherein the target billing price is the price for using cloud resources within any time range that dynamically matches the current system time; when it is determined that the billing method for the current service item is a segmented billing method, count the resource usage of the cloud resources requested by the user, and determine the target billing price for the current service item according to the resource usage of the cloud resources requested by the user; wherein the resource usage is the amount of cloud resources used; and bill the cloud resources requested by the user according to the target billing price of the current service item.
7. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the cloud resource billing method described in any one of claims 1-5.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the cloud resource billing method described in any one of claims 1-5 when executed.
Citation Information
Patent Citations
Cloud product service management method and device and equipment for cloud management and control platform and storage medium
CN109670713A
Multi-cloud management platform resource charging method and device
CN113516507A
