Be applied to the centralized resource management method and system of cloud framework
Technical field
The present invention relates to a kind of centralized resource management method and system that are applied to cloud framework.
Background technology
IaaS(Infrastructure as a Service, infrastructure serve), user does not need management or controls any cloud computing infrastructure, can utilize infrastructure to dispose and move any software as operating system and application program as processing, storage, network and other basic computational resource by IaaS.
PaaS(Platform-as-a-Service, platform serves), it can provide server platform or development environment to user.
Cloud computing architecture system comprises display layer, intermediate layer, infrastructure layer and management level, existing cloud architecture system or IaaS is only provided, PaaS is only provided, be that IaaS and PaaS can not compatibility exist in same cloud architecture system, so, when user will use IaaS or PaaS, need to be switched to voluntarily corresponding cloud architecture system, and need configuration network environment voluntarily, very trouble, and often cannot accomplish for the weak domestic consumer of relevant professional knowledge.
Summary of the invention
For the deficiencies in the prior art, object of the present invention is intended to provide a kind of centralized resource management method and system that are applied to cloud framework that solve the problems of the technologies described above.
For achieving the above object, the present invention adopts following technical scheme:
A centralized resource management method that is applied to cloud framework, it comprises the following steps:
Resource extraction step: extract resource requirement from default platform;
Resource number of assembling steps: build VPN network to the resource being drawn into, and according to the corresponding establishment of the resource type being drawn into virtual machine, container or application service;
Resource pool step: the virtual machine having created, container or application service are dropped in resource pool;
And
Resource transfer step: transfer corresponding resource according to the request of data from user terminal from resource pool, and the resource of having transferred is sent to user terminal.
Further, this method is further comprising the steps of:
Resource quantity monitoring step: judge that whether the resource quantity of form of the same race in resource pool is lower than predetermined threshold value, if not, continue to carry out this step; If so, carry out resource extraction step.
Further, this method is further comprising the steps of:
Resource exception monitoring step: the resource in timer access resource pool, whether abnormal to detect resource in resource pool, if not, continue to carry out this step; If so, carry out warning replacement step; And
Warning replacement step: report to the police and suppressing exception resource, and return and carry out resource extraction step.
Further, in resource extraction step, extract resource requirement by api interface from default platform.
Be applied to a centralized resource management system for cloud framework, it comprises with lower module:
Resource abstraction module: extract resource requirement from default platform;
Resource Knockdown block: build VPN network to the resource being drawn into, and according to the corresponding establishment of the resource type being drawn into virtual machine, container or application service;
Resource pool module: the virtual machine having created, container or application service are dropped in resource pool;
And
Resource transfer module: transfer corresponding resource according to the request of data from user terminal from resource pool, and the resource of having transferred is sent to user terminal.
Further, native system also comprises with lower module:
Resource quantity monitoring module: judge that whether the resource quantity of form of the same race in resource pool is lower than predetermined threshold value, if not, continue to carry out this module; If so, carry out resource abstraction module.
Further, native system also comprises with lower module:
Resource exception monitoring module: the resource in timer access resource pool, whether abnormal to detect resource in resource pool, if not, continue to carry out this module; If so, carry out warning replacement module; And
Warning replacement module: report to the police and suppressing exception resource, and return and carry out resource abstraction module.
Further, in resource abstraction module, extract resource requirement by api interface from default platform.
Beneficial effect of the present invention is as follows:
Foregoing invention can extract the resource of IaaS type or PaaS type from various hardware devices, and automatic Composition dropped into resource pool after becoming virtual machine, container or application service, carries out centralized management, can directly return to corresponding resource according to user's request.So, user can utilize the resource of IaaS type or PaaS type on a cloud framework, without switching different cloud frameworks, also without own configuration network environment, simple and efficient to handle.Meanwhile, this framework can utilize the resource of different cloud platforms substantially.
Accompanying drawing explanation
Fig. 1 is the flow chart that the present invention is applied to the preferred embodiments of the centralized resource management method of cloud framework.
Embodiment
Below in conjunction with accompanying drawing and embodiment, the present invention is described further:
Refer to Fig. 1, the present invention relates to a kind of centralized resource management method that is applied to cloud framework, its preferred embodiments comprises the following steps:
Resource extraction step: extract resource requirement from default platform by api interface.For example, for the data source of specialized vendor's platform, the api interface that can call this manufacturer provides extracts resource; For the enterprise data center that disposes cloud platform management, can directly use the api interface of this system.Wherein, resource can be Basis of Computer Engineering facilities services, network or local storage etc.
Resource number of assembling steps: build VPN(Virtual Private Network, VPN (virtual private network) to the resource being drawn into) network, and according to the corresponding establishment of the resource type being drawn into virtual machine, container or application service.For example, if the resource being drawn into is IaaS type, create corresponding virtual machine or container, if the resource being drawn into is PaaS type, create corresponding application service.
Resource pool step: the virtual machine having created, container or application service are dropped in resource pool, share same distributed file system with the virtual machine, container or the application service that make to have created.
Resource transfer step: transfer corresponding resource according to the request of data from user terminal from resource pool, and the resource of having transferred is sent to user terminal.For example, Web server of user terminal requests, is sent to user terminal by the default web server of resource pool.If user asks an architecture of building special Web server, the virtual machine in resource pool or container are sent to user terminal, user can build voluntarily special Web server on virtual machine or container.
Resource quantity monitoring step: judge that whether the resource quantity of form of the same race in resource pool is lower than predetermined threshold value, if not, continue to carry out this step; If so, carry out resource extraction step.Wherein, the resource of form of the same race refers to the resource of virtual machine, container or application service form.
Resource exception monitoring step: the resource in timer access resource pool, to detect resource in resource pool whether abnormal (can not access and think abnormal, addressable think normal), if not, continues this step of execution; If so, carry out warning replacement step.And
Warning replacement step: report to the police and suppressing exception resource, and return and carry out resource extraction step.
Foregoing invention can extract the resource of IaaS type or PaaS type from various hardware devices, and automatic Composition dropped into resource pool after becoming virtual machine, container or application service, carries out centralized management, can directly return to corresponding resource according to user's request.So, user can utilize the resource of IaaS type or PaaS type on a cloud framework, without switching different cloud frameworks, also without own configuration network environment, simple and efficient to handle.Meanwhile, this framework can utilize the resource of different cloud platforms substantially.
For a person skilled in the art, can be according to technical scheme described above and design, make other various corresponding changes and distortion, and these all changes and distortion all should belong to the protection range of the claims in the present invention within.