A kind of cloud computing system resource management method
Technical field
The present invention relates to the cloud computing field, specifically, relate to a kind of cloud computing system resource management method.
Background technology
The core of cloud computing be with computational resources a certain or a few data centers virtual after, provide to rent the service that computational resource is a form to the user.The resource of cloud computing comprises storage resources, computational resource, Internet resources, infrastructure resources and other resources.The basic function of cloud computing resource management system is exactly the resource request of accepting from the cloud computing user, and gives resource requestor specific resource allocation, reasonably dispatches corresponding resource, makes the operation of request resource be able to operation.
Summary of the invention
Target of the present invention is exactly to realize that dynamic resource discovery, resource distribution offer the user from being coupled together resource in logic as a single integrated resource; User and Resource Broker carry out alternately, and the agency has shielded the complexity of use of cloud computing resource and cloud computing to the user.
A kind of cloud computing system resource management method, resource discovering starts resource discovering by network application, in cloud computing environment, finds to be adapted to the resource that should use; The resource distribution is automatic by resource, and when the user proposed the resource request for utilization, system was according to upstate, distribution state and the configuration information of resource of current resource, and through resource allocation policy, the dynamic assignment adequate resources supplies the user to use.
Preferably, the method for said resource discovering comprises through acting on behalf of the dynamic instrumentation resource, finds resource and find resource through the ping scan for networks through snmp active scan network.
Preferably, saidly be through the process of acting on behalf of the dynamic instrumentation resource: the keeper through manual typing primary resource essential information of browser and necessary configuration parameter after, management node is saved in the system through acting on behalf of dynamic discovery child resource and reading its details.
Preferably, said process through snmp active scan network discovery resource is: through the network equipment of active scan support SNMP interface, obtain the details of device type, manufacturer, port, dish number resource.
Preferably, find during said resource discovering that resource is moved or damages, in time notify the keeper, point out its whether dynamically deletion or keep in repair resource.
Preferably, the process of said resource distribution is:
S1 obtains all and belongs to the user and need resource type and the state resource for " available ", " unallocated ";
S2 according to the configuration of user's needs resource, judges the resource among the S1 one by one, selects to satisfy the resource of configuration condition;
S3 judges final resource number among the S2, if more than or equal to user's resource requirement number, then the resource of distributing user resource requirement number is given the user; If, then get into S4 less than user's resource requirement number;
S4; Physical machine or virtual machine during the judges resource requirement are if physical machine is then pointed out the user " resource is not enough; can't satisfy the demands "; If virtual machine is then sought physical resource subregion and the hypervisor that residue disk size and internal memory can be created specified configuration and number virtual machine, create virtual machine;
S5 when the resource number is met consumers' demand, gives the user with resource allocation.
Preferably, when high severity alarm or equipment take place and need the maintenance, repair situation in said resource in user's use, can be by system through dynamic migration or dynamically seek and distribute suitable modes such as other resources to guarantee the normal operation of customer service.
The present invention has realized that administrator just specifies just can manage different resources under the cloud computing environment effectively uniformly through browser, thereby reduces the complexity and the management cost of resource management, increases work efficiency.
Description of drawings
Embodiment
The dynamic discovery of resource
The resource that resource discovering is started by network application and in cloud computing, finds to be suitable for to use.Resources dissimilar in the cloud computing environment can dynamically find through different modes.
Through acting on behalf of the dynamic instrumentation resource; Dynamic memory: the keeper through manual typing primary resource essential information of browser and necessary configuration parameter (like IP) after, management node is through the dynamic discovery child resource (like the disk of server, cpu etc.) and read its details and be saved in the system of agency;
Through snmp active scan network, dynamically find resource: the network equipment through active scan support SNMP interface obtains resource details such as device type, manufacturer, port, dish number;
Through the ping scan for networks, dynamically find resource: for the equipment of not supporting the SNMP port,, can pass through the active scan engine,, find resource like scanning devices such as PING plug-in units like server.
Whether dynamically dynamic scan finds that resource is moved or damages, and in time notifies the keeper, point out its deletion or maintenance resource.
The resource distribution
Resource discovering and resource distribution provide the function of replenishing each other, and resource is distributed the information that is started and provided relevant resource by resource, and system seeks automatically and distributes and can be fit to the appropriate resources that the user uses.
When the user proposed the resource request for utilization, system was according to upstate, distribution state and the configuration information of resource etc. of current resource, and through resource allocation policy, the dynamic assignment adequate resources supplies the user to use:
A) obtaining all belongs to the user and needs resource type (like physical machine or virtual machine etc.) and the state resource for " available ", " unallocated ";
B) according to the configuration (like cpu number, storage size) of user's needs resource, judge the resource among a one by one, select to satisfy the resource of configuration condition;
C) judge final resource number among the b, if more than or equal to user's resource requirement number, then the resource of distributing user resource requirement number is given the user; If, then get into d less than user's resource requirement number;
D) physical machine or virtual machine during the judges resource requirement; If physical machine; Then point out the user " resource is not enough, can't satisfy the demands ", if virtual machine; Then seek physical resource subregion and the hypervisor that residue disk size and internal memory can be created specified configuration and number virtual machine, create virtual machine;
E) when the resource number is met consumers' demand, give the user with resource allocation.
In user's use, when resource generation high severity alarm or equipment need situation such as maintenance, repair, can be by system through dynamic migration or dynamically seek and distribute suitable modes such as other resources to guarantee the normal operation of customer service.