CN-116582376-B - Cloud cost management method and device, electronic equipment and storage medium
Abstract
The embodiment of the invention discloses a cloud cost management method, a cloud cost management device, electronic equipment and a storage medium, wherein the method comprises the steps of obtaining actual enjoyment conditions of a user on a first cloud cost discount scheme, judging whether a cloud cost optimization space exists for the user or not when the actual enjoyment conditions are lower than a preset enjoyment threshold value, and sharing a second cloud cost discount scheme to the user when the cloud cost optimization space exists. The technical scheme provided by the embodiment of the invention is applicable to the control scene of cloud cost after the user gets on the cloud, and can effectively save the cloud cost of the user.
Inventors
- DING GUANJUN
- NING HAOYU
Assignees
- 北京聚云科技有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20230426
Claims (10)
- 1. A method of cloud cost management, the method comprising: Acquiring the actual enjoyment condition of a user on a first cloud expense discount scheme; when the actual enjoyment condition is lower than a preset enjoyment threshold value, judging whether a cloud cost optimization space exists for the user or not; if a cloud cost optimization space exists, sharing a second cloud cost discount scheme to the user; the obtaining the actual enjoyment condition of the user to the first cloud expense discount scheme comprises the following steps: Analyzing cloud expense bill data of a user to obtain the utilization rate and/or coverage rate of the user on a first cloud expense discount scheme, wherein the utilization rate r1 Wherein Representing the fee generated by the user actually enjoying the first cloud fee discount scheme, Representing the price a user promises to enjoy the first cloud price discount scheme, said coverage r2 Wherein Indicating that the user actually enjoys the original total charge corresponding to the discount portion in the first cloud charge discount scheme, Representing that the user actually enjoys the original price total corresponding to the non-discount part in the first cloud expense discount scheme; the judging whether the user has a cloud cost optimization space comprises the following steps: predicting a first cloud cost of the user in a subsequent set time period; Comparing the first cloud cost with second cloud cost of the user in a plurality of latest set time periods, and judging whether a cloud cost optimization space exists for the user or not; the sharing of the second cloud expense discount scheme to the user includes: Determining a target member account of the plurality of member accounts of the user that enjoys a second cloud fee discount scheme; A second cloud fee discount scheme is shared to the target member account.
- 2. The method of claim 1, further comprising managing a plurality of member accounts for a plurality of users in a tree structure, wherein child nodes of the tree structure are hierarchical organizations of users and leaf nodes are member accounts under the hierarchical organizations of users; Determining a target member account of the plurality of member accounts of the user that enjoys a second cloud fee discount scheme, comprising: determining a target tier organization of the user enjoying a second cloud fee discount scheme; And taking the determined member accounts under the target hierarchical organization as target member accounts of the plurality of member accounts of the user, which enjoy the second cloud expense discount scheme.
- 3. The method of claim 1 or 2, wherein sharing a second cloud charge discount scheme to the target member account comprises: binding the second cloud expense discount scheme to a cloud account that enjoys the first cloud expense discount scheme at the cloud platform; And associating the cloud account with the target member account to perform cloud charge calculation on the target member account according to a second cloud charge discount scheme.
- 4. The method according to claim 1 or 2, characterized in that the method further comprises: Acquiring total cloud charge of a user to which a target member account belongs, wherein the total cloud charge comprises first charge calculated according to discounted price and second charge calculated according to actual price; and if the second fee is lower than the set percentage of the total cloud fee, reducing the number of member accounts which can enjoy a second cloud fee discount scheme in the users to which the target member accounts belong.
- 5. A cloud cost management apparatus, the apparatus comprising: a share condition acquisition unit for acquiring an actual share condition of the first cloud expense discount scheme by the user; The optimizing space judging unit is used for judging whether the cloud cost optimizing space exists for the user or not when the actual enjoyment condition is lower than a preset enjoyment threshold value; the discount sharing unit is used for sharing a second cloud expense discount scheme to the user if the cloud cost optimization space exists; Wherein, the The access condition obtaining unit is configured to obtain an actual access condition of a user to a first cloud expense discount scheme, and includes: Analyzing cloud expense bill data of a user to obtain the utilization rate and/or coverage rate of the user on a first cloud expense discount scheme, wherein the utilization rate r1 Wherein Representing the fee generated by the user actually enjoying the first cloud fee discount scheme, Representing the price a user promises to enjoy the first cloud price discount scheme, said coverage r2 Wherein Indicating that the user actually enjoys the original total charge corresponding to the discount portion in the first cloud charge discount scheme, Representing that the user actually enjoys the original price total corresponding to the non-discount part in the first cloud expense discount scheme; The optimization space judging unit is used for judging whether the user has a cloud cost optimization space or not, and comprises the following steps: predicting a first cloud cost of the user in a subsequent set time period; Comparing the first cloud cost with second cloud cost of the user in a plurality of latest set time periods, and judging whether a cloud cost optimization space exists for the user or not; The discount sharing unit is configured to share a second cloud fee discount scheme to the user, and includes: Determining a target member account of the plurality of member accounts of the user that enjoys a second cloud fee discount scheme; A second cloud fee discount scheme is shared to the target member account.
- 6. The apparatus of claim 5, further comprising an account management unit configured to manage a plurality of member accounts of a plurality of users in a tree structure, wherein child nodes of the tree structure are hierarchical organizations of the users and leaf nodes are member accounts under the hierarchical organizations of the users; the discount sharing unit is used for determining a target member account enjoying a second cloud expense discount scheme in a plurality of member accounts of the user, and comprises the following steps: determining a target tier organization of the user enjoying a second cloud fee discount scheme; And taking the determined member accounts under the target hierarchical organization as target member accounts of the plurality of member accounts of the user, which enjoy the second cloud expense discount scheme.
- 7. The apparatus according to claim 5 or 6, wherein the discount sharing unit is configured to share a second cloud fee discount scheme to the target member account, and includes: Binding the second cloud expense discount scheme to a cloud account of the first cloud expense discount scheme enjoyed at the cloud platform; And associating the cloud account with the target member account to perform cloud charge calculation on the target member account according to a second cloud charge discount scheme.
- 8. The apparatus according to claim 5 or 6, further comprising an adjustment unit for: Acquiring total cloud charge of a user to which a target member account belongs, wherein the total cloud charge comprises first charge calculated according to discounted price and second charge calculated according to actual price; and if the second fee is lower than the set percentage of the total cloud fee, reducing the number of member accounts which can enjoy a second cloud fee discount scheme in the users to which the target member accounts belong.
- 9. An electronic device comprising a housing, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is disposed inside a space enclosed by the housing, the processor and the memory are disposed on the circuit board, the power circuit is used for supplying power to each circuit or device of the electronic device, the memory is used for storing executable program codes, and the processor is used for executing a program corresponding to the executable program codes by reading the executable program codes stored in the memory and executing the cloud cost management method according to any one of the preceding claims 1-4.
- 10. A computer-readable storage medium, wherein the computer-readable storage medium stores one or more programs executable by one or more central processors to implement the cloud cost management method of any of claims 1-4.
Description
Cloud cost management method and device, electronic equipment and storage medium Technical Field The present invention relates to the field of cloud computing technologies, and in particular, to a cloud cost management method, a cloud cost management device, an electronic device, and a storage medium. Background Cloud computing, which is one of distributed computing technologies, obtains resources required by an application, hardware, a platform, and software, through a network. Among these, the network providing resources is called a cloud. For cloud users, cloud resources can be acquired at any time, used as required and infinitely expanded. Cloud costs include cloud users using a particular number of cloud resources (e.g., virtual machine instances, memory, storage, network traffic, support, and software licenses) over a particular time period, and the like, typically as resource requirements change over time. Along with the continuous deep cloud application and cloud application of enterprises, each product pricing mode provided by cloud manufacturers is complex, and the cloud application scenes of the enterprises are diversified, so that the enterprises often have the conditions of high cloud cost and serious waste due to unreasonable budget, improper resource allocation and imperfect multi-account management. Currently, while cloud vendors offer some discount schemes, such as using reservation instances (RESERVED INSTANCES) and savings plans (SAVINGS PLANS), enterprises need to make IT cost budgets in advance and promise resource usage to cloud vendors before they can purchase and use the corresponding discount schemes. In practical applications, enterprises cannot well use discount schemes provided by cloud vendors in the process of using products and services provided by cloud vendors. For middle and large enterprises, the discount scheme is not reasonably and effectively used usually because of the problem of self business development, the first is that the business is explosive growth and exceeds the previously set resource consumption budget, so that no discount is available when new resources are purchased, and the second is that the business is contracted and the expected resource consumption is not reached, so that the discount purchased at the beginning is wasted. Disclosure of Invention In view of the above, the embodiments of the present invention provide a cloud cost management method, device, electronic device, and storage medium, so as to effectively reduce cloud cost for a user. In a first aspect, an embodiment of the present invention provides a cloud cost management method, including: Acquiring the actual enjoyment condition of a user on a first cloud expense discount scheme; when the actual enjoyment condition is lower than a preset enjoyment threshold value, judging whether a cloud cost optimization space exists for the user or not; And if the cloud cost optimization space exists, sharing a second cloud cost discount scheme to the user. Further, obtaining an actual consumption situation of the first cloud expense discount scheme by the user includes: And analyzing cloud expense bill data of the user to obtain the utilization rate and/or coverage rate of the first cloud expense discount scheme by the user. Further, determining whether the user has a cloud cost optimization space includes: predicting a first cloud cost of the user in a subsequent set time period; And comparing the first cloud cost with second cloud cost of the user in a plurality of latest set time periods, and judging whether a cloud cost optimization space exists for the user. Further, sharing a second cloud fee discount scheme to the user includes: Determining a target member account of the plurality of member accounts of the user that enjoys a second cloud fee discount scheme; A second cloud fee discount scheme is shared to the target member account. Further, the method further comprises managing a plurality of member accounts of the plurality of users in a tree structure, wherein child nodes of the tree structure are hierarchical organizations of the users, and leaf nodes are member accounts under the hierarchical organizations of the users; Determining a target member account of the plurality of member accounts of the user that enjoys a second cloud fee discount scheme, comprising: determining a target tier organization of the user enjoying a second cloud fee discount scheme; And taking the determined member accounts under the target hierarchical organization as target member accounts of the plurality of member accounts of the user, which enjoy the second cloud expense discount scheme. Further, sharing a second cloud fee discount scheme to the target member account includes: Binding the second cloud expense discount scheme to a cloud account of the first cloud expense discount scheme enjoyed at the cloud platform; And associating the cloud account with the target member account to perform cloud charge calculatio