CN104731656A - Resource distribution method and device - Google Patents

Resource distribution method and device Download PDF

Info

Publication number
CN104731656A
CN104731656A CN201310719478.5A CN201310719478A CN104731656A CN 104731656 A CN104731656 A CN 104731656A CN 201310719478 A CN201310719478 A CN 201310719478A CN 104731656 A CN104731656 A CN 104731656A
Authority
CN
China
Prior art keywords
hardware resource
active system
hardware
resource
specifically comprises
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
Application number
CN201310719478.5A
Other languages
Chinese (zh)
Other versions
CN104731656B (en
Inventor
王峰
胡达
杨鋆源
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310719478.5A priority Critical patent/CN104731656B/en
Publication of CN104731656A publication Critical patent/CN104731656A/en
Application granted granted Critical
Publication of CN104731656B publication Critical patent/CN104731656B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Hardware Redundancy (AREA)

Abstract

The invention provides a resource distribution method and device. The method includes: acquiring the hardware resource occupation state information of a main system; judging whether the occupation state information satisfies a preset condition or not; if so, distributing first hardware resources to the main system. By the resource distribution method and device, hardware resources can be dynamically distributed, expansion of the hardware resources of the main system can be performed when the hardware resources of the main system are insufficient, and faults of a whole network system are avoided.

Description

A kind of resource allocation methods and device
Technical field
The application relates to data processing field, particularly relates to a kind of resource allocation methods and device.
Background technology
In large-scale network system, after breaking down in order to ensure some network equipment, the operation of network can not be had a strong impact on, and usually all can dispose two cover systems.This two cover system can be called active system and back-up system.
Wherein, when network normally runs, the business relevant with this network is responsible for process by active system, and the data produced when running business, synchronously can be stored to back-up system.When device fails in active system, back-up system can the business that carries of adapter active system.
Along with the development of network technology and the quantity of user terminal constantly increase, the business of active system carrying also becomes increasingly complex, and needs the data of storage also more and more huger.
But, in prior art, when the hardware resource of active system is not enough, active system will break down, and back-up system is due to identical with the hardware resource condition of active system, also cannot the business that carries of adapter active system, finally cause whole network system to break down.
Summary of the invention
The object of the application is to provide a kind of resource allocation methods and device, can pass through dynamic assignment hardware resource, solves when the hardware resource of active system is not enough, the problem that whole network system will break down.
For achieving the above object, this application provides following scheme:
According to the first possible implementation of the first aspect of the application, the application provides a kind of resource allocation methods, comprising:
Obtain the hardware resource seizure condition information of active system;
Judge whether described seizure condition information meets pre-conditioned;
When judging that described seizure condition information meets pre-conditioned, for described active system distributes the first hardware resource.
In conjunction with the implementation that the second of first aspect is possible, described is, after described active system distributes the first hardware resource, also comprise:
Back-up system for described active system distributes the second hardware resource;
Wherein, the hardware resource of same type, the quantity in described second hardware resource is more than or equal to the quantity in described first hardware resource.
In conjunction with the third possible implementation of first aspect, the hardware resource seizure condition information of described acquisition active system, specifically comprises:
Obtain the computational resource occupation proportion of active system;
Accordingly, describedly judge whether described seizure condition information meets pre-conditioned, specifically comprises:
Judge whether described computational resource occupation proportion is greater than first threshold;
Or the hardware resource seizure condition information of described acquisition active system, specifically comprises:
Obtain the storage resources occupation proportion of active system;
Accordingly, describedly judge whether described seizure condition information meets pre-conditioned, specifically comprises:
Judge whether described storage resources occupation proportion is greater than Second Threshold;
Or the hardware resource seizure condition information of described acquisition active system, specifically comprises:
Obtain the resource occupying ratio of active system;
Accordingly, describedly judge whether described seizure condition information meets pre-conditioned, specifically comprises:
Judge whether described resource occupying ratio is greater than the 3rd threshold value.
In conjunction with the 4th kind of possible implementation of first aspect, for described active system distributes the first hardware resource, specifically comprise:
Determine the hardware asset information required for described active system; Described hardware asset information at least comprises the type of the hardware resource required for described active system, and the quantity required for hardware resource of every type;
The first request comprising described hardware asset information is sent to the first hardware resource management server; Described first request is for asking described first hardware resource management server to be the first rights of using that described active system distributes the first hardware resource;
By described first hardware resource management server be described active system distribute described first rights of using.
In conjunction with the first specific implementation of the possible implementation of the second of first aspect, the back-up system for described active system distributes the second hardware resource, specifically comprises:
Determine the hardware asset information required for described back-up system; Described hardware asset information at least comprises the type of the hardware resource required for described back-up system, and the quantity required for hardware resource of every type;
The second request comprising described hardware asset information is sent to the second hardware resource management server; Described second request is for asking described second hardware resource management server to be the second rights of using that described back-up system distributes the second hardware resource;
By described second hardware resource management server be described back-up system distribute described second rights of using.
In conjunction with the second specific implementation of the possible implementation of the second of first aspect, the described back-up system for described active system also comprises after distributing the second hardware resource:
Control described back-up system and use described second hardware resource;
Control described active system and use described first hardware resource.
In conjunction with the first implementation more specifically of the second specific implementation of the possible implementation of the second of first aspect, if described second hardware resource is resources of virtual machine, then the described back-up system of described control uses described second hardware resource, specifically comprises:
The second virtual machine controlling described second hardware resource corresponding runs the second application program;
Described second virtual machine arranges the second database;
Wherein, described second application program is, when described active system breaks down, and the application program that the business carrying described active system adopts; The database that the data that described second database is synchronous described active system adopt.
In conjunction with the first implementation more specifically of the second specific implementation of the possible implementation of the second of first aspect, if described first hardware resource is resources of virtual machine, the described active system of described control uses described first hardware resource, specifically comprises:
The first virtual machine controlling described first hardware resource corresponding runs the first application program;
Described first virtual machine arranges the first database;
Wherein, the application program that the business that described first application program is the described active system of carrying adopts; The database that the data that described first database is the described active system of storage adopt.
According to the first possible implementation of the second aspect of the application, the application provides a kind of resource allocation device, comprising:
Acquiring unit, for obtaining the hardware resource seizure condition information of active system;
Judging unit, for judging whether described seizure condition information meets pre-conditioned;
First allocation units, for when judging that described seizure condition information meets pre-conditioned, for described active system distributes the first hardware resource.
In conjunction with the implementation that the second of second aspect is possible, also comprise:
Second allocation units, for described for after described active system distributes the first hardware resource, the back-up system for described active system distributes the second hardware resource;
Wherein, the hardware resource of same type, the quantity in described second hardware resource is more than or equal to the quantity in described first hardware resource.
In conjunction with the third possible implementation of second aspect, described acquiring unit, specifically comprises:
First obtains subelement, for obtaining the computational resource occupation proportion of active system;
Accordingly, described judging unit, specifically comprises:
First judgment sub-unit, for judging whether described computational resource occupation proportion is greater than first threshold;
Or described acquiring unit, specifically comprises:
Second obtains subelement, for obtaining the storage resources occupation proportion of active system;
Accordingly, described judging unit, specifically comprises:
Second judgment sub-unit, for judging whether described storage resources occupation proportion is greater than Second Threshold;
Or described acquiring unit, specifically comprises:
3rd obtains subelement, for obtaining the resource occupying ratio of active system;
Accordingly, described judging unit, specifically comprises:
3rd judgment sub-unit, for judging whether described resource occupying ratio is greater than the 3rd threshold value.
In conjunction with the 4th kind of possible implementation of second aspect, described first allocation units, specifically comprise:
First determines subelement, for determining the hardware asset information of described active system; Described hardware asset information at least comprises the type of the hardware resource required for described active system, and the quantity required for hardware resource of every type;
First request sends subelement, for sending the first request comprising described hardware asset information to the first hardware resource management server; Described first request is for asking described first hardware resource management server to be the first rights of using that described active system distributes the first hardware resource;
So that described first hardware resource management server is described active system distribute described first rights of using.
In conjunction with the first concrete implementation of the 4th kind of possible implementation of second aspect, described second allocation units, specifically comprise:
Second determines subelement, for determining the hardware asset information of described back-up system; Described hardware asset information at least comprises the type of the hardware resource required for described back-up system, and the quantity required for hardware resource of every type;
Second request transmitting unit, for sending the second request comprising described hardware asset information to the second hardware resource management server; Described second request is for asking described second hardware resource management server to be the second rights of using that described back-up system distributes the second hardware resource;
So that described second hardware resource management server is described back-up system distribute described second rights of using.
In conjunction with the implementation that the second in four kinds of second aspect possible implementations is concrete, also comprise:
First control module, after distributing the second hardware resource in the described back-up system for described active system, controls described back-up system and uses described second hardware resource;
Second control module, for control described second hardware resource of described back-up system use at described first control module after, controls described active system and uses described first hardware resource.
In conjunction with the first specific implementation of the concrete implementation of the second in four kinds of second aspect possible implementations, if described second hardware resource is resources of virtual machine, then described first control module, specifically comprises:
First controls subelement, runs the second application program for the second virtual machine controlling described second hardware resource corresponding;
First arranges subelement, for arranging the second database on described second virtual machine;
Wherein, described second application program is, when described active system breaks down, and the application program that the business carrying described active system adopts; The database that the data that described second database is synchronous described active system adopt.
In conjunction with the second specific implementation of the concrete implementation of the second in four kinds of second aspect possible implementations, if described second hardware resource is resources of virtual machine, then described second control module, specifically comprises:
Second controls subelement, runs the first application program for the first virtual machine controlling described first hardware resource corresponding;
Second arranges subelement, for arranging the first database on described first virtual machine;
Wherein, the application program that the business that described first application program is the described active system of carrying adopts; The database that the data that described first database is the described active system of storage adopt.
According to the specific embodiment that the application provides, this application discloses following technique effect:
Resource allocation methods disclosed in the present application or device, by obtaining the hardware resource seizure condition information of active system, judge whether described seizure condition information meets pre-conditioned, if met, then distributes the first hardware resource for described active system; Thus can dynamic assignment hardware resource, when the hardware resource of active system is not enough, dilatation can be carried out to the hardware resource of active system, avoid whole network system to break down.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present application or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment below, apparently, accompanying drawing in the following describes is only some embodiments of the application, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the process flow diagram of the resource allocation methods embodiment 1 of the application;
Fig. 2 is the process flow diagram of the resource allocation methods embodiment 2 of the application;
Fig. 3 is the process flow diagram of the resource allocation methods embodiment 3 of the application;
Fig. 4 is the structural drawing of the resource allocation device embodiment of the application;
Fig. 5 is the structural drawing of the computing node of the application.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present application, be clearly and completely described the technical scheme in the embodiment of the present application, obviously, described embodiment is only some embodiments of the present application, instead of whole embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not making the every other embodiment obtained under creative work prerequisite, all belong to the scope of the application's protection.
For enabling above-mentioned purpose, the feature and advantage of the application more become apparent, below in conjunction with the drawings and specific embodiments, the application is described in further detail.
Fig. 1 is the process flow diagram of the resource allocation methods embodiment 1 of the application.The executive agent of this method can be the server in active system, and as shown in Figure 1, the method can comprise:
Step 101: the hardware resource seizure condition information obtaining active system;
Described active system can comprise working traffic node (Front End, FE) and primary back end (Back End, BE).
Wherein, FE is the general designation of a class network element, such as attaching position register (Home LocationRegister, HLR), home subscriber server (Home Subscriber Server, HSS), "Policy and Charging Rules Function network element (Policy and Charging Rule Function, PCRF), name server (Enhanced Name Server, ENS) etc. is strengthened.FE primary responsibility docks with signaling element, processing signaling message.
BE is a database, the data that primary responsibility storage network mega signaling is relevant, provides tent business simultaneously, is responsible for data modification and the maintenance of whole system.
Described hardware resource, can refer to the hardware resource with computing power, or has the hardware resource of storage capacity, or has the hardware resource of network capacity.
Described seizure condition information can be the information of the occupation proportion represented described hardware resource.Described occupation proportion can be the ratio between hardware resource and operational hardware resource used.
Step 102: judge whether described seizure condition information meets pre-conditioned;
Describedly pre-conditionedly according to the concrete seizure condition information adopted, can to arrange.
Such as, when described seizure condition information represents the ratio between computational resource and operational computational resource used, described pre-conditioned can be first threshold.When the ratio that described seizure condition information represents, when being more than or equal to described first threshold, can judge that described seizure condition information meets pre-conditioned.
In like manner, when described seizure condition information represents the occupation proportion of other hardware resources, described pre-conditioned can be that this occupation proportion is more than or equal to Second Threshold or the 3rd threshold value etc.
Step 103: when judging that described seizure condition information meets pre-conditioned, for described active system distributes the first hardware resource.
When judging that described seizure condition information meets pre-conditioned, the hardware resource that expression active system has used occupies the larger proportion of whole available hardware resource.If need business to be processed to become more complicated, need data to be processed to continue to increase, then active system may be caused to break down.
In the embodiment of the present invention, described active system can be connected with cloud system.There is in cloud system other hardware resource.Concrete, described cloud system can be made up of multiple computing machine.Computing machine in cloud system, can become the hardware resource for active system.
When described seizure condition information meets pre-conditioned, the hardware resource in cloud system can be distributed to active system and use, to expand the capacity of the hardware resource of described active system.
In sum, in the present embodiment, by obtaining the hardware resource seizure condition information of active system, judging whether described seizure condition information meets pre-conditioned, if met, then distributing the first hardware resource for described active system; Thus can dynamic assignment hardware resource, when the hardware resource of active system is not enough, dilatation can be carried out to the hardware resource of active system, avoid whole network system to break down.
In practical application, when after described active system dilatation, if the back-up system not dilatation of described active system, then when the business of active system carrying is greater than the load-bearing capacity of the hardware resource of back-up system and active system breaks down, back-up system also cannot the business of adapter active system, causes back-up system cannot play the effect of application.
In order to avoid above-mentioned situation occurs, the invention provides the following examples.
Fig. 2 is the process flow diagram of the resource allocation methods embodiment 2 of the application.As shown in Figure 2, the method can comprise:
Step 201: the hardware resource seizure condition information obtaining active system;
Step 202: judge whether described seizure condition information meets pre-conditioned, obtains judged result;
Step 203: when described judged result is for being, for described active system distributes the first hardware resource.
Step 204: the back-up system for described active system distributes the second hardware resource;
Wherein, the hardware resource of same type, the quantity in described second hardware resource is more than or equal to the quantity in described first hardware resource.
Described back-up system also can be connected with cloud system.Hardware resource in cloud system can be distributed to described back-up system.Distribute to the quantity of the second hardware resource of back-up system, the quantity of the first hardware resource distributing to active system should be not less than in principle.
Such as, distribute to the storage resources of active system 100GB, then the storage resources distributing to back-up system also should not be less than 100GB.Can ensure that back-up system is identical with the load-bearing capacity of active system like this, can when active system break down, the business of adapter active system.
It should be noted that, in each embodiment of the present invention, for described active system distributes the first hardware resource, specifically can comprise the following steps:
Determine the hardware asset information required for described active system; Described hardware asset information at least comprises the type of the hardware resource required for described active system, and the quantity required for hardware resource of every type;
The first request comprising described hardware asset information is sent to the first hardware resource management server; Described first request is for asking described first hardware resource management server to be the first rights of using that described active system distributes the first hardware resource;
By described first hardware resource management server be described active system distribute described first rights of using.
Wherein, the type of the hardware resource required for described active system, specifically can comprise storage resources type, computational resource type and network resource type.For storage resources, the storage size of needs can be indicated in hardware asset information; For computational resource, the number needing the dominant frequency of processor and the processor of needs adopted can be indicated in hardware asset information; For Internet resources, the network transmission bandwidth of needs can be indicated in hardware asset information.
Hardware resource management server can be comprised in cloud system.Server in active system can send the first request to hardware resource management server.The rights of using of the hardware resource in cloud system can be distributed to active system after receiving described first request by hardware resource management server.Active system, by described rights of using, can use corresponding hardware resource.
In like manner, in each embodiment of the present invention, the back-up system for described active system distributes the second hardware resource, specifically can comprise the following steps:
Determine the hardware asset information required for described back-up system; Described hardware asset information at least comprises the type of the hardware resource required for described back-up system, and the quantity required for hardware resource of every type;
The second request comprising described hardware asset information is sent to the second hardware resource management server; Described second request is for asking described second hardware resource management server to be the second rights of using that described back-up system distributes the second hardware resource;
By described second hardware resource management server be described back-up system distribute described second rights of using.
In practical application, after hardware resource distributes to active system or back-up system, also need to make active system or back-up system use described hardware resource to run corresponding program, described hardware resource can be made to obtain real utilization.But between active system and back-up system, must meet specific running status, that is: active system data of generating when the business of operation, need stores synchronized in back-up system.Therefore, for the hardware resource of active system and back-up system, also need to enable according to specific order, above-mentioned specific running status could be met, realize seamless dilatation.
In order to meet above-mentioned running status, realizing seamless dilatation, present invention also offers the following examples.
Fig. 3 is the process flow diagram of the resource allocation methods embodiment 3 of the application.As shown in Figure 3, the method can comprise:
Step 301: the hardware resource seizure condition information obtaining active system;
Step 302: judge whether described seizure condition information meets pre-conditioned, obtains judged result;
Step 303: when described judged result is for being, for described active system distributes the first hardware resource.
Step 304: the back-up system for described active system distributes the second hardware resource;
Wherein, the hardware resource of same type, the quantity in described second hardware resource is more than or equal to the quantity in described first hardware resource.
Step 305: control described back-up system and use described second hardware resource;
Step 306: control described active system and use described first hardware resource.
In the present embodiment, first control described back-up system and use described second hardware resource, control described active system again and use described first hardware resource, can ensure that the load-bearing capacity of the hardware resource of back-up system is not less than the hardware resource load-bearing capacity of active system always, thus above-mentioned running status can be met, realize seamless dilatation.
In practical application, described hardware resource can be resources of virtual machine.Virtual machine (Virtual Machine, VM) refer to by software simulation have complete hardware system function, the complete computer operated in a completely isolated environment.Can simulate two or the virtual computing machine of multiple stage on a physical computer, these virtual machines can carry out work as real computing machine.On a virtual machine, run the application program required for business of the described active system of carrying, described hardware resource just can be made to be used.
Accordingly, the described active system of described control uses described first hardware resource, specifically can comprise:
The first virtual machine controlling described first hardware resource corresponding runs the first application program;
Described first virtual machine arranges the first database;
Wherein, the application program that the business that described first application program is the described active system of carrying adopts; The database that the data that described first database is the described active system of storage adopt.
The described back-up system of described control uses described second hardware resource, specifically can comprise:
The second virtual machine controlling described second hardware resource corresponding runs the second application program;
Described second virtual machine arranges the second database;
Wherein, described second application program is, when described active system breaks down, and the application program that the business carrying described active system adopts; The database that the data that described second database is synchronous described active system adopt.
Present invention also provides a kind of resource allocation device.Described device can be the server possessing the ability performing preceding method embodiment.This server can be arranged in active system, also can be arranged in back-up system, can also be arranged in cloud system.
Fig. 4 is the structural drawing of the resource allocation device embodiment of the application.As shown in Figure 4, this device can comprise:
Acquiring unit 401, for obtaining the hardware resource seizure condition information of active system;
Described active system can comprise working traffic node (Front End, FE) and primary back end (Back End, BE).
Wherein, FE is the general designation of a class network element, such as attaching position register (Home LocationRegister, HLR), home subscriber server (Home Subscriber Server, HSS), UPCC, enhancing name server (Enhanced Name Server, ENS) etc.FE primary responsibility docks with signaling element, processing signaling message.
BE is a database, the data that primary responsibility storage network mega signaling is relevant, provides tent business simultaneously, is responsible for data modification and the maintenance of whole system.
Described hardware resource, can refer to the hardware resource with computing power, or has the hardware resource of storage capacity, or has the hardware resource of network capacity.
Described seizure condition information can be the information of the occupation proportion represented described hardware resource.Described occupation proportion can be the ratio between hardware resource and operational hardware resource used.
Judging unit 402, for judging whether described seizure condition information meets pre-conditioned;
Describedly pre-conditionedly according to the concrete seizure condition information adopted, can to arrange.
Such as, when described seizure condition information represents the ratio between computational resource and operational computational resource used, described pre-conditioned can be first threshold.When the ratio that described seizure condition information represents, when being more than or equal to described first threshold, can judge that described seizure condition information meets pre-conditioned.
In like manner, when described seizure condition information represents the occupation proportion of other hardware resources, described pre-conditioned can be that this occupation proportion is more than or equal to Second Threshold or the 3rd threshold value etc.
First allocation units 403, for when judging that described seizure condition information meets pre-conditioned, for described active system distributes the first hardware resource.
When judging that described seizure condition information meets pre-conditioned, the hardware resource that expression active system has used occupies the larger proportion of whole available hardware resource.If need business to be processed to become more complicated, need data to be processed to continue to increase, then active system may be caused to break down.
In the embodiment of the present invention, described active system can be connected with cloud system.There is in cloud system other hardware resource.Concrete, described cloud system can be made up of multiple computing machine.Computing machine in cloud system, can become the hardware resource for active system.
When described seizure condition information meets pre-conditioned, the hardware resource in cloud system can be distributed to active system and use, to expand the capacity of the hardware resource of described active system.
In sum, in the present embodiment, by obtaining the hardware resource seizure condition information of active system, judging whether described seizure condition information meets pre-conditioned, if met, then distributing the first hardware resource for described active system; Thus can dynamic assignment hardware resource, when the hardware resource of active system is not enough, dilatation can be carried out to the hardware resource of active system, avoid whole network system to break down.
In practical application, when after described active system dilatation, if the back-up system not dilatation of described active system, then when the business of active system carrying is greater than the load-bearing capacity of the hardware resource of back-up system and active system breaks down, back-up system also cannot the business of adapter active system, causes back-up system cannot play the effect of application.
In order to avoid above-mentioned situation occurs, described device can also comprise:
Second allocation units, for described for after described active system distributes the first hardware resource, the back-up system for described active system distributes the second hardware resource;
Wherein, the hardware resource of same type, the quantity in described second hardware resource is more than or equal to the quantity in described first hardware resource.
In practical application, described acquiring unit 401, specifically can comprise:
First obtains subelement, for obtaining the computational resource occupation proportion of active system;
Accordingly, described judging unit 402, specifically can comprise:
First judgment sub-unit, for judging whether described computational resource occupation proportion is greater than first threshold;
Or described acquiring unit 401, specifically can comprise:
Second obtains subelement, for obtaining the storage resources occupation proportion of active system;
Accordingly, described judging unit 402, specifically can comprise:
Second judgment sub-unit, for judging whether described storage resources occupation proportion is greater than Second Threshold;
Or described acquiring unit 401, specifically can comprise:
3rd obtains subelement, for obtaining the resource occupying ratio of active system;
Accordingly, described judging unit 402, specifically can comprise:
3rd judgment sub-unit, for judging whether described resource occupying ratio is greater than the 3rd threshold value.
In practical application, described first allocation units 403, specifically can comprise:
First determines subelement, for determining the hardware asset information of described active system; Described hardware asset information at least comprises the type of the hardware resource required for described active system, and the quantity required for hardware resource of every type;
First request sends subelement, for sending the first request comprising described hardware asset information to the first hardware resource management server; Described first request is for asking described first hardware resource management server to be the first rights of using that described active system distributes the first hardware resource;
So that described first hardware resource management server is described active system distribute described first rights of using.
In practical application, described second allocation units, specifically can comprise:
Second determines subelement, for determining the hardware asset information of described back-up system; Described hardware asset information at least comprises the type of the hardware resource required for described back-up system, and the quantity required for hardware resource of every type;
Second request transmitting unit, for sending the second request comprising described hardware asset information to the second hardware resource management server; Described second request is for asking described second hardware resource management server to be the second rights of using that described back-up system distributes the second hardware resource;
So that described second hardware resource management server is described back-up system distribute described second rights of using.
In practical application, after hardware resource distributes to active system or back-up system, also need to make active system or back-up system use described hardware resource to run corresponding program, described hardware resource can be made to obtain real utilization.But between active system and back-up system, must meet specific running status, that is: active system data of generating when the business of operation, need stores synchronized in back-up system.Therefore, for the hardware resource of active system and back-up system, also need to enable according to specific order, above-mentioned specific running status could be met, realize seamless dilatation.
In order to meet above-mentioned running status, realize seamless dilatation, this device can also comprise:
First control module, after distributing the second hardware resource in the described back-up system for described active system, controls described back-up system and uses described second hardware resource;
Second control module, for control described second hardware resource of described back-up system use at described first control module after, controls described active system and uses described first hardware resource.
In practical application, described first control module, specifically can comprise:
First controls subelement, runs the second application program for the second virtual machine controlling described second hardware resource corresponding;
First arranges subelement, for arranging the second database on described second virtual machine;
Wherein, described second application program is, when described active system breaks down, and the application program that the business carrying described active system adopts; The database that the data that described second database is synchronous described active system adopt.
In practical application, described second control module, specifically can comprise:
Second controls subelement, runs the first application program for the first virtual machine controlling described first hardware resource corresponding;
Second arranges subelement, for arranging the first database on described first virtual machine;
Wherein, the application program that the business that described first application program is the described active system of carrying adopts; The database that the data that described first database is the described active system of storage adopt.
In addition, the embodiment of the present application additionally provides a kind of computing node, computing node may be the host server comprising computing power, or personal computer PC, or portable portable computer or terminal etc., the application's specific embodiment does not limit the specific implementation of computing node.
Fig. 5 is the structural drawing of the computing node of the application.As shown in Figure 5, computing node 700 comprises:
Processor (processor) 710, communication interface (Communications Interface) 720, storer (memory) 730, bus 740.
Processor 710, communication interface 720, storer 730 completes mutual communication by bus 740.
Processor 710, for executive routine 732.
Particularly, program 732 can comprise program code, and described program code comprises computer-managed instruction.
Processor 710 may be a central processor CPU, or specific integrated circuit ASIC(Application Specific Integrated Circuit), or be configured to the one or more integrated circuit implementing the embodiment of the present application.
Storer 730, for depositing program 732.Storer 730 may comprise high-speed RAM storer, still may comprise nonvolatile memory (non-volatile memory), such as at least one magnetic disk memory.Program 732 specifically can comprise embodiment illustrated in fig. 4 in corresponding module or unit, be not repeated herein.
Finally, also it should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the application can add required hardware platform by software and realize, can certainly all be implemented by hardware, but in a lot of situation, the former is better embodiment.Based on such understanding, what the technical scheme of the application contributed to background technology can embody with the form of software product in whole or in part, this computer software product can be stored in storage medium, as ROM/RAM, magnetic disc, CD etc., comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform the method described in some part of each embodiment of the application or embodiment.
In this instructions, each embodiment adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar portion mutually see.For device disclosed in embodiment, because it corresponds to the method disclosed in Example, so description is fairly simple, relevant part illustrates see method part.
Apply specific case herein to set forth the principle of the application and embodiment, the explanation of above embodiment is just for helping method and the core concept thereof of understanding the application; Meanwhile, for one of ordinary skill in the art, according to the thought of the application, all will change in specific embodiments and applications.In sum, this description should not be construed as the restriction to the application.

Claims (16)

1. a resource allocation methods, is characterized in that, comprising:
Obtain the hardware resource seizure condition information of active system;
Judge whether described seizure condition information meets pre-conditioned;
When judging that described seizure condition information meets pre-conditioned, for described active system distributes the first hardware resource.
2. method according to claim 1, is characterized in that, described is, after described active system distributes the first hardware resource, also comprise:
Back-up system for described active system distributes the second hardware resource;
Wherein, the hardware resource of same type, the quantity in described second hardware resource is more than or equal to the quantity in described first hardware resource.
3. method according to claim 1, is characterized in that, the hardware resource seizure condition information of described acquisition active system, specifically comprises:
Obtain the computational resource occupation proportion of active system;
Accordingly, describedly judge whether described seizure condition information meets pre-conditioned, specifically comprises:
Judge whether described computational resource occupation proportion is greater than first threshold;
Or the hardware resource seizure condition information of described acquisition active system, specifically comprises:
Obtain the storage resources occupation proportion of active system;
Accordingly, describedly judge whether described seizure condition information meets pre-conditioned, specifically comprises:
Judge whether described storage resources occupation proportion is greater than Second Threshold;
Or the hardware resource seizure condition information of described acquisition active system, specifically comprises:
Obtain the resource occupying ratio of active system;
Accordingly, describedly judge whether described seizure condition information meets pre-conditioned, specifically comprises:
Judge whether described resource occupying ratio is greater than the 3rd threshold value.
4. method according to claim 1, is characterized in that, for described active system distributes the first hardware resource, specifically comprises:
Determine the hardware asset information required for described active system; Described hardware asset information at least comprises the type of the hardware resource required for described active system, and the quantity required for hardware resource of every type;
The first request comprising described hardware asset information is sent to the first hardware resource management server; Described first request is for asking described first hardware resource management server to be the first rights of using that described active system distributes the first hardware resource;
By described first hardware resource management server be described active system distribute described first rights of using.
5. method according to claim 2, is characterized in that, the back-up system for described active system distributes the second hardware resource, specifically comprises:
Determine the hardware asset information required for described back-up system; Described hardware asset information at least comprises the type of the hardware resource required for described back-up system, and the quantity required for hardware resource of every type;
The second request comprising described hardware asset information is sent to the second hardware resource management server; Described second request is for asking described second hardware resource management server to be the second rights of using that described back-up system distributes the second hardware resource;
By described second hardware resource management server be described back-up system distribute described second rights of using.
6. method according to claim 2, is characterized in that, the described back-up system for described active system also comprises after distributing the second hardware resource:
Control described back-up system and use described second hardware resource;
Control described active system and use described first hardware resource.
7. method according to claim 6, is characterized in that, if described second hardware resource is resources of virtual machine, then the described back-up system of described control uses described second hardware resource, specifically comprises:
The second virtual machine controlling described second hardware resource corresponding runs the second application program;
Described second virtual machine arranges the second database;
Wherein, described second application program is, when described active system breaks down, and the application program that the business carrying described active system adopts; The database that the data that described second database is synchronous described active system adopt.
8. method according to claim 6, is characterized in that, if described first hardware resource is resources of virtual machine, the described active system of described control uses described first hardware resource, specifically comprises:
The first virtual machine controlling described first hardware resource corresponding runs the first application program;
Described first virtual machine arranges the first database;
Wherein, the application program that the business that described first application program is the described active system of carrying adopts; The database that the data that described first database is the described active system of storage adopt.
9. a resource allocation device, is characterized in that, comprising:
Acquiring unit, for obtaining the hardware resource seizure condition information of active system;
Judging unit, for judging whether described seizure condition information meets pre-conditioned;
First allocation units, for when judging that described seizure condition information meets pre-conditioned, for described active system distributes the first hardware resource.
10. device according to claim 9, is characterized in that, also comprises:
Second allocation units, for described for after described active system distributes the first hardware resource, the back-up system for described active system distributes the second hardware resource;
Wherein, the hardware resource of same type, the quantity in described second hardware resource is more than or equal to the quantity in described first hardware resource.
11. devices according to claim 9, is characterized in that, described acquiring unit, specifically comprises:
First obtains subelement, for obtaining the computational resource occupation proportion of active system;
Accordingly, described judging unit, specifically comprises:
First judgment sub-unit, for judging whether described computational resource occupation proportion is greater than first threshold;
Or described acquiring unit, specifically comprises:
Second obtains subelement, for obtaining the storage resources occupation proportion of active system;
Accordingly, described judging unit, specifically comprises:
Second judgment sub-unit, for judging whether described storage resources occupation proportion is greater than Second Threshold;
Or described acquiring unit, specifically comprises:
3rd obtains subelement, for obtaining the resource occupying ratio of active system;
Accordingly, described judging unit, specifically comprises:
3rd judgment sub-unit, for judging whether described resource occupying ratio is greater than the 3rd threshold value.
12. devices according to claim 9, is characterized in that, described first allocation units, specifically comprise:
First determines subelement, for determining the hardware asset information of described active system; Described hardware asset information at least comprises the type of the hardware resource required for described active system, and the quantity required for hardware resource of every type;
First request sends subelement, for sending the first request comprising described hardware asset information to the first hardware resource management server; Described first request is for asking described first hardware resource management server to be the first rights of using that described active system distributes the first hardware resource;
So that described first hardware resource management server is described active system distribute described first rights of using.
13. devices according to claim 10, is characterized in that, described second allocation units, specifically comprise:
Second determines subelement, for determining the hardware asset information of described back-up system; Described hardware asset information at least comprises the type of the hardware resource required for described back-up system, and the quantity required for hardware resource of every type;
Second request transmitting unit, for sending the second request comprising described hardware asset information to the second hardware resource management server; Described second request is for asking described second hardware resource management server to be the second rights of using that described back-up system distributes the second hardware resource;
So that described second hardware resource management server is described back-up system distribute described second rights of using.
14. devices according to claim 10, is characterized in that, also comprise:
First control module, after distributing the second hardware resource in the described back-up system for described active system, controls described back-up system and uses described second hardware resource;
Second control module, for control described second hardware resource of described back-up system use at described first control module after, controls described active system and uses described first hardware resource.
15. devices according to claim 14, is characterized in that, if described second hardware resource is resources of virtual machine, then described first control module, specifically comprises:
First controls subelement, runs the second application program for the second virtual machine controlling described second hardware resource corresponding;
First arranges subelement, for arranging the second database on described second virtual machine;
Wherein, described second application program is, when described active system breaks down, and the application program that the business carrying described active system adopts; The database that the data that described second database is synchronous described active system adopt.
16. devices according to claim 14, is characterized in that, if described second hardware resource is resources of virtual machine, then described second control module, specifically comprises:
Second controls subelement, runs the first application program for the first virtual machine controlling described first hardware resource corresponding;
Second arranges subelement, for arranging the first database on described first virtual machine;
Wherein, the application program that the business that described first application program is the described active system of carrying adopts; The database that the data that described first database is the described active system of storage adopt.
CN201310719478.5A 2013-12-23 2013-12-23 A kind of resource allocation methods and device Active CN104731656B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310719478.5A CN104731656B (en) 2013-12-23 2013-12-23 A kind of resource allocation methods and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310719478.5A CN104731656B (en) 2013-12-23 2013-12-23 A kind of resource allocation methods and device

Publications (2)

Publication Number Publication Date
CN104731656A true CN104731656A (en) 2015-06-24
CN104731656B CN104731656B (en) 2018-10-30

Family

ID=53455571

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310719478.5A Active CN104731656B (en) 2013-12-23 2013-12-23 A kind of resource allocation methods and device

Country Status (1)

Country Link
CN (1) CN104731656B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109408225A (en) * 2018-09-18 2019-03-01 平安科技(深圳)有限公司 Resource capacity expansion method, apparatus, computer equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060235956A1 (en) * 2005-03-30 2006-10-19 Sony Corporation Information process distribution system, information processing apparatus and information process distribution method
CN101217678A (en) * 2007-12-28 2008-07-09 华为技术有限公司 System upgrade method, system and device
CN102388570A (en) * 2011-09-30 2012-03-21 华为技术有限公司 Single board running method and system under active-standby mode
CN102722413A (en) * 2012-05-16 2012-10-10 上海兆民云计算科技有限公司 Distributed resource scheduling method for desktop cloud cluster
CN103336574A (en) * 2013-07-23 2013-10-02 北京百度网讯科技有限公司 Energy-saving control method and device of data center

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060235956A1 (en) * 2005-03-30 2006-10-19 Sony Corporation Information process distribution system, information processing apparatus and information process distribution method
CN101217678A (en) * 2007-12-28 2008-07-09 华为技术有限公司 System upgrade method, system and device
CN102388570A (en) * 2011-09-30 2012-03-21 华为技术有限公司 Single board running method and system under active-standby mode
CN102722413A (en) * 2012-05-16 2012-10-10 上海兆民云计算科技有限公司 Distributed resource scheduling method for desktop cloud cluster
CN103336574A (en) * 2013-07-23 2013-10-02 北京百度网讯科技有限公司 Energy-saving control method and device of data center

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109408225A (en) * 2018-09-18 2019-03-01 平安科技(深圳)有限公司 Resource capacity expansion method, apparatus, computer equipment and storage medium

Also Published As

Publication number Publication date
CN104731656B (en) 2018-10-30

Similar Documents

Publication Publication Date Title
US11704144B2 (en) Creating virtual machine groups based on request
CN102316043B (en) Port virtualization method, switch and communication system
CN104965757A (en) Virtual machine live migration method, virtual machine migration management apparatus, and virtual machine live migration system
CN104199957A (en) Redis universal agent implementation method
CN104102475A (en) Method, device and system for processing distributed type parallel tasks
CN104486234A (en) Method and server for uninstalling service exchanger to physical network card
CN104572182A (en) Configuration method of stream application, nodes and stream computing system
CN104850394A (en) Management method of distributed application program and distributed system
CN105210324A (en) Method, apparatus and system for virtualizing policy and charging rule function
CN103150159A (en) Identifier generation using named objects
CN103713953A (en) Device and method for transferring data in memory
CN104346404A (en) Method, equipment and system for accessing data
CN107682306A (en) Data transmission method and device
CN104657216A (en) Resource allocation method and device for resource pool
CN104598293A (en) Online snapshot method and equipment
CN105593814A (en) Method, apparatus and system for home management device virtualization
CN105430093A (en) Method and system for realizing user access load balance
CN104731656A (en) Resource distribution method and device
CN106447755A (en) Animation rendering system
CN105278877A (en) Object storage method and device
CN102868594B (en) Method and device for message processing
CN104580328A (en) Virtual machine migration method, device and system
WO2021057150A1 (en) Port sharing method and apparatus, storage medium and electronic apparatus
CN103634344A (en) Method and apparatus for unit operation multiple MySQL database examples
CN105808352A (en) Cloud resource allocation method and device

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20200206

Address after: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee after: HUAWEI TECHNOLOGIES Co.,Ltd.

Address before: 210012 HUAWEI Nanjing base, 101 software Avenue, Yuhuatai District, Jiangsu, Nanjing

Patentee before: Huawei Technologies Co.,Ltd.