CN106982241A - Method for managing resource, device and system - Google Patents

Method for managing resource, device and system Download PDF

Info

Publication number
CN106982241A
CN106982241A CN201610032846.2A CN201610032846A CN106982241A CN 106982241 A CN106982241 A CN 106982241A CN 201610032846 A CN201610032846 A CN 201610032846A CN 106982241 A CN106982241 A CN 106982241A
Authority
CN
China
Prior art keywords
resource
control node
request
management
node
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.)
Pending
Application number
CN201610032846.2A
Other languages
Chinese (zh)
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201610032846.2A priority Critical patent/CN106982241A/en
Priority to PCT/CN2016/107277 priority patent/WO2017124834A1/en
Publication of CN106982241A publication Critical patent/CN106982241A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a kind of method for managing resource, this method includes:Management node obtains the resource information hung under each control node;According to the service request and the resource information received, generation assembling request;Asked according to the assembling, control the control node assembling logical server, handle the service request.The invention also discloses a kind of resource management apparatus and resource management system.Resource is articulated in each control node by the present invention, progress resource management is directly interacted with management node by control node, reduce the complexity of management software, networking, the wiring of server system are simplified simultaneously, realize the optimization that server system manages network structure, management to each resource in server system is easier, improves the efficiency of resource management.

Description

Method for managing resource, device and system
Technical field
The present invention relates to server resource management technical field, more particularly to a kind of method for managing resource, dress Put and system.
Background technology
With the development of cloud computing, existing data center needs the equipment cabinet server of substantial amounts to expire Sufficient data processing needs, to lift the level of resources utilization of the intensive applications on conventional cabinet server, RSA (Rack Scale Architecture, rack level framework) framework is currently mainly used, by that will service The resources such as CPU, internal memory, storage and the network of device are merged as resource pool, according to service request, from Corresponding resource is chosen in resource pool, the processing of business is carried out.
RSA frameworks manage POD by PODM (Plain Old Data Manager, system administration center) A kind of (Plain Old Data, data structure) object.The multiple PODML of PODM management (PODM Local, Local data structure management node);Each PODML with (every layer on framework) of RACK for unit, DMC (Drawer Management Controller, drawer Management Controller) is managed, each PODML can face multiple DMC;DMC with DRAWER (drawer) be unit, to BMC (Baseboard Management Controller, baseboard management controller) is managed;BMC with MODULE (module) is unit.Thus, each level is towards multiple child level units, such as one Individual PODML in face of multiple DMC, is responsible for multiple DMC resource discovering, assembling simultaneously.
RSA system framework identifies the position of each resource by LID (LocationID, position-order row number), The setting of each level numbering is carried out in production or fixing link.LID specifically comprises POD-RACK (machines Frame)-DRAWER-MODULE-SUBMODULE (submodule), such as DRAWER numbering, It can be read from chassis backplane by GPIO (General-Purpose Input/Output, bus extender).
Thus, it is possible to find out, RSA system framework is identified by LID, and level concept is complicated, software Framework is complicated.With the continuous expansion of current data processing scale, server rack is more and more, in order to Each resource location is identified, need to strictly plan that wiring ensures the position relationship of resource, difficult management, and install Personnel set numbering difficulty big, easily error.
, can only be by being mounted newly in bottom when being extended to RSA because LID level concept is complicated Level is managed, for example, during integrated polylith blade, a BLADE can only be further added by under MODULE (blade) level, is extended to LID.If a nodes break down in LID, its lower extension Whole resources it is unavailable, cause RSA level framework redundancy, unstable, and to hardware adaptations Form does not have specific aim.
Therefore, existing server resource pond management level is complicated, open poor, causes management difficulty big.
The content of the invention
It is a primary object of the present invention to provide a kind of method for managing resource, device and system, it is intended to solve The big technical problem of existing server resource management difficulty.
To achieve the above object, the present invention provides a kind of method for managing resource, the method for managing resource bag Include following steps:
Management node obtains the resource information hung under each control node;
According to the service request and the resource information received, generation assembling request;
Asked according to the assembling, control the control node assembling logical server, handle the business Request.
It is preferred that, the step of management node obtains the resource information hung under each control node includes:
The configuring request of each control node is received, dynamic address is distributed to the control node;
The log-on message that the control node is sent based on the dynamic address is obtained, and registers the control Node;
Obtain the resource information hung under the registered control node.
It is preferred that, service request and the resource information that the basis is received, the step of generation assembling request Suddenly include:
According to the service request received, the resource information is filtered;
According to default Weight algorithm and the resource information being filtrated to get, choose Service Source and obtain described The information of Service Source;
According to the Service Source information, generation assembling request.
It is preferred that, it is described to be asked according to the assembling, the control node assembling logical server is controlled, The step of handling the service request includes:
The assembling request is sent to the control node of the Service Source mounting;
Control the control node of the Service Source mounting to be asked according to the assembling, assemble logical server;
The logical server is controlled to handle the service request.
It is preferred that, it is described to be asked according to the assembling, the control node assembling logical server is controlled, After the step of handling the service request, in addition to:
Receive the revocation request of the service request;
Asked according to the revocation, control the control node of the Service Source mounting to split the logic clothes Business device;
The logical server is cancelled, and is transferred to execution step:Management node is obtained and hung under each control node Resource information.
In addition, to achieve the above object, the present invention also provides a kind of resource management apparatus, the resource pipe Reason device includes:
Collection module, the resource information hung under each control node is obtained for management node;
Module is assembled, for according to the service request and the resource information received, generation assembling request;
Processing module, for being asked according to the assembling, controls the control node assembling logical server, Handle the service request.
It is preferred that, the collection module includes:
Allocation unit, the configuring request for receiving each control node distributes dynamic to the control node Address;
Registration unit, for obtaining the log-on message that the control node is sent based on the dynamic address, And register the control node;
Collector unit, for obtaining the resource information hung under the registered control node.
It is preferred that, the assembling module includes:
Filter element, for according to the service request received, being filtered to the resource information;
Weight unit, for according to default Weight algorithm and the resource information being filtrated to get, choosing service Resource and the information for obtaining the Service Source;
Generation unit, for according to the Service Source information, generation assembling request.
It is preferred that, the processing module includes:
Request unit, the control node for the assembling request to be sent to the Service Source mounting;
Module units, for controlling the control node of the Service Source mounting to be asked according to the assembling, Assemble logical server;
Processing unit, for controlling the logical server to handle the service request.
It is preferred that, the resource management apparatus also includes:
Receiving module, the revocation for receiving the service request is asked;
Module is split, for being asked according to the revocation, the control node of the Service Source mounting is controlled Split the logical server;
Module is cancelled, for cancelling the logical server.
In addition, to achieve the above object, the present invention also provides a kind of resource management system, the resource pipe Reason system includes management node and control node, wherein:
The management node includes collection module, assembling module, processing module, receiving module, fractionation mould Block and revocation module;
The control node, for being registered to the management node;Its lower resource information hung is collected, and Report the management node;The assembling request assembling logical server sent according to the management node; The revocation request sent according to the management node splits the logical server.
A kind of method for managing resource of proposition of the embodiment of the present invention, device and system, are obtained by management node Take the resource information hung under each control node;According to the service request and resource information received, generation assembling Request;According to assembling request, control control node assembling logical server, processing business request.This hair It is bright that progress resource management is directly interacted with management node by control node, reduce the complexity of management software Degree, while simplifying the networking of server system, wiring, realizes server system management network structure Optimization, the management to each resource in server system is easier, improves the efficiency of resource management.
Brief description of the drawings
Fig. 1 is the schematic flow sheet of method for managing resource first embodiment of the present invention;
Fig. 2 is the schematic flow sheet of method for managing resource second embodiment of the present invention;
Fig. 3 is the management structural representation of the embodiment of the present invention;
Fig. 4 is the schematic flow sheet of method for managing resource 3rd embodiment of the present invention;
Fig. 5 is the schematic flow sheet of method for managing resource fourth embodiment of the present invention;
Fig. 6 is the schematic flow sheet of the embodiment of method for managing resource the 5th of the present invention;
Fig. 7 is the high-level schematic functional block diagram of resource management apparatus first embodiment of the present invention;
Fig. 8 is the high-level schematic functional block diagram of resource management apparatus second embodiment of the present invention;
Fig. 9 is the high-level schematic functional block diagram of resource management apparatus 3rd embodiment of the present invention;
Figure 10 is the high-level schematic functional block diagram of resource management apparatus fourth embodiment of the present invention;
Figure 11 is the high-level schematic functional block diagram of the embodiment of resource management apparatus the 5th of the present invention;
Figure 12 is the module diagram of resource management system first embodiment of the present invention.
The realization, functional characteristics and advantage of the object of the invention will be done further referring to the drawings in conjunction with the embodiments Explanation.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, limit is not used to The fixed present invention.
The primary solutions of the embodiment of the present invention are:Management node obtains the resource hung under each control node Information;According to the service request and the resource information received, generation assembling request;According to the assembling Request, controls the control node assembling logical server, handles the service request
It is open poor because the resource management architecture of prior art server system is complicated, cause management difficult Degree is big.
The present invention provides a solution, and resource is mounted on into control node, passes through management node and control Node interaction processed carries out resource management, optimizes management structure, simplifies the management level to server resource It is secondary, improve resources management efficiency.
Reference picture 1, method for managing resource first embodiment of the present invention provides a kind of method for managing resource, described Method for managing resource includes:
Step S10, management node obtain the resource information hung under each control node.
Present invention is mainly applied to resource management, the present embodiment is entered with the resource management of rack server system Row for example, method for managing resource proposed by the present invention simplifies existing equipment cabinet server networking and wiring, Management network is optimized, the practicality of rack server system is improved.
Specifically, as a kind of embodiment, first, initializing the management network of rack server system.
Wherein, the management network of rack server system includes management node and control node.Management node For manager, such as PODM (POD Manager, POD data management node), management end is used as End, management server resource and logical server, discovery, distribution and the recovery of such as resource;Control section Point be controller, such as DMC (Drawer Management Controller, drawer Management Controller), As the switching node of management network, the resource for being included to it is found and assembled, and with client (client) is cooperated with management node, completes resource management;Control node can also include network Interchanger, such as ToR interchangers (Top of Rack, frame topcross), ToR interchangers following can be hung Resource is used for the management of the Internet resources of management server, exchanged;Certainly, ToR interchangers can not also Lower extension resource, not as control node network resource administration, is only used for network exchange.
The present embodiment is by PODM of management node, control node is DMC, and ToR interchangers are only used for net Network is exchanged and is illustrated.Control node may include multiple DMC and ToR interchangers.
When managing netinit, DMC Switching Module starts, and ToR interchangers start.Then, DMC Switching Module and ToR interchangers are conducted an election, restrained, and form acyclic tree network, arbitrary node To interconnect with other nodes, during ensureing that arbitrary node breaks down, it can restrain to form acyclic tree-like again Network, the reliability of lifting management network.
Management node can be mounted on the arbitrary node of acyclic tree network, be managed.
Management node timing collects resource information, its lower extension of each control node real-time update from each control node Resource status, to ensure resource information adequately resource information that management node is obtained.Or, respectively Local resource information is actively sent to management node by control node, and management node receives each control node Resource information, and stored.
It should be noted that its lower every local resource information hung of each control node active collection.Each control The resource hung under node processed includes processor, internal memory, storage, Internet resources etc., can be according to actual needs Flexibly set.The resource information that each control node is collected includes station location marker, the currently used shape of each resource State, disposal ability etc..
Thus, management node obtains the resource information of each control node.Wherein, the money that management node is obtained Source information includes station location marker, the control node mounted, currently used state, the processing energy of each resource Power etc..
Then, all kinds of resources are merged to form resource pool by management node respectively according to resource information, for example CPU Resource pool, memory source pond, memory resource pool and Internet resources pond etc., according to industry during for processing business Demand combinations of being engaged in are into logical server.
The resource information of each control node can be stored in CMDB (Configuration by management node Management Database, configuration management database), and believed according to the control node resource subsequently obtained Breath carries out data renewal.
Service request and the resource information that step S20, basis are received, generation assembling request.
After the resource information of each control node is obtained, management node carries out resource group according to service request Dress.
Specifically, as a kind of embodiment, first, management node receives service request, such as telecommunications Business, can be sent to management section by terminals such as long-range PC (personal computer, PC) Point.Service request can carry the resource required for type of service, processing business, the rule to each resource The information such as lattice requirement, can flexibly be set according to actual needs.
Then, management node can be obtained according to the type of service request from preset resource allocation table The corresponding each resource specification requirement of this service request, then from the resource information obtained, is picked out Qualified every resource;Or the items to resource that management node can be carried according to service request It is required that, from the resource information obtained, pick out qualified every resource.
Thus, management node obtains the every resource for being suitable to handle this service request, and each by what is obtained The Service Source that item resource is asked as this processing business.According to the Service Source of selection, management node It can assemble and obtain logical server, for handling this service request.
Then, management node is according to the generation assembling request of the Service Source of selection.Assembling request includes each clothes Be engaged in resource information, namely be selected, this assembling logical server needed for each resource information, for example The station location marker of each Service Source, the control node mounted, annexation etc..
Step S30, asked according to the assembling, control control node assembling logical server, processing The service request.
Management node is asked after assembling request is obtained according to assembling, control node is assembled logical services Device processing business is asked.
Specifically, being used as a kind of embodiment, first, each service of the management node in assembling request Resource information, the control node that each Service Source is mounted is sent to by assembling request, and will also assemble please Ask and be sent to the control node that the resource being selected is mounted.
Each control node is received after assembling request, and management node controls each control node please according to assembling respectively Ask, find in the resource of each control node mounting, be selected for the resource of assembling logical server, Namely Service Source.
Then, each control node is asked according to assembling, by each Service Source in different control nodes It is connected with each other, assembles logical server.Wherein, the DMC and BMC inside subnet (BaseboardManagementController, baseboard management controller) is interacted, and accesses specific Resource.
For example, by the power board of control node, setting SAS expander (extension), CPU is completed With storages (memory) assembling.It should be noted that DMC and BMC interaction protocol can be with It is IPMI (Intelligent Platform Management Interface, IPMI) agreement, Can also be HTTP (HyperText Transfer Protocol, HTTP) or its His interaction protocol, can flexibly be set according to actual needs.
Then, management node or remote control machine are completed according to the demand of this business processing Logical server deployment operation system, cloud platform software and other be used for business processing software.
Complete after software deployment, this service request of management node control logic server process.
Logical server, by each Service Source, carries out the processing of this business as physical machine.
Subsequently, management node or remote control machine can be according to the demands of this business processing, control logic Control node in server belonging to each Service Source, carries out upper electric, the lower electricity of logical server, resets Deng operation.For example, it is desired to which when carrying out power on operation to logical server, management node is according to Service Source Information, operation requests will be resetted and be sent to the control node that this Service Source is mounted, control node is received To after power on operation request, corresponding power on operation is carried out.
In the present embodiment, management node obtains the resource information hung under each control node;According to what is received Service request and resource information, generation assembling request;Then, management node is asked according to assembling, control Control node assembles logical server, handles this service request.The present embodiment avoids traditional server Frame level concept, each control node is articulated in by resource, is directly interacted by control node with management node Carry out resource management, reduce the complexity of management software, at the same simplify the networking of server system, Wiring, realizes the optimization that server system manages network structure, to the pipe of each resource in server system Reason is easier, improves the efficiency of resource management.
Further, reference picture 2, method for managing resource second embodiment of the present invention provides a kind of resource management Method, based on the embodiment shown in above-mentioned Fig. 1, the step S10 includes:
Step S11, the configuring request for receiving each control node, dynamic address is distributed to the control node.
After the startup of server admin platform, first, the management network of rack server system is initialized.
The present embodiment is by PODM of management node, control node is DMC, and ToR interchangers are only used for net Network is exchanged and is illustrated.Control node may include multiple DMC and ToR interchangers.
When managing netinit, DMC Switching Module starts, and ToR interchangers start.Then, DMC Switching Module and ToR interchangers are conducted an election, restrained, and form the acyclic tree for being in communication with each other, being independent of each other L network.In the acyclic tree network of formation, arbitrary node can be interconnected with other nodes, to protect Card arbitrary node can restrain to form acyclic tree network when breaking down again, lifting management network can By property.Meanwhile, acyclic tree network has blocked loop, it is ensured that the load balancing of node.
With DMC and ToR interchangers operation MSTP (Multi Spanning Tree Protocol, many generations Tree protocol) it is illustrated, DMC Switching Module and ToR interchangers are the node of equality, DMC Node has lower extension resource, and ToR interchangers do not have.
Generation acyclic tree network can refer to Fig. 3, each DMC or ToR interchanger at least with addition After the interconnection of 3 nodes, some network interface or connecting fault, MSTP restrain again to be formed one it is new acyclic Tree network, 3 times of reliability is reached by 3 times of redundancies in connection.It should be noted that any Node can try one's best many interconnections in wiring according to engineering design, and interlink node quantity can be according to actual need Flexibly to set.
Management node PODM can be articulated in the arbitrary node of acyclic tree network, and acyclic tree type network The arbitrary node of network may continue to the DMC of increase mounting.
After management netinit is completed, management node receives the configuring request of each control node, to institute State control node distribution dynamic address.
As a kind of embodiment, management node can run DHCPD (Dynamic Host Configuration Protocol Daemon, DHCP process) service, receive control node The DHCP (Dynamic Host Configuration Protocol, DHCP) of transmission please Ask.
Control node after the power-up, actively sends DHCP request, request distribution is dynamically to management node Location.
Then, management node distributes dynamic according to the control node DHCP request received to control node Address, such as IP, addr (address).The dynamic address of management node distribution is provided with rental period duration, when After exception or rental period occur for control node using finishing, the dynamic address of control node is reclaimed, and will can return The dynamic address allocation of receipts gives other control nodes.It should be noted that rental period duration can be according to actual need Flexibly to set.
Then, the dynamic address of distribution is sent to corresponding control node by management node.
The log-on message that step S12, the acquisition control node are sent based on the dynamic address, and register The control node.
After management node distribution dynamic address, the log-on message of control node is obtained, and register control node.
Specifically, as a kind of embodiment, control node is received after the dynamic address of management node distribution, The address subsequently communicated with management node is used as using this dynamic address.
Control node actively sends log-on message to management node and registered.The log-on message of control node Host name and current operating conditions including control node.Wherein, the current operating conditions bag of control node Include the current whether normally information such as operation, resources occupation rate of control node.
Management node receives the registration request that control node is sent based on dynamic address, obtains control node Log-on message.Thus, management node would know that the control node information using current dynamic address.
Then, each control node that management node registration is registered, preserves each control node dynamically Location, host name, cache the current state of each control node, and set up corresponding relation, to recognize difference Control node.
The resource information hung under step S13, the acquisition registered control node.
Control node after the power-up, starts local resource and found, its lower every resource hung of active collection. The resource hung under each control node includes processor, internal memory, storage, Internet resources etc., can be according to reality Need flexibly setting.
Station location marker of the resource information that each control node is collected including each resource, currently used state, place Reason ability etc..
As a kind of embodiment, control node find resource can use control node host name and UUID (Universally Unique Identifier, general unique identifier) is used as station location marker.Wherein, The control node host name that the entitled resource of control node main frame is mounted;UUID is the identification mark being pre-configured with Know, UUID can be set according to the information of dispatching from the factory of resource, time for competiton, naturally it is also possible to according to resource Other hardware informations set UUID, can flexibly set according to actual needs.
In addition, inside control node, the positional informations such as SLED (groove position) can be increased, increase is to money The station location marker in source, the physical location for further identifying resource, so that occur during hardware fault can be with Resource is conveniently found, is handled.
Only needed to for management node by the host name resource different with UUID identifications, it is not necessary to Positional information inside control node.
Thus, the framework of server system is simplified, level framework is more targeted for hardware adaptations. When occurring faulty resource, first according to the locking relation of failed resource, mounting is found by host name Control node, then by the positional information inside control node, quickly positioning failed resource thing Position is managed, the quick positioning to resource location is realized, while the complexity of management software is simplified, it is real Border operation difficulty is small, it is to avoid by strictly connecting up incidental chaotic and mistake during locating resource.
Local resource information is actively sent to pipe by each control node after transmission registration request is registered Node is managed, management node receives the resource information of each control node, and is stored;Or management node is fixed When collect resource information, its lower resource hung of each control node real-time update from registered each control node State, to ensure resource information adequately resource information that management node is obtained.
Thus, management node obtains the resource information of registered each control node.What management node was obtained Station location marker of the resource information including each resource, the control node mounted, currently used state, processing Ability etc..
Management node can be by each resource information hung under the host name and control node of control node foundation pair It should be related to, the resource for identifying different control nodes.Thus, management node can be looked into according to host name The resource information hung under each control node is found, data query or the renewal of node resources information is controlled Deng.
Then, all kinds of resources are merged to form resource pool by management node respectively according to resource information, for example CPU Resource pool, memory source pond, memory resource pool and Internet resources pond etc., according to industry during for processing business Demand combinations of being engaged in are into logical server.
The resource information of each control node is stored in CMDB by management node.It should be noted that storage The CMDB of resource information can be configured according to actual conditions such as data volume, the environment scales of storage.
In the present embodiment, management node receives the configuring request of each control node, is distributed to control node Dynamic address;Then, the log-on message that control node is sent based on dynamic address is obtained, and registers control Node;Then, the resource information hung under registered control node is obtained.The present embodiment passes through management node Dynamic address is distributed to control node, control node is registered, effectively improves address service efficiency and to pipe Manage the efficiency of management of node, it is to avoid Failure Control node takes resource;Meanwhile, management node can be timely The resource information of effective control node is obtained, data are orderly, regular, be easy to the follow-up management to resource.
Further, reference picture 4, method for managing resource 3rd embodiment of the present invention provides a kind of resource management Method, based on the embodiment (the present embodiment is illustrated with Fig. 2) shown in above-mentioned Fig. 1 or Fig. 2, The step S20 includes:
The service request that step S21, basis are received, is filtered to the resource information.
After the resource information of each control node is obtained, management node carries out resource group according to service request Dress.
Specifically, as a kind of embodiment, first, management node receives service request, such as telecommunications Business, can be sent to management section by terminals such as long-range PC (personal computer, PC) Point.Service request can carry the resource required for type of service, processing business, the rule to each resource The information such as lattice requirement, can flexibly be set according to actual needs.
Then, resource of the management node according to required for asking processing business, from all kinds of moneys stored In the pond of source, the resource pool handled required for this service request is filtered out.
Then, the specification requirement according to service request to resource and each resource information, in each resource pool Resource is filtered, and filters out satisfactory resource.For example, service request limits the core of multi-core CPU Number, then management node is filtered out in cpu resource pond, and check figure is unsatisfactory for desired CPU, namely filters out It is unsatisfactory for desired cpu resource information;Service request can also limit the amount of storage of internal memory, then management section The parameter that point is set according to service request, filters out the internal memory money that parameter request is unsatisfactory in memory source pond Source, namely filter out the memory source information for being unsatisfactory for requiring;Service request can also limit network traffics, The parameter that then management node is set according to service request, filters out in Internet resources pond and is unsatisfactory for parameter request Internet resources, namely filter out be unsatisfactory for require network resource information.
Thus, management node is according to service request, and business processing need can be unsatisfactory for by having filtered out in resource pool The resource asked, namely filtered out and can not meet the resource information of business processing demand.
The resource information obtained after filtering, meets the requirement for handling this service request.
Step S22, according to default Weight algorithm and the resource information being filtrated to get, choose Service Source simultaneously Obtain the information of the Service Source.
After being filtered to resource information, management node is according to default Weight algorithm and is filtrated to get Resource information, chooses resource as the Service Source of assembling logical server.
Specifically, as a kind of embodiment, first, management node is according to default Weight algorithm and mistake Obtained resource information is filtered, the resource for being suitable to assembling logical server is chosen.
For example, default Weight algorithm is provided with the distance parameter of CPU and internal memory, then management node according to Distance parameter and resource information, choose the CPU and internal memory for meeting and requiring, it is to avoid CPU is with internal memory apart from mistake Long-range guided missile causes data transmission exception.
It should be noted that default Weight algorithm can flexibly be set according to actual conditions, for setting ginseng Said conditions, the logical server for enabling the combination of resources of acquisition to obtain reaches that processing speed, storage take The balancing performances such as rate are optimal.
Thus, management node obtains the resource for assembling logical server, and obtained each resource is made To assemble the Service Source of logical server.According to the Service Source of selection, management node can be assembled To logical server, for handling this service request.
Then, management node obtains the information of each Service Source.The information of each Service Source includes:Each clothes Station location marker, the control node mounted, currently used state, disposal ability of resource of being engaged in etc., can root According to being actually needed flexible setting.
Step S23, according to the Service Source information, generation assembling request.
After Service Source information is obtained, management node is according to the generation assembling request of Service Source information.
Wherein, assembling request includes the information of each Service Source, namely be selected, this assemble logic Each resource information needed for server, such as the station location marker of each Service Source, the control node mounted, Annexation etc..
In the present embodiment, management node is filtered according to the service request received to resource information; Then according to default Weight algorithm and the resource information being filtrated to get, choose Service Source and obtain service The information of resource;Then according to Service Source information, generation assembling request.The present embodiment realizes assembling Logical server resource it is preferred, simplify the selection flow of resource, choosing obtained Service Source can More efficient processing business request.
Further, reference picture 5, method for managing resource fourth embodiment of the present invention provides a kind of resource management Method, based on the embodiment shown in above-mentioned Fig. 4, the step S30 includes:
Step S31, the control node that the assembling request is sent to Service Source mounting.
Management node is asked after assembling request is obtained according to assembling, control node is assembled logical services Device processing business is asked.
Specifically, being used as a kind of embodiment, first, each service of the management node in assembling request Resource information, the control node that each Service Source is mounted is sent respectively to by assembling request.
The assembling request that management node is sent includes being selected the resource as Service Source in each control node Information, annexation of each Service Source etc..
Step S32, the control node of the control Service Source mounting are asked according to the assembling, and assembling is patrolled Collect server.
Request will be assembled to be sent to after the control node of each Service Source mounting, as a kind of embodiment, First, management node controls each control node to be asked according to assembling respectively, finds each control node mounting Resource in, be selected for assemble logical server resource, namely search Service Source.
Then, each control node is asked according to assembling, by each Service Source in different control nodes It is connected with each other, is assembled into logical server.
Wherein, the control node DMC and BMC inside subnet is interacted, and accesses specific resource. It should be noted that DMC and BMC interaction protocol can be IPMI protocol or HTTP, It can also be other interaction protocols, can flexibly set according to actual needs.
Thus, the logical server being completed.Logical server is made up of the connection of each Service Source.
Step S33, the control logical server handle the service request.
After assembling logical server is completed, management node or remote control machine are according to this business processing Demand, for the logical server deployment operation system being completed, cloud platform software and other be used for business The software of processing.
Complete after software deployment, this service request of management node control logic server process.
Logical server, by each Service Source, carries out the processing of this business as physical machine.
Subsequently, management node or remote control machine can be according to the demands of this business processing, control logic The control node of each Service Source mounting in server, carries out upper electric, the lower electricity of logical server, resets Deng operation.For example, it is desired to which when carrying out power on operation to logical server, management node is according to Service Source Information, power on operation request is sent to the control node that this Service Source is mounted, control node is received To after power on operation request, corresponding power on operation is carried out.
In the present embodiment, management node will assemble request and be sent to the control node that Service Source is mounted; Then, the control node that control Service Source is mounted is asked according to assembling, assembles logical server;So Control logic server process service request afterwards.The present embodiment by assembling request by being sent to Service Source The control node mounted, controls corresponding control node Connection Service resource, completes logical server Assembling, and then processing business request.This embodiment simplifies the assembling flow path of each resource in logical server, Improve resources management efficiency.
Further, reference picture 6, the embodiment of method for managing resource the 5th of the present invention provides a kind of resource management Method, based on the embodiment shown in above-mentioned Fig. 5, after the step S30, in addition to:
Step S40, the revocation request for receiving the service request.
When carrying out service request processing, or after the request of complete rear business processing, if management node receive for The revocation request of service request, then stop the processing to this business, and revocation handles the logical services of this business Device.
Specifically, as a kind of embodiment, remote control machine can be sent for industry according to actual needs The revocation request of business request, cancels the processing for business.
Management node receives the revocation request that remote control machine is sent.Wherein, revocation request carries this Ask the business information of revocation.
Step S50, asked according to the revocation, control the control node of Service Source mounting to split institute State logical server.
After revocation request is received, as a kind of embodiment, first, management node is asked according to revocation Obtain the business of this request revocation.
Then, management node obtains the logical services for handling this business according to the business of this request revocation Device information, obtains the information of each Service Source.
Then, management node obtains the control that each Service Source is mounted according to the information of each Service Source Node, also, the control node that request transmission is mounted to each Service Source respectively will be cancelled.
Control node is received after revocation request, is asked according to revocation, electrically operated under being carried out to Service Source, It is split into each resource of logical server.
Thus, management node realizes the fractionation to logical server resource.
Step S60, the revocation logical server, and it is transferred to execution step S10.
After the fractionation of logical server resource is completed, management node cancels this logical server, stops this The business processing of logical server.
Then, management node sends resource to each control node and collects request, collects each control node current Resource information;Its lower resource information hung of each control node real-time update, and reported to management node.
Management node is received after each control node resource information, according to the host name of each control node, will be each The corresponding resource information of control node is updated, and realizes CMDB renewal.
It should be noted that management node can update the resource of all control nodes in current management network Information, can also only update the resource information of the control node of Splitting Logic server, can be according to actual need Flexibly to set.
In the present embodiment, management node receives the revocation request for service request;Then, according to removing Pin request, the control node Splitting Logic server for controlling the Service Source to be mounted;And cancel described Logical server, then updates resource information, the assembling for other follow-up logical servers.This implementation Example discharges resource and updates resource information, improve the use of resource by the fractionation to logical server Efficiency, the resource of release can be used for the processing of other business, it is ensured that the order of resource management, simplify Management to resource.
Reference picture 7, resource management apparatus first embodiment of the present invention provides a kind of resource management apparatus, described Resource management apparatus includes:
Collection module 100, the resource information hung under each control node is obtained for management node.
Present invention is mainly applied to resource management, the present embodiment is entered with the resource management of rack server system Row for example, resource management apparatus proposed by the present invention simplifies existing equipment cabinet server networking and wiring, Management network is optimized, the practicality of rack server system is improved.
Specifically, as a kind of embodiment, first, initializing the management network of rack server system.
Wherein, the management network of equipment cabinet server includes resource management apparatus and control node.Resource management Device is manager, such as PODM (POD Manager, POD data resource management apparatus), is made For management terminal, management server resource and logical server, discovery, distribution and the recovery of such as resource; Control node is controller, such as DMC (Drawer Management Controller, drawer management Controller), as the switching node of management network, the resource for being included to it is found and assembled, And cooperated with client (client) with resource management apparatus, complete resource management;Control node is also The network switch can be included, such as ToR interchangers (Top of Rack, frame topcross), ToR is handed over Management, the exchange for the Internet resources that resource is used for management server can be hung below by changing planes;Certainly, ToR is handed over Changing planes lower can not also hang resource, not as control node network resource administration, be only used for network exchange.
The present embodiment is by PODM of resource management apparatus, control node is DMC, and ToR interchangers are only used It is illustrated in network exchange.Control node may include multiple DMC and ToR interchangers.
When managing netinit, DMC Switching Module starts, and ToR interchangers start.Then, DMC Switching Module and ToR interchangers are conducted an election, restrained, and form acyclic tree network, arbitrary node To interconnect with other nodes, during ensureing that arbitrary node breaks down, it can restrain to form acyclic tree-like again Network, the reliability of lifting management network.
Resource management apparatus can be mounted on the arbitrary node of acyclic tree network, be managed.
The timing of collection module 100 of resource management apparatus collects resource information, each control from each control node Its lower resource status hung of node real-time update, to ensure that the resource information that collection module 100 is obtained is defined True ground resource information.Or, local resource information is actively sent to resource management apparatus by each control node, The collection module 100 of resource management apparatus receives the resource information of each control node, and is stored.
It should be noted that its lower every local resource information hung of each control node active collection.Each control The resource hung under node processed includes processor, internal memory, storage, Internet resources etc., can be according to actual needs Flexibly set.The resource information that each control node is collected includes station location marker, the currently used shape of each resource State, disposal ability etc..
Thus, collection module 100 obtains the resource information of each control node.Wherein, collection module 100 The station location marker of the resource information of acquisition including each resource, the control node mounted, currently used state, Disposal ability etc..
Then, all kinds of resources are merged to form resource pool by collection module 100 respectively according to resource information, example Such as cpu resource pond, memory source pond, memory resource pool and Internet resources pond, during for processing business Logical server is combined into according to business demand.
The resource information of each control node can be stored in CMDB (Configuration by collection module 100 Management Database, configuration management database), and believed according to the control node resource subsequently obtained Breath carries out data renewal.
Module 200 is assembled, for according to the service request and the resource information received, generation assembling request.
After the resource information of each control node is obtained, assembling module 200 is provided according to service request Source is assembled.
Specifically, as a kind of embodiment, first, assembling module 200 receives service request, such as Telecommunication service, can be sent to group by terminals such as long-range PC (personal computer, PC) Die-filling piece 200.Service request can carry resource required for type of service, processing business, to each money The information such as the specification requirement in source, can flexibly be set according to actual needs.
Then, assembling module 200 can be according to the type of service request, from preset resource allocation table The corresponding each resource specification requirement of this service request is obtained, then from the resource information obtained, is chosen Select qualified every resource;Or assembling module 200 can be carried according to service request to money The requirements in source, from the resource information obtained, pick out qualified every resource.
Thus, assembling module 200 obtains the every resource for being suitable to handle this service request, and will obtain The Service Source asked as this processing business of every resource.
Then, assembling module 200 is according to the generation assembling request of the Service Source of selection.Assembling request includes Each Service Source information, namely be selected, this assembling logical server needed for each resource information, Station location marker, the control node mounted, the annexation of each resource such as each resource.
Processing module 300, for being asked according to the assembling, controls the control node assembling logical services Device, handles the service request.
After assembling request is obtained, asked according to assembling, processing module 300 makes control node assemble logic Server process service request.
Specifically, as a kind of embodiment, first, processing module 300 is each in assembling request Service Source information, the control node that each Service Source is mounted is sent to by assembling request, also will group Dress request is sent to the control node that the resource being selected is mounted.
Each control node is received after assembling request, and processing module 300 controls each control node according to group respectively Dress request, finds in the resource of each control node mounting, is selected for the money of assembling logical server Source, namely Service Source.
Then, each control node is asked according to assembling, by each Service Source in different control nodes It is connected with each other, assembles logical server.Wherein, the DMC and BMC inside subnet (BaseboardManagementController, baseboard management controller) is interacted, and accesses specific Resource.
For example, by the power board of control node, setting SAS expander (extension), CPU is completed With storages (memory) assembling.It should be noted that DMC and BMC interaction protocol can be with It is IPMI (Intelligent Platform Management Interface, IPMI) agreement, Can also be HTTP (HyperText Transfer Protocol, HTTP) or its His interaction protocol, can flexibly be set according to actual needs.
Then, processing module 300 or remote control machine are according to the demand of this business processing, to have assembled Into logical server deployment operation system, cloud platform software and other be used for business processing software.
Complete after software deployment, control logic server process this service request of processing module 300.
Logical server, by each Service Source, carries out the processing of this business as physical machine.
Subsequently, processing module 300 or remote control machine can be according to the demands of this business processing, control Control node in logical server belonging to each Service Source, upper electric, the lower electricity of progress logical server, The operation such as reset.For example, it is desired to when carrying out power on operation to logical server, the basis of processing module 300 The information of Service Source, is sent to the control node that this Service Source is mounted by power on operation request, controls Node processed is received after power on operation request, carries out corresponding power on operation.
In the present embodiment, collection module 100 obtains the resource information hung under each control node;Assemble mould Block 200 is according to the service request and resource information received, generation assembling request;Then, processing module 300 According to assembling request, control control node assembling logical server handles this service request.This implementation Example avoids the frame level concept of traditional server, resource is articulated in into each control node, by control node Progress resource management is directly interacted with resource management apparatus, the complexity of management software is reduced, while simple Change networking, the wiring of server system, realize the optimization that server system manages network structure, it is right The management of each resource is easier in server system, improves the efficiency of resource management.
Further, reference picture 8, resource management apparatus second embodiment of the present invention provides a kind of resource management Device, based on the embodiment shown in above-mentioned Fig. 7, the collection module 100 includes:
Allocation unit 110, the configuring request for receiving each control node distributes dynamic to the control node State address.
After the startup of server admin platform, first, the management network of rack server system is initialized.
The present embodiment is by PODM of resource management apparatus, control node is DMC, and ToR interchangers are only used It is illustrated in network exchange.Control node may include multiple DMC and ToR interchangers.
When managing netinit, DMC Switching Module starts, and ToR interchangers start.Then, DMC Switching Module and ToR interchangers are conducted an election, restrained, and form the acyclic tree for being in communication with each other, being independent of each other L network.In the acyclic tree network of formation, arbitrary node can be interconnected with other nodes, to protect Card arbitrary node can restrain to form acyclic tree network when breaking down again, lifting management network can By property.Meanwhile, acyclic tree network has blocked loop, it is ensured that the load balancing of node.
With DMC and ToR interchangers operation MSTP (Multi Spanning Tree Protocol, many generations Tree protocol) it is illustrated, DMC Switching Module and ToR interchangers are the node of equality, DMC Node has lower extension resource, and ToR interchangers do not have.
Generation acyclic tree network can refer to Fig. 3, each DMC or ToR interchanger at least with addition After the interconnection of 3 nodes, some network interface or connecting fault, MSTP restrain again to be formed one it is new acyclic Tree network, 3 times of reliability is reached by 3 times of redundancies in connection.It should be noted that any Node can try one's best many interconnections in wiring according to engineering design, and interlink node quantity can be according to actual need Flexibly to set.
Resource management apparatus PODM can be articulated in the arbitrary node of acyclic tree network, and acyclic tree The arbitrary node of l network may continue to the DMC of increase mounting.
After management netinit is completed, the allocation unit 110 of resource management apparatus receives each control section The configuring request of point, dynamic address is distributed to the control node.
As a kind of embodiment, allocation unit 110 can run DHCPD (Dynamic Host Configuration Protocol Daemon, DHCP process) service, receive control node The DHCP (Dynamic Host Configuration Protocol, DHCP) of transmission please Ask.
Control node after the power-up, actively sends DHCP request to allocation unit 110, and request distribution is dynamic State address.
Then, allocation unit 110 is distributed according to the control node DHCP request received to control node Dynamic address, such as IP, addr (address).The dynamic address that allocation unit 110 is distributed is provided with the rental period Duration, after exception or rental period occur for control node using finishing, reclaims the dynamic address of control node, And other control nodes can be given by the dynamic address allocation of recovery.It should be noted that rental period duration can root According to being actually needed flexible setting.
Then, the dynamic address of distribution is sent to corresponding control node by allocation unit 110.
Registration unit 120, for obtaining the log-on message that the control node is sent based on the dynamic address, And register the control node.
After the distribution dynamic address of allocation unit 110, registration unit 120 obtains the log-on message of control node, And register control node.
Specifically, as a kind of embodiment, control node receives the distribution of allocation unit 110 dynamically Behind location, the address subsequently communicated with resource management apparatus is used as using this dynamic address.
Control node actively sends log-on message to registration unit 120 and registered.The registration of control node Information includes the host name and current operating conditions of control node.Wherein, the current operation shape of control node Whether normally state includes the current information such as operation, resources occupation rate of control node.
Registration unit 120 receives the registration request that control node is sent based on dynamic address, obtains control section The log-on message of point.Thus, registration unit 120 would know that is believed using the control node of current dynamic address Breath.
Then, registration unit 120 registers each control node registered, and preserves the dynamic of each control node State address, host name, cache the current state of each control node, and set up corresponding relation, to recognize Different control nodes.
Collector unit 130, for obtaining the resource information hung under the registered control node.
Control node after the power-up, starts local resource and found, its lower every resource hung of active collection. The resource hung under each control node includes processor, internal memory, storage, Internet resources etc., can be according to reality Need flexibly setting.
Station location marker of the resource information that each control node is collected including each resource, currently used state, place Reason ability etc..
As a kind of embodiment, control node find resource can use control node host name and UUID (Universally Unique Identifier, general unique identifier) is used as station location marker.Wherein, The control node host name that the entitled resource of control node main frame is mounted;UUID is the identification mark being pre-configured with Know, UUID can be set according to the information of dispatching from the factory of resource, time for competiton, naturally it is also possible to according to resource Other hardware informations set UUID, can flexibly set according to actual needs.
In addition, inside control node, the positional informations such as SLED (groove position) can be increased, increase is to money The station location marker in source, the physical location for further identifying resource, so that occur during hardware fault can be with Resource is conveniently found, is handled.
Only needed to for resource management apparatus by the host name resource different with UUID identifications, no Need the positional information inside control node.
Thus, the framework of server system is simplified, level framework is more targeted for hardware adaptations. When occurring faulty resource, first according to the locking relation of failed resource, mounting is found by host name Control node, then by the positional information inside control node, quickly positioning failed resource thing Position is managed, the quick positioning to resource location is realized, while the complexity of management software is simplified, it is real Border operation difficulty is small, it is to avoid by strictly connecting up incidental chaotic and mistake during locating resource.
Local resource information is actively sent to receipts by each control node after transmission registration request is registered Collect unit 130, collector unit 130 receives the resource information of each control node, and is stored;Or collect The timing of unit 130 collects resource information from registered each control node, each control node real-time update its The resource status of lower extension, to ensure resource information adequately resource information that collector unit 130 is obtained.
Thus, collector unit 130 obtains the resource information of registered each control node.Collector unit 130 The station location marker of the resource information of acquisition including each resource, the control node mounted, currently used state, Disposal ability etc..
Collector unit 130 can build each resource information hung under the host name and control node of control node Vertical corresponding relation, the resource for identifying different control nodes.Thus, collector unit 130 can basis Host name finds the resource information hung under each control node, and the data for being controlled node resources information are looked into Inquiry or renewal etc..
Then, all kinds of resources are merged to form resource pool by collector unit 130 respectively according to resource information, example Such as cpu resource pond, memory source pond, memory resource pool and Internet resources pond, during for processing business Logical server is combined into according to business demand.
The resource information of each control node is stored in CMDB by collector unit 130.It should be noted that The CMDB of storage resource information can be matched somebody with somebody according to actual conditions such as data volume, the environment scales of storage Put.
In the present embodiment, allocation unit 110 receives the configuring request of each control node, to control node Distribute dynamic address;Then, registration unit 120 obtains the registration that control node is sent based on dynamic address Information, and register control node;Then, collector unit 130 obtains the money hung under registered control node Source information.The present embodiment distributes dynamic address, registration control section by resource management apparatus to control node Point, effectively improves address service efficiency and the efficiency of management of resource management apparatus, it is to avoid Failure Control section Point takes resource;Meanwhile, resource management apparatus can obtain the resource information of effective control node in time, Data are orderly, regular, are easy to the follow-up management to resource.
Further, reference picture 9, resource management apparatus 3rd embodiment of the present invention provides a kind of resource management Device, based on the embodiment (the present embodiment is illustrated with Fig. 8) shown in above-mentioned Fig. 7 or Fig. 8, The assembling module 200 includes:
Filter element 210, for according to the service request received, being filtered to the resource information.
After the resource information of each control node is obtained, assembling module 200 is provided according to service request Source is assembled.
Specifically, as a kind of embodiment, first, filter element 210 receives service request, such as Telecommunication service, can be sent to money by terminals such as long-range PC (personal computer, PC) Source control device.Service request can carry resource required for type of service, processing business, to each The information such as the specification requirement of resource, can flexibly be set according to actual needs.
Then, resource of the filter element 210 according to required for asking processing business, it is each from what is stored In class resource pool, the resource pool handled required for this service request is filtered out.
Then, specification requirement and each resource information of the filter element 210 according to service request to resource, right Resource in each resource pool is filtered, and filters out satisfactory resource.For example, service request is limited The check figure of multi-core CPU, then filter element 210 filter out in cpu resource pond, check figure be unsatisfactory for require CPU, namely filter out the cpu resource information for being unsatisfactory for requiring;Service request can also limit internal memory Amount of storage, the then parameter that filter element 210 is set according to service request is filtered out in memory source pond not The memory source of parameter request is met, namely filters out the memory source information for being unsatisfactory for requiring;Business please Network traffics can also be limited by asking, then the parameter that filter element 210 is set according to service request, be filtered out The Internet resources of parameter request are unsatisfactory in Internet resources pond, namely filter out the network money for being unsatisfactory for requiring Source information.
Thus, filter element 210 is according to service request, and having filtered out in resource pool to be unsatisfactory at business The resource of reason demand, namely filtered out and can not meet the resource information of business processing demand.
The resource information obtained after filtering, meets the requirement for handling this service request.
Weight unit 220, for according to default Weight algorithm and the resource information being filtrated to get, choosing clothes Business resource and the information for obtaining the Service Source.
After being filtered to resource information, weight unit 220 is according to default Weight algorithm and filters The resource information arrived, chooses resource as the Service Source of assembling logical server.
Specifically, as a kind of embodiment, first, weight unit 220 is according to default Weight algorithm With the resource information being filtrated to get, the resource for being suitable to assembling logical server is chosen.
For example, default Weight algorithm is provided with the distance parameter of CPU and internal memory, then weight unit 220 According to distance parameter and resource information, choose the CPU and internal memory for meeting and requiring, it is to avoid CPU and internal memory away from From causing data transmission exception too far.
It should be noted that default Weight algorithm can flexibly be set according to actual conditions, for setting ginseng Said conditions, the logical server for enabling the combination of resources of acquisition to obtain reaches that processing speed, storage take The balancing performances such as rate are optimal.
Thus, weight unit 220 obtains the resource for assembling logical server, and by obtained each money Source is used as the Service Source for assembling logical server.According to the Service Source of selection, it can assemble and be patrolled Server is collected, for handling this service request.
Then, weight unit 220 obtains the information of each Service Source.The information of each Service Source includes: The station location marker of each Service Source, the control node mounted, currently used state, disposal ability etc., Can flexibly it set according to actual needs.
Generation unit 230, for according to the Service Source information, generation assembling request.
After Service Source information is obtained, generation unit 230 is according to the generation assembling request of Service Source information.
Wherein, assembling request includes the information of each Service Source, namely be selected, this assemble logic Each resource information needed for server, such as the station location marker of each Service Source, the control node mounted, Annexation of each resource etc..
In the present embodiment, filter element 210 was carried out according to the service request received to resource information Filter;Then, weight unit 220 is chosen according to default Weight algorithm and the resource information being filtrated to get Service Source and the information for obtaining Service Source;Then, generation unit 230 is according to Service Source information, Generation assembling request.The present embodiment realizes the preferred of assembling logical server resource, simplifies resource Flow is chosen, choosing obtained Service Source being capable of more efficient processing business request.
Further, reference picture 10, resource management apparatus fourth embodiment of the present invention provides a kind of resource pipe Device is managed, based on the embodiment shown in above-mentioned Fig. 9, the processing module 300 includes:
Request unit 310, the control node for the assembling request to be sent to the Service Source mounting.
After assembling request is obtained, processing module 300 is asked according to assembling, control node is assembled logic Server process service request.
Specifically, as a kind of embodiment, first, request unit 310 is each in assembling request Service Source information, the control node that each Service Source is mounted is sent respectively to by assembling request.
The assembling request that request unit 310 is sent includes being selected as Service Source in each control node Resource information, annexation of each Service Source etc..
Module units 320, for controlling the control node of the Service Source mounting to be asked according to the assembling, Assemble logical server.
Request will be assembled to be sent to after the control node of each Service Source mounting, as a kind of embodiment, First, module units 320 controls each control node to be asked according to assembling respectively, finds each control node In the resource of mounting, it is selected for assembling the resource of logical server, namely searches Service Source.
Then, each control node is asked according to assembling, by each Service Source in different control nodes It is connected with each other, is assembled into logical server.
Wherein, the control node DMC and BMC inside subnet is interacted, and accesses specific resource. It should be noted that DMC and BMC interaction protocol can be IPMI protocol or HTTP, It can also be other interaction protocols, can flexibly set according to actual needs.
Thus, the logical server being completed.Logical server is made up of the connection of each Service Source.
Processing unit 330, for controlling the logical server to handle the service request.
After assembling logical server is completed, processing unit 330 or remote control machine according to this business at The demand of reason, for the logical server deployment operation system being completed, cloud platform software and other be used for The software of business processing.
Complete after software deployment, control logic server process this service request of processing unit 330.
Logical server, by each Service Source, carries out the processing of this business as physical machine.
Subsequently, processing unit 330 or remote control machine can be according to the demands of this business processing, control The control node of each Service Source mounting in logical server, upper electric, the lower electricity of progress logical server, The operation such as reset.For example, it is desired to when carrying out power on operation to logical server, the basis of processing unit 330 The information of Service Source, is sent to the control node that this Service Source is mounted by power on operation request, controls Node processed is received after power on operation request, carries out corresponding power on operation.
In the present embodiment, request unit 310 will assemble request and be sent to the control section that Service Source is mounted Point;Then, the control node that the control of module units 320 Service Source is mounted is asked according to assembling, group Fill logical server;Then, the control logic server process service request of processing unit 330.This implementation Example controls corresponding control node by the way that assembling request is sent into the control node that Service Source is mounted Connection Service resource, completes the assembling of logical server, and then processing business is asked.The present embodiment simplifies The assembling flow path of each resource, improves resources management efficiency in logical server.
Further, reference picture 11, the embodiment of resource management apparatus the 5th of the present invention provides a kind of resource pipe Device is managed, based on the embodiment shown in above-mentioned Figure 10, the resource management apparatus also includes:
Receiving module 400, the revocation for receiving the service request is asked.
When carrying out service request processing, or after complete rear business processing request, if receiving module 400 is received For the revocation request of service request, then stop the processing to this business, revocation handles the logic of this business Server.
Specifically, as a kind of embodiment, remote control machine can be sent for industry according to actual needs The revocation request of business request, cancels the processing for business.
Receiving module 400 receives the revocation request that remote control machine is sent.Wherein, revocation request is carried The business information of this request revocation.
Module 500 is split, for being asked according to the revocation, the control section of the Service Source mounting is controlled Point splits the logical server.
After revocation request is received, as a kind of embodiment, first, module 500 is split according to revocation The business of this request revocation of acquisition request.
Then, business of the module 500 according to this request revocation is split, the logic for handling this business is obtained Server info, obtains the information of each Service Source.
Then, information of the module 500 according to each Service Source is split, obtains what each Service Source was mounted Control node, also, revocation request is sent to the control node that each Service Source is mounted.
Control node is received after revocation request, is asked according to revocation, electrically operated under being carried out to Service Source, It is split into each resource of logical server.
Thus, split module 500 and realize the fractionation to logical server resource.
Module 600 is cancelled, for cancelling the logical server.
After the fractionation of logical server resource is completed, revocation module 600 cancels this logical server, stops The business processing of logical server here.
Then, collection module 100 sends resource to each control node and collects request, collects each control node Current resource information;Its lower resource information hung of each control node real-time update, and to collection module 100 Report.
Collection module 100 is received after each control node resource information, according to the host name of each control node, The corresponding resource information of each control node is updated, CMDB renewal is realized.
It should be noted that collection module 100 can update all control nodes in current management network Resource information, can also only update the resource information of the control node of Splitting Logic server, can be according to reality Border needs flexible set.
In the present embodiment, receiving module 400 receives the revocation request for service request;Then, tear open Sub-module 500 is asked according to revocation, the control node Splitting Logic clothes for controlling the Service Source to be mounted Business device;And cancel module 600 and cancel the logical server, then the more new resources of collection module 100 are believed Breath, the assembling for other follow-up logical servers.The present embodiment by the fractionation to logical server, Release resource simultaneously updates resource information, improves the service efficiency of resource, and the resource of release can be used for other The processing of business, it is ensured that the order of resource management, simplifies the management to resource.
Reference picture 12, resource management system first embodiment of the present invention provides a kind of resource management system, institute Stating resource management system includes management node A and control node B, wherein:
The management node A includes such as collection module 100, assembling module 200, processing module 300, connect Receive module 400, split module 500 and revocation module 600.
Present invention is mainly applied to resource management, the present embodiment is entered with the resource management of rack server system Row for example, method for managing resource proposed by the present invention simplifies existing equipment cabinet server networking and wiring, Management network is optimized, the practicality of rack server system is improved.
Specifically, as a kind of embodiment, first, initializing the management network of rack server system.
Wherein, management network includes management node A and control node B.Management node A is manager, Such as PODM (POD Manager, POD data management node), is used as management terminal, management service Discovery, distribution and the recovery of device resource and logical server, such as resource;Control node B is controller, Such as DMC (Drawer Management Controller, drawer Management Controller), is used as management network Switching node, the resource for being included to it found and assembled, and with client (client) Cooperated with management node A, complete resource management;Control node B can also include the network switch, Such as ToR interchangers (Top of Rack, frame topcross), ToR interchangers, which following can hang resource, to be used for Management, the exchange of the Internet resources of management server;Certainly, ToR interchangers lower can not also hang resource, Not as control node network resource administration, network exchange is only used for.
The present embodiment is by PODM of management node A, control node B is DMC, and ToR interchangers are only It is illustrated for network exchange.Control node B may include multiple DMC and ToR interchangers.
When managing netinit, DMC Switching Module starts, and ToR interchangers start.Then, DMC Switching Module and ToR interchangers are conducted an election, restrained, and form acyclic tree network, arbitrary node To interconnect with other nodes, during ensureing that arbitrary node breaks down, it can restrain to form acyclic tree-like again Network, the reliability of lifting management network.
Management node A can be mounted on the arbitrary node of acyclic tree network, be managed.
The timing of management node A collection modules 100 collects resource information, each control node from each control node Its lower resource status hung of B real-time updates, to ensure that the resource information that collection module 100 is obtained is accurate Ground resource information.Or management node A collection module 100 receives the resource information of each control node, And stored.It should be noted that its lower every local resource hung of each control node B active collections Information, and local resource information is actively sent to management node A.
Thus, collection module 100 obtains the resource information of each control node.Wherein, collection module 100 The resource information of acquisition includes station location marker, the control node B mounted, the currently used shape of each resource State, disposal ability etc..
Then, all kinds of resources are merged to form resource pool by collection module 100 respectively according to resource information, example Such as cpu resource pond, memory source pond, memory resource pool and Internet resources pond, during for processing business Logical server is combined into according to business demand.
The resource information of each control node can be stored in CMDB (Configuration by collection module 100 Management Database, configuration management database), and believed according to the control node resource subsequently obtained Breath carries out data renewal.
Then, assembling module 200 receives service request, and according to the type of service request, from preset The corresponding each resource specification requirement of this service request is obtained in resource allocation table, then from the money obtained In source information, qualified every resource is picked out;Or assembling module 200 can be asked according to business The requirements to resource of carrying are sought, from the resource information obtained, are picked out qualified each Item resource.
Thus, assembling module 200 obtains the every resource for being suitable to handle this service request, and will obtain The Service Source asked as this processing business of every resource.Then, assembling module 200 is according to choosing The Service Source information generation assembling request taken.Assembling request includes each Service Source information, namely selected Each resource information needed for take, this assembling logical server, such as the station location marker of each Service Source, Control node, annexation of each Service Source for being mounted etc..
Then, each Service Source information of the processing module 300 in assembling request, by assembling request point The control node B that each Service Source is mounted is not sent to.
Each control node B is received after assembling request, and processing module 300 controls each control node B roots respectively According to assembling request, find in the resource of each control node mounting, be selected for assembling logical server Resource, namely Service Source.
Then, each control node B is asked according to assembling, and each service in different control nodes is provided Source is connected with each other, and assembles logical server.
Then, processing module 300 or remote control machine are according to the demand of this business processing, to have assembled Into logical server deployment operation system, cloud platform software and other be used for business processing software.
Complete after software deployment, control logic server process this service request of processing module 300.
Logical server, by each Service Source, carries out the processing of this business as physical machine.
After finishing service processing, if remote control machine sends revocation request, receiving module 400 is received Revocation request.
Then, business of the module 500 according to this request revocation of revocation acquisition request is split, and according to this The business of secondary request revocation, obtains the logical server information for handling this business, obtains each Service Source Information.
Then, information of the module 500 according to each Service Source is split, obtains what each Service Source was mounted Control node B, also, revocation request is sent to the control node B that each Service Source is mounted.
Control node B is received after revocation request, is asked according to revocation, electrically operated under being carried out to Service Source, It is split into each resource of logical server.
Then, revocation module 600 cancels this logical server, stops the processing business of this logical server.
The control node B, for being registered to the management node A;Its lower resource information hung is collected, And report the management node A;The assembling request assembling logic clothes sent according to the management node A Business device;The revocation request sent according to the management node A splits the logical server.
Control node B after the power-up, actively sends DHCP request to management node A, and request distribution is dynamic State address.After the dynamic address for receiving management node A distribution, control node B is sent to management node A Registration request, is registered.
Meanwhile, its lower every local resource information hung of control node B active collections.Each control node B The resource of lower extension includes processor, internal memory, storage, Internet resources etc., can flexibly set according to actual needs Put.The resource information that each control node B is collected include the station location marker of each resource, currently used state, Disposal ability etc..
After registration is completed, local resource information is actively sent to management node A by each control node B, Management node A receives the resource information of each control node, and is stored;Or management node A timing from Each control node B collections resource information, its lower resource status hung of each control node B real-time updates, with Ensure resource information that management node A obtains adequately resource information.
If control node B receives the assembling request of management node A transmissions, asked, searched according to assembling In its resource mounted, it is selected for assembling the resource of logical server, namely searches Service Source. Then, control node B is asked according to assembling, and each Service Source on different control node B is entered Row is connected with each other, and is assembled into logical server.
If control node B receives management node A and sends revocation request, asked according to revocation, search it Service Source in the resource of mounting, electrically operated, logical server under then being carried out to Service Source.
In the present embodiment, resource management system includes management node A and control node B;Wherein, control Node B processed has found, collects the information of its lower resource hung and report management node A;Management node A The resource hung under control node B is merged respectively to form resource pool, then according to service request, from resource Service Source is filtered out in pond, Service Source is assembled into logical server by control node B carries out business Processing.After finishing service processing, management node A can be asked according to revocation, split control node B Logical server, discharges resource.The present embodiment reduces the complexity of management software, while simplifying clothes Networking, the wiring for device system of being engaged in, the simplification to resource management is realized by management node and control node, The planar structure of server resource management is optimized, the management to each resource in server system is easier, Improve the efficiency of resource management.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every The equivalent structure or equivalent flow conversion made using description of the invention and accompanying drawing content, or directly or Connect and be used in other related technical fields, be included within the scope of the present invention.

Claims (11)

1. a kind of method for managing resource, it is characterised in that the method for managing resource comprises the following steps:
Management node obtains the resource information hung under each control node;
According to the service request and the resource information received, generation assembling request;
Asked according to the assembling, control the control node assembling logical server, handle the business Request.
2. method for managing resource as claimed in claim 1, it is characterised in that the management node is obtained The step of resource information hung under each control node, includes:
The configuring request of each control node is received, dynamic address is distributed to the control node;
The log-on message that the control node is sent based on the dynamic address is obtained, and registers the control Node;
Obtain the resource information hung under the registered control node.
3. method for managing resource as claimed in claim 1 or 2, it is characterised in that the basis is received Service request and the resource information, generation assembling request the step of include:
According to the service request received, the resource information is filtered;
According to default Weight algorithm and the resource information being filtrated to get, choose Service Source and obtain described The information of Service Source;
According to the Service Source information, generation assembling request.
4. method for managing resource as claimed in claim 3, it is characterised in that described according to the assembling Request, controls the control node assembling logical server, and the step of handling the service request includes:
The assembling request is sent to the control node of the Service Source mounting;
Control the control node of the Service Source mounting to be asked according to the assembling, assemble logical server;
The logical server is controlled to handle the service request.
5. method for managing resource as claimed in claim 4, it is characterised in that described according to the assembling After request, the step of controlling the control node assembling logical server, the processing service request, Also include:
Receive the revocation request of the service request;
Asked according to the revocation, control the control node of the Service Source mounting to split the logic clothes Business device;
The logical server is cancelled, and is transferred to execution step:Management node is obtained and hung under each control node Resource information.
6. a kind of resource management apparatus, it is characterised in that the resource management apparatus includes:
Collection module, the resource information hung under each control node is obtained for management node;
Module is assembled, for according to the service request and the resource information received, generation assembling request;
Processing module, for being asked according to the assembling, controls the control node assembling logical server, Handle the service request.
7. resource management apparatus as claimed in claim 6, it is characterised in that the collection module includes:
Allocation unit, the configuring request for receiving each control node distributes dynamic to the control node Address;
Registration unit, for obtaining the log-on message that the control node is sent based on the dynamic address, And register the control node;
Collector unit, for obtaining the resource information hung under the registered control node.
8. resource management apparatus as claimed in claims 6 or 7, it is characterised in that the assembling module Including:
Filter element, for according to the service request received, being filtered to the resource information;
Weight unit, for according to default Weight algorithm and the resource information being filtrated to get, choosing service Resource and the information for obtaining the Service Source;
Generation unit, for according to the Service Source information, generation assembling request.
9. resource management apparatus as claimed in claim 8, it is characterised in that the processing module includes:
Request unit, the control node for the assembling request to be sent to the Service Source mounting;
Module units, for controlling the control node of the Service Source mounting to be asked according to the assembling, Assemble logical server;
Processing unit, for controlling the logical server to handle the service request.
10. resource management apparatus as claimed in claim 9, it is characterised in that the resource management dress Putting also includes:
Receiving module, the revocation for receiving the service request is asked;
Module is split, for being asked according to the revocation, the control node of the Service Source mounting is controlled Split the logical server;
Module is cancelled, for cancelling the logical server.
11. a kind of resource management system, it is characterised in that the resource management system includes management node And control node, wherein:
The management node includes the device as described in claim any one of 6-10;
The control node, for being registered to the management node;Its lower resource information hung is collected, and Report the management node;The assembling request assembling logical server sent according to the management node; The revocation request sent according to the management node splits the logical server.
CN201610032846.2A 2016-01-18 2016-01-18 Method for managing resource, device and system Pending CN106982241A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610032846.2A CN106982241A (en) 2016-01-18 2016-01-18 Method for managing resource, device and system
PCT/CN2016/107277 WO2017124834A1 (en) 2016-01-18 2016-11-25 Resource management method, apparatus, and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610032846.2A CN106982241A (en) 2016-01-18 2016-01-18 Method for managing resource, device and system

Publications (1)

Publication Number Publication Date
CN106982241A true CN106982241A (en) 2017-07-25

Family

ID=59339886

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610032846.2A Pending CN106982241A (en) 2016-01-18 2016-01-18 Method for managing resource, device and system

Country Status (2)

Country Link
CN (1) CN106982241A (en)
WO (1) WO2017124834A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107800802A (en) * 2017-11-10 2018-03-13 郑州云海信息技术有限公司 A kind of Rack whole machine cabinets write-in and the method for reading UUID
CN109862134A (en) * 2019-03-18 2019-06-07 中国联合网络通信集团有限公司 A kind of the lease time configuration method and system of IP address
CN113472565A (en) * 2021-06-03 2021-10-01 北京闲徕互娱网络科技有限公司 Method, device, equipment and computer readable medium for expanding server function
CN114610798A (en) * 2022-03-25 2022-06-10 医渡云(北京)技术有限公司 Resource allocation management method, system, device, storage medium and electronic equipment

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112399474B (en) * 2020-11-19 2022-11-22 展讯通信(上海)有限公司 Resource allocation method, device and equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015130613A1 (en) * 2014-02-27 2015-09-03 Intel Corporation Techniques to allocate configurable computing resources
US20150295792A1 (en) * 2014-04-09 2015-10-15 International Business Machines Corporation Management of virtual machine resources in computing environments
US20150295800A1 (en) * 2014-04-10 2015-10-15 International Business Machines Corporation Always-On Monitoring in the Cloud

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103780428A (en) * 2014-01-17 2014-05-07 广州亦云信息技术有限公司 Centralized resource management method and system applied to cloud architecture
US10044795B2 (en) * 2014-07-11 2018-08-07 Vmware Inc. Methods and apparatus for rack deployments for virtual computing environments

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015130613A1 (en) * 2014-02-27 2015-09-03 Intel Corporation Techniques to allocate configurable computing resources
US20150295792A1 (en) * 2014-04-09 2015-10-15 International Business Machines Corporation Management of virtual machine resources in computing environments
US20150295800A1 (en) * 2014-04-10 2015-10-15 International Business Machines Corporation Always-On Monitoring in the Cloud

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107800802A (en) * 2017-11-10 2018-03-13 郑州云海信息技术有限公司 A kind of Rack whole machine cabinets write-in and the method for reading UUID
CN109862134A (en) * 2019-03-18 2019-06-07 中国联合网络通信集团有限公司 A kind of the lease time configuration method and system of IP address
CN113472565A (en) * 2021-06-03 2021-10-01 北京闲徕互娱网络科技有限公司 Method, device, equipment and computer readable medium for expanding server function
CN114610798A (en) * 2022-03-25 2022-06-10 医渡云(北京)技术有限公司 Resource allocation management method, system, device, storage medium and electronic equipment

Also Published As

Publication number Publication date
WO2017124834A1 (en) 2017-07-27

Similar Documents

Publication Publication Date Title
CN106982241A (en) Method for managing resource, device and system
RU2382398C2 (en) Generation of virtual network topology
CN103703724B (en) Resource payment method
CN105450553B (en) Methods, devices and systems and machine readable media for the study control plane level in data center environment
CN100521628C (en) Expandable dynamic network monitor system and its monitor method
CN107852342A (en) For making the framework level group membership system and method related to sub-network level subregion membership qualification in high-performance computing environment
CN108924217A (en) A kind of distribution cloud system Automation arranging method
US8223760B2 (en) Logical routers
CN101300779B (en) Method and system for providing service to subscribers
JPH09508727A (en) Distributed chassis agent for network management
CN102917084B (en) Automatic allocation method of IP address of node inside fat tree structure networking data center
CN102739775A (en) Method for monitoring and managing Internet of Things data acquisition server cluster
WO2009033248A1 (en) A method for efficient thread usage for hierarchically structured tasks
CN103475722A (en) Implement system for business collaboration platform
CN105610996B (en) A kind of DHCP collision detection methods applied to interchanger
EP2774329A1 (en) Data center network architecture
WO2013114238A1 (en) Distributed fabric management protocol
CN106330610A (en) Load balance processing system and method
CN110661641A (en) Virtual network function VNF deployment method and device
CN113612688B (en) Distributed software defined network control system and construction method thereof
CN108540408A (en) A kind of management method and system of the distributed virtual switch based on Openstack
CN114124714B (en) Multi-level network deployment method, device, equipment and storage medium
CN105071965A (en) Management system of network equipment
CN100484014C (en) Distributed cluster service management system and service management method in intelligent network
Zhang et al. SDNMP: Enabling SDN management using traditional NMS

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170725