A resource management method, device, apparatus and storage medium

By receiving order request messages and generating billing information, the problem of high billing costs and complex processes for tenants in SaaS service platforms is solved, achieving efficient resource management and billing.

CN114493756BActive Publication Date: 2025-12-23CHINA UNICOM SMART CONNECTION TECH LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111632098.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-29
Publication Date
2025-12-23
Estimated Expiration
2041-12-29

AI Technical Summary

Technical Problem

Existing SaaS service platforms require the participation of big data computing platforms when billing tenants, resulting in high costs and complex implementation processes.

Method used

By receiving user order request messages, obtaining available resource information, determining resource configuration information, recording and updating resource usage tables in resource service equipment, and generating billing information according to preset billing time periods, resource management and billing can be achieved without a big data computing platform.

Benefits of technology

It simplified the billing process, improved work efficiency, and reduced costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114493756B_ABST
    Figure CN114493756B_ABST
Patent Text Reader

Abstract

The embodiment of the application provides a resource management method, device, equipment and storage medium, the method comprises the following steps: receiving the order request message sent by a user; acquiring available resource information, and determining the resource configuration information of the user according to the order request message and the available resource information; determining the resource usage table used for recording the usage information of the user's rented resource according to the resource configuration information of the user; acquiring the resource information used by the user in the resource service equipment, and updating the resource usage table according to the resource information used by the user; generating the billing information of the rented resource of the user according to the resource configuration information, the resource usage table and the preset billing time period, and sending the billing information to the user. In this way, the management of the resource rented by each user can be realized without using a big data computing platform, and the billing of the resource rented by the user can be completed, so that the billing process is greatly simplified, and the work efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of software technology, and more specifically to a resource management method, apparatus, device, and storage medium. Background Technology

[0002] In traditional software delivery models, tenants need to purchase software products, and the software vendor's technical staff must complete the installation and configuration of servers and clients, a highly complex process. With the continuous development of cloud computing and big data technologies, the SaaS (Software-as-a-Service) model has gradually emerged. SaaS is a service provided by cloud computing at the application layer. In the SaaS model, SaaS vendors deploy application software on a unified server. Tenants do not need to purchase complete software systems, nor do they need to equip themselves with corresponding hardware systems and maintenance personnel. They only need to rent application software on demand via the internet. This is highly attractive to SMEs with limited budgets and insufficient technical resources. Tenants rent SaaS software provided by SaaS service providers to meet their business needs. Each tenant can rent one or more SaaS software programs, and one SaaS software program can provide services to multiple tenants. Most current SaaS software is based on a multi-tenant model, where multiple tenants rent services through the SaaS service provider's unified SaaS service platform, sharing software and hardware resources. Multiple tenants sharing the same application code and application instances can reduce the SaaS service provider's operational costs for development, deployment, operation, maintenance, and updates. At the same time, multiple tenants share the related costs of the software service, reducing the service purchase costs for each tenant enterprise. SaaS service providers make a profit by providing SaaS software to tenants.

[0003] A SaaS service platform primarily comprises the SaaS platform business system and the SaaS service support system. The SaaS platform business system is the core business operation system for tenants, mainly including the application scenario layer, business capability layer, and basic capability layer. The application scenario layer can configure different services according to the needs of different tenants; the business capability layer includes various software business capabilities, such as payment and settlement capabilities, which can be shared by multiple tenants, and different tenants' businesses can be executed according to the configurations in the application scenario layer; the basic capability layer includes various hardware resources, such as databases and caches. The SaaS service support system is the support system that provides SaaS services to tenants through the SaaS service platform. It provides tenants with complete business capabilities such as order placement, configuration and activation, management and control, operation, and billing. Order information from different tenants is sent to the SaaS platform business system, which then configures the services for each tenant based on this information. However, in existing technologies, due to the large volume of rentable services and tenants on the SaaS service platform, and the fact that different tenants rent different services, the SaaS platform business system can only achieve isolation between different tenants and cannot provide unified management and billing for multiple tenants. Therefore, when the SaaS service support system needs to bill tenants, it needs to obtain the required tenant data from the SaaS platform's business system through a big data computing platform, such as the consumption of rented resources. Then, the big data computing platform sends the required tenant data to the SaaS service support system, which can then use this data to bill tenants. Because this process requires the participation of a big data computing platform, it is costly and highly complex. Summary of the Invention

[0004] In view of this, this application provides a resource management method, apparatus, device, and storage medium to solve the problem that the prior art requires the participation of a big data computing platform to obtain the required tenant-related data, resulting in high costs and complex implementation.

[0005] In a first aspect, embodiments of this application provide a resource management method, including:

[0006] Receive an order request message sent by a user; the order request message includes user identification information and information on the resources rented by the user;

[0007] Obtain available resource information, and determine the user's resource configuration information based on the order request message and the available resource information; the user's resource configuration information includes user identification information and information on resources rented by the user;

[0008] Based on the user's resource configuration information, a resource usage table is determined to record the user's usage information for rented resources; the resource usage table is used to record the user's used information and historical usage information for rented resources.

[0009] The resource service equipment acquires the resource information used by the user and updates the resource usage table based on the user's resource information; the user's resource information is used to indicate the relevant data information of the resources used by the user in the rented resources.

[0010] Based on the resource configuration information, the resource usage table, and the preset billing time period, the billing information for the user's rented resources is generated and sent to the user.

[0011] Preferably, the resource usage table includes a first sub-table and a second sub-table; wherein, the first sub-table is used to record the usage information of the resources rented by the user; and the second sub-table is used to record the user's historical usage information of the resources rented.

[0012] The step of updating the resource usage table based on the user's resource usage information includes:

[0013] Update the first sub-table and the second sub-table according to the resource information used by the user;

[0014] The step of generating the user's rental resource billing information based on the resource configuration information, the resource usage table, and the preset billing time period includes:

[0015] Based on the resource configuration information, the second sub-table, and the preset billing time period, the billing information for the user's rented resources is generated.

[0016] Preferably, before obtaining the resource information used by the user in the resource service device, the method further includes:

[0017] Receive a resource usage request message sent by a user; the resource usage request message carries the identification information of the target resource;

[0018] Based on the resource usage request message and the first sub-table, determine whether the user has permission to use the target resource;

[0019] When it is determined that the user has permission to use the target resource, a message authorizing the use of the target resource is sent to the resource service device; the message authorizing the use of the target resource carries the identification information of the target resource.

[0020] Preferably, generating the user's rental resource billing information based on the resource configuration information, the second sub-table, and the preset billing time period includes:

[0021] Based on the second sub-table and the billing time period, determine the data volume information of the rented resources used by the user within the billing time period;

[0022] Based on the resource configuration information and the data volume information of the rented resources used by the user within the billing period, the billing information of the user's rented resources is generated.

[0023] Preferably, the resource information rented by the user includes: the identification information of the resource rented by the user, the type of the resource rented by the user, the specifications of the resource, the rental period, and the rental price.

[0024] Preferably, the method further includes:

[0025] Based on the first sub-table, determine whether the amount of resources rented by the user has been used has reached a preset threshold;

[0026] If the preset threshold is reached, an alarm message will be sent to the user.

[0027] Preferably, the available resource information includes the unused quantity of available resources; determining the user's resource configuration information based on the order request message and the available resource information includes:

[0028] Based on the order request message, obtain the resources rented by the user and the required amount of rented resources;

[0029] Based on the information on the unused quantity of available resources, determine whether the target unused quantity meets the demand for rented resources; the target unused quantity refers to the unused quantity of resources rented by the user within the unused quantity of available resources.

[0030] If satisfied, the user's resource configuration information is determined based on the order request message and the available resource information.

[0031] Preferably, the method further includes:

[0032] Update the number of unused available resources in the available resources list based on the first sub-table.

[0033] Secondly, embodiments of this application provide a tenant resource management device, including:

[0034] A receiving unit is used to receive an order request message sent by a user; the order request message includes user identification information and resource information rented by the user.

[0035] The acquisition unit is used to acquire available resource information and determine the user's resource configuration information based on the order request message and the available resource information; the user's resource configuration information includes user identification information and information on resources rented by the user.

[0036] The processing unit is configured to determine a resource usage table for recording the usage information of the user's rented resources based on the user's resource configuration information; the resource usage table is used to record the usage information and historical usage information of the user's rented resources.

[0037] The resource service equipment acquires the resource information used by the user and updates the resource usage table based on the user's resource information; the user's resource information is used to indicate the relevant data information of the resources used by the user in the rented resources.

[0038] Based on the resource configuration information, the resource usage table, and the preset billing time period, the billing information for the user's rented resources is generated and sent to the user.

[0039] Preferably, the processing unit is specifically used to generate billing information for the user's rented resources based on the resource configuration information, the second sub-table, and the preset billing time period.

[0040] Preferably, the receiving unit is specifically used to receive a resource usage request message sent by a user; the resource usage request message carries the identification information of the target resource;

[0041] The processing unit is further configured to determine, based on the resource usage request message and the first sub-table, whether the user has permission to use the target resource;

[0042] When it is determined that the user has permission to use the target resource, a message authorizing the use of the target resource is sent to the resource service device; the message authorizing the use of the target resource carries the identification information of the target resource.

[0043] Preferably, the processing unit is further configured to determine, based on the second sub-table and the billing time period, the data volume information of the rented resources used by the user within the billing time period;

[0044] Based on the resource configuration information and the data volume information of the rented resources used by the user within the billing period, the billing information of the user's rented resources is generated.

[0045] Preferably, the processing unit is further configured to determine, based on the first sub-table, whether the amount of resources rented by the user has been used has reached a preset threshold.

[0046] If the preset threshold is reached, an alarm message will be sent to the user.

[0047] Preferably, the acquisition unit is specifically used to acquire the resources rented by the user and the required amount of rented resources based on the order request message;

[0048] Based on the information on the unused quantity of available resources, determine whether the target unused quantity meets the demand for rented resources; the target unused quantity refers to the unused quantity of resources rented by the user within the unused quantity of available resources.

[0049] If satisfied, the user's resource configuration information is determined based on the order request message and the available resource information.

[0050] Preferably, the processing unit is further configured to update the number of unused available resources in the available resources according to the first sub-table.

[0051] Thirdly, embodiments of this application provide an electronic device, including: a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed, the electronic device performs the method described in any of the first aspects above.

[0052] Fourthly, embodiments of this application provide a storage medium, the memory storing a computer program, wherein, when the program is executed, it controls the device where the storage medium is located to perform the method described in any of the first aspects above.

[0053] The method, employing the solution provided in this application embodiment, includes: receiving an order request message sent by a user; the order request message includes user identification information and resource information rented by the user. Acquiring available resource information and determining the user's resource configuration information based on the order request message and available resource information; the user's resource configuration information includes user identification information and resource information rented by the user. Determining a resource usage table based on the user's resource configuration information to record the user's usage information for rented resources; the resource usage table records the used information and historical usage information of the user's rented resources. Acquiring the resource information used by the user from the resource service device and updating the resource usage table based on the user's resource usage information; the user's resource usage information indicates the relevant data information of the resources used by the user in their rented resources. Generating billing information for the user's rented resources based on the resource configuration information, the resource usage table, and a preset billing time period, and sending the billing information to the user.

[0054] In this way, for each user, their resource configuration information can be determined based on their order information and available resource information. That is, the user's resource configuration information includes relevant information about the resources they rent. Furthermore, based on this resource configuration information, a resource usage table can be established. This table records the used and historical usage information of the user's rented resources, allowing for a comprehensive understanding of the user's resource usage. The resource service equipment can retrieve the user's resource usage information and update the resource usage table accordingly. Then, based on the resource configuration information, the resource usage table, and the preset billing period, the user's rented resource billing information is generated. In other words, based on the preset billing period, the user's resource usage information within that billing period can be determined. And based on the user's resource usage information within that billing period, and according to the user's rented resource information in the resource configuration information, the user's rented resource billing information for that billing period can be generated. Therefore, using this method, the management of each user's rented resources and the billing of rented resources can be achieved without relying on a big data computing platform, greatly simplifying the billing process and improving work efficiency. Attached Figure Description

[0055] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0056] Figure 1 A flowchart illustrating a resource management method provided in an embodiment of this application;

[0057] Figure 2 A flowchart illustrating another resource management method provided in an embodiment of this application;

[0058] Figure 3 This is a schematic diagram of the structure of a resource management device provided in an embodiment of this application;

[0059] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0060] To better understand the technical solution of this application, the embodiments of this application will be described in detail below with reference to the accompanying drawings.

[0061] It should be understood that the described embodiments are merely some, not all, of the embodiments in this application. All other embodiments obtained by those skilled in the art based on the embodiments in this application without inventive effort are within the scope of protection of this application.

[0062] The terminology used in the embodiments of this application is for the purpose of describing particular embodiments only and is not intended to be limiting of this application. The singular forms “a,” “the,” and “the” used in the embodiments of this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise.

[0063] It should be understood that the term "and / or" used in this article is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, the character " / " in this article generally indicates that the preceding and following related objects have an "or" relationship.

[0064] Before providing a detailed description of the embodiments of this application, the terms used or possibly used in the embodiments of this application will first be explained.

[0065] Big data, also known as massive data, refers to information that is so large in scale that it cannot be captured, managed, processed, and organized into information that helps businesses make more proactive business decisions within a reasonable timeframe using mainstream software tools.

[0066] SaaS (Software as a Service) platform: Software as a Service (SaaS) is a platform for operating SaaS software. SaaS providers build all the network infrastructure, software, and hardware operating platforms needed for enterprise IT infrastructure, and are responsible for all pre-implementation and post-maintenance services. Enterprises do not need to purchase hardware and software, build server rooms, or hire IT personnel; they can use information systems via the internet. SaaS is a software deployment model whose applications are designed specifically for network delivery, facilitating hosting, deployment, and access for users via the internet.

[0067] In related technologies, when a SaaS service support system needs to bill tenants, it needs to obtain the required tenant data from the SaaS platform business system through a big data computing platform, such as the consumption of rented resources. Then, the SaaS service support system sends the required tenant data to the SaaS service support system, and the SaaS service support system implements functions such as billing tenants. The process is very complex.

[0068] To address the aforementioned issues, this application provides a resource management method, apparatus, device, and storage medium. The method includes: receiving an order request message sent by a user; the order request message includes user identification information and resource information rented by the user. Acquiring available resource information and determining the user's resource configuration information based on the order request message and available resource information; the user's resource configuration information includes user identification information and resource information rented by the user. Determining a resource usage table based on the user's resource configuration information to record the user's usage information for rented resources. The resource usage table records the user's used information and historical usage information for rented resources. Acquiring the resource information used by the user in a resource service device and updating the resource usage table based on the user's used resource information. Generating billing information for the user's rented resources based on the resource configuration information, resource usage table, and a preset billing time period, and sending the billing information to the user.

[0069] In this way, for each user, their resource configuration information can be determined based on their order information and available resource information. That is, the user's resource configuration information includes relevant information about the resources they rent. Furthermore, based on this resource configuration information, a resource usage table can be established to record the user's usage information for rented resources, including usage history, to understand the user's resource usage. The resource service equipment can retrieve the user's resource usage information and update the resource usage table accordingly. Then, based on the resource configuration information, resource usage table, and preset billing period, the user's rented resource billing information is generated. In other words, the preset billing period determines the user's resource usage within that billing period. And based on the user's resource usage within that billing period, and according to the rented resource information in the resource configuration information, such as rental price and quantity, the user's rented resource billing information for that billing period can be generated. Therefore, based on the above method, the management of resources rented by each user can be achieved without utilizing a big data computing platform, and billing for these resources can be completed, greatly simplifying the billing process and improving work efficiency. A detailed explanation follows.

[0070] See Figure 1 This is a flowchart illustrating a resource management method provided in an embodiment of this application. Figure 1 As shown, the details are as follows:

[0071] Step S101: Receive the order request message sent by the user.

[0072] The order request message includes user identification information and information about the resources rented by the user. Specifically, the information about the resources rented by the user includes: the identification information of the resources rented by the user, the specifications and type of the resources rented by the user, the rental period, and the rental price.

[0073] In this embodiment, the user can determine the resources they need to rent based on actual requirements, and after generating a corresponding order, send an order request message to the resource management device. The order request message includes user identification information and information about the resources rented by the user. At this time, the resource management device receives the order request message sent by the user.

[0074] Step S102: Obtain available resource information and determine the user's resource configuration information based on the order request message and available resource information.

[0075] The user's resource configuration information includes user identification information and information on the resources rented by the user.

[0076] Specifically, after receiving an order request message from a user, the resource management device can parse the message to obtain the user's identification information and the resource information rented by the user. Then, it retrieves available resource information, for example, from storage media. Since the available resource information includes information on each type of resource that the resource service device can provide to the user for rent, it can determine whether the available resource information records the resource the user needs to rent based on the resource information rented by the user in the order request message. If so, it means the resource the user needs to rent is available. At this point, the user's resource configuration information can be generated based on the user's identification information and the resource information rented by the user in the order request message. The user's resource configuration information includes the user's identification information and the resource information rented by the user. For each type of resource rented by the user, corresponding resource configuration information for that rented resource is generated.

[0077] As one possible implementation, the resource information rented by the user includes the resource identification information, the type of resource, its specifications, rental period, and rental price. In other words, the user's resource configuration information includes the user's identification information and relevant information about the resources rented by the user.

[0078] It should be noted that the resource identification information rented by the user in the resource information can include the identifier of the resource rented by the user or the name of the resource. For example, the name of the resource rented by the user can be a real-time computing resource.

[0079] As one possible implementation, the available resource information includes the unused quantity of available resources. Therefore, based on the order request message and the available resource information, the user's resource configuration information is determined as follows:

[0080] Based on the order request message, obtain the resources rented by the user and the amount of resources required for rent.

[0081] Based on the information on the unused quantity of available resources, determine whether the target unused quantity meets the demand for rented resources. The target unused quantity refers to the unused portion of the unused available resources that the user has rented.

[0082] If the conditions are met, the user's resource configuration information is determined based on the order request message and available resource information.

[0083] Specifically, since a user's demand for rented resources may exceed the unused quantity of those resources in the available pool, it's necessary to determine whether the unused quantity of available resources can meet the user's demand before determining the user's resource configuration information. At this point, the resource management device parses the received order request message to obtain the user's rented resources and their demand. That is, the user's rented resource information in the order request message includes the user's rented resources and their demand, which the resource management device can obtain by parsing the order request message. Then, based on the identifier information of the rented resources in the available resource information, the target unused quantity (the unused quantity of the user's rented resources) is determined from the unused quantity of available resources. It is then determined whether the target unused quantity meets the user's demand. If it does, the user's resource configuration information is determined based on the order request message and the available resource information.

[0084] For example, suppose a computing resource is named "Real-time Computing Resource," and this resource is divided into two specifications: Specification 1 and Specification 2. Specification 1 is priced at 10,000 RMB / month, and Specification 2 is priced at 100,000 RMB / month. The unused quantity for Specification 1 is 1,000, and the unused quantity for Specification 2 is 100. Suppose user A needs to rent two Specification 1 Real-time Computing Resources. User A can send an order request message to the resource management device, which receives the message. This order request message contains user A's user identification information, which could be user A's username; it also includes the resource information rented by user A, namely, the resource name is "Real-time Computing Resource," the resource type is a computing resource, the specification is Specification 1, the required quantity is 2, the rental period is from October 1, 2021 to October 1, 2022, and the rental price is 10,000 RMB / month. The resource management device parses the received order request message and obtains that the user is renting real-time computing resources, and the required quantity is 2. At this point, the resource management device can obtain available resource information, which records the unused quantity of available resources. From the unused quantity information, it is determined that the unused quantity of real-time computing resources rented by User A is 1000, meaning the target unused quantity is 1000. Therefore, the resource management device can determine that the target unused quantity can meet the demand for rented resources. After determining that the target unused quantity can meet the demand for rented resources, User A's resource configuration information can be determined based on the aforementioned order request message and available resource information. As shown in Table 1, User A's resource configuration information includes: User A's username, the type of resource rented by User A is computing resources, the name of the computing resources is real-time computing resources, the specification of the rented resources is specification 1, the quantity of rented resources is 2, the rental period is from October 1, 2021 to October 1, 2022, and the rental price is 2 * 10,000 / month.

[0085] It should be noted that since the rental fee for real-time computing resources is determined by time, user A rented two 1-level real-time computing resources. The price of 1-level 1 is 10,000 / month, so the rental price is 2 * 10,000 / month.

[0086] Table 1. Resource Configuration Information for User A

[0087] User identification information User A Types of rented resources Computing resources Rented resource name Real-time computing resources Resource specifications Specification 1 Number of rented resources Specification 1:2 Rental period 2021.10.1~2022.10.1 Rental price Option 1: 2 * 10,000 / month

[0088] Step S103: Based on the user's resource configuration information, determine the resource usage table used to record the user's rental resource usage information.

[0089] The resource usage table records the usage information and historical usage information of the resources rented by users.

[0090] Specifically, after determining the user's resource configuration information, a resource usage table can be determined based on the user identification information and rented resource information within the user's resource configuration information to record the user's usage information for rented resources. The resource management device can obtain user identification information, rented resource identification information, the specifications and type of the rented resource, and the rental period from the user's resource configuration information. Then, based on this information, it determines the corresponding resource usage table for recording the user's usage information for rented resources. The user's usage information for rented resources includes the resource's already used information and historical usage information, i.e., historical usage details. Therefore, in this embodiment, the resource usage table can record both the already used information and historical usage information of rented resources.

[0091] As one possible implementation, the resource usage table includes a first sub-table and a second sub-table. The first sub-table records the usage information of resources rented by users, while the second sub-table records the historical usage information of resources rented by users.

[0092] Specifically, the "used" information for rented resources refers to the actual amount of resources that the user has used. The "historical" information for a user's rented resources includes the time and details of each use, i.e., the usage details. In other words, the "used" information is the cumulative amount of resources used by the user, while the "historical" information is a record of each instance of resource usage.

[0093] Step S104: Obtain the resource information used by the user in the resource service device, and update the resource usage table according to the resource information used by the user.

[0094] Among them, the resource information used by the user is used to indicate the relevant data information of the resources used by the user in the rented resources.

[0095] In this embodiment, once a user's resource usage table is determined, the user can use the rented resources. At this time, the resource management device can obtain the resource information used by the user from the resource service device. Specifically, the resource service device can send the user's resource usage information to the resource management device, which receives the user's resource usage information and thus obtains relevant data information about the resources used by the user in their rented resources. When the resource management device obtains the user's resource usage information, it indicates that the user has used their rented resources, and therefore the resource usage table corresponding to that user needs to be updated. Since the user's resource usage information includes user identification information, the resource management device can determine the user's resource usage table based on the user identification information and update the used information and historical usage information of the user's rented resources in the resource usage table based on the obtained user's resource usage information.

[0096] Furthermore, when the resource usage table includes a first sub-table and a second sub-table, the resource management device can update the first and second sub-tables based on the resource information used by the user. For example, if the user's resource information includes the quantity of resources used, and the first sub-table contains the quantity of resources already used, then the first sub-table can be updated to show the sum of the quantity of resources already used before the update and the quantity of resources used in the user's resource information. Since the user's resource information includes the usage time and corresponding quantity of resources, a new user record for their rented resources can be added to the second sub-table based on the usage time and corresponding quantity of resources contained in the user's resource information.

[0097] For example, suppose user B rents a storage resource named Storage Resource C for one month, with a rental specification of 500GB and a rental quantity of 1. Then, as shown in Table 2, the first sub-table of user B's resource usage table includes user identification information, the resource identification information of the rented resource, the resource specification type, the rental period, and the usage information of the rented resource. Since the user has not yet used Storage Resource C, the usage information of the user's rented resource in the first sub-table is 0GB. If user B uses Storage Resource C for the first time at time D, and the usage quantity is 10GB, the resource management device can obtain the resource information used by the user in the resource service device. This information includes at least user B's username, the time of use (D), and the usage quantity (10GB). Then, the resource management device can add a record to the second sub-table: "At time D, user B used Storage Resource C, with a usage quantity of 10GB"; and update the usage information of the user's rented resource in the first sub-table to 10GB. If user B uses Storage Resource C for the second time at time E, and the usage quantity is 20GB... At this point, the resource management device can again obtain the user's resource usage information from the resource service equipment. This information includes at least user B's username, the time of usage (E), and the usage quantity (20G). The resource management device can then add a record to the second sub-table: "At time E, user B used storage resource C, with a usage quantity of 20G." In the first sub-table, the used information for the user's rented resources is updated to 30G. In this way, after each use of rented resources, the resource management device can update the user's resource usage table stored in the resource management device based on the obtained user usage information, facilitating the monitoring of the user's usage of rented resources.

[0098] Table 2, the first sub-table of the resource usage table.

[0099]

[0100] Step S105: Based on the resource configuration information, resource usage table, and preset billing time period, generate the user's rental resource bill information and send the bill information to the user.

[0101] In this embodiment, when billing a user, the resource management device can determine the billing period based on a preset billing period and the rental period in the resource configuration information. Since billing varies depending on the resource rented, sometimes fees are charged based on the rental time, and sometimes based on the user's usage within the billing period, determining fees based on resource usage requires identifying the user's resource usage information within the billing period. Because the historical usage information recorded in the resource usage table includes the time and details of each resource usage, the resource management device can determine the user's resource usage information within that billing period from the historical usage information recorded in the resource usage table, based on the determined billing period. Then, based on the billing period, the user's resource usage information within that period, and the rental price in the resource configuration information, the device generates the user's rental resource billing information. The billing information for a user's rented resources includes at least the user's identification information, the resource's identification information, the resource's specifications and type, the billing period, the resource usage information, and the total cost for that billing period. After generating the user's billing information, the billing information is sent to the user.

[0102] It should be noted that the preset billing time period can be pre-set according to the needs of different users and their rented resources, and can be included in the user's order request message.

[0103] For example, suppose a computing resource is named "Real-time Computing Resource," and this real-time computing resource is divided into Specification 1 and Specification 2. Specification 1 is priced at 10,000 RMB / month, and Specification 2 is priced at 100,000 RMB / month; the unused quantity of Specification 1 is 1,000, and the unused quantity of Specification 2 is 100. Suppose user A needs to rent two Specification 1 real-time computing resources. In this case, user A can send an order request message to the resource management device, which receives the order request message sent by user A. This order request message includes user A's user identification information, which may be user A's username, and also includes the resource information rented by user A. That is, the resource name rented by user A is "Real-time Computing Resource," the type of the rented resource is a computing resource, the specification of the resource is Specification 1, the required quantity of the rented resource is 2, the rental period is from October 1, 2021 to October 1, 2022, and the rental price is 10,000 RMB / month. The process of determining user A's resource configuration information can be specifically referred to in the embodiment shown in Table 1, and will not be repeated here. Assuming user A's order request message includes a billing period of one month, in the first billing period, from October 1st to October 31st, 2021, the resource management device can generate billing information for user A's rented resources. First, based on user A's real-time computing resource configuration information, the resource management device determines that the price of real-time computing resource specification 1 is 10,000 / month, and the number of resources rented is 2. Since the real-time computing resource is charged based on time, it is not necessary to determine the usage information of the real-time computing resources rented by user A within this billing period from the historical usage information recorded in the resource usage table. It can be directly determined that the total cost within the billing period from October 1st to October 31st, 2021 is the product of the number of resources rented and the price of the rented real-time computing resource specification 1, which is 20,000. As shown in Table 3, the billing information for real-time computing resources rented by User A during the billing period from October 1, 2021 to October 31, 2021 includes: User A's username, the type of resource rented by User A as computing resources, the name of the computing resources as real-time computing resources, the specification of the rented resources as specification 1, the quantity of resources rented as 2, the billing period from October 1, 2021 to October 1, 2022, and the total cost as 20,000. After generating the billing information for the user's rented resources in the current billing period, the resource management device can send the billing information to the user.

[0104] Table 3. Billing information for real-time computing resources rented by User A.

[0105] User identification information User A Types of rented resources Computing resources Rented resource name Real-time computing resources Resource specifications Specification 1 Number of rented resources Specification 1:2 Rental period 2021.10.1~2022.10.1 Billing time cycle 2021.10.1~2021.10.31 Specifications and actual usage / Total cost 2*10,000

[0106] As one possible implementation, when the resource usage table includes a first sub-table and a second sub-table, the user's rented resource billing information is generated based on the resource configuration information, the resource usage table, and the preset billing period, including:

[0107] Based on the resource configuration information, the second sub-table, and the preset billing time period, generate the user's rental resource bill information and send the bill information to the user.

[0108] Furthermore, based on resource configuration information, the second sub-table, and the preset billing period, the user's rental resource billing information is generated, including:

[0109] Based on the second sub-table and the billing time period, determine the amount of data information on the rented resources used by the user within the billing time period;

[0110] Based on resource allocation information and the amount of rented resources used by the user within the billing period, generate the user's rented resource billing information.

[0111] Specifically, in this embodiment, when a user needs to be billed, the resource management device can determine the billing period based on a preset billing period and the rental period in the resource configuration information. Since the resource usage table includes a first sub-table and a second sub-table, and the second sub-table records the user's historical resource usage information, including the time and usage information for each resource usage, the resource management device can determine the amount of rented resources used by the user within the billing period from the second sub-table based on the determined billing period. Then, based on the rental price in the resource configuration information and the amount of rented resources used by the user within the billing period, the device generates the user's rental resource billing information. The user's rental resource billing information includes at least the user's identification information, the resource's identification information, the resource specification type, the billing period, the amount of rented resources used by the user within the billing period, and the total cost for the billing period. After generating the user's rental resource billing information, the device sends the billing information to the user.

[0112] For example, suppose a storage resource is named Storage Resource C, which is divided into three specifications: Specification 1: 500G, Specification 2: 800G, and Specification 3: 1T. Specification 1 is priced at 10 yuan / G, Specification 2 at 9 yuan / G, and Specification 3 at 8 yuan / G. The unused quantity of Specification 1 is 1000, the unused quantity of Specification 2 is 500, and the unused quantity of Specification 3 is 300. Suppose user F needs to rent one Specification 1 Storage Resource C. User F can send an order request message to the resource management device, which receives the order request message. This order request message contains user F's username and the resource information rented by user F; that is, user F rents Storage Resource C, the specification of the rented resource is Specification 1: 500G, the required quantity of the rented resource is 1, the rental period is from October 1, 2021 to October 1, 2022, and the rental price is 10 yuan / G. The resource configuration information of user F can be determined according to step S102, which will not be elaborated here. Based on user F's resource configuration information, the resource management device can determine a resource usage table to record the usage information of storage resource C rented by user F. The resource usage table includes a first sub-table and a second sub-table. The first sub-table records the used information of the rented resources, and the second sub-table records the user's historical usage information of the rented resources. The resource service device obtains the resource information used by the user and updates the resource usage table accordingly.

[0113] Assuming user F's order request message includes a billing period of one month, in the first billing period, from October 1st to October 31st, 2021, the resource management device can generate billing information for rented resources for user F. First, the resource management device can determine the price of storage resource C specification 1 as 10 yuan / GB and the rented resource quantity as 1 based on user F's storage resource C resource configuration information. Then, from the historical usage information of rented storage resource C recorded in the second sub-table, it can determine the amount of data used by user F on storage resource C during the first billing period from October 1st to October 31st, 2021. Assuming user F used a total of 300GB during the first billing period from October 1st to October 31st, 2021, the total cost at this time is the product of the usage amount of rented storage resource C and the price of storage resource C specification 1, which is 3000 yuan. As shown in Table 4, during the billing period from October 1, 2021 to October 31, 2021, the billing information for real-time computing resources rented by User A includes: User F's username, the type of resource rented by User F is storage resource, the name of the storage resource is storage resource C, the specification of the rented resource is specification 1: 500G, the quantity of the rented resource is 1, the billing period is from October 1, 2021 to October 1, 2022, and the total cost is 3000 yuan. After generating the billing information for the user's rented resources in the current billing period, the resource management device can send the billing information to the user.

[0114] Table 4. Billing information for storage resource C rented by user B.

[0115] User identification information User B Types of rented resources Storage resources Rented resource name Storage resource C Resource specifications Specification 1 Number of rented resources Specification 1:1 Rental period 2021.10.1~2022.10.1 Billing time cycle 2021.10.1~2021.10.31 Specifications and actual usage 300G Total cost 3000 yuan

[0116] It should be noted that the resource management method described in the above embodiments can be applied to SaaS platform systems or other platform systems that provide resource rental services, and this application does not limit it in this regard.

[0117] As one possible implementation, Figure 2 This is a flowchart illustrating another resource management method provided in an embodiment of this application. Figure 2 As shown, the details are as follows:

[0118] Step S201: Receive the order request message sent by the user.

[0119] For details, please refer to step S101, which will not be repeated here.

[0120] Step S202: Obtain available resource information and determine the user's resource configuration information based on the order request message and available resource information.

[0121] For details, please refer to step S102, which will not be repeated here.

[0122] Step S203: Based on the user's resource configuration information, determine the resource usage table used to record the user's rental resource usage information.

[0123] For details, please refer to step S103, which will not be repeated here.

[0124] Step S204: Receive the resource usage request message sent by the user.

[0125] The resource usage request message contains the identification information of the target resource.

[0126] In this embodiment, when a user needs to use rented resources, they can send a resource usage request message to the resource management device, which then receives the message. The resource usage request message carries identification information of the target resource, which may be the name of the rented resource the user needs to use.

[0127] Step S205: Based on the resource usage request message and the first sub-table, determine whether the user has permission to use the target resource.

[0128] Specifically, after receiving a resource usage request message, the resource management device can parse the message to obtain the user's identifier information and the identifier information of the target resource the user needs to use. Then, based on the user's identifier information and the target resource's identifier information, the resource management device can determine the first sub-table corresponding to the user and check whether the user has rented the target resource within that sub-table. If it is determined that the user has rented the target resource, it can then determine whether the user has the permission to use it. That is, based on the user's identifier information and the target resource's identifier information, the first sub-table corresponding to the user is determined, and it is determined whether the first sub-table records information related to the target resource rented by the user, thereby determining whether the user has the permission to use the target resource. If it is determined that the user has the permission to use the target resource, step S206 is executed; if the user does not have the permission to use the target resource, a message denying the use of the target resource is sent to the resource service device.

[0129] Step S206: When it is determined that the user has permission to use the target resource, a message allowing the user to use the target resource is sent to the resource service device.

[0130] The message that allows the use of the target resource carries the identification information of the target resource.

[0131] Specifically, when it is determined that a user has permission to use the target resource, the resource management device can send a message to the resource service device allowing the use of the target resource. Upon receiving the message allowing the use of the target resource, the resource service device can provide the user with the service for using the target resource.

[0132] Step S207: Obtain the resource information used by the user in the resource service device, and update the resource usage table according to the resource information used by the user.

[0133] For details, please refer to step S104, which will not be repeated here.

[0134] Step S208: Based on the resource configuration information, resource usage table, and preset billing time period, generate the user's rental resource bill information and send the bill information to the user.

[0135] For details, please refer to step S105, which will not be repeated here.

[0136] Step S209: Based on the first sub-table, determine whether the amount of resources rented by the user has been used has reached the preset threshold.

[0137] In this embodiment, the preset threshold can be the maximum usage of resources rented by a certain proportion of users. Since the first sub-table records the usage information of resources rented by users, the resource management device can determine whether the usage of resources rented by users has reached the preset threshold based on the first sub-table. If the preset threshold is reached, step S210 is executed.

[0138] It should be noted that the resource management device can pre-set a threshold for the resources rented by the user based on the resource information rented by the user. For example, the threshold can be pre-set to 70% of the usable amount of the resources rented by the user, or it can be 80% of the usable amount of the resources rented by the user. This application does not limit this.

[0139] Step S210: If the preset threshold is reached, an alarm message is sent to the user.

[0140] Specifically, if the amount of resources used by a user reaches a preset threshold, it means that the amount of resources used by the user is close to the total available amount of the resources. Continued use may result in the exhaustion of all available resources. At this time, the resource management device can send an alarm message to the user to inform the user of the usage status of the resources.

[0141] As one possible implementation, the resource management device can pre-set a first threshold and a second threshold, where the second threshold is higher than the first threshold. If the resource management device determines, based on a first sub-table, that the user's used resource usage has reached the first threshold but not the second threshold, it sends a notification to the user to inform them that their used resource usage has reached the first threshold. If the user's used resource usage has reached the second threshold, it sends an alarm to inform them that their used resource usage has reached the second threshold. In this way, the resource management device can control the user's use of their rented resources or place additional rental orders based on the notifications or alarms from the resource management device to meet the user's demand for those resources.

[0142] Step S211: Update the number of unused available resources in the available resources list based on the user's resource configuration information.

[0143] Specifically, after the resource management device determines the user's resource configuration information based on the user's order request message and available resource information, it indicates that the user has rented a certain amount of resources. At this point, it needs to update the unused quantity of that resource in the unused quantity of available resources in the available resource information to ensure the accuracy of the unused quantity information. The resource management device can determine the unused quantity of the target resource from the unused quantity of available resources based on the resource identifier information of the resources rented by the user in the user's resource configuration information. And based on the quantity of resources rented by the user in the user's resource configuration information, it updates the unused quantity of the target resource in the available resources.

[0144] In this way, for each user, the resource management device can determine the user's resource configuration information based on the user's order information and available resource information. Furthermore, based on the user's resource configuration information, a resource usage table can be established to record the user's rental resource usage information, including usage history, facilitating the monitoring of the user's resource usage. The resource service equipment retrieves the user's resource usage information and updates the resource usage table accordingly. Then, based on the resource configuration information, resource usage table, and preset billing time period, a billing information for the user's rental resources is generated. Therefore, using this method, management of each type of resource rented by each user can be achieved without relying on a big data computing platform, and billing for the user's rental resources can be completed, greatly simplifying the billing process and improving work efficiency.

[0145] Corresponding to the above embodiments, this application also provides a resource management device. Figure 3 A schematic diagram of a resource management device provided in this application embodiment is shown below:

[0146] The receiving unit 301 is used to receive an order request message sent by a user. The order request message includes user identification information and information about the resources rented by the user.

[0147] The acquisition unit 302 is used to acquire available resource information and determine the user's resource configuration information based on the order request message and the available resource information. The user's resource configuration information includes user identification information and information on the resources rented by the user.

[0148] The processing unit 303 is used to determine a resource usage table for recording the usage information of the user's rented resources based on the user's resource configuration information; wherein the resource usage table is used to record the usage information and historical usage information of the user's rented resources;

[0149] The system acquires resource information used by users from the resource service equipment and updates the resource usage table based on this information. The resource information used by users is used to indicate relevant data about the resources used by users in their rented resources.

[0150] Based on resource configuration information, resource usage table, and preset billing time period, generate billing information for the user's rented resources and send the billing information to the user.

[0151] As one possible embodiment, the processing unit 303 is specifically used to generate billing information for the user's rented resources based on resource configuration information, the second sub-table, and a preset billing time period.

[0152] As one possible embodiment, the receiving unit 301 is specifically used to receive a resource usage request message sent by a user; the resource usage request message carries the identification information of the target resource;

[0153] The processing unit 303 is further configured to determine, based on the resource usage request message and the first sub-table, whether the user has permission to use the target resource;

[0154] When it is determined that a user has permission to use the target resource, a message authorizing the use of the target resource is sent to the resource service device; the message for using the target resource carries the identification information of the target resource.

[0155] As one possible embodiment, the processing unit 303 is further configured to determine the data volume information of the rented resources used by the user within the billing time period based on the second sub-table and the billing time period;

[0156] Based on the resource configuration information and the data volume information of the rented resources used by the user within the billing period, the user's rented resource billing information is generated.

[0157] As one possible embodiment, the processing unit 303 is further configured to determine, based on the first sub-table, whether the amount of resources rented by the user has been used has reached a preset threshold; if the preset threshold has been reached, then send an alarm message to the user.

[0158] As one possible embodiment, the acquisition unit 302 is specifically used to acquire the resources rented by the user and the required amount of rented resources based on the order request message;

[0159] Based on the information on the unused quantity of available resources, determine whether the target unused quantity meets the demand for rented resources; the target unused quantity refers to the unused quantity of resources rented by the user within the unused quantity of available resources.

[0160] If the conditions are met, the user's resource configuration information is determined based on the order request message and available resource information.

[0161] As one possible embodiment, the processing unit 303 is also configured to update the number of unused available resources in the available resources based on the user's resource configuration information.

[0162] Corresponding to the above embodiments, this application also provides an electronic device. Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. The electronic device 400 may include a processor 401, a memory 402, and a communication unit 403. These components communicate through one or more buses. Those skilled in the art will understand that the structure of the server shown in the figure does not constitute a limitation on the embodiment of the present invention. It may be a bus topology or a star topology, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0163] The communication unit 403 is used to establish a communication channel, enabling the electronic device to communicate with other devices. It receives user data from other devices or sends user data to other devices.

[0164] The processor 401 serves as the control center of the electronic device, connecting various parts of the device via various interfaces and lines. It executes software programs and / or modules stored in the memory 402, and calls data stored in the memory to perform various functions and / or process data. The processor can be composed of integrated circuits (ICs), such as a single packaged IC or multiple packaged ICs with the same or different functions connected together. For example, the processor 401 may consist only of a central processing unit (CPU). In this embodiment, the CPU may have a single processing core or include multiple processing cores.

[0165] The memory 402 is used to store the execution instructions of the processor 401. The memory 402 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk.

[0166] When the execution instructions in memory 402 are executed by processor 401, the embedded device 400 is able to execute... Figure 2 Some or all of the steps in the illustrated embodiments.

[0167] In a specific implementation, the present invention also provides a computer storage medium, wherein the computer storage medium may store a program, which, when executed, may include some or all of the steps of the calling method provided by the present invention. The storage medium may be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.

[0168] Those skilled in the art will clearly understand that the techniques in the embodiments of the present invention can be implemented using software plus necessary general-purpose hardware platforms. Based on this understanding, the technical solutions in the embodiments of the present invention, or the parts that contribute to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in various embodiments or certain parts of the embodiments of the present invention.

[0169] The same or similar parts between the various embodiments in this specification can be referred to mutually. In particular, the device embodiments and terminal embodiments are basically similar to the method embodiments, so the description is relatively simple, and the relevant parts can be referred to the description in the method embodiments.

Claims

1. A resource management method characterized by, The method comprises the following steps: receiving an order request message sent by a user; the order request message comprises user identification information and information about resources rented by the user; obtaining available resource information, and determining resource configuration information of the user according to the order request message and the available resource information; the resource configuration information of the user comprises user identification information and information about resources rented by the user; determining a resource usage table used for recording usage information of resources rented by the user according to the resource configuration information of the user; the resource usage table is used for recording used information and historical usage information of resources rented by the user; obtaining resource information used by the user in a resource service device, and updating the resource usage table according to the resource information used by the user; the resource information used by the user is used for indicating relevant data information of resources used by the user in the resources rented by the user; generating billing information of resources rented by the user according to the resource configuration information, the resource usage table and a preset billing time period, and sending the billing information to the user; wherein the available resource information comprises an unused quantity of available resources, and the determination of the resource configuration information of the user according to the order request message and the available resource information comprises the following steps: obtaining resources rented by the user and a demand quantity of the rented resources according to the order request message; determining whether a target unused quantity meets the demand quantity of the rented resources according to information about the unused quantity of the available resources; if yes, determining the resource configuration information of the user according to the order request message and the available resource information.

2. The method of claim 1, wherein, the resource usage table comprises a first sub-table and a second sub-table; the first sub-table is used for recording used information of resources rented by the user; and the second sub-table is used for recording historical usage information of resources rented by the user; the updating of the resource usage table according to the resource information used by the user comprises the following steps: updating the first sub-table and the second sub-table according to the resource information used by the user; the generation of the billing information of resources rented by the user according to the resource configuration information, the resource usage table and the preset billing time period comprises the following step: generating the billing information of resources rented by the user according to the resource configuration information, the second sub-table and the preset billing time period.

3. The method of claim 2, wherein, before the obtaining of the resource information used by the user in the resource service device, the method further comprises the following steps: receiving a resource usage request message sent by the user; the resource usage request message carries identification information of a target resource; determining whether the user has a permission to use the target resource according to the resource usage request message and the first sub-table; when it is determined that the user has the permission to use the target resource, sending a message allowing the use of the target resource to the resource service device; the message allowing the use of the target resource carries the identification information of the target resource.

4. The method of claim 3, wherein, the generation of the billing information of resources rented by the user according to the resource configuration information, the second sub-table and the preset billing time period comprises the following step: According to the second sub-table and a billing time period, data volume information of the rented resource used by the user in the billing time period is determined; According to the resource configuration information and the data volume information of the rented resource used by the user in the billing time period, billing information of the rented resource of the user is generated.

5. The method of claim 2, wherein, The resource information rented by the user includes: identification information of the resource rented by the user, type to which the resource rented by the user belongs, specification contained in the resource, time limit for rent, and rental price.

6. The method of claim 5, wherein, The method further includes: According to the first sub-table, it is determined whether the used amount of the resource rented by the user reaches a preset threshold value; If the preset threshold value is reached, alarm information is sent to the user.

7. The method of claim 1, wherein, The method further includes: According to the resource configuration information of the user, the unused amount of the available resource in the available resource is updated.

8. A tenant resource management apparatus characterized by comprising: It includes: A receiving unit is configured to receive an order request message sent by a user; The order request message includes user identification information and resource information rented by the user; An obtaining unit is configured to obtain available resource information, and determine resource configuration information of the user according to the order request message and the available resource information; The resource configuration information of the user includes user identification information and resource information rented by the user; A processing unit is configured to determine a resource usage table used to record usage information of the resource rented by the user according to the resource configuration information of the user; the resource usage table is used to record used information and historical usage information of the resource rented by the user; Resource information used by the user is obtained in a resource service device, and the resource usage table is updated according to the resource information used by the user; the resource information used by the user is used to indicate related data information of the resource used by the user in the resource rented by the user; According to the resource configuration information, the resource usage table and a preset billing time period, billing information of the resource rented by the user is generated, and the billing information is sent to the user; The available resource information includes an unused amount of the available resource, and the determination of the resource configuration information of the user according to the order request message and the available resource information includes: According to the order request message, the resource rented by the user and the demand amount of the rented resource are obtained; According to the information of the unused amount of the available resource, it is determined whether a target unused amount meets the demand amount of the rented resource; If it meets, the resource configuration information of the user is determined according to the order request message and the available resource information.

9. An electronic device, comprising: It includes: A processor and a memory, the memory stores a computer program, when the computer program is executed, the electronic device executes the method of any one of claims 1-7.

10. A storage medium, characterized by The storage medium includes a stored program, wherein the program controls the device where the storage medium is located to execute the method of any one of claims 1-7 when the program is running.

Citation Information

Patent Citations

  • Account checking system based on hybrid cloud computing platform and account checking method thereof

    CN111192123A

  • Billing consumption of cloud-based resources

    US20170243263A1