CN104731656B - A kind of resource allocation methods and device - Google Patents

A kind of resource allocation methods and device Download PDF

Info

Publication number
CN104731656B
CN104731656B CN201310719478.5A CN201310719478A CN104731656B CN 104731656 B CN104731656 B CN 104731656B CN 201310719478 A CN201310719478 A CN 201310719478A CN 104731656 B CN104731656 B CN 104731656B
Authority
CN
China
Prior art keywords
hardware resource
active system
hardware
resource
specifically includes
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.)
Active
Application number
CN201310719478.5A
Other languages
Chinese (zh)
Other versions
CN104731656A (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

This application provides a kind of resource allocation methods and devices.The method includes:Obtain the hardware resource seizure condition information of active system;Judge whether the seizure condition information meets preset condition;When judging that the seizure condition information meets preset condition, the first hardware resource is distributed for the active system.Using the present processes or device, hardware resource can be dynamically distributed, when the hardware resource deficiency of active system, dilatation can be carried out to the hardware resource of active system, avoid whole network system jam.

Description

A kind of resource allocation methods and device
Technical field
This application involves data processing fields, more particularly to a kind of resource allocation methods and device.
Background technology
In large-scale network system, after breaking down in order to ensure certain network equipments, the operation of network will not be by tight Ghost image is rung, and usually can all dispose two systems.This two systems is properly termed as active system and back-up system.
Wherein, when network normal operation, business related with the network is responsible for processing by active system, is produced when running business Raw data can be synchronized and be stored to back-up system.When the device fails in active system, back-up system can take over master The business carried with system.
With the continuous development of network technology and the quantity of user terminal is continuously increased, the business of active system carrying It becomes increasingly complex, needs the data stored also more and more huger.
But in the prior art, when the hardware resource deficiency of active system, active system will break down, and standby With system due to identical as the hardware resource condition of active system, also can not the business that is carried of take over active system, finally lead Whole network system is caused to break down.
Invention content
The purpose of the application is to provide a kind of resource allocation methods and device, can pass through and dynamically distribute hardware resource, solution Certainly when the hardware resource deficiency of active system, the problem of whole network system will break down.
To achieve the above object, this application provides following schemes:
According to the first possible realization method of the first aspect of the application, the application provides a kind of resource allocation side Method, including:
Obtain the hardware resource seizure condition information of active system;
Judge whether the seizure condition information meets preset condition;
When judging that the seizure condition information meets preset condition, the first hardware money is distributed for the active system Source.
Second of possible realization method with reference to first aspect, it is described to distribute the first hardware resource for the active system Later, further include:
The second hardware resource is distributed for the back-up system of the active system;
Wherein, same type of hardware resource, quantity in second hardware resource are greater than or equal to described the Quantity in one hardware resource.
The third possible realization method with reference to first aspect, the hardware resource seizure condition for obtaining active system Information specifically includes:
Obtain the computing resource occupation proportion of active system;
Judge whether the seizure condition information meets preset condition correspondingly, described, specifically includes:
Judge whether the computing resource occupation proportion is more than first threshold;
Alternatively, the hardware resource seizure condition information for obtaining active system, specifically includes:
Obtain the storage resource occupation proportion of active system;
Judge whether the seizure condition information meets preset condition correspondingly, described, specifically includes:
Judge whether the storage resource occupation proportion is more than second threshold;
Alternatively, the hardware resource seizure condition information for obtaining active system, specifically includes:
Obtain the resource occupying ratio of active system;
Judge whether the seizure condition information meets preset condition correspondingly, described, specifically includes:
Judge whether the resource occupying ratio is more than third threshold value.
The 4th kind of possible realization method with reference to first aspect distributes the first hardware resource, tool for the active system Body includes:
Determine the required hardware asset information of the active system;The hardware asset information includes at least described primary The type and the required quantity of each type of hardware resource of the required hardware resource of system;
The first request comprising the hardware asset information is sent to the first hardware resource management server;Described first asks It is the first use that the active system distributes the first hardware resource to ask for asking the first hardware resource management server Permission;
It is that the active system distributes first access right by the first hardware resource management server.
The first specific implementation of second of possible realization method with reference to first aspect is the active system Back-up system distribute the second hardware resource, specifically include:
Determine the required hardware asset information of the back-up system;The hardware asset information includes at least described spare The type and the required quantity of each type of hardware resource of the required hardware resource of system;
The second request comprising the hardware asset information is sent to the second hardware resource management server;Described second asks It is the second use that the back-up system distributes the second hardware resource to ask for asking the second hardware resource management server Permission;
It is that the back-up system distributes second access right by the second hardware resource management server.
Second of specific implementation of second of possible realization method with reference to first aspect, described is described primary The back-up system of system is distributed after the second hardware resource, further includes:
It controls the back-up system and uses second hardware resource;
It controls the active system and uses first hardware resource.
The first of second of specific implementation of second of possible realization method with reference to first aspect is more specific Realization method, if second hardware resource is resources of virtual machine, the control back-up system uses described second Hardware resource specifically includes:
It controls corresponding second virtual machine of second hardware resource and runs the second application program;
The second database is set on second virtual machine;
Wherein, second application program is when the active system breaks down, to carry the business of the active system Used application program;Second database is database used by synchronizing the data of the active system.
The first of second of specific implementation of second of possible realization method with reference to first aspect is more specific Realization method, if first hardware resource is resources of virtual machine, the control active system is hard using described first Part resource, specifically includes:
It controls corresponding first virtual machine of first hardware resource and runs the first application program;
First database is set on first virtual machine;
Wherein, first application program is application program used by carrying the business of the active system;Described One database is database used by storing the data of the active system.
According to the first possible realization method of the second aspect of the application, the application provides a kind of resource allocation dress It sets, including:
Acquiring unit, the hardware resource seizure condition information for obtaining active system;
Judging unit, for judging whether the seizure condition information meets preset condition;
First allocation unit, for when judging that the seizure condition information meets preset condition, being the primary system System the first hardware resource of distribution.
In conjunction with second of possible realization method of second aspect, further include:
Second allocation unit, for being described primary after first hardware resource of distribution for the active system The back-up system of system distributes the second hardware resource;
Wherein, same type of hardware resource, quantity in second hardware resource are greater than or equal to described the Quantity in one hardware resource.
In conjunction with the third possible realization method of second aspect, the acquiring unit specifically includes:
First obtains subelement, the computing resource occupation proportion for obtaining active system;
Correspondingly, the judging unit, specifically includes:
First judgment sub-unit, for judging whether the computing resource occupation proportion is more than first threshold;
Alternatively, the acquiring unit, specifically includes:
Second obtains subelement, the storage resource occupation proportion for obtaining active system;
Correspondingly, the judging unit, specifically includes:
Second judgment sub-unit, for judging whether the storage resource occupation proportion is more than second threshold;
Alternatively, the acquiring unit, specifically includes:
Third obtains subelement, the resource occupying ratio for obtaining active system;
Correspondingly, the judging unit, specifically includes:
Third judgment sub-unit, for judging whether the resource occupying ratio is more than third threshold value.
In conjunction with the 4th kind of possible realization method of second aspect, first allocation unit specifically includes:
First determination subelement, for determining the required hardware asset information of the active system;The hardware resource Information is required including at least the type of the required hardware resource of the active system and each type of hardware resource Quantity;
First request transmission sub-unit, believes for being sent to the first hardware resource management server comprising the hardware resource First request of breath;First request is for asking the first hardware resource management server to be distributed for the active system First access right of the first hardware resource;
So that the first hardware resource management server is that the active system distributes first access right.
In conjunction with the first concrete implementation mode of the 4th kind of possible realization method of second aspect, second distribution Unit specifically includes:
Second determination subelement, for determining the required hardware asset information of the back-up system;The hardware resource Information is required including at least the type of the required hardware resource of the back-up system and each type of hardware resource Quantity;
Second request transmitting unit includes the hardware asset information for being sent to the second hardware resource management server Second request;Second request is back-up system distribution for asking the second hardware resource management server Second access right of two hardware resources;
So that the second hardware resource management server is that the back-up system distributes second access right.
In conjunction with second aspect four kinds of possible realization methods in second of concrete implementation mode, further include:
First control unit, after distributing the second hardware resource in the back-up system for the active system, It controls the back-up system and uses second hardware resource;
Second control unit is provided for controlling the back-up system in first control unit using second hardware After source, controls the active system and use first hardware resource.
In conjunction with second aspect four kinds of possible realization methods in second of concrete implementation mode the first is specific Realization method, if second hardware resource is resources of virtual machine, first control unit specifically includes:
First control subelement runs second using journey for controlling corresponding second virtual machine of second hardware resource Sequence;
First setting subelement, for the second database to be arranged on second virtual machine;
Wherein, second application program is when the active system breaks down, to carry the business of the active system Used application program;Second database is database used by synchronizing the data of the active system.
In conjunction with second aspect four kinds of possible realization methods in second of second of concrete implementation mode it is specific Realization method, if second hardware resource is resources of virtual machine, second control unit specifically includes:
Second control subelement runs first using journey for controlling corresponding first virtual machine of first hardware resource Sequence;
Second setting subelement, for first database to be arranged on first virtual machine;
Wherein, first application program is application program used by carrying the business of the active system;Described One database is database used by storing the data of the active system.
According to specific embodiment provided by the present application, this application discloses following technique effects:
Resource allocation methods or device disclosed in the present application, the hardware resource seizure condition by obtaining active system are believed Breath, judges whether the seizure condition information meets preset condition, if it is satisfied, then distributing the first hardware for the active system Resource;It, can be to the hardware of active system when the hardware resource deficiency of active system so as to dynamically distribute hardware resource Resource carries out dilatation, avoids whole network system jam.
Description of the drawings
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, below will be to institute in embodiment Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the application Example, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these attached drawings Obtain other attached drawings.
Fig. 1 is the flow chart of the resource allocation methods embodiment 1 of the application;
Fig. 2 is the flow chart of the resource allocation methods embodiment 2 of the application;
Fig. 3 is the flow chart of the resource allocation methods embodiment 3 of the application;
Fig. 4 is the structure chart of the resource allocation device embodiment of the application;
Fig. 5 is the structure chart of the calculate node of the application.
Specific implementation mode
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall in the protection scope of this application.
In order to make the above objects, features, and advantages of the present application more apparent, below in conjunction with the accompanying drawings and it is specific real Applying mode, the present application will be further described in detail.
Fig. 1 is the flow chart of the resource allocation methods embodiment 1 of the application.The executive agent of this method can be primary system Server in system, as shown in Figure 1, this method may include:
Step 101:Obtain the hardware resource seizure condition information of active system;
The active system may include working traffic node(Front End, FE)With primary back end(Back End, BE).
Wherein, FE is the general designation of a kind of network element, such as home location register(Home Location Register, HLR), home subscriber server(Home Subscriber Server, HSS), "Policy and Charging Rules Function network element(Policy And Charging Rule Function, PCRF), enhancing name server(Enhanced Name Server, ENS)Deng. FE is mainly responsible for be docked with signaling element, handles signaling message.
BE is a database, is mainly responsible for the storage relevant data of network element signaling, while providing tent business, is responsible for whole The data modification of system and maintenance.
The hardware resource can refer to having the hardware resource of computing capability, or the hardware with storage capacity provides Source, or the hardware resource with network capacity.
The seizure condition information can be the information for indicating the occupation proportion to the hardware resource.The occupancy ratio Example, can be the ratio between used hardware resource and available hardware resource.
Step 102:Judge whether the seizure condition information meets preset condition;
The preset condition can be configured according to the seizure condition information specifically used.
For example, when the seizure condition information indicates between used computing resource and available computing resource When ratio, the preset condition can be first threshold.When the ratio that the seizure condition information indicates, it is greater than or equal to described When first threshold, it is possible to determine that the seizure condition information meets preset condition.
Similarly, when the seizure condition information indicates the occupation proportion of other hardware resources, the preset condition can be with It is that the occupation proportion is greater than or equal to second threshold or third threshold value etc..
Step 103:When judging that the seizure condition information meets preset condition, first is distributed for the active system Hardware resource.
When judging that the seizure condition information meets preset condition, the hardware resource that active system has used is indicated Occupy the larger proportion of whole available hardware resources.Business if necessary to processing becomes more complicated, number to be treated According to continuing growing, then active system may be caused to break down.
In the embodiment of the present invention, the active system can be connected with cloud system.In cloud system there is other hardware to provide Source.Specifically, the cloud system can be made of multiple computers.Computer in cloud system can become for primary The hardware resource that system uses.
When the seizure condition information meets preset condition, the hardware resource in cloud system can be distributed to primary system System uses, to expand the capacity of the hardware resource of the active system.
In conclusion in the present embodiment, by obtaining the hardware resource seizure condition information of active system, accounted for described in judgement Whether meet preset condition with status information, if it is satisfied, then distributing the first hardware resource for the active system;So as to Hardware resource is dynamically distributed, when the hardware resource deficiency of active system, dilatation can be carried out to the hardware resource of active system, Avoid whole network system jam.
In practical application, after the active system dilatation, if the back-up system not dilatation of the active system, when When the business of active system carrying breaks down more than the bearing capacity and active system of the hardware resource of back-up system, spare system System also can not take over active system business, cause back-up system that can not play the role of application.
In order to avoid the above situation occurs, the present invention provides the following examples.
Fig. 2 is the flow chart of the resource allocation methods embodiment 2 of the application.As shown in Fig. 2, this method may include:
Step 201:Obtain the hardware resource seizure condition information of active system;
Step 202:Judge whether the seizure condition information meets preset condition, obtains judging result;
Step 203:When the judging result is to be, the first hardware resource is distributed for the active system.
Step 204:The second hardware resource is distributed for the back-up system of the active system;
Wherein, same type of hardware resource, quantity in second hardware resource are greater than or equal to described the Quantity in one hardware resource.
The back-up system can also be connected with cloud system.Hardware resource in cloud system can be distributed to described spare System.The quantity of the second hardware resource of back-up system is distributed to, it in principle should be hard not less than distribute to active system first The quantity of part resource.
For example, distribute to the storage resource of active system 100GB, then distribute to back-up system storage resource do not answer yet it is small In 100GB.It can ensure that back-up system is identical as the bearing capacity of active system, can break down in active system in this way When, the business of take over active system.
It should be noted that in each embodiment of the present invention, the first hardware resource is distributed for the active system, specifically may be used To include the following steps:
Determine the required hardware asset information of the active system;The hardware asset information includes at least described primary The type and the required quantity of each type of hardware resource of the required hardware resource of system;
The first request comprising the hardware asset information is sent to the first hardware resource management server;Described first asks It is the first use that the active system distributes the first hardware resource to ask for asking the first hardware resource management server Permission;
It is that the active system distributes first access right by the first hardware resource management server.
Wherein, the type of the required hardware resource of the active system can specifically include storage resource type, calculate Resource type and network resource type.For storage resource, it can indicate that the memory space of needs is big in hardware asset information It is small;For computing resource, the dominant frequency for the processor that needs use and the processing of needs can be indicated in hardware asset information The number of device;For Internet resources, the network transmission bandwidth of needs can be indicated in hardware asset information.
It may include hardware resource management server in cloud system.Server in active system can be to hardware resource pipe It manages server and sends the first request.It, can will be in cloud system after hardware resource management server receives first request The access right of hardware resource distribute to active system.Active system can be used corresponding hard by the access right Part resource.
Similarly, it is that the back-up system of the active system distributes the second hardware resource, specifically in each embodiment of the present invention It may comprise steps of:
Determine the required hardware asset information of the back-up system;The hardware asset information includes at least described spare The type and the required quantity of each type of hardware resource of the required hardware resource of system;
The second request comprising the hardware asset information is sent to the second hardware resource management server;Described second asks It is the second use that the back-up system distributes the second hardware resource to ask for asking the second hardware resource management server Permission;
It is that the back-up system distributes second access right by the second hardware resource management server.
In practical application, hardware resource is distributed to after active system or back-up system, it is also necessary to enable active system or Back-up system runs corresponding program using the hardware resource, and the hardware resource can be made really to be utilized.But It is, between active system and back-up system, it is necessary to meet specific operating status, i.e.,:Active system is generated in the business of operation Data, need to synchronize and be stored in back-up system.Therefore, for the hardware resource of active system and back-up system, it is also desirable to It is enabled in particular order, above-mentioned specific operating status could be met, realize seamless dilatation.
In order to meet above-mentioned operating status, seamless dilatation is realized, the present invention also provides the following examples.
Fig. 3 is the flow chart of the resource allocation methods embodiment 3 of the application.As shown in figure 3, this method may include:
Step 301:Obtain the hardware resource seizure condition information of active system;
Step 302:Judge whether the seizure condition information meets preset condition, obtains judging result;
Step 303:When the judging result is to be, the first hardware resource is distributed for the active system.
Step 304:The second hardware resource is distributed for the back-up system of the active system;
Wherein, same type of hardware resource, quantity in second hardware resource are greater than or equal to described the Quantity in one hardware resource.
Step 305:It controls the back-up system and uses second hardware resource;
Step 306:It controls the active system and uses first hardware resource.
In the present embodiment, first controls the back-up system and use second hardware resource, then control the active system Use first hardware resource, it is ensured that the bearing capacity of the hardware resource of back-up system is not less than always active system Hardware resource bearing capacity realizes seamless dilatation so as to meet above-mentioned operating status.
In practical application, the hardware resource can be resources of virtual machine.Virtual machine(Virtual Machine, VM)It is Refer to by software simulate have complete hardware system function, operate in complete computers system in a completely isolated environment System.Two can be simulated on a physical computer or more virtual computers, these virtual machines can be as real Computer equally works.On a virtual machine, operation carries the required application program of business of the active system, so that it may So that the hardware resource is used.
Correspondingly, the control active system uses first hardware resource, can specifically include:
It controls corresponding first virtual machine of first hardware resource and runs the first application program;
First database is set on first virtual machine;
Wherein, first application program is application program used by carrying the business of the active system;Described One database is database used by storing the data of the active system.
The control back-up system uses second hardware resource, can specifically include:
It controls corresponding second virtual machine of second hardware resource and runs the second application program;
The second database is set on second virtual machine;
Wherein, second application program is when the active system breaks down, to carry the business of the active system Used application program;Second database is database used by synchronizing the data of the active system.
Present invention also provides a kind of resource allocation devices.Described device, which can have, executes preceding method embodiment The server of ability.The server can be arranged in active system, can also be arranged in back-up system, can also be arranged In cloud system.
Fig. 4 is the structure chart of the resource allocation device embodiment of the application.As shown in figure 4, the device may include:
Acquiring unit 401, the hardware resource seizure condition information for obtaining active system;
The active system may include working traffic node(Front End, FE)With primary back end(Back End, BE).
Wherein, FE is the general designation of a kind of network element, such as home location register(Home Location Register, HLR), home subscriber server(Home Subscriber Server, HSS), UPCC, enhancing name server(Enhanced Name Server, ENS)Deng.FE is mainly responsible for be docked with signaling element, handles signaling message.
BE is a database, is mainly responsible for the storage relevant data of network element signaling, while providing tent business, is responsible for whole The data modification of system and maintenance.
The hardware resource can refer to having the hardware resource of computing capability, or the hardware with storage capacity provides Source, or the hardware resource with network capacity.
The seizure condition information can be the information for indicating the occupation proportion to the hardware resource.The occupancy ratio Example, can be the ratio between used hardware resource and available hardware resource.
Judging unit 402, for judging whether the seizure condition information meets preset condition;
The preset condition can be configured according to the seizure condition information specifically used.
For example, when the seizure condition information indicates between used computing resource and available computing resource When ratio, the preset condition can be first threshold.When the ratio that the seizure condition information indicates, it is greater than or equal to described When first threshold, it is possible to determine that the seizure condition information meets preset condition.
Similarly, when the seizure condition information indicates the occupation proportion of other hardware resources, the preset condition can be with It is that the occupation proportion is greater than or equal to second threshold or third threshold value etc..
First allocation unit 403, for when judging that the seizure condition information meets preset condition, being described primary System distributes the first hardware resource.
When judging that the seizure condition information meets preset condition, the hardware resource that active system has used is indicated Occupy the larger proportion of whole available hardware resources.Business if necessary to processing becomes more complicated, number to be treated According to continuing growing, then active system may be caused to break down.
In the embodiment of the present invention, the active system can be connected with cloud system.In cloud system there is other hardware to provide Source.Specifically, the cloud system can be made of multiple computers.Computer in cloud system can become for primary The hardware resource that system uses.
When the seizure condition information meets preset condition, the hardware resource in cloud system can be distributed to primary system System uses, to expand the capacity of the hardware resource of the active system.
In conclusion in the present embodiment, by obtaining the hardware resource seizure condition information of active system, accounted for described in judgement Whether meet preset condition with status information, if it is satisfied, then distributing the first hardware resource for the active system;So as to Hardware resource is dynamically distributed, when the hardware resource deficiency of active system, dilatation can be carried out to the hardware resource of active system, Avoid whole network system jam.
In practical application, after the active system dilatation, if the back-up system not dilatation of the active system, when When the business of active system carrying breaks down more than the bearing capacity and active system of the hardware resource of back-up system, spare system System also can not take over active system business, cause back-up system that can not play the role of application.
In order to avoid the above situation occurs, described device can also include:
Second allocation unit, for being described primary after first hardware resource of distribution for the active system The back-up system of system distributes the second hardware resource;
Wherein, same type of hardware resource, quantity in second hardware resource are greater than or equal to described the Quantity in one hardware resource.
In practical application, the acquiring unit 401 can specifically include:
First obtains subelement, the computing resource occupation proportion for obtaining active system;
Correspondingly, the judging unit 402, can specifically include:
First judgment sub-unit, for judging whether the computing resource occupation proportion is more than first threshold;
Alternatively, the acquiring unit 401, can specifically include:
Second obtains subelement, the storage resource occupation proportion for obtaining active system;
Correspondingly, the judging unit 402, can specifically include:
Second judgment sub-unit, for judging whether the storage resource occupation proportion is more than second threshold;
Alternatively, the acquiring unit 401, can specifically include:
Third obtains subelement, the resource occupying ratio for obtaining active system;
Correspondingly, the judging unit 402, can specifically include:
Third judgment sub-unit, for judging whether the resource occupying ratio is more than third threshold value.
In practical application, first allocation unit 403 can specifically include:
First determination subelement, for determining the required hardware asset information of the active system;The hardware resource Information is required including at least the type of the required hardware resource of the active system and each type of hardware resource Quantity;
First request transmission sub-unit, believes for being sent to the first hardware resource management server comprising the hardware resource First request of breath;First request is for asking the first hardware resource management server to be distributed for the active system First access right of the first hardware resource;
So that the first hardware resource management server is that the active system distributes first access right.
In practical application, second allocation unit can specifically include:
Second determination subelement, for determining the required hardware asset information of the back-up system;The hardware resource Information is required including at least the type of the required hardware resource of the back-up system and each type of hardware resource Quantity;
Second request transmitting unit includes the hardware asset information for being sent to the second hardware resource management server Second request;Second request is back-up system distribution for asking the second hardware resource management server Second access right of two hardware resources;
So that the second hardware resource management server is that the back-up system distributes second access right.
In practical application, hardware resource is distributed to after active system or back-up system, it is also necessary to enable active system or Back-up system runs corresponding program using the hardware resource, and the hardware resource can be made really to be utilized.But It is, between active system and back-up system, it is necessary to meet specific operating status, i.e.,:Active system is generated in the business of operation Data, need to synchronize and be stored in back-up system.Therefore, for the hardware resource of active system and back-up system, it is also desirable to It is enabled in particular order, above-mentioned specific operating status could be met, realize seamless dilatation.
In order to meet above-mentioned operating status, seamless dilatation is realized, which can also include:
First control unit, after distributing the second hardware resource in the back-up system for the active system, It controls the back-up system and uses second hardware resource;
Second control unit is provided for controlling the back-up system in first control unit using second hardware After source, controls the active system and use first hardware resource.
In practical application, first control unit can specifically include:
First control subelement runs second using journey for controlling corresponding second virtual machine of second hardware resource Sequence;
First setting subelement, for the second database to be arranged on second virtual machine;
Wherein, second application program is when the active system breaks down, to carry the business of the active system Used application program;Second database is database used by synchronizing the data of the active system.
In practical application, second control unit can specifically include:
Second control subelement runs first using journey for controlling corresponding first virtual machine of first hardware resource Sequence;
Second setting subelement, for first database to be arranged on first virtual machine;
Wherein, first application program is application program used by carrying the business of the active system;Described One database is database used by storing the data of the active system.
In addition, the embodiment of the present application also provides a kind of calculate node, calculate node may be the master comprising computing capability Machine server personal computer PC or portable portable computer or terminal etc., the application are specifically real Example is applied not limit the specific implementation of calculate node.
Fig. 5 is the structure chart of the calculate node of the application.As shown in figure 5, calculate node 700 includes:
Processor (processor) 710, communication interface (Communications Interface) 720, memory (memory) 730, bus 740.
Processor 710, communication interface 720, memory 730 complete mutual communication by bus 740.
Processor 710, for executing program 732.
Specifically, program 732 may include program code, and said program code includes computer-managed instruction.
Processor 710 may be a central processor CPU or specific integrated circuit ASIC(Application Specific Integrated Circuit), or be arranged to implement the integrated electricity of one or more of the embodiment of the present application Road.
Memory 730, for storing program 732.Memory 730 may include high-speed RAM memory, it is also possible to further include Nonvolatile memory(non-volatile memory), a for example, at least magnetic disk storage.Program 732 can specifically wrap The corresponding module or unit in embodiment illustrated in fig. 4 are included, this will not be repeated here.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that the process, method, article or equipment including a series of elements includes not only that A little elements, but also include other elements that are not explicitly listed, or further include for this process, method, article or The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged Except there is also other identical elements in the process, method, article or apparatus that includes the element.
Through the above description of the embodiments, those skilled in the art can be understood that the application can be by Software adds the mode of required hardware platform to realize, naturally it is also possible to all implemented by hardware, but in many cases before Person is more preferably embodiment.Based on this understanding, the technical solution of the application contributes to background technology whole or Person part can be expressed in the form of software products, which can be stored in a storage medium, such as ROM/RAM, magnetic disc, CD etc., including some instructions are used so that a computer equipment(Can be personal computer, service Device or the network equipment etc.)Execute the method described in certain parts of each embodiment of the application or embodiment.
Each embodiment is described by the way of progressive in this specification, the highlights of each of the examples are with other The difference of embodiment, just to refer each other for identical similar portion between each embodiment.For device disclosed in embodiment For, since it is corresponded to the methods disclosed in the examples, so description is fairly simple, related place is said referring to method part It is bright.
Specific examples are used herein to illustrate the principle and implementation manner of the present application, and above example is said It is bright to be merely used to help understand the present processes and its core concept;Meanwhile for those of ordinary skill in the art, foundation The thought of the application, there will be changes in the specific implementation manner and application range.In conclusion the content of the present specification is not It is interpreted as the limitation to the application.

Claims (12)

1. a kind of resource allocation methods, which is characterized in that including:
Obtain the hardware resource seizure condition information of active system;
Judge whether the seizure condition information meets preset condition;
When judging that the seizure condition information meets preset condition, the first hardware resource is distributed for the active system;
The first hardware resource is distributed for the active system, is specifically included:
Determine the required hardware asset information of the active system;The hardware asset information includes at least the active system The type of required hardware resource and the required quantity of each type of hardware resource;
The first request comprising the hardware asset information is sent to the first hardware resource management server;First request is used It is the first access right that the active system distributes the first hardware resource in asking the first hardware resource management server;
It is that the active system distributes first access right by the first hardware resource management server;
The hardware resource seizure condition information for obtaining active system, specifically includes:The computing resource for obtaining active system accounts for Use ratio;Judge whether the seizure condition information meets preset condition correspondingly, described, specifically includes:Judge the calculating Whether resource occupation ratio is more than first threshold;
Alternatively, the hardware resource seizure condition information for obtaining active system, specifically includes:Obtain the storage money of active system Source occupation proportion;Judge whether the seizure condition information meets preset condition correspondingly, described, specifically includes:Described in judgement Whether storage resource occupation proportion is more than second threshold;
Alternatively, the hardware resource seizure condition information for obtaining active system, specifically includes:Obtain the network money of active system Source occupation proportion;Judge whether the seizure condition information meets preset condition correspondingly, described, specifically includes:Described in judgement Whether resource occupying ratio is more than third threshold value.
2. according to the method described in claim 1, it is characterized in that, it is described for the active system distribute the first hardware resource it Afterwards, further include:
The second hardware resource is distributed for the back-up system of the active system;
Wherein, same type of hardware resource, the quantity in second hardware resource are greater than or equal to hard described first Quantity in part resource.
3. according to the method described in claim 2, it is characterized in that, the back-up system for the active system distributes the second hardware Resource specifically includes:
Determine the required hardware asset information of the back-up system;The hardware asset information includes at least the back-up system The type of required hardware resource and the required quantity of each type of hardware resource;
The second request comprising the hardware asset information is sent to the second hardware resource management server;Second request is used It is the second access right that the back-up system distributes the second hardware resource in asking the second hardware resource management server;
It is that the back-up system distributes second access right by the second hardware resource management server.
4. according to the method described in claim 2, it is characterized in that, the back-up system for the active system distributes second After hardware resource, further include:
It controls the back-up system and uses second hardware resource;
It controls the active system and uses first hardware resource.
If 5. according to the method described in claim 4, it is characterized in that, second hardware resource be resources of virtual machine, institute It states the control back-up system and uses second hardware resource, specifically include:
It controls corresponding second virtual machine of second hardware resource and runs the second application program;
The second database is set on second virtual machine;
Wherein, second application program is that when the active system breaks down, the business for carrying the active system is adopted Application program;Second database is database used by synchronizing the data of the active system.
If 6. according to the method described in claim 4, it is characterized in that, first hardware resource be resources of virtual machine, it is described It controls the active system and uses first hardware resource, specifically include:
It controls corresponding first virtual machine of first hardware resource and runs the first application program;
First database is set on first virtual machine;
Wherein, first application program is application program used by carrying the business of the active system;First number It is database used by storing the data of the active system according to library.
7. a kind of resource allocation device, which is characterized in that including:
Acquiring unit, the hardware resource seizure condition information for obtaining active system;
Judging unit, for judging whether the seizure condition information meets preset condition;
First allocation unit, for when judging that the seizure condition information meets preset condition, dividing for the active system With the first hardware resource;
First allocation unit, specifically includes:
First determination subelement, for determining the required hardware asset information of the active system;The hardware asset information Type including at least the required hardware resource of the active system and the required number of each type of hardware resource Amount;
First request transmission sub-unit, for being sent to the first hardware resource management server comprising the hardware asset information First request;First request is that the active system distributes first for asking the first hardware resource management server First access right of hardware resource;
So that the first hardware resource management server is that the active system distributes first access right;
The acquiring unit, specifically includes:First obtains subelement, the computing resource occupation proportion for obtaining active system; Correspondingly, the judging unit, specifically includes:First judgment sub-unit, for whether judging the computing resource occupation proportion More than first threshold;
Alternatively, the acquiring unit, specifically includes:Second obtains subelement, and the storage resource for obtaining active system occupies Ratio;Correspondingly, the judging unit, specifically includes:Second judgment sub-unit, for judging the storage resource occupation proportion Whether second threshold is more than;
Alternatively, the acquiring unit, specifically includes:Third obtains subelement, the resource occupying for obtaining active system Ratio;Correspondingly, the judging unit, specifically includes:Third judgment sub-unit, for judging the resource occupying ratio Whether third threshold value is more than.
8. device according to claim 7, which is characterized in that further include:
Second allocation unit, for being the active system after first hardware resource of distribution for the active system Back-up system distribute the second hardware resource;
Wherein, same type of hardware resource, the quantity in second hardware resource are greater than or equal to hard described first Quantity in part resource.
9. device according to claim 8, which is characterized in that second allocation unit specifically includes:
Second determination subelement, for determining the required hardware asset information of the back-up system;The hardware asset information Type including at least the required hardware resource of the back-up system and the required number of each type of hardware resource Amount;
Second request transmitting unit, for sending the comprising the hardware asset information to the second hardware resource management server Two requests;Second request is that back-up system distribution second is hard for asking the second hardware resource management server Second access right of part resource;
So that the second hardware resource management server is that the back-up system distributes second access right.
10. device according to claim 8, which is characterized in that further include:
First control unit, after distributing the second hardware resource in the back-up system for the active system, control The back-up system uses second hardware resource;
Second control unit, for first control unit control the back-up system using second hardware resource it Afterwards, it controls the active system and uses first hardware resource.
11. device according to claim 10, which is characterized in that if second hardware resource is resources of virtual machine, First control unit, specifically includes:
First control subelement runs the second application program for controlling corresponding second virtual machine of second hardware resource;
First setting subelement, for the second database to be arranged on second virtual machine;
Wherein, second application program is that when the active system breaks down, the business for carrying the active system is adopted Application program;Second database is database used by synchronizing the data of the active system.
12. device according to claim 10, which is characterized in that if second hardware resource is resources of virtual machine, Second control unit, specifically includes:
Second control subelement runs the first application program for controlling corresponding first virtual machine of first hardware resource;
Second setting subelement, for first database to be arranged on first virtual machine;
Wherein, first application program is application program used by carrying the business of the active system;First number It is database used by storing the data of the active system according to library.
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 CN104731656A (en) 2015-06-24
CN104731656B true 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)

Families Citing this family (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 (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4848660B2 (en) * 2005-03-30 2011-12-28 ソニー株式会社 Information processing distributed system, information processing apparatus, and information processing distributed method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN104731656A (en) 2015-06-24

Similar Documents

Publication Publication Date Title
CN105830394B (en) Configuration method, system and its Virtual NE and network management system of virtual network strategy
CN101657804B (en) Extensible and programmable multi-tenant service architecture
CN105242957A (en) Method and system for cloud computing system to allocate GPU resources to virtual machine
CN103078965B (en) The IP address management method of virtual machine
CN104598316B (en) A kind of storage resource distribution method and device
CN104158826B (en) A kind of dispatching method and its system of the migration of Virtual machine
CN105335229A (en) Business resource scheduling method and apparatus
CN102510400B (en) A kind of method of the suspectableness degree for determining user, device and equipment
WO2012167378A1 (en) System and method of optimization of in-memory data grid placement
CN105308553B (en) Dynamic provides storage
CN105227489A (en) A kind of bandwidth management method and electronic equipment
CN100489791C (en) Method and system for local authority partitioning of client resources
CN104142871B (en) Data backup method and device and distributed file system
CN107111520A (en) Method and system for the real time resources consumption control in DCE
CN106502840A (en) A kind of data back up method, apparatus and system
CN104850394A (en) Management method of distributed application program and distributed system
CN104537045A (en) Service distribution method and device based on distributive system
CN105187256A (en) Disaster recovery method, device and system
CN103544047A (en) Cloud system data management method
CN115033340A (en) Host selection method and related device
CN102904919A (en) Stream processing method and distributed system for realizing stream processing
KR101250881B1 (en) Method for doubly processing data of block storage service
CN104731656B (en) A kind of resource allocation methods and device
CN105430093A (en) Method and system for realizing user access load balance
CN104657216A (en) Resource allocation method and device for resource pool

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.