Resource management method and system
1. A resource management method of an enterprise internal cloud platform is characterized in that the enterprise internal cloud platform comprises virtual machine sets which correspond to departments of an enterprise one by one, each virtual machine set comprises at least one virtual machine, and the resource management method comprises the following steps:
acquiring the IT resource occupation amount and the matched resource occupation amount corresponding to each virtual machine of each virtual machine group corresponding to each department;
acquiring actual resource occupation amount corresponding to the virtual machine according to the IT resource occupation amount and the matched resource occupation amount corresponding to the virtual machine;
and acquiring the actual resource occupation amount corresponding to the virtual machine set according to the actual resource occupation amount corresponding to each virtual machine in the virtual machine set.
2. The resource management method of claim 1, wherein the IT resource occupancy corresponding to the virtual machine is obtained by:
acquiring the occupation amount of CPU and memory resources, the occupation amount of hard disk equipment resources and the occupation amount of bandwidth resources corresponding to the virtual machine;
and acquiring the IT resource occupation amount corresponding to the virtual machine according to the CPU and memory resource occupation amount, the hard disk device resource occupation amount and the bandwidth resource occupation amount corresponding to the virtual machine, wherein the IT resource occupation amount is the sum of the CPU and memory resource occupation amount, the hard disk device resource occupation amount and the bandwidth resource occupation amount.
3. The resource management method according to claim 1, wherein the supporting resource occupation amount corresponding to the virtual machine is obtained by:
acquiring the occupation amount of the rack resources, the occupation amount of the matched hardware equipment resources and the occupation amount of the software resources corresponding to the virtual machine;
and acquiring the occupation amount of the matched resources corresponding to the virtual machine according to the occupation amount of the rack resources, the occupation amount of the matched hardware equipment resources and the occupation amount of the software resources corresponding to the virtual machine, wherein the occupation amount of the matched resources is the sum of the occupation amount of the rack resources, the occupation amount of the matched hardware equipment resources and the occupation amount of the software resources.
4. The resource management method according to claim 2, wherein the CPU and memory resource occupation amount corresponding to the virtual machine is obtained by:
acquiring a basic resource configuration type of a basic resource corresponding to the virtual machine, wherein the basic resource comprises a CPU (central processing unit) and a memory resource;
acquiring the ratio of the actual basic resource allocation amount corresponding to the virtual machine to the unit basic resource allocation amount corresponding to the basic resource allocation type;
acquiring the service time corresponding to the virtual machine and the depreciation age of the basic resource corresponding to the basic resource configuration type;
acquiring a basic resource purchasing unit price corresponding to the basic resource configuration type;
calculating the use cost of the CPU and the memory resource corresponding to the virtual machine according to a preset basic resource use cost calculation model, wherein the preset basic resource use cost calculation model comprises the following steps:
wherein, CiA basic resource purchasing unit price N corresponding to the basic resource configuration typeZ1The depreciation age, n, of the basic resource corresponding to the basic resource configuration type1Is the ratio of the actual basic resource allocation quantity to the unit basic resource allocation quantity corresponding to the basic resource allocation type, NUFor the age of the virtual machine, Y1The use cost of the CPU and the memory resource corresponding to the virtual machine is calculated;
and acquiring the occupation amount of the CPU and the memory resource corresponding to the virtual machine according to the ratio of the CPU and memory resource use cost corresponding to the virtual machine to the preset total cost of the CPU and memory resource.
5. The resource management method according to claim 2, wherein the resource occupation amount of the hard disk device corresponding to the virtual machine is obtained by:
acquiring a unit hard disk capacity purchase price of the hard disk equipment corresponding to the virtual machine;
acquiring the actual hard disk capacity of the hard disk device corresponding to the virtual machine;
acquiring the service time corresponding to the virtual machine and the depreciation age of the hard disk equipment corresponding to the virtual machine;
calculating the use cost of the hard disk equipment corresponding to the virtual machine according to a preset hard disk equipment use cost calculation model, wherein the preset hard disk equipment use cost calculation model comprises the following steps:
wherein, CMPurchase price, N, of unit hard disk capacity of hard disk device corresponding to the virtual machineZ2For the depreciation age, n, of the hard disk device corresponding to the virtual machine2Is the actual hard disk capacity, N, of the hard disk device corresponding to the virtual machineUFor the age of the virtual machine, Y2The use cost of the hard disk equipment corresponding to the virtual machine is calculated;
and acquiring the resource occupation amount of the hard disk equipment corresponding to the virtual machine according to the ratio of the use cost of the hard disk equipment corresponding to the virtual machine to the total preset cost of the hard disk equipment.
6. The resource management method according to claim 2, wherein the bandwidth resource occupation amount corresponding to the virtual machine is obtained by:
acquiring a unit bandwidth purchase price of the bandwidth opened by the virtual machine;
acquiring the bandwidth opened by the virtual machine;
acquiring the service time corresponding to the virtual machine;
calculating the bandwidth use cost corresponding to the virtual machine according to a preset bandwidth use cost calculation model, wherein the preset bandwidth use cost calculation model comprises the following steps:
Y3=Cintek*Xj/1000*NU/12
wherein, CintelPer 1000 is the purchase price per bandwidth, XjBandwidth opened for the virtual machine, NUFor the age of the virtual machine, Y3The bandwidth use cost corresponding to the virtual machine;
and acquiring the occupation amount of the bandwidth resources corresponding to the virtual machine according to the ratio of the bandwidth use cost corresponding to the virtual machine to the preset total cost of the bandwidth resources.
7. The resource management method according to claim 3, wherein the rack resource occupation amount corresponding to the virtual machine is obtained by:
obtaining the lease cost of each frame corresponding to the cloud platform inside the enterprise;
acquiring the average number of servers borne by each rack corresponding to the cloud platform inside the enterprise;
acquiring the average number of virtual machines borne by each server;
calculating the use cost of the rack corresponding to the virtual machine according to a preset rack use cost calculation model, wherein the preset rack use cost calculation model comprises the following steps:
wherein, CELease fees, n, for each rack3Average number of servers carried per rack, n4Average number of virtual machines hosted for a server, NUFor the age of the virtual machine, Y4For the corresponding frame of the virtual machineThe cost of use;
and acquiring the occupation amount of the rack resources corresponding to the virtual machine according to the ratio of the use cost of the rack corresponding to the virtual machine to the total preset cost of the rack resources.
8. The resource management method according to claim 3, wherein the resource occupation amount of the supporting hardware device corresponding to the virtual machine is obtained by:
acquiring purchase cost of each matched hardware device for the cloud platform in the enterprise;
acquiring the total number of virtual machines corresponding to the cloud platform in the enterprise;
acquiring the service time corresponding to the virtual machine and the average depreciation life of each matched hardware device;
calculating the use cost of the matched hardware equipment corresponding to the virtual machine according to a preset use cost calculation model of the matched hardware equipment, wherein the preset use cost calculation model of the matched hardware equipment comprises the following steps:
wherein n is the number of purchased supporting hardware devices used for the enterprise internal cloud platform, CkPurchase cost for kth supporting hardware equipment, NZ5For the average depreciation life of the matched hardware equipment, N is the total number of the virtual machines of the cloud platform in the enterprise, and N isUFor the age of the virtual machine, Y5The use cost of the matched hardware equipment corresponding to the virtual machine is saved;
and acquiring the occupation amount of the resources of the matched hardware equipment corresponding to the virtual machine according to the ratio of the use cost of the matched hardware equipment corresponding to the virtual machine to the total preset cost of the resources of the matched hardware equipment.
9. The resource management method according to claim 3, wherein the software resource occupation amount corresponding to the virtual machine is obtained by:
acquiring the total cost of software resources corresponding to the cloud platform inside the enterprise;
acquiring the total number of virtual machines corresponding to the cloud platform in the enterprise;
acquiring the service time corresponding to the virtual machine and the depreciation life of the software resource corresponding to the cloud platform in the enterprise;
calculating the software use cost corresponding to the virtual machine according to a preset software use cost calculation model, wherein the preset software use cost calculation model comprises the following steps:
wherein, CRThe total cost, N, of the software resources corresponding to the cloud platform inside the enterprisez6The depreciation age, N, of the software corresponding to the cloud platform inside the enterpriseUN is the total number of the virtual machines of the cloud platform in the enterprise, and Y is the service time of the virtual machine6The software use cost corresponding to the virtual machine;
and acquiring the occupation amount of the software resources corresponding to the virtual machine according to the ratio of the software use cost corresponding to the virtual machine to the preset total cost of the software resources.
10. The resource management method of claim 1, wherein the actual resource occupancy corresponding to the virtual machine is the sum of the IT resource occupancy corresponding to the virtual machine and the supporting resource occupancy.
11. A resource management system for an intra-enterprise cloud platform, wherein the intra-enterprise cloud platform includes virtual machine groups corresponding to departments of an enterprise one to one, each of the virtual machine groups includes at least one virtual machine, and the system includes:
the acquisition module is configured to acquire an IT resource occupancy amount and a matching resource occupancy amount corresponding to each virtual machine for each virtual machine group corresponding to each department;
the virtual machine resource evaluation module is configured to acquire the actual resource occupation amount corresponding to the virtual machine according to the IT resource occupation amount and the matched resource occupation amount corresponding to the virtual machine;
and the department resource evaluation module is configured to acquire the actual resource occupation amount corresponding to the virtual machine group according to the actual resource occupation amount corresponding to each virtual machine in the virtual machine group.
Background
An internal cloud refers to a cloud resource for use within an enterprise. In the prior art, for an internal cloud, the situation of resource waste caused by excessive resource use often occurs due to the lack of scientific and objective resource use evaluation basis.
Therefore, a method capable of evaluating the use condition of the cloud resources of the internal cloud is needed.
Disclosure of Invention
The present disclosure is directed to at least one of the technical problems in the prior art, and provides a resource management method and system for an enterprise internal cloud platform.
According to an aspect of the present disclosure, an embodiment of the present disclosure provides a resource management method for an enterprise-wide cloud platform, where the enterprise-wide cloud platform includes virtual machine groups corresponding to departments of an enterprise one to one, and each virtual machine group includes at least one virtual machine, where the resource management method includes:
acquiring the IT resource occupation amount and the matched resource occupation amount corresponding to each virtual machine of each virtual machine group corresponding to each department;
acquiring actual resource occupation amount corresponding to the virtual machine according to the IT resource occupation amount and the matched resource occupation amount corresponding to the virtual machine;
and acquiring the actual resource occupation amount corresponding to the virtual machine set according to the actual resource occupation amount corresponding to each virtual machine in the virtual machine set.
In some embodiments, the IT resource occupancy corresponding to the virtual machine is obtained by:
acquiring the occupation amount of CPU and memory resources, the occupation amount of hard disk equipment resources and the occupation amount of bandwidth resources corresponding to the virtual machine;
and acquiring the IT resource occupation amount corresponding to the virtual machine according to the CPU and memory resource occupation amount, the hard disk device resource occupation amount and the bandwidth resource occupation amount corresponding to the virtual machine, wherein the IT resource occupation amount is the sum of the CPU and memory resource occupation amount, the hard disk device resource occupation amount and the bandwidth resource occupation amount.
In some embodiments, the supporting resource occupation amount corresponding to the virtual machine is obtained by:
acquiring the occupation amount of the rack resources, the occupation amount of the matched hardware equipment resources and the occupation amount of the software resources corresponding to the virtual machine;
and acquiring the occupation amount of the matched resources corresponding to the virtual machine according to the occupation amount of the rack resources, the occupation amount of the matched hardware equipment resources and the occupation amount of the software resources corresponding to the virtual machine, wherein the occupation amount of the matched resources is the sum of the occupation amount of the rack resources, the occupation amount of the matched hardware equipment resources and the occupation amount of the software resources.
In some embodiments, the CPU and memory resource occupation amounts corresponding to the virtual machine are obtained by:
acquiring a basic resource configuration type of a basic resource corresponding to the virtual machine, wherein the basic resource comprises a CPU (central processing unit) and a memory resource;
acquiring the ratio of the actual basic resource allocation amount corresponding to the virtual machine to the unit basic resource allocation amount corresponding to the basic resource allocation type;
acquiring the service time corresponding to the virtual machine and the depreciation age of the basic resource corresponding to the basic resource configuration type;
acquiring a basic resource purchasing unit price corresponding to the basic resource configuration type;
calculating the use cost of the CPU and the memory resource corresponding to the virtual machine according to a preset basic resource use cost calculation model, wherein the preset basic resource use cost calculation model comprises the following steps:
wherein, CiA basic resource purchasing unit price N corresponding to the basic resource configuration typeZ1The depreciation age, n, of the basic resource corresponding to the basic resource configuration type1Allocating amount for actual basic resourceA ratio of unit basic resource allocation amount corresponding to the basic resource allocation type, NUFor the age of the virtual machine, Y1The use cost of the CPU and the memory resource corresponding to the virtual machine is calculated;
and acquiring the occupation amount of the CPU and the memory resource corresponding to the virtual machine according to the ratio of the CPU and memory resource use cost corresponding to the virtual machine to the preset total cost of the CPU and memory resource.
In some embodiments, the resource occupation amount of the hard disk device corresponding to the virtual machine is obtained by:
acquiring a unit hard disk capacity purchase price of the hard disk equipment corresponding to the virtual machine;
acquiring the actual hard disk capacity of the hard disk device corresponding to the virtual machine;
acquiring the service time corresponding to the virtual machine and the depreciation age of the hard disk equipment corresponding to the virtual machine;
calculating the use cost of the hard disk equipment corresponding to the virtual machine according to a preset hard disk equipment use cost calculation model, wherein the preset hard disk equipment use cost calculation model comprises the following steps:
wherein, CMPurchase price, N, of unit hard disk capacity of hard disk device corresponding to the virtual machinez2For the depreciation age, n, of the hard disk device corresponding to the virtual machine2Is the actual hard disk capacity, N, of the hard disk device corresponding to the virtual machineUFor the age of the virtual machine, Y2The use cost of the hard disk equipment corresponding to the virtual machine is calculated;
and acquiring the resource occupation amount of the hard disk equipment corresponding to the virtual machine according to the ratio of the use cost of the hard disk equipment corresponding to the virtual machine to the total preset cost of the hard disk equipment.
In some embodiments, the bandwidth resource occupation amount corresponding to the virtual machine is obtained by:
acquiring a unit bandwidth purchase price of the bandwidth opened by the virtual machine;
acquiring the bandwidth opened by the virtual machine;
acquiring the service time corresponding to the virtual machine;
calculating the bandwidth use cost corresponding to the virtual machine according to a preset bandwidth use cost calculation model, wherein the preset bandwidth use cost calculation model comprises the following steps:
Y3=Cintel*Xj/1000*NU/12
wherein, CintelPer 1000 is the purchase price per bandwidth, XjBandwidth opened for the virtual machine, NUFor the age of the virtual machine, Y3The bandwidth use cost corresponding to the virtual machine;
and acquiring the occupation amount of the bandwidth resources corresponding to the virtual machine according to the ratio of the bandwidth use cost corresponding to the virtual machine to the preset total cost of the bandwidth resources.
In some embodiments, the rack resource occupation amount corresponding to the virtual machine is obtained by:
obtaining the lease cost of each frame corresponding to the cloud platform inside the enterprise;
acquiring the average number of servers borne by each rack corresponding to the cloud platform inside the enterprise;
acquiring the average number of virtual machines borne by each server;
calculating the use cost of the rack corresponding to the virtual machine according to a preset rack use cost calculation model, wherein the preset rack use cost calculation model comprises the following steps:
wherein, CELease fees, n, for each rack3Average number of servers carried per rack, n4Average number of virtual machines hosted for a server, NUFor the age of the virtual machine, Y4Is the corresponding station of the virtual machineThe use cost of the frame;
and acquiring the occupation amount of the rack resources corresponding to the virtual machine according to the ratio of the use cost of the rack corresponding to the virtual machine to the total preset cost of the rack resources.
In some embodiments, the resource occupation amount of the supporting hardware device corresponding to the virtual machine is obtained by:
acquiring purchase cost of each matched hardware device for the cloud platform in the enterprise;
acquiring the total number of virtual machines corresponding to the cloud platform in the enterprise;
acquiring the service time corresponding to the virtual machine and the average depreciation life of each matched hardware device;
calculating the use cost of the matched hardware equipment corresponding to the virtual machine according to a preset use cost calculation model of the matched hardware equipment, wherein the preset use cost calculation model of the matched hardware equipment comprises the following steps:
wherein n is the number of purchased supporting hardware devices used for the enterprise internal cloud platform, CkPurchase cost for kth supporting hardware equipment, NZ5For the average depreciation life of the matched hardware equipment, N is the total number of the virtual machines of the cloud platform in the enterprise, and N isUFor the age of the virtual machine, Y5The use cost of the matched hardware equipment corresponding to the virtual machine is saved;
and acquiring the occupation amount of the resources of the matched hardware equipment corresponding to the virtual machine according to the ratio of the use cost of the matched hardware equipment corresponding to the virtual machine to the total preset cost of the resources of the matched hardware equipment.
In some embodiments, the software resource occupation amount corresponding to the virtual machine is obtained by:
acquiring the total cost of software resources corresponding to the cloud platform inside the enterprise;
acquiring the total number of virtual machines corresponding to the cloud platform in the enterprise;
acquiring the service time corresponding to the virtual machine and the depreciation life of the software resource corresponding to the cloud platform in the enterprise;
calculating the software use cost corresponding to the virtual machine according to a preset software use cost calculation model, wherein the preset software use cost calculation model comprises the following steps:
wherein, CRThe total cost, N, of the software resources corresponding to the cloud platform inside the enterpriseZ6The depreciation age, N, of the software corresponding to the cloud platform inside the enterpriseUN is the total number of the virtual machines of the cloud platform in the enterprise, and Y is the service time of the virtual machine6The software use cost corresponding to the virtual machine;
and acquiring the occupation amount of the software resources corresponding to the virtual machine according to the ratio of the software use cost corresponding to the virtual machine to the preset total cost of the software resources.
In some embodiments, the actual resource occupancy corresponding to the virtual machine is the sum of the IT resource occupancy and the supporting resource occupancy corresponding to the virtual machine.
According to another aspect of the present disclosure, an embodiment of the present disclosure provides a resource management system for an intra-enterprise cloud platform, where the intra-enterprise cloud platform includes virtual machine groups corresponding to departments of an enterprise one to one, each virtual machine group includes at least one virtual machine, and the resource management system includes:
the acquisition module is configured to acquire an IT resource occupancy amount and a matching resource occupancy amount corresponding to each virtual machine for each virtual machine group corresponding to each department;
the virtual machine resource evaluation module is configured to acquire the actual resource occupation amount corresponding to the virtual machine according to the IT resource occupation amount and the matched resource occupation amount corresponding to the virtual machine;
and the department resource evaluation module is configured to acquire the actual resource occupation amount corresponding to the virtual machine group according to the actual resource occupation amount corresponding to each virtual machine in the virtual machine group.
According to the technical scheme of the resource management method and system provided by the embodiment of the disclosure, the IT resource occupation condition and the matched resource occupation condition of the virtual machine used by each department are analyzed, so that the actual resource occupation condition of each department of an enterprise in the internal cloud of the enterprise is determined, the cloud resource usage of each department of the enterprise is effectively controlled and managed according to the actual resource occupation condition of each department of the enterprise, refined resource management is realized, the waste of the cloud resource is effectively avoided, the cloud resource of each department of the enterprise is reasonably utilized, the cloud resource utilization rate of the internal cloud of the enterprise is effectively improved, and the use cost of the internal cloud of the enterprise is reduced.
Drawings
Fig. 1 is a flowchart of a resource management method for an enterprise internal cloud platform according to an embodiment of the present disclosure;
fig. 2 is a block diagram of a resource management system according to an embodiment of the present disclosure.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present disclosure, the resource management method and system of the enterprise internal cloud platform provided in the embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.
Fig. 1 is a flowchart of a resource management method for an enterprise-wide cloud platform according to an embodiment of the present disclosure, where the enterprise-wide cloud platform includes virtual machine groups corresponding to departments of an enterprise one by one, and each virtual machine group includes at least one virtual machine, as shown in fig. 1, the resource management method includes:
and step S1, acquiring the IT resource occupation amount and the matching resource occupation amount corresponding to each virtual machine for each virtual machine group corresponding to each department.
And step S2, acquiring the actual resource occupation amount corresponding to the virtual machine according to the IT resource occupation amount and the matching resource occupation amount corresponding to the virtual machine.
And step S3, acquiring the actual resource occupation amount corresponding to the virtual machine set according to the actual resource occupation amount corresponding to each virtual machine in the virtual machine set.
According to the resource management method provided by the embodiment, the IT resource occupation condition and the matched resource occupation condition of the virtual machine used by each department are analyzed, the actual resource occupation condition of each department of the enterprise in the internal cloud of the enterprise is determined, so that the cloud resource usage of each department of the enterprise is effectively controlled and managed according to the actual resource occupation condition of each department of the enterprise, refined resource management is realized, the waste of the cloud resource is effectively avoided, the cloud resource is reasonably utilized by each department of the enterprise, the cloud resource utilization rate of the internal cloud of the enterprise is effectively improved, and the use cost of the internal cloud of the enterprise is reduced.
In the embodiment of the present disclosure, IT (information technology) resources corresponding to a virtual machine include a computing resource, a storage resource, and a network resource, where the computing resource includes a CPU (central processing unit) resource, the storage resource includes a memory resource and a hard disk device resource, and the network resource includes a bandwidth resource.
In some embodiments, in step S1, the IT resource occupancy amount of the virtual machine is obtained by analyzing the usage conditions of the CPU and the memory resource, the hard disk device resource, and the bandwidth resource corresponding to the virtual machine, and specifically, the IT resource occupancy amount corresponding to the virtual machine may be obtained by:
and step S111, acquiring occupation amounts of CPU and memory resources, occupation amounts of hard disk device resources and occupation amounts of bandwidth resources corresponding to the virtual machine.
And step S112, acquiring the IT resource occupation amount corresponding to the virtual machine according to the CPU and memory resource occupation amount, the hard disk device resource occupation amount and the bandwidth resource occupation amount corresponding to the virtual machine.
The IT resource occupation amount is the sum of the occupation amounts of the CPU and the memory resource, the occupation amount of the hard disk device resource and the occupation amount of the bandwidth resource.
In the embodiment of the present disclosure, the supporting resources corresponding to the virtual machine include rack resources for bearing a rack of the server, supporting hardware device resources, and software resources for the internal cloud platform. The server is used for bearing a virtual machine of the internal cloud platform.
In some embodiments, in step S1, the occupancy amount of the supporting resources of the virtual machine is obtained by analyzing the usage conditions of the rack resources, the supporting hardware device resources, and the software resources corresponding to the virtual machine, and specifically, the occupancy amount of the supporting resources corresponding to the virtual machine may be obtained by:
and S121, acquiring the occupation amount of the rack resources, the occupation amount of the supporting hardware equipment resources and the occupation amount of the software resources corresponding to the virtual machine.
And S122, acquiring the occupation amount of the matched resources corresponding to the virtual machine according to the occupation amount of the rack resources, the occupation amount of the matched hardware equipment resources and the occupation amount of the software resources corresponding to the virtual machine.
The occupation amount of the matched resources is the sum of the occupation amount of the rack resources, the occupation amount of the matched hardware equipment resources and the occupation amount of the software resources.
In the embodiment of the present disclosure, before resource management of the cloud platform inside the enterprise is performed, initial parameters for performing resource management are periodically (e.g., every year) set in a preset storage system, and the storage system may interface with the cloud platform management system, so that the cloud platform management system queries stored data, where the initial parameters include, but are not limited to: the method comprises the steps of purchasing unit price and basic resource (CPU resource and memory resource) configuration of a server for bearing the virtual machine, price of unit memory size, depreciation age of each resource, type of basic resource configuration in use, purchasing price of unit hard disk capacity, purchasing price of unit bandwidth, lease cost of a single rack, average number of servers borne by the single rack, average number of virtual machines borne by the single server, purchasing cost of matched hardware equipment and software cost for a cloud platform. The basic resource allocation type refers to a type to which the CPU and memory allocation of the server belongs, and is, for example, 1C2G, 1C4G, 1C8G, 1C2G refers to the basic resource allocation of 1 CPU and 2G operating memory, 1C4G refers to the basic resource allocation of 1 CPU and 4G operating memory, and 1C8G refers to the basic resource allocation of 1 CPU and 8G operating memory, where 1C2G is the most basic resource allocation, and is also referred to as a unit basic resource allocation in the embodiment of the present disclosure.
In the embodiment of the disclosure, the resource management method is implemented based on a resource management system, the resource management system is connected to a cloud platform management system of an internal cloud platform, before resource management is performed, the resource management system is connected to the cloud platform management system, the total amount of virtual machines of the current enterprise internal cloud platform and the number of virtual machines of the cloud platform used by each department of the enterprise are periodically extracted, the resource management method of the embodiment of the disclosure is periodically performed according to the condition of the virtual machines used by each department of the enterprise, and during resource management, pre-configured initial parameters can be obtained from a storage system, so that resource evaluation management is periodically performed.
In some embodiments, in step S111, the CPU and memory resource occupation amount corresponding to the virtual machine is determined by analyzing the usage cost ratio of the CPU and memory resource corresponding to the virtual machine. Specifically, the CPU and memory resource occupation amount corresponding to the virtual machine may be obtained by:
step S111a1, obtaining a basic resource configuration type of a basic resource corresponding to the virtual machine, where the basic resource includes a CPU and a memory resource.
Specifically, the base resource configuration and the type of the base resource configuration corresponding to the virtual machine may be queried through the cloud platform management system, for example, the base resource configuration type of the base resource corresponding to the virtual machine is a type 1C 2G.
Step S111a2, obtaining a ratio of an actual basic resource allocation amount corresponding to the virtual machine to a unit basic resource allocation amount corresponding to the basic resource allocation type.
Specifically, the actual basic resource allocation amount corresponding to the virtual machine may be queried through the cloud platform management system, for example, the actual basic resource allocation amount corresponding to the virtual machine is 96 basic resource allocation amounts of 1C2G, where 1C2G is a unit basic resource allocation amount, and then a ratio of the actual basic resource allocation amount corresponding to the virtual machine to the unit basic resource allocation amount corresponding to the basic resource allocation type is 96.
Step S111a3, obtaining the usage time corresponding to the virtual machine and the depreciation age of the base resource corresponding to the base resource configuration type.
Specifically, the service time corresponding to the virtual machine and the depreciation period of the basic resource corresponding to the virtual machine may be queried through the cloud platform management system. The use time corresponding to the virtual machine refers to the time from the time when the virtual machine starts to create use to the current time of the system.
Step S111a4, obtaining the purchase unit price of the basic resource corresponding to the basic resource allocation type.
Specifically, according to various basic resource configurations preset by the system, the price of the unit memory size, and the purchase cost of the server for bearing the virtual machine, the purchase unit price of the basic resource corresponding to each basic resource configuration type can be calculated. Specifically, the purchase unit price of the base resource is (purchase cost of the server-price of the redundant memory size × unit memory size)/the number of assignable virtual machines.
As an example, assuming that the procurement cost of the server is 62646 yuan, the price per G memory size is 21.65 yuan, the CPU and memory resources can be provided as 96C and 480G except the resources occupied by the system, 96 virtual machines of 1C2G type can be allocated, and then there is memory size redundancy of 480-96 × 2 ═ 288G, and the procurement unit price of the basic resources of 1C2G is (62646-.
Step S111a5, calculating the CPU and memory resource usage cost corresponding to the virtual machine according to a preset basic resource usage cost calculation model.
Wherein, the preset basic resource use cost calculation model comprises:
wherein, CiThe purchase unit price, N, of the basic resource corresponding to the basic resource configuration typeZ1Is the depreciation age, n, of the underlying resource corresponding to the virtual machine1Allocating the unit basic resource corresponding to the actual basic resource allocation quantity and the basic resource allocation typeRatio of the amounts, NUFor the age of the virtual machine, Y1And the use cost of the CPU and the memory resource corresponding to the virtual machine is saved. Wherein N isZ1May be in units of years, NUMay be in units of months.
Step S111a6, obtaining the occupation amount of the CPU and the memory resource corresponding to the virtual machine according to the ratio of the usage cost of the CPU and the memory resource corresponding to the virtual machine to the preset total cost of the CPU and the memory resource.
According to the basic resource usage cost calculation model, the CPU and memory resource usage cost is related to the usage time of the virtual machine and the depreciation age of the corresponding basic resource, so that the current CPU and memory resource usage cost corresponding to the virtual machine changes along with the change of time, and correspondingly, the total CPU and memory resource cost of the cloud platform also changes along with the change of time.
In some embodiments, in step S111, the occupied amount of the hard disk device resource corresponding to the virtual machine is determined by analyzing the usage cost ratio of the hard disk device resource corresponding to the virtual machine. Specifically, the hard disk device resource occupation amount corresponding to the virtual machine can be obtained through the following method:
and step S111b1, acquiring the purchase price of the unit hard disk capacity of the hard disk device corresponding to the virtual machine.
Specifically, the unit hard disk capacity purchase price of the hard disk device corresponding to the virtual machine may be queried through the cloud platform management system, where the unit hard disk capacity purchase price is, for example, a purchase price per TB hard disk capacity.
And step S111b2, acquiring the actual hard disk capacity of the hard disk device corresponding to the virtual machine.
Specifically, the actual hard disk capacity corresponding to the virtual machine may be queried through the cloud platform management system, where a capacity unit of the actual hard disk capacity is TB (Terabyte).
Step S111b3, obtaining the usage time corresponding to the virtual machine and the lifetime of the hard disk device corresponding to the virtual machine.
Specifically, the service time corresponding to the virtual machine and the depreciation period of the hard disk device corresponding to the virtual machine may be queried through the cloud platform management system.
And step S111b4, calculating the use cost of the hard disk device corresponding to the virtual machine according to a preset hard disk device use cost calculation model.
The preset hard disk device use cost calculation model comprises the following steps:
wherein, CMPurchase price, N, of unit hard disk capacity of hard disk device corresponding to the virtual machineZ2For the depreciation age, n, of the hard disk device corresponding to the virtual machine2Is the actual hard disk capacity, N, of the hard disk device corresponding to the virtual machineUFor the age of the virtual machine, Y2And the use cost of the hard disk equipment corresponding to the virtual machine is saved. Wherein N isZ2May be in units of years.
Step S111b5, obtaining the resource occupation amount of the hard disk device corresponding to the virtual machine according to the ratio of the usage cost of the hard disk device corresponding to the virtual machine to the total preset cost of the hard disk device.
According to the hard disk device use cost calculation model, it can be known that the hard disk device use cost is related to the use time of the virtual machine and the depreciation age of the corresponding hard disk device, so that the current hard disk device use cost corresponding to the virtual machine changes along with the change of time, and correspondingly, the total hard disk device cost of the cloud platform also changes.
In some embodiments, in step S111, the bandwidth resource occupation amount corresponding to the virtual machine is determined by analyzing the usage cost ratio of the bandwidth resource corresponding to the virtual machine. Specifically, the bandwidth resource occupation amount corresponding to the virtual machine can be obtained through the following method:
and step S111c1, acquiring the purchase price of the unit bandwidth of the bandwidth opened by the virtual machine.
Specifically, a unit bandwidth purchase price of the bandwidth opened by the virtual machine may be queried through the cloud platform management system, where the unit bandwidth purchase price is a packet year purchase price per GB (gigabyte) of the bandwidth, and then the unit bandwidth purchase price/1000 is a packet year purchase price per MB (megabyte) of the bandwidth.
And step S111c2, acquiring the bandwidth opened by the virtual machine.
Specifically, the bandwidth opened by the virtual machine may be queried through the cloud platform management system, and the bandwidth opened by the virtual machine is in units of MB.
And step S111c3, acquiring the use time corresponding to the virtual machine.
Specifically, the service time corresponding to the virtual machine may be queried through the cloud platform management system.
Step S111c4, calculating a bandwidth usage cost corresponding to the virtual machine according to the preset bandwidth usage cost calculation model.
The preset bandwidth use cost calculation model comprises the following steps:
Y3=Cintel*Xj/1000*NU/12
wherein, CintelPurchase price per bandwidth, XjBandwidth opened for the virtual machine, XjHas the unit of MB, NUFor the age of the virtual machine, Y3And the bandwidth use cost corresponding to the virtual machine.
Step S111c5, obtaining the bandwidth resource occupation amount corresponding to the virtual machine according to the ratio of the bandwidth usage cost corresponding to the virtual machine to the preset total cost of the bandwidth resource.
According to the bandwidth use cost calculation model, it can be known that the bandwidth use cost is related to the use time of the virtual machine, so that the current bandwidth use cost corresponding to the virtual machine changes along with the change of time, and correspondingly, the total cost of the bandwidth resources of the cloud platform also changes.
In some embodiments, in step S121, the rack resource occupation amount corresponding to the virtual machine is determined by analyzing the usage cost ratio of the rack resource corresponding to the virtual machine. Specifically, the rack resource occupation amount corresponding to the virtual machine can be obtained through the following method:
step S121a1, obtaining the lease cost of each rack corresponding to the cloud platform inside the enterprise.
Specifically, the lease cost of each rack corresponding to the cloud platform inside the enterprise can be queried through the cloud platform management system, wherein the rack is used for bearing a server, and the server is used for bearing a virtual machine of the cloud platform.
Step S121a2, obtaining an average number of servers borne by each rack corresponding to the cloud platform inside the enterprise.
Specifically, the average number of servers borne by each rack corresponding to the cloud platform inside the enterprise may be queried through the cloud platform management system. For example, assuming there are 5 racks, 100 servers, then on average 20 servers are carried per rack.
Step S121a3, obtaining the average number of virtual machines carried by each server.
Specifically, the average number of virtual machines borne by each server may be queried by the cloud platform management system. For example, assuming there are 100 servers, 1000 virtual machines, then on average each server carries 10 virtual machines.
Step S121a4, calculating a rack usage cost corresponding to the virtual machine according to a preset rack usage cost calculation model.
Wherein, predetermine frame use cost calculation model includes:
wherein, CELease fees, n, for each rack3Average number of servers carried per rack, n4Average number of virtual machines hosted for a server, NUFor the age of the virtual machine, Y4And the use cost of the rack corresponding to the virtual machine is saved.
Step S121a5, obtaining the rack resource occupation amount corresponding to the virtual machine according to the ratio of the rack usage cost corresponding to the virtual machine to the preset total rack resource cost.
According to the rack use cost calculation model, the rack use cost is related to the use time of the virtual machine, so that the current rack use cost corresponding to the virtual machine changes along with the change of time, and correspondingly, the rack resource total cost of the cloud platform also changes.
In some embodiments, in step S121, the occupancy amount of the hardware accessory device resource corresponding to the virtual machine is determined by analyzing the usage cost ratio of the hardware accessory device resource corresponding to the virtual machine. Specifically, the occupation amount of the hardware device resources corresponding to the virtual machine can be obtained in the following manner:
and step S121b1, acquiring purchase cost of each matched hardware device for the cloud platform in the enterprise.
Specifically, the purchase cost of each hardware device of the cloud platform inside the enterprise may be queried through the cloud platform management system, where the hardware device is a hardware device used for operation of the cloud platform inside the enterprise, for example, a hardware device such as a network communication device, a storage switch, and a monitoring device except a server.
And step S121b2, acquiring the total number of virtual machines corresponding to the cloud platform inside the enterprise.
Specifically, the total number of virtual machines corresponding to the cloud platform inside the enterprise may be queried through the cloud platform management system.
And step S121b3, acquiring the use time corresponding to the virtual machine and the average depreciation life of each supporting hardware device.
Specifically, the service time corresponding to the virtual machine and the average depreciation period of each supporting hardware device may be queried through the cloud platform management system.
Step S121b4, calculating the use cost of the supporting hardware device corresponding to the virtual machine according to a preset use cost calculation model of the supporting hardware device.
The preset use cost calculation model of the matched hardware equipment comprises the following steps:
wherein n is the number of purchased supporting hardware equipment used for the enterprise internal cloud platform, CkCost of use for kth supporting hardware device, NZ5Mean depreciation age for supporting hardware devices, NZ5Taking year as a unit, N is the total number of virtual machines of an enterprise internal cloud platform, namely the whole resource pool, and N isUFor the age of the virtual machine, Y5And the use cost of the matched hardware equipment corresponding to the virtual machine is saved.
Ck/NZ5The current use cost of each matched hardware device is calculated according to the purchase cost and the depreciation age of each matched hardware device. In other words, the use cost of the hardware accessory refers to the annual depreciation cost of the purchase cost of the hardware accessory.
Step S121b5, obtaining the occupation amount of the hardware device resources corresponding to the virtual machine according to the ratio of the use cost of the hardware device corresponding to the virtual machine to the total cost of the hardware device resources.
According to the model for calculating the use cost of the matched hardware equipment, the use cost of the matched hardware equipment is related to the use time of the virtual machine and the depreciation age of the corresponding matched hardware equipment, so that the use cost of the current matched hardware equipment corresponding to the virtual machine changes along with the change of time, and correspondingly, the total cost of the matched hardware equipment resources of the cloud platform also changes along with the change of the time.
In some embodiments, in step S121, the usage amount of the software resource corresponding to the virtual machine is determined by analyzing the usage cost ratio of the software resource corresponding to the virtual machine. Specifically, the software resource occupation amount corresponding to the virtual machine can be obtained through the following modes:
and S121c1, acquiring the total cost of the software resources corresponding to the cloud platform inside the enterprise.
Specifically, the total cost of the software resources for the enterprise internal cloud platform may be queried by the cloud platform management system. The total cost of software resources for a cloud platform typically includes software license (license) costs.
And step S121c2, acquiring the total number of virtual machines corresponding to the cloud platform inside the enterprise.
Specifically, the total number of virtual machines corresponding to the cloud platform inside the enterprise may be queried through the cloud platform management system.
Step S121c3, obtaining the use time corresponding to the virtual machine and the depreciation life of the software resource corresponding to the cloud platform inside the enterprise.
Specifically, the service time corresponding to the virtual machine and the depreciation period of the software resource corresponding to the cloud platform in the enterprise can be inquired through the cloud platform management system.
Step S121c4, calculating a software usage cost corresponding to the virtual machine according to a preset software usage cost calculation model.
The preset software use cost calculation model comprises the following steps:
wherein, CRFor the interior of an enterpriseTotal cost, N, of software resources corresponding to the cloud platformZ6Depreciation age, N, of software corresponding to an enterprise internal cloud platformZ6In units of years, NUN is the total number of the virtual machines of the cloud platform in the enterprise, and Y is the service time of the virtual machine6And the use cost of the software corresponding to the virtual machine.
Step S121c5, obtaining the occupation amount of the software resources corresponding to the virtual machine according to the ratio of the software usage cost corresponding to the virtual machine to the preset total cost of the software resources.
According to the software use cost calculation model, the software use cost is related to the use time of the virtual machine and the depreciation time of the corresponding software resource, so that the current software use cost corresponding to the virtual machine changes along with the change of time, and correspondingly, the total software resource cost of the cloud platform also changes.
In this embodiment of the present disclosure, in step S2, the actual resource occupation amount corresponding to the virtual machine is the sum of the IT resource occupation amount and the supporting resource occupation amount corresponding to the virtual machine.
In this embodiment of the present disclosure, in step S3, the actual resource occupancy amount corresponding to the virtual machine group is the sum of the actual resource occupancy amounts corresponding to all virtual machines in the virtual machine group.
In the embodiment of the present disclosure, by analyzing the usage cost occupation ratio of each resource corresponding to each virtual machine used by each department, the usage cost occupation ratio of each resource corresponding to each virtual machine can be used to characterize the actual resource occupation situation corresponding to each virtual machine, so that the actual resource occupation situation corresponding to each virtual machine used by each department can be determined according to each resource usage cost occupation ratio, and the actual resource occupation situation of each department can be obtained. In practical application, the resources required by each department can be distributed and managed according to the revenue situation and the actual resource occupation situation of each department, for example, the proportion of the actual resource occupation amount of each department in the current period to the department income of each department in the current period is used as the assessment index of each department to measure whether the actual resource occupation amount of each department is reasonable, so that the cloud resource usage of each department of an enterprise can be effectively controlled and managed, refined resource management is realized, more reasonable use of internal cloud resources of each department is promoted, the use waste of cloud resources is effectively avoided, the cloud resource utilization rate of the internal cloud of the enterprise is effectively improved, and the use cost of the internal cloud of the enterprise is reduced.
Fig. 2 is a block diagram of a resource management system according to an embodiment of the present disclosure, where the resource management system 200 is used in an enterprise-wide cloud platform, where the enterprise-wide cloud platform includes virtual machine groups corresponding to departments of an enterprise one by one, and each virtual machine group includes at least one virtual machine, and the resource management system includes: the system comprises an acquisition module 201, a virtual machine resource evaluation module 202 and a department resource evaluation module 203.
The obtaining module 201 is configured to obtain, for each virtual machine of each virtual machine group corresponding to each department, an IT resource occupancy amount and a supporting resource occupancy amount corresponding to the virtual machine.
The virtual machine resource evaluation module 202 is configured to obtain an actual resource occupation amount corresponding to the virtual machine according to the IT resource occupation amount and the supporting resource occupation amount corresponding to the virtual machine.
The department resource evaluation module 203 is configured to obtain the actual resource occupancy amount corresponding to the virtual machine group according to the actual resource occupancy amount corresponding to each virtual machine in the virtual machine group.
Specifically, each functional module of the resource management system provided in the embodiment of the present disclosure is used to implement the resource management method, and specific uses and implementation forms of each functional module may refer to the description of the resource management method in the embodiment described above, which is not described herein again.
It is to be understood that the above embodiments are merely exemplary embodiments that are employed to illustrate the principles of the present disclosure, and that the present disclosure is not limited thereto. It will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the disclosure, and these are to be considered as the scope of the disclosure.
- 上一篇:石墨接头机器人自动装卡簧、装栓机
- 下一篇:计算资源选择方法、系统及电子设备