CN103885833A - Method and system for managing resources - Google Patents
Method and system for managing resources Download PDFInfo
- Publication number
- CN103885833A CN103885833A CN201210560698.3A CN201210560698A CN103885833A CN 103885833 A CN103885833 A CN 103885833A CN 201210560698 A CN201210560698 A CN 201210560698A CN 103885833 A CN103885833 A CN 103885833A
- Authority
- CN
- China
- Prior art keywords
- server
- resource
- request
- virtual machine
- file
- 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.)
- Granted
Links
Images
Landscapes
- Stored Programmes (AREA)
Abstract
The invention provides a method and a system for managing resources. Unified server guidance processes can be provided by the system for managing the resources. The method includes distributing addresses to created servers when the servers (virtual machines or physical machines) are created, and generating system kernel files, drive program files and system mirrors; configuring the addresses to the servers in server guidance procedures, and providing the system kernel files, the drive program files and the system mirrors to the servers so as to configure and start the system. The addresses are distributed to the servers. The system kernel files, the drive program files and the system mirrors are generated for the servers. The method and the system have the advantages that the resources can be migrated in the unified guidance procedures when migrated from the servers to the virtual machines, and accordingly the resources of the virtual machines and the resources of the physical machines can be managed in a unified manner.
Description
Technical field
The present invention relates to the communications field, relate in particular to a kind of method for managing resource and system.
Background technology
In current cloud computing platform, conventionally physical machine and resources of virtual machine are separately managed, be divided into physical machine resource pool and resources of virtual machine pond, dissimilar resource is provided respectively.When application operates in certain physical machine or in certain virtual machine, cannot in physical machine and virtual machine, switch fast.
For the management of virtual machine, main employing is specifically designed to virtualized product and system, and these systems are carried out dynamic dispatching and distribution by the mode of virtual machine image to empty machine.Physical machine is just distributed as the bottom carrier of operation virtual machine, the operation and management environment of having pre-installed particular virtual software (is called VMM, it is the abbreviation of Virtual Machine Monitor, Chinese is expressed as virtual machine monitor), general operating system and directly operation application are not installed.
But because virtual machine exists certain performance loss, a lot of infrastructure services in cloud computing platform and application need to run directly in physical machine.These physical machine are directly installed the operating system that miscellaneous service needs conventionally, and the business of distributing to is used.
Demand resources of virtual machine and physical machine resource being managed for cloud computing platform, in more existing solutions, is placed on physical machine and virtual machine under same Resource TOC, to carry out unified management.But its function only limits to physical machine and management function of virtual machine present by united portal and operate, in fact physical machine and virtual machine are still dispatched in different resource pools, lack unified resource management mechanism, once certain application runs on certain machine in physical machine resource pool, be difficult to be moved on certain virtual machine in resources of virtual machine pond.
In prior art, the resource of physical machine and virtual machine cannot United Dispatching and distribution, causes the use inequality of two kinds of resource pools, is applied in two kinds of resources and cannot carries out quick and level and smooth migration.
As can be seen here, existing IT management system cannot be carried out United Dispatching to the environment of virtualized environment and operation physical operations system, the busy inequality that has caused resource to use, and application cannot be in two kinds of environment smooth migration.
Summary of the invention
The embodiment of the present invention provides a kind of method for managing resource and equipment and system, for resources of virtual machine and physical machine resource are carried out to unified management.
The method for managing resource that the embodiment of the present invention provides, comprising: receive the request of application server resource, according to the request distribution server of described application server resource; Wherein, if the server resource of applying for is physical machine resource, distribute physical machine, if the server resource of applying for is resources of virtual machine, distribute virtual machine;
For described server-assignment address, and be described server generation system kernel file, driver file and system image;
Start the bootup process of described server, and in the bootup process of described server, by be the address configuration of described server-assignment to described server, will carry out system configuration and startup for system kernel file, driver file and system image that described server generates offer described server.
The method for managing resource that another embodiment of the present invention provides, comprising:
Receive the request of migration server resource, described request in order to request by source server resource migration to destination server, described source server and described destination server are physical machine or virtual machine;
Determine destination server according to the request of described migration server resource, and be destination server generation system kernel file and driver file, set up system kernel file and the driver file of destination server, with the address of source server and the corresponding relation of system image;
According to the request of described migration server resource, source of release server resource;
Start the bootup process of destination server, and in destination server bootup process, give described destination server by the address configuration of described source server, to be system kernel file, the driver file that described destination server generates, and the system image of described source server use, offer described destination server and carry out system configuration and startup.
The resource management system that the embodiment of the present invention provides, comprising: Resource Scheduler, boot manager, mirror image manager, wherein:
Resource Scheduler, for receiving the request of application server resource, according to the request distribution server of described application server resource, wherein, if the server resource of applying for is physical machine resource, distribute physical machine, if the server resource of applying for is resources of virtual machine, distribute virtual machine; For described server-assignment address, and to indicate described guide management module be described server generation system kernel file and driver file, and indicating described mirror image administration module is described server generation system mirror image;
Described mirror image administration module, is used to described server generation system mirror image, and in the bootup process of described server, the system image generating is offered to described server carry out system configuration and startup for described server;
Described guide management module, be used to described server generation system kernel file and driver file, and in the bootup process of described server, by be the address configuration of described server-assignment to described server, the system kernel file generating for described server and driver file are offered to described server and carry out system configuration and startup.
The above embodiment of the present invention, by providing unified boot flow for physical machine and virtual machine, thereby for unified management and the scheduling of physical machine resource and resources of virtual machine provide the foundation, and then realize unified management and scheduling have been carried out in server computational resource pond and block device memory resource pool.
Brief description of the drawings
The resource management architecture schematic diagram that Fig. 1 provides for the embodiment of the present invention;
The virtual resource request schematic flow sheet that Fig. 2 provides for the embodiment of the present invention;
The physical resource request schematic flow sheet that Fig. 3 provides for the embodiment of the present invention;
The boot flow schematic diagram that Fig. 4 provides for the embodiment of the present invention;
The resource migration schematic flow sheet that Fig. 5 provides for the embodiment of the present invention;
The structural representation of the resource management system that Fig. 6 provides for the embodiment of the present invention.
Embodiment
In existing virtual machine and physical machine resource management techniques, will be applied in while migration between physical machine and virtual machine, mainly adopt P2V(physical machine to virtual machine) technology.P2V technology refers to operating system, application program or data, moves in a virtual machine environment from the physical hard disk of computing machine.The key step of P2V comprises: the first step is made mirror image: the mirror image that by mirror image tools, the entire system of physical machine is made into physical machine; Second step is selected to drive: replace driver relevant to certain hardware device in mirror image or disc driver, and new driver and other driver orderly start in the time of system initialization in guarantee mirror image, so that mirror image can move in virtual environment; The 3rd step custom configuration: user manually inputs necessary parameter, the CPU of for example virtual machine, internal memory, MAC(Media Access Control, media interviews control) address etc., P2V software generates and can allow mirror image by VMM(virtual machine monitor according to the parameter of data) configuration file identified.
Similarly, the conversion from virtual machine to physical machine is called V2P technology, and it realizes the inverse process that principle is P2V.
Complete the above complicated step of P2V or V2P action need and consume a large amount of time, the time conventionally consuming is directly proportional to physical machine disk size.And P2V and V2P can only realize the conversion of single physical machine to single empty machine.
Therefore,, in actual use, in order better to use resource, the infrastructure that physical machine computational entity and virtual machine computational entity are provided need to be configured to unified resource pool and manage and dispatch.And application can be carried out migration operation in batches between physical machine and virtual machine., user can be according to the requirement of application by its Dynamical Deployment on the physical machine or virtual machine in resource pool, and between the two, moves as required.
In order to meet above demand, the embodiment of the present invention provides a kind of resource management techniques, realize by unified management and scheduling are carried out in server resource pond and piece memory resource pool, based on dynamic mirror management and mapping mechanism, by introducing new collocation strategy and boot flow, the method that physical machine and the scheduling of virtual machine unified resource is provided and has switched, the resource pool of having guaranteed physical machine and virtual machine can unite two into one, carry out United Dispatching, and application can be carried out fast transferring between physical machine and virtual machine.
Below in conjunction with accompanying drawing, the embodiment of the present invention is described in detail.
Referring to Fig. 1, the resource management architecture schematic diagram providing for the embodiment of the present invention.
As shown in Figure 1, this resource management architecture comprises resource management system, and server resource pond and piece memory resource pool.The resource information that comprises available physical machine in server resource pond (as the MAC Address of physical machine, and CPU, memory standards etc.), the system image of the form storage that comprises to roll up in piece memory resource pool.
System image comprises two classes, and a class is OS(operating system) mirror image, i.e. specific operating system mirror image, physical machine or virtual machine are by directly carry OS mirror image of boot support, and start-up and operation; Another kind of is VMM mirror image, VMM mirror image can be considered as to certain and be exclusively used in the OS that carries out virtual management, move KVM(Kernel-based Virtual Machine as being used for, based on the virtual machine of kernel) or XEN Hypervisor(open source code virtual machine monitor, wherein, Hypervisor refers to a kind of intermediate software layer operating between basic physics server and operating system, can allow multiple operating system and application share hardware) operating system.In piece memory resource pool, also can comprise the relevant information of the VMM having created, the resources of virtual machine (comprising the memory standards of virtual machine quantity, virtual machine etc.) etc. of the upper establishment of physical resource, VMM distributing as the physical machine at VMM place, for VMM.
In resource management system, mainly comprise the modules such as Resource Scheduler, boot manager and mirror image manager.Resource Scheduler is mainly used in the Resources list of maintenance server and piece storage,, the physical machine that recording and tracking has created and moved and the ruuning situation of virtual machine and resource service condition, Resource Scheduler also, for accepting and processing the outside request such as asset creation and switching, carries out scheduling of resource.Boot manager is mainly responsible for server (being physical machine or virtual machine) system kernel and corresponding driver is provided in bootup process, and secondary server completes bootup process.Mirror image manager is mainly responsible for managing with the various system image of form storage of volume in piece memory resource pool.
The major function of above-mentioned resource management system is for user's request, to complete the establishment of physical machine or virtual machine, and carry out the migration between virtual machine and physical machine as required.
Referring to Fig. 2, the virtual resource request flow process realizing based on above-mentioned resource management system providing for the embodiment of the present invention.As shown in the figure, this flow process can comprise:
Resource type: resources of virtual machine or physical machine resource (this flow process is described as resources of virtual machine as example taking the resource type of user's submission);
The resource specifications such as resource specification: CPU, internal memory, disk;
Operating system template: need the operating system mirror image type of installation, as be OS mirror image or VMM mirror image.
This step is by information format and content are checked, Resource Scheduler can judge whether the request of this application resource conforms with the regulations, and is refused for request against regulation, thereby improves security.This step is optional step.
In this step, the Resources list that Resource Scheduler can be safeguarded according to it is inquired about, this the Resources list be Resource Scheduler real-time servicing (such as asset creation, delete time safeguard, periodic maintenance, or safeguard etc. according to the resource service condition that physical machine and virtual machine report), can learn the resource service condition of the each virtual machine moving by inquiring about this Resources list, thereby learn the resource service condition of the VMM at these virtual machine places, and then learn the resource service condition of the physical machine at VMM place.Certainly,, the relevant information that comprises the VMM having created in piece memory resource pool, Resource Scheduler also can be inquired about to piece memory resource pool.
Mirror image manager, according to the instruction of Resource Scheduler, for virtual machine allocation block equipment, creates system image in block device, and upgrades piece memory resource pool.Boot manager, according to the instruction of Resource Scheduler, is virtual machine generation system kernel file and initrd file.
Initrd file is a temporary root file system of carry in system bootup process, is used for supporting two stage bootup process.In initrd file, comprised various executable programs and driver, they can be used for the root file system of carry reality.The operating system of same type, for virtual machine, is understood according to the driver difference using, and is generated different initrd files.
In above-mentioned flow process, if the virtual machine quantity that application creates is multiple, resource management system can once distribute respectively address and generation system kernel file, initrd file and system image for multiple virtual machines, and starts respectively the bootup process of these virtual machines.If in the time that the multiple virtual machines that create for application are selected VMM, selected VMM only can meet the resource specification requirement of part virtual machine in multiple virtual machines of applying for creating, on this VMM, create after virtual machine, select again to meet other VMM that also virtual machine specification of establishment does not require or newly create VMM, the virtual machine also not creating to create all the other on this VMM.
Referring to Fig. 3, the physical resource request flow process realizing based on above-mentioned resource management system providing for the embodiment of the present invention.As shown in the figure, this flow process can comprise:
Step 301, Resource Scheduler receives the request of application physical resource.This request is that user's (being generally application) submits to resource management system, and application content can comprise following information:
Resource type: resources of virtual machine or physical machine resource (this flow process is described as physical machine resource as example taking the resource type of user's submission);
The resource specifications such as resource specification: CPU, internal memory, disk;
Operating system template: need the operating system mirror image type of installation, as be OS mirror image or VMM mirror image.
Step 302, Resource Scheduler checks the format and content of the information of carrying in this request, if checked unsuccessfully, proceeds to step 308, prompting error message, wherein can comprise failure cause, otherwise proceed to step 303.
Step 303, Resource Scheduler selects to meet the physical machine (being server apparatus) of physical machine resource specification requirement from server resource pond, proceeds to step 304.
Step 304, Resource Scheduler is the physical machine distributing IP address that request creates; Rotating mirror is as manager according to desired resource specification allocation block equipment in resource bid, and rotating mirror creates in clone's mode the system image that meets desired system image type as manager in this block device; Instruction boot manager is physical machine generation system kernel file and the initrd file that request creates; Record MAC Address, IP address, the system kernel file of this physical machine, the corresponding relation of system image block device.
Mirror image manager, according to the instruction of Resource Scheduler, for physical machine allocation block equipment, creates system image in block device.Boot manager, according to the instruction of Resource Scheduler, is physical machine generation system kernel file and initrd file.The operating system of same type, for physical machine, is understood according to the driver difference using, and is generated different initrd files.
Step 305, Resource Scheduler is by IPMI(Intelligent Platform Management Interface, IPMI) start physical machine, proceed to afterwards step 306 and carry out boot flow.
Step 306, carries out boot flow after physical machine starts.In the embodiment of the present invention, physical machine and virtual machine are carried out unified booting operating system flow process.Process flow diagram is shown in Fig. 4, introduces in detail after a while.
Step 307, after boot flow completes, Resource Scheduler returns to the successful information of virtual machine creating, wherein can comprise the relevant information of virtual machine.Further, Resource Scheduler is safeguarded the Resources list on it.
Describe the server boot flow in the embodiment of the present invention below in detail.
Conventionally, the boot flow of server is mainly realized by following steps:
1) BIOS(Basic Input Output System, Basic Input or Output System (BIOS)) self-inspection;
2) read boot from the boot sector of local disk;
3) kernel file of the local operation system in boot program loads disk and initrd file, interim root file system and device drives that initrd file provides kernel operational process to use, by the init initializtion script load driver program in initrd file;
4) kernel carries out, after system initialization, root file system being switched to the root file system in disk partition, and carries out remaining boot flow according to the configuration in new root file system.
The boot flow that the embodiment of the present invention realizes, is with the difference of above-mentioned server boot flow:
-operating system of certain type is divided into two parts storage, a part is kernel file and the initrd file of operating system, is present in boot manager with document form; Another part is the root file system of operating system, comprises the file structure of operating system, various system program and application program, reserved free disk space etc., and entirety is stored in the block device of piece memory resource pool with the form of mirror image;
-according to the type of server (as being virtual machine or physical machine) of user's request and OS Type (as being OS system or VMM system), generation system kernel file, and configure initrd file, be stored in boot manager, offer server according to the address of server (being virtual machine or physical machine) and the mapping relations of system kernel file, can exact connect ion and system image block device corresponding to carry.
Referring to Fig. 4, the boot flow providing for the embodiment of the present invention.Wherein, for the bootup process in Fig. 2, " server " here refers to virtual machine; For the bootup process in Fig. 3, " server " here refers to physical machine.This boot flow can comprise:
Step 401 when after startup of server, is set to PXE(Preboot Execute Environment, Pre-Boot eXecution Environment in BIOS) mode carries out netboot.
PXE works in Client/Server(client/server) network schemer, support performance station is downloaded reflection by network from far-end server, and support thus the start-up course of operating system of automatic network, in its start-up course, demanding terminal server-assignment IP address, use again TFTP(Trivial File Transfer Protocol, TFTP) or MTFTP(Multicast Trivial Tile Transfer Protocol, multiple spot TFTP) agreement downloads one and starts software package in the machine internal memory and carry out, completing terminal basic software by this startup software package arranges, thereby guiding is arranged on the terminal operating system in server in advance.
Step 402, server sends DHCP(Dynamic Host Configuration Protocol, DHCP) request, this DHCP carries the MAC Address of self in asking;
Step 403, because operation in boot manager has DHCP service routine, therefore accepts this DHCP request, and according to the IP address of this server and the corresponding relation of MAC Address, gives this server by the IP address assignment corresponding with the MAC Address of this server.For the virtual machine creating flow process shown in Fig. 2, this corresponding relation is set up in step 206; For the physical machine visioning procedure shown in Fig. 3, this corresponding relation is set up in step 304.
Step 404, server is accepted IP address and is configured by dhcp response, and passes through TFTP agreement from boot manager download system kernel file and initrd file; Boot manager, according to the MAC Address of this server, according to the MAC address of server of setting up before and the corresponding relation of system kernel file and initrd file, sends to this server by the system kernel file and the initrd file that generate for this server.For the virtual machine creating flow process shown in Fig. 2, this system kernel file and initrd file generate in step 206; For the physical machine visioning procedure shown in Fig. 3, this system kernel file and initrd file generate in step 304.
Step 405, the system kernel file loading system kernel that server basis is received, and carry out the initializtion script in initrd file, and the device drives of server is carried out to initialization, comprise the mirror image block device that initialization and connection server use.Owing to comprising SAN(Storage Area Network in initrd file, storage area network) driver and the configuration information of shared storage device, therefore boot kernel program according to this information the file system in can block device the loading blocks equipment at attended operation system image place.Resource Scheduler can be automatically according to driver and configuration information in the information updating initrd file of server.
Boot is according to the drive arrangements in the system image block device of this server of configuration information update of server and system setting, relevant system setting comprise file system configuration file, network profile etc. relevant to block device or with the relevant customized configurations such as distributed IP address.Here, if server is virtual machine, the driving kernel module of loading is configured to the driving that virtual machine is corresponding, if server is physical machine, the driving kernel module of loading is configured to the driving that physical equipment is corresponding.
Step 406 ~ 408, the file system in the system image block device that the system kernel carry of server is connected to, carries out root file system switching, is switched to the file system in system image block device, and continues executive system initialization flow process.
Step 409, server guides successfully.
For the boot flow shown in Fig. 4, it should be noted that, the agreement using in this flow process, such as DHCP agreement, TFTP agreement, be only the lower agreement that may use of a kind of concrete application scenarios, the embodiment of the present invention is not got rid of other agreement of use to reach same or similar object.
In embodiments of the present invention, boot flow is the key link that physical machine and virtual machine are able to United Dispatching and smooth migration.Because the embodiment of the present invention has realized separating completely of computational resource and storage resources, and carry out unified system boot flow, therefore can, between physical machine and physical machine, between virtual machine and virtual machine, and between physical machine and virtual machine, carry out quick and smooth migration.Various migration flow processs are basic identical, are mainly and delete original server, and the server form based on new creates new driving and configuration file, by associated the system image foundation of these configurations and original server, thus the new server of fast creation.
Taking the migration from virtual machine to physical machine as example, the migration flow process between server is described below.
Referring to Fig. 5, be the flow process from virtual machine (vm) migration to physical machine that the embodiment of the present invention provides, this flow process can comprise:
Step 501, Resource Scheduler reception server migration request, to ask that resources of virtual machine is moved to physical machine.This request is that user's (being generally application) submits to resource management system, and the content of this request can comprise: the ID of the virtual machine that move, the specification of target physical machine resource.
Step 502, Resource Scheduler checks the format and content of the information of carrying in this request, as whether inspection resource specification meets the requirement of server resource pond.If checked unsuccessfully, proceed to step 507, prompting error message, wherein can comprise failure cause, otherwise proceed to step 503.This step is optional.
Step 503, Resource Scheduler is according to the specification of desired target physical resource in migration request, the physical machine of selector joint source specification requirement, for this physical machine generation system kernel file and initrd file, the MAC Address of this physical machine, system kernel file and initrid file and IP address and the system image that virtual machine used of being moved are set up to corresponding relation.
Step 504, Resource Scheduler, according to the ID of the virtual machine that will move, is closed corresponding virtual machine, deletes this virtual machine, and regains computational resource and the mirrored storage resource of distributing this virtual machine, and proceeds to step 505.
Step 505, Resource Scheduler starts this physical machine and carries out boot flow.This flow process can be as shown in Figure 4.
Step 506, after moving successfully, Resource Scheduler is remigration success response further.
The process and the above-mentioned flow process that move to virtual machine from physical machine are similar, its process is briefly described as follows: resource management system receives from physical machine moves to the request of virtual machine, selection meets the virtual machine of resource specification requirement, for this virtual machine generation system kernel file and driver file, set up system kernel file and the driver file of this virtual machine, with the IP address that physical machine was used of being moved and the corresponding relation of system image.Resource management system is closed the physical machine of being moved, and discharges the resource of this physical machine; Start the bootup process of this target virtual machine, and in bootup process, give this target virtual machine by the IP address configuration of this physical machine, to be system kernel file, the driver file that this target virtual machine generates, and the system image of this physical machine use, offer this target virtual machine and carry out system configuration and startup.
Wherein, resource management system in the process of selecting the virtual machine that meets resource specification requirement is: according to the resource specification of the target virtual machine carrying in this request, whether the idling-resource of the virtual machine under Query Running Status meets the requirements, if there is virtual machine to meet the requirements in running status and idling-resource, determine that this virtual machine is target virtual machine, otherwise, the VMM that meets resource specification requirement created, and create virtual machine on this VMM, using this virtual machine as target virtual machine.
It should be noted that; the above embodiment of the present invention is to describe as an example of the system architecture as shown in Fig. 1 and Fig. 6 example; each module in this framework is divided with logic function; can realize any other Module Division mode of the object of the embodiment of the present invention; and the resource management flow process realizing based on this kind of Module Division mode, all within protection scope of the present invention.
In sum, the embodiment of the present invention has realized by unified management and scheduling are carried out in server computational resource pond and block device memory resource pool, based on dynamic mirror management and mapping mechanism, by unified boot flow, realize physical machine and the scheduling of virtual machine unified resource and switched, the resource pool of having guaranteed physical machine and virtual machine can unite two into one, and carries out United Dispatching, and application can be carried out fast transferring in batches between physical machine and virtual machine.
Based on identical technical conceive, the embodiment of the present invention also provides a kind of resource management system.
Referring to Fig. 6, the structural representation of the resource management system providing for the embodiment of the present invention.
This resource management system can comprise: Resource Scheduler 601, boot manager 602, mirror image manager 603, wherein:
Mirror image administration module 603, is used to described server generation system mirror image, and in the bootup process of described server, the system image generating is offered to described server carry out system configuration and startup for described server;
Further, Resource Scheduler 601 also can, after receiving the request of application server resource, carry out validity checking to the request of described application server resource, after validity checking is passed through, according to the request distribution server of described application server resource.
Further, in the request of described application server resource, carry server resource specification, Resource Scheduler 601 also can be according to the server resource specification of carrying in the request of described application server resource, the server of allocator joint source specification requirement.Concrete, if the server resource of applying for is physical machine resource, Resource Scheduler 601 is according to the server resource specification of carrying in the request of described application server resource, and from physical server resource pool, the physical machine of selector joint source specification requirement is distributed; If the server resource of applying for is resources of virtual machine, Resource Scheduler 601 is according to the server resource specification of carrying in the request of described application server resource, whether the idling-resource of the physical machine at the VMM place under Query Running Status meets resource specification requirement, if there is the idling-resource of the physical machine of VMM in running status and place to meet resource specification requirement, on this VMM, create virtual machine, otherwise, create VMM according to server resource specification, and create virtual machine on this VMM.
Concrete, in server bootup process, boot manager 602 can be receiving after the address assignment request of described server transmission, by returning to described server for the IP address of described server-assignment is carried on address assignment response, so that described server carries out IP address configuration; Receiving after the download request that described server sends, will send to described server for system kernel file and driver file that described server generates, so that described server loading system kernel and drive initial configuration.Mirror image manager 603 can receive after the system image carry request of described server transmission, the system image generating for described server is sent to described server, so that described server is switched to the file system described system image by file system from system kernel file system, and carry out initial configuration according to the file system after switching.
Further, this resource management system also can be realized server resource migration process.Below the functional description of the corresponding function module in server resource transition process.
In the bootup process of destination server, the address configuration of described source server is given described destination server by boot manager 602, the system kernel file, the driver file that generate offered to described destination server carry out system configuration and startup for described destination server; The system image that mirror image manager 603 uses described source server offers described destination server and carries out system configuration and startup.
Further, explorer 601, after the request that receives migration server, carries out validity checking to the request of described migration server; After validity checking is passed through, determine destination server according to the request of described migration server.
Further, carry the resource specification of destination server in the request of described migration server, explorer 601, according to the destination server specification of carrying in the request of described migration server, is determined satisfactory destination server.Concrete, if the request of described migration server is the request from virtual machine (vm) migration to physical machine, Resource Scheduler 601 is according to the destination server resource specification of carrying in the request of described migration server, the physical machine of selector joint source specification requirement from physical server resource pool; If the request of described migration server is the request that moves to virtual machine from physical machine, Resource Scheduler 601 is according to the destination server resource specification of carrying in the request of described migration server, whether the idling-resource of the virtual machine under Query Running Status meets resource specification requirement, if there is virtual machine to meet resource specification requirement in running status and idling-resource, determine that this virtual machine is target virtual machine, otherwise, establishment meets the VMM of destination server resource specification requirement, and on this VMM, creates virtual machine as target virtual machine.
Concrete, in destination server bootup process, boot manager 602 is receiving after the address assignment request of described destination server transmission, the IP address that described source server is used is carried on address assignment response and returns to described destination server, so that described destination server carries out IP address configuration; Receiving after the download request of described destination server transmission, will be for system kernel file and driver file that described destination server generates send to described destination server, so that described destination server loading system kernel and drive initial configuration.Mirror image manager 603 is receiving after the system image carry request of described destination server transmission, the system image that described source server is used sends to described destination server, so that described destination server is switched to the file system described system image by file system from system kernel file system, and carry out initial configuration according to the file system after switching.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add essential general hardware platform by software and realize, and can certainly pass through hardware, but in a lot of situation, the former is better embodiment.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in a storage medium, comprise that some instructions (can be mobile phones in order to make a station terminal equipment, personal computer, server, or the network equipment etc.) carry out the method described in each embodiment of the present invention.
The above is only the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should be looked protection scope of the present invention.
Claims (20)
1. a method for managing resource, is characterized in that, the method comprises:
Receive the request of application server resource, according to the request distribution server of described application server resource; Wherein, if the server resource of applying for is physical machine resource, distribute physical machine, if the server resource of applying for is resources of virtual machine, distribute virtual machine;
For described server-assignment address, and be described server generation system kernel file, driver file and system image;
Start the bootup process of described server, and in the bootup process of described server, by be the address configuration of described server-assignment to described server, will carry out system configuration and startup for system kernel file, driver file and system image that described server generates offer described server.
2. the method for claim 1, is characterized in that, after receiving the request of application server resource, also comprises: the request of described application server resource is carried out to validity checking;
According to the request distribution server of described application server resource, be specially: after validity checking is passed through, according to the request distribution server of described application server resource.
3. the method for claim 1, is characterized in that, carries server resource specification in the request of described application server resource;
According to the request distribution server of described application server resource, be specially: according to the server resource specification of carrying in the request of described application server resource, the server of allocator joint source specification requirement.
4. method as claimed in claim 3, it is characterized in that, if the server resource of applying for is physical machine resource, according to the server resource specification of carrying in the request of described application server resource, the server of allocator joint source specification requirement, specifically comprises:
According to the server resource specification of carrying in the request of described application server resource, from physical server resource pool, the physical machine of selector joint source specification requirement is distributed;
If the server resource of applying for is resources of virtual machine, according to the server resource specification of carrying in the request of described application server resource, the server of allocator joint source specification requirement, specifically comprises:
According to the server resource specification of carrying in the request of described application server resource, whether the idling-resource of the physical machine at the virtual machine monitor VMM place under Query Running Status meets resource specification requirement, if there is the idling-resource of the physical machine of VMM in running status and place to meet resource specification requirement, on this VMM, create virtual machine, otherwise, create VMM according to server resource specification, and create virtual machine on this VMM.
5. the method as described in one of claim 1-4, is characterized in that, the bootup process of described server, comprising:
Receive after the address assignment request of described server transmission, by returning to described server for the IP address of described server-assignment is carried on address assignment response, so that described server carries out IP address configuration;
Receive after the download request that described server sends, will send to described server for system kernel file and driver file that described server generates, so that described server loading system kernel and drive initial configuration;
Receive after the system image carry request of described server transmission, the system image generating for described server is sent to described server, so that described server is switched to the file system described system image by file system from system kernel file system, and carry out initial configuration according to the file system after switching.
6. a method for managing resource, is characterized in that, the method comprises:
Receive the request of migration server resource, described request in order to request by source server resource migration to destination server, described source server and described destination server are physical machine or virtual machine;
Determine destination server according to the request of described migration server resource, and be destination server generation system kernel file and driver file, set up system kernel file and the driver file of destination server, with the address of source server and the corresponding relation of system image;
According to the request of described migration server resource, source of release server resource;
Start the bootup process of destination server, and in destination server bootup process, give described destination server by the address configuration of described source server, to be system kernel file, the driver file that described destination server generates, and the system image of described source server use, offer described destination server and carry out system configuration and startup.
7. method as claimed in claim 6, is characterized in that, after receiving the request of migration server, also comprises: the request of described migration server is carried out to validity checking;
Determine destination server according to the request of described migration server, be specially: after validity checking is passed through, determine destination server according to the request of described migration server.
8. method as claimed in claim 6, is characterized in that, carries the specification of destination server in the request of described migration server;
Destination server is determined in the described request according to described migration server, is specially: according to the destination server specification of carrying in the request of described migration server, determine satisfactory destination server.
9. method as claimed in claim 8, it is characterized in that, if the request of described migration server is the request from virtual machine (vm) migration to physical machine, according to the destination server resource specification of carrying in the request of described migration server, determine the destination server that meets resource specification requirement, specifically comprise:
According to the destination server resource specification of carrying in the request of described migration server, the physical machine of selector joint source specification requirement from physical server resource pool;
If the request of described migration server is the request that moves to virtual machine from physical machine, according to the destination server resource specification of carrying in the request of described migration server, determine the destination server that meets resource specification requirement, specifically comprise:
According to the destination server resource specification of carrying in the request of described migration server, whether the idling-resource of the virtual machine under Query Running Status meets resource specification requirement, if there is virtual machine to meet resource specification requirement in running status and idling-resource, determine that this virtual machine is target virtual machine, otherwise, establishment meets the virtual machine monitor VMM of destination server resource specification requirement, and on this VMM, creates virtual machine as target virtual machine.
10. the method as described in one of claim 6-9, is characterized in that, the bootup process of described destination server, comprising:
Receive after the address assignment request of described destination server transmission, the IP address that described source server is used is carried on address assignment response and returns to described destination server, so that described destination server carries out IP address configuration;
Receive after the download request of described destination server transmission, will be for system kernel file and driver file that described destination server generates send to described destination server, so that described destination server loading system kernel and drive initial configuration;
Receive after the system image carry request of described destination server transmission, the system image that described source server is used sends to described destination server, so that described destination server is switched to the file system described system image by file system from system kernel file system, and carry out initial configuration according to the file system after switching.
11. 1 kinds of resource management systems, is characterized in that, comprising: Resource Scheduler, boot manager, mirror image manager, wherein:
Resource Scheduler, for receiving the request of application server resource, according to the request distribution server of described application server resource, wherein, if the server resource of applying for is physical machine resource, distribute physical machine, if the server resource of applying for is resources of virtual machine, distribute virtual machine; For described server-assignment address, and to indicate described guide management module be described server generation system kernel file and driver file, and indicating described mirror image administration module is described server generation system mirror image;
Described mirror image administration module, is used to described server generation system mirror image, and in the bootup process of described server, the system image generating is offered to described server carry out system configuration and startup for described server;
Described guide management module, be used to described server generation system kernel file and driver file, and in the bootup process of described server, by be the address configuration of described server-assignment to described server, the system kernel file generating for described server and driver file are offered to described server and carry out system configuration and startup.
12. resource management systems as claimed in claim 11, it is characterized in that, described Resource Scheduler also for, after receiving the request of application server resource, the request of described application server resource is carried out to validity checking, after validity checking is passed through, according to the request distribution server of described application server resource.
13. resource management systems as claimed in claim 11, is characterized in that, carry server resource specification in the request of described application server resource;
Described Resource Scheduler specifically for, according to the server resource specification of carrying in the request of described application server resource, the server of allocator joint source specification requirement.
14. resource management systems as claimed in claim 13, is characterized in that, described Resource Scheduler specifically for:
If the server resource of applying for is physical machine resource, according to the server resource specification of carrying in the request of described application server resource, from physical server resource pool, the physical machine of selector joint source specification requirement is distributed;
If the server resource of applying for is resources of virtual machine, according to the server resource specification of carrying in the request of described application server resource, whether the idling-resource of the physical machine at the virtual machine monitor VMM place under Query Running Status meets resource specification requirement, if there is the idling-resource of the physical machine of VMM in running status and place to meet resource specification requirement, on this VMM, create virtual machine, otherwise, create VMM according to server resource specification, and create virtual machine on this VMM.
15. resource management systems as described in one of claim 11-14, it is characterized in that, described boot manager specifically for, receiving after the address assignment request of described server transmission, by returning to described server for the IP address of described server-assignment is carried on address assignment response, so that described server carries out IP address configuration; Receiving after the download request that described server sends, will send to described server for system kernel file and driver file that described server generates, so that described server loading system kernel and drive initial configuration;
Described mirror image manager specifically for, receiving after the system image carry request of described server transmission, the system image generating for described server is sent to described server, so that described server is switched to the file system described system image by file system from system kernel file system, and carry out initial configuration according to the file system after switching.
16. resource management systems as claimed in claim 11, it is characterized in that, described Resource Scheduler also for, receive the request of migration server resource, described request in order to request by source server resource migration to destination server, described source server and described destination server are physical machine or virtual machine; Determine destination server according to the request of described migration server resource, indicating described boot manager is destination server generation system kernel file and driver file, set up system kernel file and the driver file of destination server, with the address of source server and the corresponding relation of system image; According to the request of described migration server resource, source of release server resource; Start the bootup process of destination server;
Described boot manager also for, in destination server bootup process, give described destination server by the address configuration of described source server, the system kernel file, the driver file that generate are offered to described destination server carry out system configuration and startup for described destination server;
Described mirror image manager also for, in destination server bootup process, the system image that described source server is used offers described destination server and carries out system configuration and startup.
17. resource management systems as claimed in claim 16, is characterized in that, described explorer also for, after the request that receives migration server, the request of described migration server is carried out to validity checking; After validity checking is passed through, determine destination server according to the request of described migration server.
18. resource management systems as claimed in claim 16, is characterized in that, carry the specification of destination server in the request of described migration server;
Described explorer specifically for, according to the destination server specification of carrying in the request of described migration server, determine satisfactory destination server.
19. resource management systems as claimed in claim 18, is characterized in that, described Resource Scheduler specifically for:
If the request of described migration server is the request from virtual machine (vm) migration to physical machine, according to the destination server resource specification of carrying in the request of described migration server, the physical machine of selector joint source specification requirement from physical server resource pool;
If the request of described migration server is the request that moves to virtual machine from physical machine, according to the destination server resource specification of carrying in the request of described migration server, whether the idling-resource of the virtual machine under Query Running Status meets resource specification requirement, if there is virtual machine to meet resource specification requirement in running status and idling-resource, determine that this virtual machine is target virtual machine, otherwise, establishment meets the VMM of destination server resource specification requirement, and on this VMM, creates virtual machine as target virtual machine.
20. resource management systems as described in one of claim 16-19, it is characterized in that, described boot manager specifically for, receiving after the address assignment request of described destination server transmission, the IP address that described source server is used is carried on address assignment response and returns to described destination server, so that described destination server carries out IP address configuration; Receiving after the download request of described destination server transmission, will be for system kernel file and driver file that described destination server generates send to described destination server, so that described destination server loading system kernel and drive initial configuration;
Described mirror image manager specifically for, receiving after the system image carry request of described destination server transmission, the system image that described source server is used sends to described destination server, so that described destination server is switched to the file system described system image by file system from system kernel file system, and carry out initial configuration according to the file system after switching.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210560698.3A CN103885833B (en) | 2012-12-20 | 2012-12-20 | A kind of method for managing resource and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210560698.3A CN103885833B (en) | 2012-12-20 | 2012-12-20 | A kind of method for managing resource and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103885833A true CN103885833A (en) | 2014-06-25 |
CN103885833B CN103885833B (en) | 2017-06-20 |
Family
ID=50954742
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210560698.3A Active CN103885833B (en) | 2012-12-20 | 2012-12-20 | A kind of method for managing resource and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103885833B (en) |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104461738A (en) * | 2014-12-11 | 2015-03-25 | 珠海金山网络游戏科技有限公司 | Method, corresponding system and equipment for reusing resources in resource mangers |
CN105278874A (en) * | 2015-09-15 | 2016-01-27 | 中国联合网络通信集团有限公司 | Big data platform system and running method therefor |
CN107133105A (en) * | 2017-05-17 | 2017-09-05 | 华南理工大学 | Super emerging system, the data processing method based on super emerging system |
CN107135103A (en) * | 2017-05-08 | 2017-09-05 | 网宿科技股份有限公司 | The method and system of content construction distribution network platform on heterogeneous resource |
CN107517264A (en) * | 2017-09-04 | 2017-12-26 | 郑州云海信息技术有限公司 | The method and system of processing is asked in cloud data system |
CN108667750A (en) * | 2017-03-31 | 2018-10-16 | 华为技术有限公司 | virtual resource management method and device |
CN108958946A (en) * | 2018-08-02 | 2018-12-07 | 中国建设银行股份有限公司 | Virtualization resource pond switching method, device and electronic equipment |
CN109783117A (en) * | 2019-01-18 | 2019-05-21 | 中国人民解放军国防科技大学 | Mirror image file making and starting method of diskless system |
CN110011842A (en) * | 2019-03-28 | 2019-07-12 | 山东超越数控电子股份有限公司 | A kind of initiated configuration method of Virtual cluster |
CN110633900A (en) * | 2019-08-30 | 2019-12-31 | 中国人民财产保险股份有限公司 | Virtual resource allocation method and device and electronic equipment |
CN111090439A (en) * | 2019-12-13 | 2020-05-01 | 苏州浪潮智能科技有限公司 | Mirror image generation method, device and equipment for Linux system of bare metal server |
CN111399974A (en) * | 2019-03-26 | 2020-07-10 | 深圳市鸿合创新信息技术有限责任公司 | Resource management method and device and electronic equipment |
CN111628890A (en) * | 2016-05-12 | 2020-09-04 | 深信服科技股份有限公司 | Virtual node creating method and device based on network topological graph |
CN113485789A (en) * | 2021-06-30 | 2021-10-08 | 海光信息技术股份有限公司 | Resource allocation method and device and computer architecture |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1604528A (en) * | 2004-11-12 | 2005-04-06 | 清华大学 | Cooperative starting method for network computer |
CN1916846A (en) * | 2005-08-17 | 2007-02-21 | 联想(北京)有限公司 | Method for automatic deploying operate system |
CN101650666A (en) * | 2009-08-31 | 2010-02-17 | 曙光信息产业(北京)有限公司 | Computer management system and method |
JP2012146105A (en) * | 2011-01-12 | 2012-08-02 | Hitachi Ltd | Computer system |
-
2012
- 2012-12-20 CN CN201210560698.3A patent/CN103885833B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1604528A (en) * | 2004-11-12 | 2005-04-06 | 清华大学 | Cooperative starting method for network computer |
CN1916846A (en) * | 2005-08-17 | 2007-02-21 | 联想(北京)有限公司 | Method for automatic deploying operate system |
CN101650666A (en) * | 2009-08-31 | 2010-02-17 | 曙光信息产业(北京)有限公司 | Computer management system and method |
JP2012146105A (en) * | 2011-01-12 | 2012-08-02 | Hitachi Ltd | Computer system |
Cited By (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104461738A (en) * | 2014-12-11 | 2015-03-25 | 珠海金山网络游戏科技有限公司 | Method, corresponding system and equipment for reusing resources in resource mangers |
CN104461738B (en) * | 2014-12-11 | 2018-02-13 | 珠海金山网络游戏科技有限公司 | The method of resource multiplex, correspondence system and equipment in explorer |
CN105278874A (en) * | 2015-09-15 | 2016-01-27 | 中国联合网络通信集团有限公司 | Big data platform system and running method therefor |
CN111628890A (en) * | 2016-05-12 | 2020-09-04 | 深信服科技股份有限公司 | Virtual node creating method and device based on network topological graph |
CN108667750A (en) * | 2017-03-31 | 2018-10-16 | 华为技术有限公司 | virtual resource management method and device |
CN107135103A (en) * | 2017-05-08 | 2017-09-05 | 网宿科技股份有限公司 | The method and system of content construction distribution network platform on heterogeneous resource |
US11102089B2 (en) * | 2017-05-08 | 2021-08-24 | Wangsu Science & Technology Co., Ltd. | Method and system for constructing content delivery network platform on heterogeneous resources |
CN107133105B (en) * | 2017-05-17 | 2020-06-30 | 华南理工大学 | Super-fusion system and data processing method based on super-fusion system |
CN107133105A (en) * | 2017-05-17 | 2017-09-05 | 华南理工大学 | Super emerging system, the data processing method based on super emerging system |
CN107517264A (en) * | 2017-09-04 | 2017-12-26 | 郑州云海信息技术有限公司 | The method and system of processing is asked in cloud data system |
CN108958946A (en) * | 2018-08-02 | 2018-12-07 | 中国建设银行股份有限公司 | Virtualization resource pond switching method, device and electronic equipment |
CN109783117A (en) * | 2019-01-18 | 2019-05-21 | 中国人民解放军国防科技大学 | Mirror image file making and starting method of diskless system |
CN111399974A (en) * | 2019-03-26 | 2020-07-10 | 深圳市鸿合创新信息技术有限责任公司 | Resource management method and device and electronic equipment |
CN110011842A (en) * | 2019-03-28 | 2019-07-12 | 山东超越数控电子股份有限公司 | A kind of initiated configuration method of Virtual cluster |
CN110011842B (en) * | 2019-03-28 | 2022-04-19 | 超越科技股份有限公司 | Initialization configuration method for virtualization cluster |
CN110633900A (en) * | 2019-08-30 | 2019-12-31 | 中国人民财产保险股份有限公司 | Virtual resource allocation method and device and electronic equipment |
CN111090439A (en) * | 2019-12-13 | 2020-05-01 | 苏州浪潮智能科技有限公司 | Mirror image generation method, device and equipment for Linux system of bare metal server |
CN113485789A (en) * | 2021-06-30 | 2021-10-08 | 海光信息技术股份有限公司 | Resource allocation method and device and computer architecture |
Also Published As
Publication number | Publication date |
---|---|
CN103885833B (en) | 2017-06-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103885833A (en) | Method and system for managing resources | |
US11405274B2 (en) | Managing virtual network functions | |
US10701139B2 (en) | Life cycle management method and apparatus | |
US11146620B2 (en) | Systems and methods for instantiating services on top of services | |
US10656983B2 (en) | Methods and apparatus to generate a shadow setup based on a cloud environment and upgrade the shadow setup to identify upgrade-related errors | |
US10089130B2 (en) | Virtual desktop service apparatus and method | |
KR101574366B1 (en) | Synchronizing virtual machine and application life cycles | |
US8301746B2 (en) | Method and system for abstracting non-functional requirements based deployment of virtual machines | |
US9086901B2 (en) | Migration of applications from physical machines to virtual machines | |
CN102932408B (en) | A kind of management method of server cluster and platform | |
US9507586B2 (en) | Virtual machine based controller and upgrade mechanism | |
CN102710814B (en) | The control method of virtual machine IP address and device | |
US9954933B2 (en) | Scheduled virtual desktops | |
CN108089913B (en) | Virtual machine deployment method of super-fusion system | |
CN103034527B (en) | Hybrid virtualization cloud computing resources optimal control method and system | |
US9858105B1 (en) | Service for managing custom virtual machine images | |
CN103608773A (en) | Deployment system for multi-node applications | |
US10728169B1 (en) | Instance upgrade migration | |
JP2013536518A (en) | How to enable hypervisor control in a cloud computing environment | |
US11461120B2 (en) | Methods and apparatus for rack nesting in virtualized server systems | |
US11010149B2 (en) | Shared middleware layer containers | |
CN109660575B (en) | Method and device for realizing NFV service deployment | |
US9798571B1 (en) | System and method for optimizing provisioning time by dynamically customizing a shared virtual machine | |
US20230023945A1 (en) | Orchestrating and Automating Product Deployment Flow and Lifecycle Management | |
KR102477931B1 (en) | SDN Platform and SDC Platform Automation system and the method using it |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |