CN111698326B - Method and device for determining cost attribution of cloud service resources - Google Patents

Method and device for determining cost attribution of cloud service resources Download PDF

Info

Publication number
CN111698326B
CN111698326B CN202010536370.2A CN202010536370A CN111698326B CN 111698326 B CN111698326 B CN 111698326B CN 202010536370 A CN202010536370 A CN 202010536370A CN 111698326 B CN111698326 B CN 111698326B
Authority
CN
China
Prior art keywords
cloud service
attribution
cost
information
service resources
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010536370.2A
Other languages
Chinese (zh)
Other versions
CN111698326A (en
Inventor
孙诗瑶
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202010536370.2A priority Critical patent/CN111698326B/en
Publication of CN111698326A publication Critical patent/CN111698326A/en
Application granted granted Critical
Publication of CN111698326B publication Critical patent/CN111698326B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • G06Q10/06313Resource planning in a project environment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Abstract

The application discloses a method and a device for determining cost attribution of cloud service resources, and relates to the field of cloud computing. The method comprises the following steps: acquiring the use authority attribution information of the cloud service resources; establishing an equipment tree according to the using authority attribution information of the cloud service resources; acquiring use cost attribution information configured for cloud service resources, and creating cost label information for corresponding nodes according to the use cost attribution information; and determining cost attribution information of the cloud service resources represented by the nodes in the equipment tree according to the parent-child relationship among the nodes in the equipment tree and the cost tag information. By adopting the method, the cost attribution of the cloud service resources can be accurately determined, and the information maintenance cost can be reduced.

Description

Method and apparatus for determining cost attribution of cloud service resources
Technical Field
The embodiment of the disclosure relates to the technical field of computers, in particular to the field of cloud computing, and more particularly to a method and an apparatus for determining cost attribution of cloud service resources.
Background
With the development of cloud computing technology, cloud service resources are increasing, and service objects are increasing, a cloud service center may deploy multiple products or multiple services on the same cloud service resource (e.g., a storage server or a communication link), or invoke the cloud service resource across centers/departments, and when product cost settlement or service cost settlement is performed, costs of the cloud service resources used by each product or service need to be accurately accounted, and therefore, a cost home party of each cloud service resource needs to be accurately identified.
Disclosure of Invention
The present disclosure provides a method, apparatus, electronic device, and computer-readable storage medium for determining cost attribution of cloud service resources.
According to a first aspect of the present disclosure, there is provided a method for determining cost attribution of cloud service resources, the method comprising: acquiring usage right attribution information of cloud service resources; establishing an equipment tree according to the use authority attribution information of the cloud service resources, wherein the use authority attribution information comprises information of at least one use authority attribution party, the equipment tree comprises nodes representing the cloud service resources or the use authority attribution party of the cloud service resources, and the parent-child relationship among the nodes in the equipment tree represents at least one of the following items: attribution relation between the cloud service resources corresponding to the nodes and the use authority attribution parties of the cloud service resources and attribution relation between the use authority attribution parties of the cloud service resources; acquiring use cost attribution information configured for cloud service resources, and creating cost tag information for a corresponding node according to the use cost attribution information; and determining cost attribution information of the cloud service resources represented by the nodes in the equipment tree according to the parent-child relationship among the nodes in the equipment tree and the cost tag information.
According to a second aspect of the present disclosure, there is provided an apparatus for determining cost attribution of cloud service resources, the apparatus comprising: a first acquisition unit configured to acquire usage right attribution information of cloud service resources; the device comprises a building unit, a configuration unit and a processing unit, wherein the building unit is configured to build a device tree according to usage authority attribution information of the cloud service resources, the usage authority attribution information comprises information of at least one usage authority attribution party, the device tree comprises nodes representing the cloud service resources or the usage authority attribution parties of the cloud service resources, and parent-child relationships among the nodes in the device tree represent at least one of the following: attribution relation between the cloud service resources corresponding to the nodes and the use authority attribution parties of the cloud service resources and attribution relation between the use authority attribution parties of the cloud service resources; a second obtaining unit configured to obtain usage cost attribution information configured for the cloud service resource, and create cost tag information for a corresponding node according to the usage cost attribution information;
the determining unit is configured to determine cost attribution information of the cloud service resources represented by the nodes in the equipment tree according to the parent-child relationship among the nodes in the equipment tree and the cost tag information.
According to a third aspect of the present disclosure, an embodiment of the present disclosure provides an electronic device, including: one or more processors: a storage device to store one or more programs that, when executed by one or more processors, cause the one or more processors to implement the method for determining cost attribution of cloud service resources as provided by the first aspect.
According to a fourth aspect of the present disclosure, embodiments of the present disclosure provide a computer readable storage medium having a computer program stored thereon, where the program, when executed by a processor, implements the method for determining cost attribution of cloud service resources provided by the first aspect.
According to the method and the device for determining the cost attribution of the cloud service resources, the cloud service resource equipment tree and the cost label information are constructed, the cost attribution of the cloud service resources is determined according to the parent-child relationship among the nodes in the equipment tree and the cost label information, and the cost attribution of the cloud service resources can be accurately determined while the information maintenance cost is reduced.
According to the technology of the application, the problems that the cost attribution of the cloud service resources cannot be accurately determined and the cost attribution information maintenance cost of the cloud service resources is high are solved.
It should be understood that the statements in this section are not intended to identify key or critical features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be considered limiting of the present application. Wherein:
FIG. 1 is an exemplary system architecture diagram to which embodiments of the present application may be applied;
FIG. 2 is a flow diagram of one embodiment of a method for determining cost attribution of cloud service resources according to the present application;
FIG. 3 is a flow diagram of another embodiment of a method for determining cost attribution of cloud service resources according to the present application;
FIG. 4 is a schematic diagram of a device tree in another embodiment of a method for determining cost attribution of cloud service resources according to the application;
FIG. 5 is a schematic block diagram illustrating one embodiment of an apparatus for determining cost attribution of cloud service resources according to the present application;
fig. 6 is a block diagram of an electronic device used to implement a method for determining cost attribution of cloud service resources according to an embodiment of the present application.
Detailed Description
The following description of the exemplary embodiments of the present application, taken in conjunction with the accompanying drawings, includes various details of the embodiments of the application for the understanding of the same, which are to be considered exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1 illustrates an exemplary system architecture 100 to which embodiments of the present method for determining cost attribution of cloud service resources or an apparatus for determining cost attribution of cloud service resources may be applied.
As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, and 103, a network 104, and a cloud server 105, where the cloud server 105 includes a server cluster 106, and a server 107, a server 108, and a server 109 that form the server cluster 106. Network 104 is a medium used to provide communication links between terminal devices 101, 102, 103 and cloud server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
A user may use terminal devices 101, 102, 103 to interact with server cluster 106 of cloud server 105 over network 104 to receive or send messages, etc. Various client applications, such as a video playing application, a searching application, a shopping application, a finance application, etc., may be installed on the terminal devices 101, 102, 103. Application developers of applications installed in the terminal devices 101, 102, and 103 may use the cloud service provided by the cloud service end 105 to provide corresponding services to users of the terminal devices 101, 102, and 103 by using resources of the cloud service end.
The cloud service end 105 may be an operator of a cloud service, and may deploy cloud service resources to provide services such as computing, storage, and the like for a user. Cloud service resources may be deployed in different geographic locations, for example, physical servers may be deployed in multiple geographic areas to quickly respond to demands of the corresponding geographic areas. The server cluster 106 of the cloud service 105 may provide cloud service resources for different products or product lines of multiple users. Cloud service users can obtain the usage rights of the server cluster 106 or some of the physical machine resources (such as the servers 107, 108, 109) through transaction with the operator of the cloud service, or obtain the usage rights of the virtual resources (such as virtual machines, IP addresses, network segments, etc.) provided by the servers to support the operation of the business system thereof.
It should be noted that the method for determining cost attribution of cloud service resources provided by the embodiment of the present disclosure may be executed by the servers 107, 108, and 109 in the cloud service end 105, and accordingly, the apparatus for determining cost attribution of cloud service resources may be disposed in the servers 107, 108, and 109 in the cloud service end 105.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
With continued reference to fig. 2, a flow 200 of one embodiment of a method for determining cost attribution of cloud service resources is shown, in accordance with the present disclosure. A method for determining cost attribution of cloud service resources, comprising the steps of:
step 201, obtaining the usage right attribution information of the cloud service resource.
In this embodiment, an executing subject (e.g., a server shown in fig. 1) of the method for determining attribution of the cost of the cloud service resource may acquire the usage right information of the cloud service resource by reading the local storage information or reading the cloud service resource storage information. For example, the server can communicate with the terminal device, and obtain the use permission information of the cloud service resources input by the operation and maintenance personnel through the terminal device; the server can directly read the use authority attribution information of the cloud service resources prestored in the local machine; the server can also access the local information of the cloud service resources in a wired or wireless mode, and the use authority information of the cloud service resources is obtained by reading the basic information, which is locally stored in the cloud service resources and used for recording the cloud service resources.
In this embodiment, the cloud service resource refers to a resource such as a device or a virtual resource that provides cloud service, which provides support for cloud service products/functions, such as a memory, a server, internet traffic, a storage space, and the like; the usage right attribution information refers to information of an attribution party including a usage right of the cloud service resource, for example, specific services provided by the cloud service resource, a machine room, a platform or a mechanism where the cloud service resource is placed, a cluster formed by a plurality of cloud service resources, or a specific product or a product line to which the cloud service resource is applied.
Step 202, establishing a device tree according to the usage authority attribution information of the cloud service resources.
The usage authority attribution information comprises information of at least one usage authority attribution party, the equipment tree comprises nodes representing cloud service resources or the usage authority attribution party of the cloud service resources, and the parent-child relationship among the nodes in the equipment tree represents at least one of the following items: and the attribution relationship between the cloud service resources corresponding to the nodes and the usage authority attribution parties of the cloud service resources and the attribution relationship between the usage authority attribution parties of the cloud service resources.
In this embodiment, the device tree is established according to the usage right attribution information of the cloud service resource. A device tree refers to a multi-branch tree that includes branches and nodes, and the nodes of the device tree may be used to characterize cloud service resources, for example, one node of the device tree may represent a server or a virtual machine that provides storage or computing services; the node of the device tree may also be used to represent a usage right attribution party of the cloud service resource, where the usage right attribution party may be a user entity such as an individual, a company, or the like, may also be an abstract entity object having a service resource scheduling attribute, such as a product line, a product, a service system, or a service supporting a certain function of the product, or may also be a service entity having a physical relationship, such as a geographical location, with the cloud service resource, such as a machine room, a server cluster, or the like. The parent-child relationship between the nodes in the device tree of the multi-branch tree structure may be used to represent a relationship between usage rights attributions of the cloud service resources corresponding to the nodes, and the parent-child relationship between the nodes in the device tree of the multi-branch tree structure may also be used to represent a relationship between the cloud service resources corresponding to the nodes and the usage rights attributions of the cloud service resources, for example, a node a represents a video product line a, a child node B of the node a represents a data processing server cluster B, a child node m under the node B represents a data processing server m, and a child node n under the node B represents a data processing server n, so the parent-child relationship between the node a and the node B is used to represent that usage rights of the data processing server cluster B belong to the video product line a, and the parent-child relationship between the node B and the node m/n represents that the usage rights of the data processing server m/n belong to the data processing server cluster B.
Step 203, obtaining the usage cost attribution information configured for the cloud service resources, and creating cost label information for the corresponding node according to the usage cost attribution information.
In this embodiment, the usage cost attribution information configured for the cloud service resource may be obtained. The cost attribution information can be determined according to a cost calculation mode configured by the cloud service provider, and can follow the cost calculation mode agreement between the cloud service provider and the cloud service resource user. After the executing entity creates the device tree, the usage cost attribution information may be associated with a corresponding node or node identifier in the device tree to create cost tag information for the node.
Specifically, the usage cost attribution information of the cloud service resources and the node identification information representing the cloud service resources may be in one-to-one correspondence in a list manner, and the storage unit of the node identification information representing the cloud service resources and the storage unit of the usage cost information of the cloud service resources may be indexed by using a pointer in a pointer storage manner.
The cost tag information may include all contents of the corresponding usage cost attribution information, a summary/key content of the corresponding usage cost attribution information, or an index/traversal identification of the corresponding usage cost attribution information; the usage cost attribution information is information of an attribution calculation rule or a usage cost attribution party in which the usage cost of the cloud service resource is recorded. For example, the attribution calculation rule of the usage cost of the cloud service resource or the information of the attribution party of the usage cost may be that the usage cost of the current cloud service resource is attributed to the product line a, 30% of the usage cost of the current cloud service resource is attributed to the product M, 70% of the usage cost of the current cloud service resource is attributed to the product N, the usage cost of the current cloud service resource is attributed to the storage server room P, the usage cost of the current cloud service resource is attributed to the company Q within a specific time, and the like.
And 204, determining cost attribution information of the cloud service resources represented by the nodes in the equipment tree according to the parent-child relationship among the nodes in the equipment tree and the cost tag information.
In this embodiment, the cost attribution information of the cloud service resources represented by the nodes of the equipment tree is determined according to the parent-child relationship between the nodes of the equipment tree and the cost tag information. The cost attribution information of the cloud service resources refers to a cost undertaking party of the cloud service resources. Specifically, when a node in the device tree has cost tag information, determining cost attribution information of the cloud service resource represented by the node according to the cost tag information corresponding to the node; when the nodes in the equipment tree do not have the cost tag information, determining a cloud service resource use authority attribution represented by the nodes according to the parent-child relationship among the nodes in the equipment tree, and further determining a cost attribution or a cost undertaking party according to the use authority attribution of the cloud service resources.
According to the method for determining the cost attribution of the cloud service resources, the cloud service resource equipment tree and the cost tag information are constructed, the cost attribution of the cloud service resources is determined according to the parent-child relationship among the nodes in the equipment tree and the cost tag information, and the cost attribution of the cloud service resources can be accurately determined while the information maintenance cost is reduced. In addition, the embodiment can support the accurate management of the cloud service resource cost under the condition that the attribution relationship of the cloud service resource usage authority is complex.
With further reference to fig. 3, a flow 300 of yet another embodiment of a method for determining cost attribution of cloud service resources is illustrated. The process 300 of the method for determining cost attribution of cloud service resources comprises the following steps:
step 301, obtaining usage right attribution information of cloud service resources.
In this embodiment, the server may obtain the usage right information of the cloud service resource by reading the local storage information or reading the cloud service resource storage information. The use authority attribution information comprises step-by-step attribution relation information of at least two use authority attributions.
Step 302, establishing a device tree according to the usage authority attribution information of the cloud service resources.
In this embodiment, an equipment tree is established according to the usage authority attribution information of the cloud service resource, a terminal child node of the equipment tree represents the cloud service resource, and a parent-child relationship between two non-terminal child nodes of the equipment tree represents the step-by-step attribution relationship information of the corresponding two-stage usage authority attribution.
Fig. 4 is a schematic structural diagram showing an example of the device tree of the present embodiment. In the example shown in fig. 4, the device tree includes nodes that characterize the cloud service resource usage rights owner: a company, a product line a, a product line B, a product A1, a product A2, a product B1, a cluster A1_ C1, a cluster A2_ C2, a room A1_ C1_ l1, a service A2_ C1_ S1, a service A2_ C2_ S1, a service B1_ S1, a service A1_ C1_ l1_ S2, and nodes for characterizing the following cloud service resources: server 1, server 2, server 3, server 4, server 5.
As shown in fig. 4, taking the server 1 as an example, the usage rights thereof are sequentially assigned to the service A1_ C1_ l1_ S1, the machine room A1_ C1_ l1, the cluster A1_ C1, the product A1, the product line a, and the company X. The machine room A1_ C1_ l1, the cluster A1_ C1, the product A1, the product line A and the company X have a progressive attribution relationship in sequence.
In this embodiment, the membership between the usage authority attributions of the cloud service resources is represented by using the parent-child relationship between the nodes in the equipment tree, so that the membership between the usage authority attributions of the cloud service resources at each level can be accurately represented, the membership of the cloud service resources can be further refined, the cost attribution of the cloud service resources can be managed more finely, and the accuracy of determining the cost attribution of the cloud service resources is further improved.
Optionally, the cloud service resource includes a cloud server, and the at least two usage right attributions include: the server cluster to which the cloud server belongs and cloud service products served by the server cluster.
In this embodiment, the cloud service resource may be a cloud server, such as a storage server providing cloud storage services or a computing server providing computing services. The use authority attribution of the cloud service resources can be a server cluster formed by a plurality of cloud servers together, or a cloud service product formed by a plurality of server clusters. The cloud service product, the server cluster and the servers are set as nodes of the equipment tree, cost accounting of the cloud service product can be facilitated, and asset inventory of the server cluster is facilitated.
Step 303, obtaining usage cost attribution information configured for the cloud service resources, and creating cost tag information for the corresponding node according to the usage cost attribution information.
And step 304, determining cost attribution information of the cloud service resources represented by the nodes in the equipment tree according to the parent-child relationship among the nodes in the equipment tree and the cost tag information.
Step 303 and step 304 of this embodiment are respectively consistent with step 203 and step 204 of the foregoing embodiment, and specific implementation manners of step 303 and step 304 may refer to descriptions of corresponding steps in the foregoing embodiment, which is not described herein again.
In some optional implementation manners of the embodiments described above in conjunction with fig. 2 and fig. 3, determining, according to the parent-child relationship between the nodes in the device tree and the cost tag information, the cost attribution information of the cloud service resource represented by the nodes in the device tree may further be implemented by: when the target node corresponding to the cloud service resource has cost label information in at least two ancestor nodes in the equipment tree, determining cost attribution information of the cloud service resource corresponding to the target node according to the cost label information of the most tail ancestor node of the target node.
In this embodiment, when a target node corresponding to a cloud service resource has cost tag information in two or more ancestor nodes in an equipment tree, the cost attribution information of the cloud service resource corresponding to the target node is determined according to the cost tag information of the endmost ancestor node of the target node, that is, in the equipment tree, the priority of the cost tag information of a child node is higher than that of the cost tag information of a parent node. The priority of the cost label information of the preset child node and the priority of the cost label information of the father node can be used for quickly judging the cost label information to be adopted when the cost label information between the nodes is contradictory, so that the cost accounting efficiency is improved, and the priority of the cost label information of the preset child node is higher than that of the cost label information of the father node, so that the use cost attribution or the calculation rule of the cloud service resource can be changed by changing the cost label information corresponding to fewer nodes when the cost attribution of the cloud service resource is changed, so that the cost information maintenance efficiency is improved.
For example, in the device tree example shown in fig. 4, the parent node of the node representing server 1 is configured with cost label information of "this node service is provided for product A2 to use, and the server cost is borne by product A2", then the cost of server 1 is calculated according to the rule specified by the cost label information.
In some optional implementation manners of the embodiments described above in conjunction with fig. 2 and fig. 3, according to the parent-child relationship between the nodes in the device tree and the cost tag information, determining the cost attribution information of the cloud service resource represented by the nodes in the device tree may also be implemented by: when all ancestor nodes of all target nodes corresponding to the cloud service resources in the equipment tree do not have cost label information, determining that the usage authority attribution party corresponding to the ancestor nodes of all target nodes corresponding to the cloud server resources is the cost attribution party of the cloud service resources.
For example, in the device tree example shown in fig. 4, each ancestor node of the node representing the server 2 does not have cost label information, and the usage right of the server 2 is sequentially assigned to the service A1_ C1_ l1_ S1, the machine room A1_ C1_ l1, the cluster A1_ C1, the product A1, the product line a, and the company, so that the cost attribution of the server is consistent with the usage right attribution thereof, and the specific calculation rule may be: the cost of the server 2 is gradually assigned to a service A1_ C1_ l1_ S1, a machine room A1_ C1_ l1, a cluster A1_ C1, a product A1, a product line A and a company.
In this embodiment, when each ancestor node of each target node corresponding to the cloud service resource in the device tree does not have the cost tag information, it is determined that the usage right attribution party corresponding to the ancestor node of each target node corresponding to the cloud server resource is the cost attribution party/cost undertaking party of the cloud service resource. By adopting the method, when the ancestor nodes of the nodes corresponding to the cloud service resources do not have the cost label information, the cost attribution of the cloud service resources can be quickly determined according to the usage authority attribution, and the usage cost of the cloud service resources can be reasonably determined.
In some optional implementations of the embodiments described above in connection with fig. 2 and 3, the method for determining cost attribution of cloud service resources further comprises: and when the use authority attribution party of the cloud service resources is changed, mounting the node representing the changed use authority attribution party of the cloud service resources under the node representing the changed use authority attribution party in the equipment tree.
In this embodiment, when the usage authority attribution of the cloud service resource is changed, the usage authority attribution of the cloud service resource is represented by using the node corresponding to the updated usage authority attribution of the cloud service resource, that is, the ancestor node mounted in the device tree of the node corresponding to the cloud service resource is changed. By adopting the method, the use authority attribution of the cloud service resource can be updated conveniently and rapidly, and the information maintenance efficiency is improved.
With further reference to fig. 5, as an implementation of the methods shown in the above-mentioned figures, the present disclosure provides an embodiment of an apparatus for determining cost attribution of cloud service resources, where the embodiment of the apparatus corresponds to the embodiment of the method shown in fig. 2, and the apparatus may be specifically applied to various electronic devices.
As shown in fig. 5, the apparatus 500 for determining cost attribution of cloud service resources according to the present embodiment includes: a first acquisition unit 501, a construction unit 502, a second acquisition unit 502, and a determination unit 503. The first obtaining unit 501 is configured to obtain usage right attribution information of cloud service resources; a building unit 502 configured to build a device tree according to usage authority attribution information of the cloud service resource, wherein the usage authority attribution information includes information of at least one usage authority attribution, the device tree includes nodes representing the cloud service resource or the usage authority attribution of the cloud service resource, and a parent-child relationship between the nodes in the device tree represents at least one of: attribution relations between the cloud service resources corresponding to the nodes and the use authority attributions of the cloud service resources and attribution relations between the use authority attributions of the cloud service resources; a second obtaining unit 503, configured to obtain usage cost attribution information configured for the cloud service resource, and create cost tag information for a corresponding node according to the usage cost attribution information; a determining unit 504 configured to determine cost attribution information of the cloud service resources represented by the nodes in the device tree according to the parent-child relationship between the nodes in the device tree and the cost tag information.
In some embodiments, the usage right attribution information further comprises stage-by-stage attribution relationship information of at least two usage right attributions; and the tail end child node of the equipment tree represents cloud service resources, and the parent-child relationship between two non-tail end child nodes of the equipment tree represents the step-by-step attribution relationship information of the corresponding two-stage usage authority attribution party.
In some embodiments, the cloud service resource comprises a cloud server, and the at least two usage rights attributors comprise: the server cluster to which the cloud server belongs and cloud service products served by the server cluster.
In some embodiments, determining unit 504 includes: the first determining module is configured to determine cost attribution information of the cloud service resource corresponding to the target node according to the cost label information of the tail-end ancestor node of the target node when the target node corresponding to the cloud service resource has cost label information in at least two ancestor nodes in the device tree.
In some embodiments, the determining unit 504 includes: and the second determining module is configured to determine that the usage right attribution party corresponding to the ancestor node of each target node corresponding to the cloud server resource is the cost attribution party of the cloud service resource when each ancestor node of each target node corresponding to the cloud service resource in the device tree does not have the cost label information.
In some embodiments, the apparatus 500 further comprises: and the updating unit is configured to mount the node representing the cloud service resource changed by the use authority attribution under the node representing the changed use authority attribution in the equipment tree when the use authority attribution of the cloud service resource is changed.
The units in the apparatus 500 described above correspond to the steps in the method described with reference to fig. 2 and 3. Thus, the operations, features and technical effects achieved by the method for determining cost attribution of cloud service resources described above are also applicable to the apparatus 500 and the units included therein, and are not described herein again.
According to an embodiment of the present application, an electronic device and a readable storage medium are also provided.
As shown in fig. 6, a block diagram of an electronic device 600 for determining cost attribution of cloud service resources according to an embodiment of the application is provided. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the present application that are described and/or claimed herein.
As shown in fig. 6, the electronic apparatus includes: one or more processors 601, memory 602, and interfaces for connecting the various components, including a high-speed interface and a low-speed interface. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions for execution within the electronic device, including instructions stored in or on the memory to display graphical information of a GUI on an external input/output apparatus (such as a display device coupled to the interface). In other embodiments, multiple processors and/or multiple buses may be used, along with multiple memories and multiple memories, if desired. Also, multiple electronic devices may be connected, with each device providing some of the necessary operations (e.g., as an array of servers, a group of blade servers, or a multi-processor system). One processor 601 is illustrated in fig. 6.
The memory 602 is a non-transitory computer readable storage medium as provided herein. Wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the method for determining cost attribution of cloud service resources provided herein. A non-transitory computer readable storage medium of the present application stores computer instructions for causing a computer to perform the methods for determining cost attribution of cloud service resources provided herein.
The memory 602 is used as a non-transitory computer readable storage medium and may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the method for determining cost attribution of cloud service resources in the embodiment of the present application (for example, the first obtaining unit 501, the building unit 502, the second obtaining unit 503, and the determining unit 504 shown in fig. 5). The processor 601 executes various functional applications of the server and data processing by running non-transitory software programs, instructions and modules stored in the memory 602, that is, implements the method for determining cost attribution of cloud service resources in the above method embodiments.
The memory 602 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created from use of the electronic device for determining cost attribution of the cloud service resource, and the like. Further, the memory 602 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 602 optionally includes memory remotely located from processor 601, which may be connected over a network to an electronic device for determining cost attribution of cloud service resources. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The electronic device of the method for determining cost attribution of cloud service resources may further comprise: an input device 603, an output device 604, and a bus 605. The processor 601, memory 602, input device 603, and output device 604 may be connected by a bus 605 or otherwise, as exemplified by the connection via bus 605 in fig. 6.
The input device 603 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device for determining cost attribution of cloud service resources, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, a pointing stick, one or more mouse buttons, a track ball, a joystick, or the like. The output devices 504 may include a display device, auxiliary lighting devices (e.g., LEDs), and tactile feedback devices (e.g., vibrating motors), among others. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device can be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASICs (application specific integrated circuits), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
These computer programs (also known as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented using high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
It should be understood that various forms of the flows shown above, reordering, adding or deleting steps, may be used. For example, the steps described in the present application may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present application can be achieved, and the present invention is not limited herein.
The above-described embodiments are not intended to limit the scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A method for determining cost attribution of cloud service resources, comprising:
acquiring the use authority attribution information of the cloud service resources;
establishing an equipment tree according to the usage authority attribution information of the cloud service resources, wherein the usage authority attribution information comprises information of at least one usage authority attribution party, the equipment tree comprises nodes representing the cloud service resources or the usage authority attribution party of the cloud service resources, and the parent-child relationship among the nodes in the equipment tree represents at least one of the following: attribution relations between the cloud service resources corresponding to the nodes and the use authority attributions of the cloud service resources and attribution relations between the use authority attributions of the cloud service resources;
acquiring use cost attribution information configured for the cloud service resources, and creating cost tag information for a corresponding node according to the use cost attribution information, wherein the cost tag information comprises corresponding information between the use cost attribution information and a node identifier, and the cost tag information comprises the use cost attribution information and/or an index of the use cost attribution information;
determining cost attribution information of cloud service resources represented by the nodes in the equipment tree according to the parent-child relationship among the nodes in the equipment tree and the cost tag information, wherein the cost attribution information comprises the following steps: when a target node corresponding to the cloud service resource has cost label information in at least two ancestor nodes in the equipment tree, determining cost attribution information of the cloud service resource corresponding to the target node according to the cost label information of the ancestor node at the tail end of the target node; when all ancestor nodes of all target nodes corresponding to the cloud service resources in the equipment tree do not have cost label information, determining that a use authority attribution party corresponding to the ancestor nodes of all target nodes corresponding to the cloud service resources is a cost attribution party of the cloud service resources.
2. The method of claim 1, wherein the usage right attribution information further comprises progressive attribution relationship information of at least two usage right attributions; and
and the terminal child node of the equipment tree represents the cloud service resource, and the parent-child relationship between two non-terminal child nodes of the equipment tree represents the step-by-step attribution relationship information of the corresponding two-stage usage authority attribution party.
3. The method of claim 2, wherein the cloud service resources comprise cloud servers, and the at least two usage rights attributors comprise: the server cluster to which the cloud server belongs and cloud service products served by the server cluster.
4. The method according to one of claims 1-3, wherein the method comprises:
and when the use authority attribution party of the cloud service resources is changed, mounting the node representing the cloud service resources with the changed use authority attribution party under the node representing the changed use authority attribution party in the equipment tree.
5. An apparatus for determining cost attribution of cloud service resources, comprising:
a first acquisition unit configured to acquire usage right attribution information of cloud service resources;
a building unit configured to build a device tree according to usage right attribution information of the cloud service resource, wherein the usage right attribution information includes information of at least one usage right attribution party, the device tree includes nodes representing cloud service resources or usage right attribution parties of the cloud service resources, and a parent-child relationship between the nodes in the device tree represents at least one of: attribution relations between the cloud service resources corresponding to the nodes and the use authority attributions of the cloud service resources and attribution relations between the use authority attributions of the cloud service resources;
a second obtaining unit, configured to obtain usage cost attribution information configured for the cloud service resource, and create cost tag information for a corresponding node according to the usage cost attribution information, wherein the cost tag information includes correspondence information between usage cost attribution information and a node identifier, and the cost tag information includes usage cost attribution information and/or an index of the usage cost attribution information;
a determining unit, configured to determine cost attribution information of cloud service resources represented by nodes in the device tree according to parent-child relationships between the nodes in the device tree and the cost tag information, where the determining unit includes: the first determining module is configured to determine cost attribution information of the cloud service resource corresponding to the target node according to cost label information of an ancestor node at the tail end of the target node when the target node corresponding to the cloud service resource has cost label information at least at two ancestor nodes in the device tree, and the priority of the cost label information of a child node is higher than that of a parent node; a second determining module, configured to determine, when each target node corresponding to the cloud service resource does not have cost tag information in each ancestor node in the device tree, that a usage right attribution corresponding to an ancestor node of each target node corresponding to the cloud service resource is a cost attribution of the cloud service resource.
6. The apparatus of claim 5, wherein the usage right attribution information further comprises progressive attribution relationship information of at least two usage right attributions; and
and the terminal child node of the equipment tree represents the cloud service resource, and the parent-child relationship between two non-terminal child nodes of the equipment tree represents the step-by-step attribution relationship information of the corresponding two-stage usage authority attribution party.
7. The apparatus of claim 6, wherein the cloud service resources comprise cloud servers, the at least two usage rights attributors comprising: a server cluster to which the cloud server belongs and cloud service products served by the server cluster.
8. The apparatus according to one of claims 5-7, wherein the apparatus comprises:
and the updating unit is configured to mount the node representing the cloud service resource with the changed usage authority attribution under the node representing the changed usage authority attribution in the equipment tree when the usage authority attribution of the cloud service resource is changed.
9. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-4.
10. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-4.
CN202010536370.2A 2020-06-12 2020-06-12 Method and device for determining cost attribution of cloud service resources Active CN111698326B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010536370.2A CN111698326B (en) 2020-06-12 2020-06-12 Method and device for determining cost attribution of cloud service resources

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010536370.2A CN111698326B (en) 2020-06-12 2020-06-12 Method and device for determining cost attribution of cloud service resources

Publications (2)

Publication Number Publication Date
CN111698326A CN111698326A (en) 2020-09-22
CN111698326B true CN111698326B (en) 2023-01-31

Family

ID=72480711

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010536370.2A Active CN111698326B (en) 2020-06-12 2020-06-12 Method and device for determining cost attribution of cloud service resources

Country Status (1)

Country Link
CN (1) CN111698326B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112668019B (en) * 2020-12-24 2023-09-26 湖北华中电力科技开发有限责任公司 Authority configuration method, authority configuration device, computer equipment and storage medium
CN112733162A (en) * 2020-12-31 2021-04-30 北京乐学帮网络技术有限公司 Resource allocation method, device, computer equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102196049A (en) * 2011-05-31 2011-09-21 北京大学 Method suitable for secure migration of data in storage cloud
CN102903029A (en) * 2012-09-27 2013-01-30 广东亿迅科技有限公司 Domain-partitioned authorization method for cloud computing resources
CN104702655A (en) * 2014-03-21 2015-06-10 杭州海康威视系统技术有限公司 Cloud storage resource distribution method and system
CN108229206A (en) * 2018-01-09 2018-06-29 上海中畅数据技术有限公司 A kind of right management method and system based on tag library
CN109151016A (en) * 2018-08-10 2019-01-04 广东神马搜索科技有限公司 Flow forwarding method and device, calculate equipment and storage medium at service system
US10182104B1 (en) * 2014-12-08 2019-01-15 Amazon Technologies, Inc. Automatic propagation of resource attributes in a provider network according to propagation criteria
CN110442349A (en) * 2019-08-01 2019-11-12 北京百度网讯科技有限公司 Method and apparatus for servicing dilatation
CN111181915A (en) * 2019-10-28 2020-05-19 腾讯科技(深圳)有限公司 Configuration method and device of sharing permission, storage medium and electronic device

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104753968B (en) * 2013-12-25 2018-01-09 中国电信股份有限公司 Cloud computing cross-region multiple data centers and its schedule management method
US9712397B2 (en) * 2014-10-03 2017-07-18 Jeremy Lynn Littlejohn Method for gathering traffic analytics data about a communication network
CN104811448A (en) * 2015-04-21 2015-07-29 成都汇智远景科技有限公司 Safe data storage method
EP3185470B1 (en) * 2015-12-22 2020-06-03 Alcatel Lucent A network node for network based multicast replication
CN107347033A (en) * 2016-05-05 2017-11-14 中兴通讯股份有限公司 The method and device of quick protective switch is realized in a kind of SDN frameworks
CN107343045B (en) * 2017-07-04 2021-03-19 北京百度网讯科技有限公司 Cloud computing system and cloud computing method and device for controlling server
CN110858211B (en) * 2018-08-24 2022-12-13 华为云计算技术有限公司 Data storage method, device and system and storage medium
CN109819061B (en) * 2018-09-11 2021-09-21 华为技术有限公司 Method, device and equipment for processing cloud service in cloud system
CN109960695B (en) * 2019-04-09 2020-03-13 苏州浪潮智能科技有限公司 Management method and device for database in cloud computing system
CN110298381B (en) * 2019-05-24 2022-09-20 中山大学 Cloud security service function tree network intrusion detection system
CN110837417A (en) * 2019-09-24 2020-02-25 华为技术有限公司 Recommendation method and device for cloud system resource set and computing device cluster
CN110855473B (en) * 2019-10-16 2022-11-18 平安科技(深圳)有限公司 Monitoring method, device, server and storage medium
CN110865817B (en) * 2019-11-01 2024-04-05 湖北省楚天云有限公司 Cloud computing platform resource metering method and system
CN110838944B (en) * 2019-11-15 2022-07-05 浪潮云信息技术股份公司 Method for realizing cloud center tenant dimension topological graph
CN111147557A (en) * 2019-12-16 2020-05-12 杭州数梦工场科技有限公司 Multi-cloud resource management method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102196049A (en) * 2011-05-31 2011-09-21 北京大学 Method suitable for secure migration of data in storage cloud
CN102903029A (en) * 2012-09-27 2013-01-30 广东亿迅科技有限公司 Domain-partitioned authorization method for cloud computing resources
CN104702655A (en) * 2014-03-21 2015-06-10 杭州海康威视系统技术有限公司 Cloud storage resource distribution method and system
US10182104B1 (en) * 2014-12-08 2019-01-15 Amazon Technologies, Inc. Automatic propagation of resource attributes in a provider network according to propagation criteria
CN108229206A (en) * 2018-01-09 2018-06-29 上海中畅数据技术有限公司 A kind of right management method and system based on tag library
CN109151016A (en) * 2018-08-10 2019-01-04 广东神马搜索科技有限公司 Flow forwarding method and device, calculate equipment and storage medium at service system
CN110442349A (en) * 2019-08-01 2019-11-12 北京百度网讯科技有限公司 Method and apparatus for servicing dilatation
CN111181915A (en) * 2019-10-28 2020-05-19 腾讯科技(深圳)有限公司 Configuration method and device of sharing permission, storage medium and electronic device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
遗传资源样本信息标识符的可溯源研究;曹祺等;《中国科技资源导刊》;20170728(第04期);全文 *

Also Published As

Publication number Publication date
CN111698326A (en) 2020-09-22

Similar Documents

Publication Publication Date Title
CN111190888A (en) Method and device for managing graph database cluster
CN113051446A (en) Topological relation query method, device, electronic equipment and medium
CN111698326B (en) Method and device for determining cost attribution of cloud service resources
CN110619002A (en) Data processing method, device and storage medium
CN112269706B (en) Interface parameter verification method, device, electronic equipment and computer readable medium
CN111913998A (en) Data processing method, device, equipment and storage medium
CN113361838A (en) Business wind control method and device, electronic equipment and storage medium
US11178197B2 (en) Idempotent processing of data streams
CN112015468A (en) Interface document processing method and device, electronic equipment and storage medium
JP2010128597A (en) Information processor and method of operating the same
CN112817562A (en) Service processing method and device
CN115222176A (en) Risk control method, apparatus, device and medium
CN110750419B (en) Offline task processing method and device, electronic equipment and storage medium
CN112084000A (en) Container cluster testing method and device
CN114661274A (en) Method and device for generating intelligent contract
US10440139B2 (en) Process broker for executing web services in a system of engagement and system of record environments
US20210349802A1 (en) Multi-layered computing system attribute dependency
CN113760695A (en) Method and device for positioning problem code
CN111985760A (en) Data content evaluation method and device, electronic equipment and storage medium
CN113992664A (en) Cluster communication method, related device and storage medium
US10235395B2 (en) Keyword identification for an enterprise resource planning manager
CN112422668B (en) Storage method and device for network community, electronic equipment and readable medium
CN112507100B (en) Update processing method and device of question-answering system
US20240070574A1 (en) Optimal selection of a service request response team
CN111833024A (en) Method, apparatus, device and storage medium for outputting information

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant