WO2017124834A1 - Resource management method, apparatus, and system - Google Patents

Resource management method, apparatus, and system Download PDF

Info

Publication number
WO2017124834A1
WO2017124834A1 PCT/CN2016/107277 CN2016107277W WO2017124834A1 WO 2017124834 A1 WO2017124834 A1 WO 2017124834A1 CN 2016107277 W CN2016107277 W CN 2016107277W WO 2017124834 A1 WO2017124834 A1 WO 2017124834A1
Authority
WO
WIPO (PCT)
Prior art keywords
resource
control node
request
service
management
Prior art date
Application number
PCT/CN2016/107277
Other languages
French (fr)
Chinese (zh)
Inventor
程茂林
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017124834A1 publication Critical patent/WO2017124834A1/en

Links

Images

Classifications

    • 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
    • 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

Definitions

  • the present invention relates to the field of server resource management technologies, and in particular, to a resource management method, apparatus, and system.
  • the existing data center requires a large number of cabinet servers to meet the data processing requirements.
  • the RSA Riv Scale Architecture
  • the architecture is implemented by merging resources such as the CPU, memory, storage, and network of the server into resource pools, and selecting corresponding resources from the resource pools according to service requests to perform business processing.
  • the RSA architecture manages POD (Plain Old Data, a data structure) object through PODM (Plain Old Data Manager).
  • PODM manages multiple PODML (PODM Local, local data structure management nodes); each PODML manages DMC (Drawer Management Controller) in units of RACK (each layer on the architecture), and each PODML can be Facing multiple DMCs;
  • DMC manages BMC (Baseboard Management Controller) in units of DRAWER (drawer); BMC is based on MODULE (module).
  • each level faces multiple sub-level units, for example, one PODML faces multiple DMCs at the same time, and is responsible for resource discovery and assembly of multiple DMCs.
  • the RSA system architecture identifies the location of each resource by LID (Location ID, location serial number), and sets the level of each level in the production or installation.
  • LID is specifically composed of POD-RACK (rack)-DRAWER-MODULE-SUBMODULE (sub-module), for example, the number of DRAWER, which can be read from the rack backplane through GPIO (General-Purpose Input/Output).
  • the RSA system architecture is identified by the LID, the hierarchical concept is complex, and the software architecture is complex.
  • the LID the hierarchical concept is complex
  • the software architecture is complex.
  • the RSA can only be extended by attaching a new management layer to the bottom layer. For example, when integrating multiple blades, only one BLADE layer can be added under MODULE to extend LID. . If a node in the LID fails, all resources under it are unavailable, resulting in redundancy and instability of the RSA hierarchy, and no targeting to the hardware application form.
  • the main object of the present invention is to provide a resource management method, device and system, which aim to solve the technical problem that the existing server resource management is difficult.
  • the present invention provides a resource management method, and the resource management method includes the following steps:
  • the management node obtains resource information linked by each control node
  • the step of the management node acquiring the resource information of each control node includes:
  • the step of generating an assembly request according to the received service request and the resource information includes:
  • An assembly request is generated based on the service resource information.
  • controlling the node to assemble the logical server according to the assembly request, and processing the service request includes:
  • control node that controls the connection of the service resource to assemble a logical server according to the assembly request
  • the method further includes:
  • the logical server is revoked, and the execution step is performed: the management node acquires resource information linked by each control node.
  • the present invention further provides a resource management apparatus, where the resource management apparatus includes:
  • a collection module configured to acquire, by the management node, resource information linked by each control node
  • An assembly module configured to generate an assembly request according to the received service request and the resource information
  • a processing module configured to control, according to the assembly request, the control node to assemble a logical server to process the service request.
  • the collecting module comprises:
  • An allocating unit configured to receive a configuration request of each control node, and allocate a dynamic address to the control node
  • a registration unit configured to acquire registration information that is sent by the control node based on the dynamic address, and register the control node;
  • a collecting unit configured to acquire resource information that is linked by the registered control node.
  • the assembly module comprises:
  • a filtering unit configured to filter the resource information according to the received service request
  • a weighting unit configured to select a service resource according to a preset weight algorithm and filtered resource information, and obtain information about the service resource
  • a generating unit configured to generate an assembly request according to the service resource information.
  • the processing module includes:
  • a requesting unit configured to send the assembly request to a control node that is attached to the service resource
  • An assembly unit configured to control a control node of the service resource to assemble a logical server according to the assembly request
  • a processing unit configured to control the logical server to process the service request.
  • the resource management device further includes:
  • a receiving module configured to receive a revocation request of the service request
  • a splitting module configured to: according to the revocation request, control a control node that is connected to the service resource to split the logical server;
  • the undo module is used to revoke the logical server.
  • the present invention also provides a resource management system, where the resource management system includes a management node and a control node, where:
  • the management node includes a collection module, an assembly module, a processing module, a receiving module, a split module, and an undo module;
  • the control node is configured to register with the management node; collect the resource information of the connection node and report it to the management node; assemble the logical server according to the assembly request sent by the management node; and send according to the management node The undo request splits the logical server.
  • a resource management method, device and system obtains resource information linked by each control node through a management node; generates an assembly request according to the received service request and resource information; and controls the control node according to the assembly request Assemble logical servers to process business requests.
  • the invention directly interacts with the management node for resource management by the control node, reduces the complexity of the management software, simplifies the networking and wiring of the server system, realizes the optimization of the server system management network structure, and the resources of the server system. Management is easier and improves the efficiency of resource management.
  • FIG. 1 is a schematic flowchart of a first embodiment of a resource management method according to the present invention
  • FIG. 2 is a schematic flowchart of a second embodiment of a resource management method according to the present invention.
  • FIG. 3 is a schematic diagram of a management structure according to an embodiment of the present invention.
  • FIG. 4 is a schematic flowchart of a third embodiment of a resource management method according to the present invention.
  • FIG. 5 is a schematic flowchart diagram of a fourth embodiment of a resource management method according to the present invention.
  • FIG. 6 is a schematic flowchart diagram of a fifth embodiment of a resource management method according to the present invention.
  • FIG. 7 is a schematic diagram of functional modules of a first embodiment of a resource management apparatus according to the present invention.
  • FIG. 8 is a schematic diagram of functional modules of a second embodiment of a resource management apparatus according to the present invention.
  • FIG. 9 is a schematic diagram of functional modules of a third embodiment of a resource management apparatus according to the present invention.
  • FIG. 10 is a schematic diagram of functional modules of a fourth embodiment of a resource management apparatus according to the present invention.
  • FIG. 11 is a schematic diagram of functional modules of a fifth embodiment of a resource management apparatus according to the present invention.
  • FIG. 12 is a schematic block diagram of a first embodiment of a resource management system according to the present invention.
  • the main solution of the embodiment of the present invention is: the management node acquires the resource information of each control node; generates an assembly request according to the received service request and the resource information; and controls the control node assembly according to the assembly request.
  • the invention provides a solution for attaching resources to a control node, performing resource management through interaction between the management node and the control node, optimizing the management structure, simplifying the management level of the server resources, and improving the resource management efficiency.
  • a first embodiment of a resource management method of the present invention provides a resource management method, where the resource management method includes:
  • Step S10 The management node acquires resource information linked by each control node.
  • the present invention is mainly applied to resource management.
  • the resource management method of the cabinet server system is used as an example.
  • the resource management method proposed by the present invention simplifies the networking and wiring of the existing cabinet server, optimizes the management network, and improves the cabinet server system. Practicality.
  • a management network of the rack server system is initialized.
  • the management network of the cabinet server system includes a management node and a control node.
  • the management node is a manager, such as a PODM (POD Manager, POD Data Management Node), as a management terminal, managing server resources and logical servers, such as resource discovery, allocation, and recycling;
  • the control node is a controller, such as a DMC (Drawer Management Controller, drawer)
  • the management controller is used as a switching node of the management network for discovering and assembling the resources it contains, and collaborating with the management node by the client (client) to complete resource management;
  • the control node may further include a network switch.
  • a ToR switch Topic of Rack
  • a ToR switch can also not use resources as a control node to manage network resources. Used for network switching.
  • the management node is a PODM
  • the control node is a DMC
  • the ToR switch is used only for network switching.
  • the control node can include multiple DMC and ToR switches.
  • the DMC switch module When the management network is initialized, the DMC switch module is started and the ToR switch is started. Then, the DMC switch module and the ToR switch perform election and convergence to form an acyclic tree network. Any node can be interconnected with other nodes to ensure that any node fails to reconverge to form an acyclic tree network and improve the management network. Reliability.
  • the management node can be attached to any node of the acyclic tree network for management.
  • the management node periodically collects resource information from each control node, and each control node updates its resource status in real time to ensure that the resource information acquired by the management node is accurate resource information.
  • each control node actively sends local resource information to the management node, and the management node receives resource information of each control node and stores it.
  • each control node actively collects various local resource information that is connected to it.
  • the resources connected to each control node include the processor, memory, storage, and network resources, which can be flexibly set according to actual needs.
  • the resource information collected by each control node includes the location identifier of each resource, the current usage status, and the processing capability.
  • the management node acquires resource information of each control node.
  • the resource information acquired by the management node includes a location identifier of each resource, a connected control node, a current usage state, and a processing capability.
  • the management node combines various resources according to the resource information to form a resource pool, for example, a CPU resource pool, a memory resource pool, a storage resource pool, and a network resource pool, and is used to process the services into a logical server according to service requirements.
  • a resource pool for example, a CPU resource pool, a memory resource pool, a storage resource pool, and a network resource pool.
  • the management node may store the resource information of each control node in a CMDB (Configuration Management Database), and perform data update according to the subsequently obtained control node resource information.
  • CMDB Configuration Management Database
  • Step S20 Generate an assembly request according to the received service request and the resource information.
  • the management node After acquiring the resource information of each control node, the management node performs resource assembly according to the service request.
  • the management node receives a service request, for example, a telecommunication service, and may send the information to a management node through a terminal such as a remote PC (personal computer).
  • a service request may carry information such as a service type, a resource required for processing a service, and a specification requirement for each resource, and may be flexibly set according to actual needs.
  • the management node may obtain, according to the type of the service request, the resource specification requirements corresponding to the current service request from the preset resource allocation table, and then select, from the acquired resource information, the resources that meet the conditions; or The management node may select various resources that meet the requirements from the acquired resource information according to the requirements of the resource carried by the service request.
  • the management node obtains various resources suitable for processing the current service request, and uses the obtained resources as the service resource for processing the service request. According to the selected service resource, the management node can assemble a logical server for processing the current service request.
  • the management node then generates an assembly request based on the selected service resource.
  • the assembly request includes each service resource information, that is, the selected resource information required for assembling the logical server, such as the location identifier of each service resource, the connected control node, and the connection relationship.
  • Step S30 Control, according to the assembly request, the control node to assemble a logical server to process the service request.
  • the management node After obtaining the assembly request, the management node causes the control node to assemble the logical server to process the service request according to the assembly request.
  • the management node sends an assembly request to the control node connected to each service resource according to each service resource information in the assembly request, and sends the assembly request to the selected resource. Connected control node.
  • the management node controls each control node to find, according to the assembly request, the resources selected by the control nodes and the resources selected for assembling the logical server, that is, the service resources.
  • each control node interconnects the service resources located on different control nodes according to the assembly request, and assembles the logical server.
  • the DMC interacts with the BMC (Baseboard Management Controller) inside the subnet to access specific resources.
  • BMC Baseboard Management Controller
  • the interaction protocol between the DMC and the BMC may be an IPMI (Intelligent Platform Management Interface) protocol, or may be an HTTP (HyperText Transfer Protocol) or other interactive protocol. Flexible settings according to actual needs.
  • IPMI Intelligent Platform Management Interface
  • HTTP HyperText Transfer Protocol
  • the management node or the remote control machine deploys an operating system, cloud platform software, and other software for business processing for the assembled logical server according to the requirements of the current business processing.
  • the management node controls the logical server to process the current service request.
  • the logical server acts as a physical machine and processes the service through various service resources.
  • the management node or the remote control machine can control the control node to which each service resource belongs in the logical server according to the requirements of the current service processing, and perform operations such as powering on, powering off, and resetting the logical server. For example, when the logical server needs to be powered on, the management node sends a reset operation request to the control node attached to the service resource according to the information of the service resource, and after receiving the power-on operation request, the control node performs corresponding operation. Electrical operation.
  • the management node acquires resource information hanged by each control node; generates an assembly request according to the received service request and resource information; and then, the management node controls the control node to assemble the logical server according to the assembly request, and processes the current request.
  • Business request the concept of the rack level of the traditional server is avoided, and resources are connected to each control node, and the control node directly interacts with the management node for resource management, which reduces the complexity of the management software and simplifies the networking of the server system. Wiring realizes the optimization of the server system management network structure, manages the resources of the server system more easily, and improves the efficiency of resource management.
  • a second embodiment of the resource management method of the present invention provides a resource management method.
  • the step S10 includes:
  • Step S11 Receive a configuration request of each control node, and allocate a dynamic address to the control node.
  • the management network of the rack server system is initialized.
  • the management node is a PODM
  • the control node is a DMC
  • the ToR switch is used only for network switching.
  • the control node can include multiple DMC and ToR switches.
  • the DMC switch module When the management network is initialized, the DMC switch module is started and the ToR switch is started. Then, the DMC switch module and the ToR switch perform election and convergence to form an acyclic tree network that communicates with each other and does not affect each other.
  • any node In the formed acyclic tree network, any node can be interconnected with other nodes to ensure that any node fails, and can reconverge to form an acyclic tree network, which improves the reliability of the management network.
  • the acyclic tree network blocks the loop and ensures the load balancing of the nodes.
  • the DMC and the ToR switch run the MSTP (Multiple Spanning Tree Protocol).
  • the DMC switch module and the ToR switch are equal nodes.
  • the DMC node has the attached resources, but the ToR switch does not.
  • the generated acyclic tree network can refer to Figure 3.
  • Each DMC or ToR switch is interconnected with at least three other nodes. After a network port or connection fails, MSTP reconverges to form a new acyclic tree network.
  • the 3x redundancy on the 3x reliability It should be noted that any node can be interconnected as much as possible according to the engineering design during wiring, and the number of interconnected nodes can be flexibly set according to actual needs.
  • the management node PODM can be attached to any node of the acyclic tree network, and the acyclic tree network Any node can continue to increase the attached DMC.
  • the management node After completing the management network initialization, the management node receives the configuration request of each control node, and assigns a dynamic address to the control node.
  • the management node can run a DHCPD (Dynamic Host Configuration Protocol Daemon) service and receive a DHCP (Dynamic Host Configuration Protocol) request sent by the control node.
  • DHCPD Dynamic Host Configuration Protocol Daemon
  • DHCP Dynamic Host Configuration Protocol
  • control node After powering on, the control node actively sends a DHCP request to the management node to request allocation of a dynamic address.
  • the management node assigns a dynamic address, such as IP, addr (address), to the control node according to the received control node DHCP request.
  • the dynamic address assigned by the management node is set with the lease duration.
  • the control node is abnormal or the lease is used, the dynamic address of the control node is recovered, and the recovered dynamic address can be assigned to other control nodes. It should be noted that the lease duration can be flexibly set according to actual needs.
  • the management node then sends the assigned dynamic address to the corresponding control node.
  • Step S12 Acquire registration information sent by the control node based on the dynamic address, and register the control node.
  • the management node After the management node assigns a dynamic address, it acquires registration information of the control node and registers the control node.
  • the control node after receiving the dynamic address allocated by the management node, uses the dynamic address as an address for subsequent communication with the management node.
  • the control node actively sends registration information to the management node for registration.
  • the registration information of the control node includes the host name and current running status of the control node.
  • the current running state of the control node includes information such as whether the control node is currently running normally and the resource occupancy rate.
  • the management node receives the registration request sent by the control node based on the dynamic address, and acquires the registration information of the control node. Thus, the management node can learn the control node information using the current dynamic address.
  • the management node registers each control node for registration, saves the dynamic address and host name of each control node, caches the current state of each control node, and establishes a correspondence relationship for identifying different control nodes.
  • Step S13 Obtain resource information that is linked by the registered control node.
  • the resources connected to each control node include the processor, memory, storage, and network resources, which can be flexibly set according to actual needs.
  • the resource information collected by each control node includes the location identifier of each resource, the current usage status, and the processing capability.
  • the resource discovered by the control node may use a control node host name and a UUID (Universally Unique Identifier) as the location identifier.
  • the control node host name is the host name of the control node to which the resource is attached;
  • the UUID is a pre-configured identification identifier, and the UUID can be set according to the factory information and the playing time of the resource.
  • the UUID can also be set according to other hardware information of the resource. Flexible settings according to actual needs.
  • location information such as SLED (slot) can be added, and the location identifier of the resource can be added to further identify the physical location of the resource, so that resources can be conveniently and quickly found for processing when a hardware failure occurs.
  • the management node only the host name and the UUID need to identify different resources, and it is not necessary to control the location information inside the node.
  • the architecture of the server system is simplified, and the hierarchical architecture is more targeted for hardware applications.
  • the capital occurs
  • the source is faulty
  • the connected control node is found by the host name, and then the location information inside the control node is used to quickly locate the physical location of the faulty resource, so as to quickly locate the resource location.
  • the complexity of the management software is simplified, and the actual operation difficulty is small, which avoids confusion and errors that are easy to occur when locating resources through strict wiring.
  • each control node After transmitting the registration request for registration, each control node actively sends the local resource information to the management node, and the management node receives the resource information of each control node and stores it; or the management node periodically collects resource information from the registered control nodes. Each control node updates its resource status in real time to ensure that the resource information acquired by the management node is accurate resource information.
  • the management node acquires resource information of each registered control node.
  • the resource information acquired by the management node includes the location identifier of each resource, the connected control node, the current usage status, and the processing capability.
  • the management node may associate the host name of the control node with each resource information of the control node to identify resources of different control nodes. Therefore, the management node can find the resource information that is connected to each control node according to the host name, and perform data query or update of the control node resource information.
  • the management node combines various resources according to the resource information to form a resource pool, for example, a CPU resource pool, a memory resource pool, a storage resource pool, and a network resource pool, and is used to process the services into a logical server according to service requirements.
  • a resource pool for example, a CPU resource pool, a memory resource pool, a storage resource pool, and a network resource pool.
  • the management node stores the resource information of each control node in the CMDB. It should be noted that the CMDB storing the resource information may be configured according to the actual situation such as the amount of stored data and the size of the environment.
  • the management node receives the configuration request of each control node, and assigns a dynamic address to the control node; then, acquires registration information sent by the control node based on the dynamic address, and registers the control node; and then acquires the registered control node Resource information.
  • the management node allocates a dynamic address to the control node, registers the control node, effectively improves the address usage efficiency and the management efficiency of the management node, and avoids the resource occupied by the failure control node; at the same time, the management node can timely acquire the resources of the effective control node.
  • Information, data is orderly and regular, and it is convenient for subsequent management of resources.
  • a third embodiment of the resource management method of the present invention provides a resource management method, which is based on the foregoing embodiment shown in FIG. 1 or FIG. 2 (this embodiment is illustrated by using FIG. 2).
  • S20 includes:
  • Step S21 Filter the resource information according to the received service request.
  • the management node After acquiring the resource information of each control node, the management node performs resource assembly according to the service request.
  • the management node receives a service request, for example, a telecommunication service, and may send the information to a management node through a terminal such as a remote PC (personal computer).
  • a service request may carry information such as a service type, a resource required for processing a service, and a specification requirement for each resource, and may be flexibly set according to actual needs.
  • the management node filters out the resource pools required for processing the current service request from the stored resource pools according to the required resources for processing the service request.
  • the resources in each resource pool are filtered to filter out the resources that meet the requirements.
  • the management node filters out the CPU in the CPU resource pool, the number of cores does not meet the requirements, that is, filters out CPU resource information that does not meet the requirements; the service request can also limit the amount of memory storage.
  • the management node according to the parameters set by the business request Filter out the memory resources in the memory resource pool that do not meet the parameter requirements, that is, filter out the memory resource information that does not meet the requirements; the service request can also limit the network traffic, and the management node filters out the network resource pool according to the parameters set by the service request. Network resources that do not meet the parameter requirements, that is, filter out network resource information that does not meet the requirements.
  • the management node filters out the resources in the resource pool that cannot meet the service processing requirements according to the service request, that is, filters out the resource information that cannot meet the service processing requirements.
  • the resource information obtained after filtering meets the requirements for processing the current service request.
  • Step S22 Select a service resource and obtain information about the service resource according to the preset weight algorithm and the filtered resource information.
  • the management node After filtering the resource information, the management node selects the resource as the service resource of the assembly logical server according to the preset weight algorithm and the filtered resource information.
  • the management node selects resources suitable for assembling the logical server according to the preset weight algorithm and the filtered resource information.
  • the management node selects the CPU and the memory that meet the requirements according to the distance parameter and the resource information, and avoids the data transmission abnormality caused by the CPU and the memory being too far apart.
  • the preset weight algorithm can be flexibly set according to actual conditions, and is used to set parameter conditions, so that the logical server obtained by the acquired resource combination can achieve performance balance or optimal performance such as processing speed and storage occupancy.
  • the management node obtains resources for assembling the logical server, and uses each obtained resource as a service resource of the assembly logical server. According to the selected service resource, the management node can assemble a logical server for processing the current service request.
  • the management node obtains information of each service resource.
  • the information of each service resource includes: the location identifier of each service resource, the connected control node, the current usage status, and the processing capability, and can be flexibly set according to actual needs.
  • Step S23 Generate an assembly request according to the service resource information.
  • the management node After obtaining the service resource information, the management node generates an assembly request according to the service resource information.
  • the assembly request includes the information of each service resource, that is, the selected resource information required for assembling the logical server, such as the location identifier of each service resource, the connected control node, and the connection relationship.
  • the management node filters the resource information according to the received service request; then, according to the preset weight algorithm and the filtered resource information, the service resource is selected and the service resource information is obtained; and then the service resource information is obtained according to the service resource information. , generate an assembly request.
  • This embodiment implements the optimization of assembling logical server resources, simplifies the process of selecting resources, and selects the obtained service resources to process service requests more efficiently.
  • the fourth embodiment of the resource management method of the present invention provides a resource management method.
  • the step S30 includes:
  • Step S31 Send the assembly request to the control node to which the service resource is attached.
  • the management node After obtaining the assembly request, the management node causes the control node to assemble the logical server to process the service request according to the assembly request.
  • the management node separately sends the assembly request to the control node that is connected to each service resource according to each service resource information in the assembly request.
  • the assembly request sent by the management node includes resource information selected as a service resource in each control node, a connection relationship of each service resource, and the like.
  • Step S32 The control node that controls the connection of the service resource assembles the logical server according to the assembly request.
  • the management node controls each control node to find the resources hooked by each control node according to the assembly request, and is selected for assembly.
  • the resource of the logical server that is, the service resource.
  • each control node interconnects the service resources located on different control nodes according to the assembly request, and assembles them into a logical server.
  • the control node DMC interacts with the BMC inside the subnet to access specific resources.
  • the interaction protocol between the DMC and the BMC may be the IPMI protocol, the HTTP protocol, or other interaction protocols, and may be flexibly set according to actual needs.
  • a logical server consists of a connection of service resources.
  • Step S33 Control the logical server to process the service request.
  • the management node or the remote controller deploys an operating system, cloud platform software, and other software for business processing for the assembled logical server according to the requirements of the current business processing.
  • the management node controls the logical server to process the current service request.
  • the logical server acts as a physical machine and processes the service through various service resources.
  • the management node or the remote control machine can control the control nodes connected to the service resources in the logical server according to the requirements of the current service processing, and perform operations such as powering on, powering off, and resetting the logical server.
  • the management node sends a power-on operation request to the control node connected to the service resource according to the information of the service resource, and after receiving the power-on operation request, the control node performs corresponding Power on operation.
  • the management node sends the assembly request to the control node to which the service resource is attached; then, the control node attached to the control service resource assembles the logical server according to the assembly request; and then controls the logical server to process the service request.
  • the assembly request is sent to the control node that is connected to the service resource, and the corresponding control node is controlled to connect to the service resource, complete the assembly of the logical server, and then process the service request. This embodiment simplifies the assembly process of resources in the logical server and improves resource management efficiency.
  • the fifth embodiment of the resource management method of the present invention provides a resource management method. After the step S30, the method further includes:
  • Step S40 Receive a revocation request of the service request.
  • the management node When the service request processing is performed, or after the business processing request is completed, if the management node receives the revocation request for the service request, the processing of the service is stopped, and the logical server that processes the service is revoked.
  • the remote control machine may issue a revocation request for the service request according to actual needs, and cancel the processing for the service.
  • the management node receives the revocation request sent by the remote controller.
  • the revocation request carries the business information that is revoked by the request.
  • Step S50 Control the node connected to the service resource to split the logical server according to the revocation request.
  • the management node After receiving the revocation request, as an implementation manner, first, the management node acquires the service requested to be revoked according to the revocation request.
  • the management node obtains the logical server information for processing the service according to the service that is requested to be revoked, and obtains the information of each service resource.
  • the management node acquires the control node to which each service resource is attached according to the information of each service resource, and sends the revocation request to the control node to which each service resource is attached.
  • the control node After receiving the revocation request, the control node performs a power-off operation on the service resource according to the revocation request, and splits the resources that constitute the logical server.
  • the management node implements splitting of logical server resources.
  • Step S60 the logical server is revoked, and the process proceeds to step S10.
  • the management node After the logical server resource is split, the management node revokes the logical server and stops the business processing of the logical server.
  • the management node sends a resource collection request to each control node, and collects the current resource information of each control node; each control node updates the resource information of the next node in real time and reports it to the management node.
  • the management node After receiving the resource information of each control node, the management node updates the resource information corresponding to each control node according to the host name of each control node to implement the update of the CMDB.
  • the management node may update the resource information of all the control nodes in the current management network, or may only update the resource information of the control node of the split logical server, and may be flexibly set according to actual needs.
  • the management node receives the revocation request for the service request; then, according to the revocation request, controls the control node to which the service resource is attached to split the logical server; and revokes the logical server, and then updates the resource information, Used for subsequent assembly of other logical servers.
  • the resource use efficiency is improved, and the released resources can be used for processing other services, ensuring order management of resources, and simplifying management of resources. .
  • a first embodiment of the resource management apparatus of the present invention provides a resource management apparatus, where the resource management apparatus includes:
  • the collecting module 100 is configured to acquire, by the management node, resource information that is connected to each control node.
  • the present invention is mainly applied to resource management.
  • the resource management device provided by the present invention exemplifies the networking and cabling of the existing cabinet server, optimizes the management network, and improves the cabinet server system. Practicality.
  • a management network of the rack server system is initialized.
  • the management network of the cabinet server includes a resource management device and a control node.
  • the resource management device is a manager, such as a PODM (POD Manager, POD Data Resource Management Device), as a management terminal, managing server resources and logical servers, such as resource discovery, allocation, and recycling;
  • the control node is a controller, such as DMC (Drawer Management Controller) , drawer management controller), as a switching node of the management network, for discovering and assembling the resources it contains, and collaborating with the resource management device by the client (client) to complete resource management;
  • the control node may also include
  • a network switch such as a ToR switch (Top of Rack), can be connected to resources to manage and exchange network resources of the server.
  • the ToR switch can also be used as a control node to manage the network. Resources, only for network switching.
  • the resource management device is a PODM
  • the control node is a DMC
  • the ToR switch is used only for network switching.
  • the control node can include multiple DMC and ToR switches.
  • the DMC switch module When the management network is initialized, the DMC switch module is started and the ToR switch is started. Then, the DMC switch module and the ToR switch perform election and convergence to form an acyclic tree network. Any node can be interconnected with other nodes to ensure that any node fails to reconverge to form an acyclic tree network and improve the management network. Reliability.
  • the resource management device can be connected to any node of the acyclic tree network for management.
  • the collection module 100 of the resource management device periodically collects resource information from each control node, and each control node updates the state of the resource that is connected to it in real time to ensure that the resource information acquired by the collection module 100 is accurate resource information.
  • each control node actively sends the local resource information to the resource management device, and the collection module 100 of the resource management device receives the resource information of each control node and stores the resource information.
  • each control node actively collects various local resource information that is connected to it.
  • the resources connected to each control node include the processor, memory, storage, and network resources, which can be flexibly set according to actual needs.
  • the resource information collected by each control node includes the location identifier of each resource, the current usage status, and the processing capability.
  • the collection module 100 acquires resource information of each control node.
  • the resource information acquired by the collection module 100 includes a location identifier of each resource, a connected control node, a current usage state, a processing capability, and the like.
  • the collection module 100 combines various resources according to the resource information to form a resource pool, such as a CPU resource pool, a memory resource pool, a storage resource pool, and a network resource pool, and is combined into a logical server according to service requirements when processing the service.
  • a resource pool such as a CPU resource pool, a memory resource pool, a storage resource pool, and a network resource pool
  • the collection module 100 may store the resource information of each control node in a CMDB (Configuration Management Database), and perform data update according to the subsequently acquired control node resource information.
  • CMDB Configuration Management Database
  • the assembly module 200 is configured to generate an assembly request according to the received service request and the resource information.
  • the assembly module 200 After acquiring the resource information of each control node, the assembly module 200 performs resource assembly according to the service request.
  • the assembly module 200 receives a service request, such as a telecommunication service, and can be sent to the assembly module 200 through a terminal such as a remote PC (personal computer).
  • a service request may carry information such as a service type, a resource required for processing a service, and a specification requirement for each resource, and may be flexibly set according to actual needs.
  • the assembly module 200 may obtain, according to the type of the service request, the resource specification requirements corresponding to the current service request from the preset resource allocation table, and then select, from the acquired resource information, the resources that meet the conditions; Or the assembly module 200 can select various resources that meet the requirements from the acquired resource information according to the requirements of the resources carried by the service request.
  • the assembly module 200 obtains various resources suitable for processing the current service request, and uses the obtained resources as the service resource for processing the service request.
  • the assembly module 200 then generates an assembly request based on the selected service resource.
  • the assembly request includes each service resource information, that is, the selected resource information required for assembling the logical server, such as the location identifier of each resource, the connected control node, and the connection relationship of each resource.
  • the processing module 300 is configured to control, according to the assembly request, the control node to assemble a logical server to process the service request.
  • the processing module 300 causes the control node assembly logic server to process the service request according to the assembly request.
  • the processing module 300 sends an assembly request to the control node that is connected to each service resource according to each service resource information in the assembly request, and sends the assembly request to the selected resource.
  • the attached control node is a control node that is connected to each service resource according to each service resource information in the assembly request.
  • the processing module 300 controls each control node to find, according to the assembly request, the resources selected by the control nodes to be used for assembling the logical server, that is, the service resources.
  • each control node interconnects the service resources located on different control nodes according to the assembly request, and assembles the logical server.
  • the DMC interacts with the BMC (Baseboard Management Controller) inside the subnet to access specific resources.
  • BMC Baseboard Management Controller
  • the interaction protocol between the DMC and the BMC may be an IPMI (Intelligent Platform Management Interface) protocol, or may be an HTTP (HyperText Transfer Protocol) or other interactive protocol. Flexible settings according to actual needs.
  • IPMI Intelligent Platform Management Interface
  • HTTP HyperText Transfer Protocol
  • the processing module 300 or the remote control machine deploys an operating system, cloud platform software, and other software for business processing for the assembled logical server according to the requirements of the current business processing.
  • the processing module 300 controls the logical server to process the current service request.
  • the logical server acts as a physical machine and processes the service through various service resources.
  • the processing module 300 or the remote control machine can control the control node to which each service resource belongs in the logical server according to the requirements of the current service processing, and perform operations such as power-on, power-off, and reset of the logical server.
  • the processing module 300 sends a power-on operation request to the control node that is connected to the service resource according to the information of the service resource, and after receiving the power-on operation request, the control node performs corresponding Power-on operation.
  • the collection module 100 acquires resource information linked by each control node; the assembly module 200 generates an assembly request according to the received service request and resource information; and then, the processing module 300 controls the control node assembly logic according to the assembly request.
  • Server processing this business request.
  • the concept of the rack level of the traditional server is avoided, and resources are connected to each control node, and the control node directly interacts with the resource management device for resource management, which reduces the complexity of the management software and simplifies the networking of the server system.
  • the server system management network structure is optimized, the management of each resource in the server system is more convenient, and the efficiency of resource management is improved.
  • the second embodiment of the resource management apparatus of the present invention provides a resource management apparatus.
  • the collection module 100 includes:
  • the allocating unit 110 is configured to receive a configuration request of each control node, and allocate a dynamic address to the control node.
  • the management network of the rack server system is initialized.
  • the resource management device is a PODM
  • the control node is a DMC
  • the ToR switch is used only for network switching.
  • the control node can include multiple DMC and ToR switches.
  • the DMC switch module When the management network is initialized, the DMC switch module is started and the ToR switch is started. Then, the DMC switch module and the ToR switch perform election and convergence to form an acyclic tree network that communicates with each other and does not affect each other.
  • any node can be interconnected with other nodes to ensure that any node fails, and can reconverge to form an acyclic tree network to improve the reliability of the management network.
  • the acyclic tree network blocks the loop and ensures the load balancing of the nodes.
  • the DMC and the ToR switch run the MSTP (Multiple Spanning Tree Protocol).
  • the DMC switch module and the ToR switch are equal nodes.
  • the DMC node has the attached resources, but the ToR switch does not.
  • the generated acyclic tree network can refer to Figure 3.
  • Each DMC or ToR switch is interconnected with at least three other nodes. After a network port or connection fails, MSTP reconverges to form a new acyclic tree network.
  • the 3x redundancy on the 3x reliability It should be noted that any node can be interconnected as much as possible according to the engineering design during wiring, and the number of interconnected nodes can be flexibly set according to actual needs.
  • the resource management device PODM can be attached to any node of the acyclic tree network, and any node of the acyclic tree network can continue to increase the attached DMC.
  • the allocation unit 110 of the resource management apparatus receives the configuration request of each control node, and assigns a dynamic address to the control node.
  • the allocating unit 110 may run a DHCPD (Dynamic Host Configuration Protocol Daemon) service to receive a DHCP (Dynamic Host Configuration Protocol) request sent by the control node.
  • DHCPD Dynamic Host Configuration Protocol Daemon
  • DHCP Dynamic Host Configuration Protocol
  • control node After powering on, the control node actively sends a DHCP request to the allocating unit 110 to request allocation of a dynamic address.
  • the allocating unit 110 assigns a dynamic address, such as IP, addr (address), to the control node according to the received control node DHCP request.
  • the dynamic address allocated by the allocating unit 110 is set with a lease duration. When an abnormality occurs in the control node or the lease period is used, the dynamic address of the control node is recovered, and the recovered dynamic address can be allocated to other control nodes. It should be noted that the lease duration can be flexibly set according to actual needs.
  • the allocation unit 110 then sends the assigned dynamic address to the corresponding control node.
  • the registration unit 120 is configured to acquire registration information that is sent by the control node based on the dynamic address, and register the control node.
  • the registration unit 120 acquires the registration information of the control node and registers the control node.
  • the control node after receiving the dynamic address allocated by the allocating unit 110, uses the dynamic address as an address for subsequent communication with the resource management apparatus.
  • the control node actively sends registration information to the registration unit 120 for registration.
  • the registration information of the control node includes the host name and current running status of the control node.
  • the current running state of the control node includes information such as whether the control node is currently running normally and the resource occupancy rate.
  • the registration unit 120 receives the registration request sent by the control node based on the dynamic address, and acquires registration information of the control node. Thus, the registration unit 120 can learn the control node information using the current dynamic address.
  • the registration unit 120 registers each control node that performs registration, saves the dynamic address and host name of each control node, caches the current state of each control node, and establishes a correspondence relationship for identifying different control nodes.
  • the collecting unit 130 is configured to acquire resource information that is linked by the registered control node.
  • the resources connected to each control node include the processor, memory, storage, and network resources, which can be flexibly set according to actual needs.
  • the resource information collected by each control node includes the location identifier of each resource, the current usage status, and the processing capability.
  • the resource discovered by the control node may use a control node host name and a UUID (Universally Unique Identifier) as the location identifier.
  • the control node host name is the host name of the control node to which the resource is attached;
  • the UUID is a pre-configured identification identifier, and the UUID can be set according to the factory information and the playing time of the resource.
  • the UUID can also be set according to other hardware information of the resource. Flexible settings according to actual needs.
  • location information such as SLED (slot) can be added, and the location identifier of the resource can be added to further identify the physical location of the resource, so that resources can be conveniently and quickly found for processing when a hardware failure occurs.
  • the architecture of the server system is simplified, and the hierarchical architecture is more targeted for hardware applications.
  • the mounted control node is found by the host name, and then the location information inside the control node is used to quickly locate the physical location of the faulty resource, thereby realizing the rapid location of the resource.
  • Positioning, while simplifying the complexity of the management software, the practical operation is less difficult, avoiding the confusion and errors that are easy to occur when locating resources through strict wiring.
  • each control node After sending the registration request for registration, each control node actively sends the local resource information to the collecting unit 130, and the collecting unit 130 receives the resource information of each control node and stores it; or the collecting unit 130 periodically collects the collected control nodes.
  • the resource information is updated in real time by each control node to ensure that the resource information acquired by the collecting unit 130 is accurate resource information.
  • the collecting unit 130 acquires resource information of each registered control node.
  • the resource information acquired by the collecting unit 130 includes a location identifier of each resource, a connected control node, a current usage state, a processing capability, and the like.
  • the collecting unit 130 may establish a correspondence between the host name of the control node and each resource information that is connected to the control node, and is used to identify resources of different control nodes. Therefore, the collecting unit 130 can search for resource information linked to each control node according to the host name, and perform data query or update of the control node resource information.
  • the collecting unit 130 combines the various types of resources according to the resource information to form a resource pool, for example, a CPU resource pool, a memory resource pool, a storage resource pool, and a network resource pool, and is used to process the services into a logical server according to the business requirements.
  • a resource pool for example, a CPU resource pool, a memory resource pool, a storage resource pool, and a network resource pool.
  • the collecting unit 130 stores the resource information of each control node in the CMDB. It should be noted that the CMDB storing the resource information may be configured according to the actual situation such as the amount of stored data and the size of the environment.
  • the allocating unit 110 receives the configuration request of each control node, and allocates a dynamic address to the control node; then, the registration unit 120 acquires the registration information sent by the control node based on the dynamic address, and registers the control node; then, the collecting unit 130 Obtain the resource information of the registered control node.
  • the resource management device allocates a dynamic address to the control node, registers the control node, effectively improves the address usage efficiency and the management efficiency of the resource management device, and avoids the resource occupied by the failure control node; at the same time, the resource management device can acquire the effective control node in time.
  • the resource information, the data is orderly and regular, and it is convenient for subsequent management of resources.
  • the third embodiment of the resource management apparatus of the present invention provides a resource management apparatus, which is based on the embodiment shown in FIG. 7 or FIG. 8 (this embodiment is illustrated by FIG. 8).
  • Module 200 includes:
  • the filtering unit 210 is configured to filter the resource information according to the received service request.
  • the assembly module 200 After acquiring the resource information of each control node, the assembly module 200 performs resource assembly according to the service request.
  • the filtering unit 210 receives a service request, such as a telecommunication service, and may send the information to the resource management device through a terminal such as a remote PC (personal computer).
  • a service request may carry information such as a service type, a resource required for processing a service, and a specification requirement for each resource, and may be flexibly set according to actual needs.
  • the filtering unit 210 filters out the resource pools required for processing the current service request from the stored resource pools according to the required resources for processing the service request.
  • the filtering unit 210 filters the resources in each resource pool according to the resource requirements and the resource information according to the service request, and filters out the resources that meet the requirements. For example, if the service request limits the number of cores of the multi-core CPU, the filtering unit 210 filters out the CPU in the CPU resource pool, and the number of cores does not meet the requirements, that is, filters out CPU resource information that does not meet the requirements; the service request may also limit the memory storage.
  • the filtering unit 210 filters out the memory resources in the memory resource pool that do not meet the parameter requirements according to the parameters set by the service request, that is, filters out the memory resource information that does not meet the requirement; the service request can also limit the network traffic, and the filtering unit The network resource of the network resource pool that does not meet the parameter requirement is filtered out according to the parameter set by the service request, that is, the network resource information that does not meet the requirement is filtered out.
  • the filtering unit 210 filters out resources in the resource pool that cannot meet the service processing requirements according to the service request, that is, filters out resource information that cannot meet the service processing requirements.
  • the resource information obtained after filtering meets the requirements for processing the current service request.
  • the weighting unit 220 is configured to select a service resource and obtain information about the service resource according to the preset weight algorithm and the filtered resource information.
  • the weighting unit 220 selects the resource as the service resource of the assembly logical server according to the preset weight algorithm and the filtered resource information.
  • the weight unit 220 selects resources suitable for assembling the logical server according to the preset weight algorithm and the filtered resource information.
  • the weight unit 220 selects the CPU and the memory that meet the requirements according to the distance parameter and the resource information, and avoids the data transmission abnormality caused by the CPU and the memory being too far apart.
  • the preset weight algorithm can be flexibly set according to actual conditions, and is used to set parameter conditions, so that the logical server obtained by the acquired resource combination can achieve performance balance or optimal performance such as processing speed and storage occupancy.
  • the weight unit 220 obtains resources for assembling the logical server, and uses each obtained resource as a service resource of the assembly logical server. According to the selected service resources, a logical server can be assembled to process the current service request.
  • the weight unit 220 acquires information of each service resource.
  • the information of each service resource includes: the location identifier of each service resource, the connected control node, the current usage status, and the processing capability, and can be flexibly set according to actual needs.
  • the generating unit 230 is configured to generate an assembly request according to the service resource information.
  • the generating unit 230 After acquiring the service resource information, the generating unit 230 generates an assembly request based on the service resource information.
  • the assembly request includes information of each service resource, that is, selected resource information required for assembling the logical server, such as location identifier of each service resource, connected control node, connection relationship of each resource, and the like. .
  • the filtering unit 210 filters the resource information according to the received service request. Then, the weighting unit 220 selects the service resource and obtains the information of the service resource according to the preset weight algorithm and the filtered resource information. Then, the generating unit 230 generates an assembly request based on the service resource information.
  • This embodiment implements the optimization of assembling logical server resources, simplifies the process of selecting resources, and selects the obtained service resources to process service requests more efficiently.
  • a fourth embodiment of the resource management apparatus of the present invention provides a resource management apparatus.
  • the processing module 300 includes:
  • the requesting unit 310 is configured to send the assembly request to the control node that is attached to the service resource.
  • the processing module 300 After the assembly request is obtained, the processing module 300 causes the control node to assemble the logical server to process the service request according to the assembly request.
  • the requesting unit 310 separately sends an assembly request to the control node to which each service resource is attached according to each service resource information in the assembly request.
  • the assembly request sent by the requesting unit 310 includes resource information selected as a service resource in each control node, a connection relationship of each service resource, and the like.
  • the assembling unit 320 the control node for controlling the service resource hooking, assembles the logical server according to the assembly request.
  • the assembly unit 320 controls each control node to find, according to the assembly request, the resources that are connected to each control node, and is selected to be used for Assemble the resources of the logical server, that is, find the service resources.
  • each control node interconnects the service resources located on different control nodes according to the assembly request, and assembles them into a logical server.
  • the control node DMC interacts with the BMC inside the subnet to access specific resources.
  • the interaction protocol between the DMC and the BMC may be the IPMI protocol, the HTTP protocol, or other interaction protocols, and may be flexibly set according to actual needs.
  • a logical server consists of a connection of service resources.
  • the processing unit 330 is configured to control the logical server to process the service request.
  • the processing unit 330 or the remote control machine deploys an operating system, cloud platform software, and other software for business processing for the assembled logical server according to the requirements of the current business processing.
  • the processing unit 330 controls the logical server to process the current service request.
  • the logical server acts as a physical machine and processes the service through various service resources.
  • the processing unit 330 or the remote control machine can control the control nodes connected to the service resources in the logical server according to the requirements of the current service processing, and perform operations such as power-on, power-off, and reset of the logical server.
  • the processing unit 330 sends a power-on operation request to the control node that is connected to the service resource according to the information of the service resource, and after receiving the power-on operation request, the control node performs corresponding Power-on operation.
  • the requesting unit 310 sends an assembly request to the control node to which the service resource is attached; then, The assembly unit 320 controls the control node to which the service resource is attached to assemble the logical server according to the assembly request; then, the processing unit 330 controls the logical server to process the service request.
  • the assembly request is sent to the control node that is connected to the service resource, and the corresponding control node is controlled to connect to the service resource, complete the assembly of the logical server, and then process the service request. This embodiment simplifies the assembly process of resources in the logical server and improves resource management efficiency.
  • the fifth embodiment of the resource management apparatus of the present invention provides a resource management apparatus.
  • the resource management apparatus further includes:
  • the receiving module 400 is configured to receive a revocation request of the service request.
  • the receiving module 400 receives the revocation request for the service request, the processing of the service is stopped, and the logical server that processes the service is revoked.
  • the remote control machine may issue a revocation request for the service request according to actual needs, and cancel the processing for the service.
  • the receiving module 400 receives the revocation request sent by the remote controller.
  • the revocation request carries the business information that is revoked by the request.
  • the splitting module 500 is configured to, according to the revocation request, control a control node that is connected to the service resource to split the logical server.
  • the splitting module 500 After receiving the revocation request, as an implementation manner, first, the splitting module 500 acquires the service requested to be revoked according to the revocation request.
  • the splitting module 500 obtains the logical server information for processing the service according to the service that is requested to be revoked, and obtains the information of each service resource.
  • the splitting module 500 acquires the control node to which each service resource is attached according to the information of each service resource, and sends the revocation request to the control node to which each service resource is attached.
  • the control node After receiving the revocation request, the control node performs a power-off operation on the service resource according to the revocation request, and splits the resources that constitute the logical server.
  • the split module 500 implements splitting of logical server resources.
  • the revocation module 600 is configured to revoke the logical server.
  • the undo module 600 revokes the logical server and stops the business processing of the logical server.
  • the collection module 100 sends a resource collection request to each control node, and collects the current resource information of each control node; each control node updates the resource information of the control node in real time, and reports the information to the collection module 100.
  • the collection module 100 After receiving the resource information of each control node, the collection module 100 updates the resource information corresponding to each control node according to the host name of each control node to update the CMDB.
  • the collection module 100 may update the resource information of all the control nodes in the current management network, or may only update the resource information of the control node of the split logical server, and may be flexibly set according to actual needs.
  • the receiving module 400 receives the revocation request for the service request; then, the splitting module 500 controls the control node connected to the service resource to split the logical server according to the revocation request; and the revocation module 600 revokes the The logical server then collects the module 100 to update the resource information for subsequent assembly of other logical servers.
  • the resource use efficiency is improved, and the released resource can be used for processing other services, thereby ensuring the orderly management of the resource. The management of resources has been reduced.
  • a first embodiment of the resource management system of the present invention provides a resource management system, where the resource management system includes a management node A and a control node B, where:
  • the management node A includes, for example, a collection module 100, an assembly module 200, a processing module 300, a receiving module 400, a split module 500, and an undo module 600.
  • the present invention is mainly applied to resource management.
  • the resource management method of the cabinet server system is used as an example.
  • the resource management method proposed by the present invention simplifies the networking and wiring of the existing cabinet server, optimizes the management network, and improves the cabinet server system. Practicality.
  • a management network of the rack server system is initialized.
  • the management network includes a management node A and a control node B.
  • Management node A is a manager, such as PODM (POD Manager, POD Data Management Node), as a management terminal, management server resources and logical servers, such as resource discovery, allocation, and recycling;
  • control node B is a controller, such as DMC (Drawer Management Controller) , drawer management controller), as a switching node of the management network, for discovering and assembling the resources it contains, and collaborating with the management node A by the client (client) to complete resource management;
  • the control node B can also Including network switches, such as ToR switches (Top of Rack), ToR switches can be used to manage and exchange network resources of servers. Of course, ToR switches can also be used as control nodes. Network resources, only for network switching.
  • the management node A is a PODM
  • the control node B is a DMC
  • the ToR switch is used only for network switching.
  • Control Node B may include multiple DMC and ToR switches.
  • the DMC switch module When the management network is initialized, the DMC switch module is started and the ToR switch is started. Then, the DMC switch module and the ToR switch perform election and convergence to form an acyclic tree network. Any node can be interconnected with other nodes to ensure that any node fails to reconverge to form an acyclic tree network and improve the management network. Reliability.
  • Management node A can be attached to any node of the acyclic tree network for management.
  • the management node A collection module 100 periodically collects resource information from each control node, and each control node B updates its resource status in real time to ensure that the resource information acquired by the collection module 100 is accurate resource information. Or the collection module 100 of the management node A receives the resource information of each control node and stores it. It should be noted that each control node B actively collects various local resource information that is connected to it, and actively sends the local resource information to the management node A.
  • the collection module 100 acquires resource information of each control node.
  • the resource information acquired by the collection module 100 includes a location identifier of each resource, a connected control node B, a current usage state, a processing capability, and the like.
  • the collection module 100 combines various resources according to the resource information to form a resource pool, such as a CPU resource pool, a memory resource pool, a storage resource pool, and a network resource pool, and is combined into a logical server according to service requirements when processing the service.
  • a resource pool such as a CPU resource pool, a memory resource pool, a storage resource pool, and a network resource pool
  • the collection module 100 may store the resource information of each control node in a CMDB (Configuration Management Database), and perform data update according to the subsequently acquired control node resource information.
  • CMDB Configuration Management Database
  • the assembly module 200 receives the service request, and obtains the resource specification requirements corresponding to the current service request from the preset resource allocation table according to the type of the service request, and then selects the resource information from the acquired resource information. Each resource that meets the requirements; or the assembly module 200 may select various resources that meet the requirements from the acquired resource information according to the requirements of the resource carried by the service request.
  • the assembly module 200 obtains various resources suitable for processing the current service request, and uses the obtained resources as the service resource for processing the service request. Then, the assembly module 200 generates an assembly request according to the selected service resource information.
  • the assembly request includes each service resource information, that is, the selected resource information required for assembling the logical server, such as the location identifier of each service resource, the connected control node, and the connection relationship of each service resource.
  • the processing module 300 sends the assembly request to the control node B to which each service resource is attached according to each service resource information in the assembly request.
  • the processing module 300 controls each control node B to find, according to the assembly request, the resources selected by the control nodes and the resources selected for assembling the logical server, that is, the service resources.
  • each control node B connects the service resources located on different control nodes to each other according to the assembly request, and assembles the logical server.
  • the processing module 300 or the remote control machine deploys an operating system, cloud platform software, and other software for business processing for the assembled logical server according to the requirements of the current business processing.
  • the processing module 300 controls the logical server to process the current service request.
  • the logical server acts as a physical machine and processes the service through various service resources.
  • the receiving module 400 receives the revocation request.
  • the splitting module 500 acquires the service that is requested to be revoked according to the revocation request, and obtains the logical server information for processing the service according to the service that is revoked by the current request, and obtains the information of each service resource.
  • the splitting module 500 acquires the control node B to which each service resource is attached according to the information of each service resource, and sends the revocation request to the control node B to which each service resource is attached.
  • control node B After receiving the revocation request, the control node B performs a power-off operation on the service resource according to the revocation request, and splits the resources that constitute the logical server.
  • the undo module 600 revokes the logical server and stops the processing service of the logical server.
  • the control node B is configured to register with the management node A; collect the resource information of the connection node B and report it to the management node A; assemble the logical server according to the assembly request sent by the management node A; The revocation request sent by the management node A splits the logical server.
  • control node B After power-on, the control node B actively sends a DHCP request to the management node A to request allocation of a dynamic address. Upon receiving the dynamic address assigned by the management node A, the control node B sends a registration request to the management node A to register.
  • control node B actively collects various local resource information linked thereto.
  • the resources that are connected to each control node B include the processor, memory, storage, network resources, etc., and can be flexibly set according to actual needs.
  • the resource information collected by each control node B includes location identifiers, current usage states, processing capabilities, and the like of the resources.
  • each control node B After the registration is completed, each control node B actively sends local resource information to the management node A, and the management node A receives the resource information of each control node and stores it; or the management node A periodically collects resource information from each control node B, each The control node B updates the state of the resource under its control in real time to ensure that the resource information acquired by the management node A is accurate resource information.
  • control node B If the control node B receives the assembly request sent by the management node A, it searches for the resources of the attached logical server, that is, the service resource, according to the assembly request. Then, the control node B connects the service resources located on the different control nodes B to each other according to the assembly request, and assembles them into a logical server.
  • control node B If the control node B receives the revocation request from the management node A, it searches for the service resource in the resource to which it is attached according to the revocation request, and then performs a power-off operation on the service resource, the logical server.
  • the resource management system includes a management node A and a control node B.
  • the control node B discovers and collects the information of the resources that are hanged and reports the information to the management node A.
  • the management node A hangs the control node B.
  • the resources are merged to form a resource pool, and then the service resources are filtered out from the resource pool according to the service request, and the control node B assembles the service resources into a logical server for service processing.
  • the management node A can split the logical server and release the resources according to the revocation request.
  • the complexity of the management software is reduced, and the networking and wiring of the server system are simplified, and the resource management is simplified by the management node and the control node, and the plane structure of the server resource management is optimized, and each of the server systems is optimized.
  • the management of resources is easier and the efficiency of resource management is improved.
  • the modules or units in the apparatus provided by the embodiments of the present application may pass through one or more digital signal processors (DSPs), application specific integrated circuits (ASICs), processors, microprocessors, controllers, microcontrollers, and on-site Implemented by a programming array (FPGA), programmable logic device, or other electronic unit, or any combination thereof.
  • DSPs digital signal processors
  • ASICs application specific integrated circuits
  • FPGA programming array
  • Some of the functions or processes described in this application embodiment may also be implemented by software executing on a processor.
  • the embodiment of the present invention further provides a resource management device, for example, the device can be applied to a management terminal, including:
  • a memory for storing processor executable instructions
  • processor is configured to:
  • the invention can be applied to the field of server resource management technology.
  • the embodiment of the present invention obtains the resource information of each control node by using the management node; generates an assembly request according to the received service request and the resource information; and according to the assembly request, the control node assembles the logical server to process the service request.
  • the control node can directly interact with the management node for resource management, which reduces the complexity of the management software, and simplifies the networking and wiring of the server system, realizes the optimization of the server system management network structure, and makes the resources in the server system.
  • the management is easier and the efficiency of resource management is improved.

Abstract

Disclosed is a resource management method, said method comprising: a management node obtaining resource information mounted on control nodes; according to a received service request and said resource information, generating an assembly request; according to said assembly request, controlling said control node to assemble a logic server and processing said service request. Also disclosed are a resource management apparatus and a resource management system. In the present invention, a resource is mounted on each control node and the control nodes interact directly with the management node to manage resources; thus the complexity of software management is reduced, while the networking and wiring of the server system is simplified, thereby optimizing the management network structure of the server system, simplifying the management of the resources in the server system, and improving resource management efficiency.

Description

资源管理方法、装置和系统Resource management method, device and system
本申请基于申请号为CN201610032846.2、申请日为2016年1月18日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。The present application is based on a Chinese patent application filed on Jan. 18, 2016, the entire disclosure of which is hereby incorporated by reference.
技术领域Technical field
本发明涉及服务器资源管理技术领域,尤其涉及一种资源管理方法、装置和系统。The present invention relates to the field of server resource management technologies, and in particular, to a resource management method, apparatus, and system.
背景技术Background technique
随着云计算的发展,现有的数据中心需要数量庞大的机柜服务器才能满足数据处理需求,为提升密集型应用在传统机柜服务器上的资源利用效率,目前主要使用RSA(Rack Scale Architecture,机柜级架构)架构,通过将服务器的CPU、内存、存储和网络等资源进行合并为资源池,根据业务请求,从资源池中选取相应的资源,进行业务的处理。With the development of cloud computing, the existing data center requires a large number of cabinet servers to meet the data processing requirements. In order to improve the resource utilization efficiency of the intensive application on the traditional cabinet server, the RSA (Rack Scale Architecture) is mainly used at present. The architecture is implemented by merging resources such as the CPU, memory, storage, and network of the server into resource pools, and selecting corresponding resources from the resource pools according to service requests to perform business processing.
RSA架构通过PODM(Plain Old Data Manager,系统管理中心)管理POD(Plain Old Data,一种数据结构)对象。PODM管理多个PODML(PODM Local,本地数据结构管理节点);每个PODML以RACK(架构上的每层)为单位,对DMC(Drawer Management Controller,抽屉管理控制器)进行管理,每个PODML可面对多个DMC;DMC以DRAWER(抽屉)为单位,对BMC(Baseboard Management Controller,基板管理控制器)进行管理;BMC以MODULE(模块)为单位。由此,每一个层级面向多个子层级单位,例如一个PODML同时面对多个DMC,负责多个DMC的资源发现、组装。The RSA architecture manages POD (Plain Old Data, a data structure) object through PODM (Plain Old Data Manager). PODM manages multiple PODML (PODM Local, local data structure management nodes); each PODML manages DMC (Drawer Management Controller) in units of RACK (each layer on the architecture), and each PODML can be Facing multiple DMCs; DMC manages BMC (Baseboard Management Controller) in units of DRAWER (drawer); BMC is based on MODULE (module). Thus, each level faces multiple sub-level units, for example, one PODML faces multiple DMCs at the same time, and is responsible for resource discovery and assembly of multiple DMCs.
RSA系统架构由LID(LocationID,位置序列号)来标识每个资源的位置,在生产或安装环节进行各层级编号的设置。LID具体组成为POD-RACK(机架)-DRAWER-MODULE-SUBMODULE(子模块),例如DRAWER的编号,可以从机架背板通过GPIO(General-Purpose Input/Output,总线扩展器)读取。The RSA system architecture identifies the location of each resource by LID (Location ID, location serial number), and sets the level of each level in the production or installation. The LID is specifically composed of POD-RACK (rack)-DRAWER-MODULE-SUBMODULE (sub-module), for example, the number of DRAWER, which can be read from the rack backplane through GPIO (General-Purpose Input/Output).
由此,可以看出,RSA系统架构由LID进行标识,层次概念复杂,软件架构复杂。随着目前数据处理规模的不断扩大,服务器机架越来越多,为了标识各资源位置,需严格规划布线保证资源的位置关系,管理困难,且安装人员设置编号难度大,容易出错。Therefore, it can be seen that the RSA system architecture is identified by the LID, the hierarchical concept is complex, and the software architecture is complex. With the continuous expansion of the current data processing scale, more and more server racks, in order to identify the location of each resource, it is necessary to strictly plan the routing to ensure the location of the resources, management difficulties, and the installation personnel number is difficult, error-prone.
由于LID的层次概念复杂,对RSA进行扩展时只能通过在底层挂接新的管理层次,例如,集成多块刀片时,只能在MODULE下再增加一个BLADE(刀片)层次,对LID进行扩展。若LID中的一个节点发生故障,则其下挂的全部资源均不可用,导致RSA的层次架构冗余、不稳定,而且对硬件应用形态没有针对性。Due to the complex hierarchical concept of LID, the RSA can only be extended by attaching a new management layer to the bottom layer. For example, when integrating multiple blades, only one BLADE layer can be added under MODULE to extend LID. . If a node in the LID fails, all resources under it are unavailable, resulting in redundancy and instability of the RSA hierarchy, and no targeting to the hardware application form.
因此,现有的服务器资源池管理层次复杂、开放性差,导致管理难度大。Therefore, the existing server resource pool management level is complex and the openness is poor, which makes management difficult.
发明内容 Summary of the invention
本发明的主要目的在于提供一种资源管理方法、装置和系统,旨在解决现有服务器资源管理难度大的技术问题。The main object of the present invention is to provide a resource management method, device and system, which aim to solve the technical problem that the existing server resource management is difficult.
为实现上述目的,本发明提供一种资源管理方法,所述资源管理方法包括以下步骤:To achieve the above objective, the present invention provides a resource management method, and the resource management method includes the following steps:
管理节点获取各控制节点下挂的资源信息;The management node obtains resource information linked by each control node;
根据收到的业务请求和所述资源信息,生成组装请求;Generating an assembly request according to the received service request and the resource information;
根据所述组装请求,控制所述控制节点组装逻辑服务器,处理所述业务请求。And controlling, according to the assembly request, the control node to assemble a logical server to process the service request.
优选的,所述管理节点获取各控制节点下挂的资源信息的步骤包括:Preferably, the step of the management node acquiring the resource information of each control node includes:
接收各控制节点的配置请求,向所述控制节点分配动态地址;Receiving a configuration request of each control node, and assigning a dynamic address to the control node;
获取所述控制节点基于所述动态地址发送的注册信息,并登记所述控制节点;Obtaining registration information that is sent by the control node based on the dynamic address, and registering the control node;
获取所述已登记控制节点下挂的资源信息。Obtaining resource information that is linked by the registered control node.
优选的,所述根据收到的业务请求和所述资源信息,生成组装请求的步骤包括:Preferably, the step of generating an assembly request according to the received service request and the resource information includes:
根据收到的业务请求,对所述资源信息进行过滤;Filtering the resource information according to the received service request;
根据预设的权重算法和过滤得到的资源信息,选取服务资源并获取所述服务资源的信息;Obtaining the service resource and obtaining the information of the service resource according to the preset weight algorithm and the filtered resource information;
根据所述服务资源信息,生成组装请求。An assembly request is generated based on the service resource information.
优选的,所述根据所述组装请求,控制所述控制节点组装逻辑服务器,处理所述业务请求的步骤包括:Preferably, the controlling the node to assemble the logical server according to the assembly request, and processing the service request includes:
将所述组装请求发送给所述服务资源挂接的控制节点;Sending the assembly request to the control node of the service resource hook;
控制所述服务资源挂接的控制节点根据所述组装请求,组装逻辑服务器;a control node that controls the connection of the service resource to assemble a logical server according to the assembly request;
控制所述逻辑服务器处理所述业务请求。Controlling the logical server to process the service request.
优选的,所述根据所述组装请求,控制所述控制节点组装逻辑服务器,处理所述业务请求的步骤之后,还包括:Preferably, after the step of controlling the control node to assemble the logical server and processing the service request according to the assembly request, the method further includes:
接收所述业务请求的撤销请求;Receiving a revocation request of the service request;
根据所述撤销请求,控制所述服务资源挂接的控制节点拆分所述逻辑服务器;Determining, by the control node that the service resource is attached, the logical server according to the revocation request;
撤销所述逻辑服务器,并转入执行步骤:管理节点获取各控制节点下挂的资源信息。The logical server is revoked, and the execution step is performed: the management node acquires resource information linked by each control node.
此外,为实现上述目的,本发明还提供一种资源管理装置,所述资源管理装置包括:In addition, in order to achieve the above object, the present invention further provides a resource management apparatus, where the resource management apparatus includes:
收集模块,用于管理节点获取各控制节点下挂的资源信息;a collection module, configured to acquire, by the management node, resource information linked by each control node;
组装模块,用于根据收到的业务请求和所述资源信息,生成组装请求;An assembly module, configured to generate an assembly request according to the received service request and the resource information;
处理模块,用于根据所述组装请求,控制所述控制节点组装逻辑服务器,处理所述业务请求。And a processing module, configured to control, according to the assembly request, the control node to assemble a logical server to process the service request.
优选的,所述收集模块包括:Preferably, the collecting module comprises:
分配单元,用于接收各控制节点的配置请求,向所述控制节点分配动态地址;An allocating unit, configured to receive a configuration request of each control node, and allocate a dynamic address to the control node;
登记单元,用于获取所述控制节点基于所述动态地址发送的注册信息,并登记所述控制节点;a registration unit, configured to acquire registration information that is sent by the control node based on the dynamic address, and register the control node;
收集单元,用于获取所述已登记控制节点下挂的资源信息。And a collecting unit, configured to acquire resource information that is linked by the registered control node.
优选的,所述组装模块包括: Preferably, the assembly module comprises:
过滤单元,用于根据收到的业务请求,对所述资源信息进行过滤;a filtering unit, configured to filter the resource information according to the received service request;
权重单元,用于根据预设的权重算法和过滤得到的资源信息,选取服务资源并获取所述服务资源的信息;a weighting unit, configured to select a service resource according to a preset weight algorithm and filtered resource information, and obtain information about the service resource;
生成单元,用于根据所述服务资源信息,生成组装请求。And a generating unit, configured to generate an assembly request according to the service resource information.
优选的,所述处理模块包括:Preferably, the processing module includes:
请求单元,用于将所述组装请求发送给所述服务资源挂接的控制节点;a requesting unit, configured to send the assembly request to a control node that is attached to the service resource;
组装单元,用于控制所述服务资源挂接的控制节点根据所述组装请求,组装逻辑服务器;An assembly unit, configured to control a control node of the service resource to assemble a logical server according to the assembly request;
处理单元,用于控制所述逻辑服务器处理所述业务请求。a processing unit, configured to control the logical server to process the service request.
优选的,所述资源管理装置还包括:Preferably, the resource management device further includes:
接收模块,用于接收所述业务请求的撤销请求;a receiving module, configured to receive a revocation request of the service request;
拆分模块,用于根据所述撤销请求,控制所述服务资源挂接的控制节点拆分所述逻辑服务器;a splitting module, configured to: according to the revocation request, control a control node that is connected to the service resource to split the logical server;
撤销模块,用于撤销所述逻辑服务器。The undo module is used to revoke the logical server.
此外,为实现上述目的,本发明还提供一种资源管理系统,所述资源管理系统包括管理节点和控制节点,其中:In addition, to achieve the above object, the present invention also provides a resource management system, where the resource management system includes a management node and a control node, where:
所述管理节点包括收集模块、组装模块、处理模块、接收模块、拆分模块和撤销模块;The management node includes a collection module, an assembly module, a processing module, a receiving module, a split module, and an undo module;
所述控制节点,用于向所述管理节点注册;收集其下挂的资源信息,并上报给所述管理节点;根据所述管理节点发送的组装请求组装逻辑服务器;根据所述管理节点发送的撤销请求拆分所述逻辑服务器。The control node is configured to register with the management node; collect the resource information of the connection node and report it to the management node; assemble the logical server according to the assembly request sent by the management node; and send according to the management node The undo request splits the logical server.
本发明实施例提出的一种资源管理方法、装置和系统,通过管理节点获取各控制节点下挂的资源信息;根据收到的业务请求和资源信息,生成组装请求;根据组装请求,控制控制节点组装逻辑服务器,处理业务请求。本发明通过控制节点直接与管理节点交互进行资源管理,降低了管理软件的复杂度,同时简化了服务器系统的组网、布线,实现了服务器系统管理网络结构的优化,对服务器系统中各资源的管理更加简便,提升了资源管理的效率。A resource management method, device and system according to an embodiment of the present invention obtains resource information linked by each control node through a management node; generates an assembly request according to the received service request and resource information; and controls the control node according to the assembly request Assemble logical servers to process business requests. The invention directly interacts with the management node for resource management by the control node, reduces the complexity of the management software, simplifies the networking and wiring of the server system, realizes the optimization of the server system management network structure, and the resources of the server system. Management is easier and improves the efficiency of resource management.
附图说明DRAWINGS
图1为本发明资源管理方法第一实施例的流程示意图;1 is a schematic flowchart of a first embodiment of a resource management method according to the present invention;
图2为本发明资源管理方法第二实施例的流程示意图;2 is a schematic flowchart of a second embodiment of a resource management method according to the present invention;
图3为本发明实施例的管理结构示意图;3 is a schematic diagram of a management structure according to an embodiment of the present invention;
图4为本发明资源管理方法第三实施例的流程示意图;4 is a schematic flowchart of a third embodiment of a resource management method according to the present invention;
图5为本发明资源管理方法第四实施例的流程示意图;FIG. 5 is a schematic flowchart diagram of a fourth embodiment of a resource management method according to the present invention; FIG.
图6为本发明资源管理方法第五实施例的流程示意图;FIG. 6 is a schematic flowchart diagram of a fifth embodiment of a resource management method according to the present invention;
图7为本发明资源管理装置第一实施例的功能模块示意图;FIG. 7 is a schematic diagram of functional modules of a first embodiment of a resource management apparatus according to the present invention; FIG.
图8为本发明资源管理装置第二实施例的功能模块示意图;8 is a schematic diagram of functional modules of a second embodiment of a resource management apparatus according to the present invention;
图9为本发明资源管理装置第三实施例的功能模块示意图;9 is a schematic diagram of functional modules of a third embodiment of a resource management apparatus according to the present invention;
图10为本发明资源管理装置第四实施例的功能模块示意图; 10 is a schematic diagram of functional modules of a fourth embodiment of a resource management apparatus according to the present invention;
图11为本发明资源管理装置第五实施例的功能模块示意图;FIG. 11 is a schematic diagram of functional modules of a fifth embodiment of a resource management apparatus according to the present invention; FIG.
图12为本发明资源管理系统第一实施例的模块示意图。FIG. 12 is a schematic block diagram of a first embodiment of a resource management system according to the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional features, and advantages of the present invention will be further described in conjunction with the embodiments.
具体实施方式detailed description
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
本发明实施例的主要解决方案是:管理节点获取各控制节点下挂的资源信息;根据收到的业务请求和所述资源信息,生成组装请求;根据所述组装请求,控制所述控制节点组装逻辑服务器,处理所述业务请求The main solution of the embodiment of the present invention is: the management node acquires the resource information of each control node; generates an assembly request according to the received service request and the resource information; and controls the control node assembly according to the assembly request. a logical server that processes the business request
由于现有技术服务器系统的资源管理架构复杂,开放性差,导致管理难度大。Due to the complexity of the resource management architecture of the prior art server system and the poor openness, management is difficult.
本发明提供一种解决方案,将资源挂接于控制节点,通过管理节点和控制节点交互进行资源管理,优化了管理结构,简化了对服务器资源的管理层次,提升了资源管理效率。The invention provides a solution for attaching resources to a control node, performing resource management through interaction between the management node and the control node, optimizing the management structure, simplifying the management level of the server resources, and improving the resource management efficiency.
参照图1,本发明资源管理方法第一实施例提供一种资源管理方法,所述资源管理方法包括:Referring to FIG. 1 , a first embodiment of a resource management method of the present invention provides a resource management method, where the resource management method includes:
步骤S10、管理节点获取各控制节点下挂的资源信息。Step S10: The management node acquires resource information linked by each control node.
本发明主要应用于资源管理,本实施例以机柜服务器系统的资源管理进行举例说明,本发明提出的资源管理方法简化了现有机柜服务器组网和布线,优化了管理网络,提升了机柜服务器系统的实用性。The present invention is mainly applied to resource management. In this embodiment, the resource management method of the cabinet server system is used as an example. The resource management method proposed by the present invention simplifies the networking and wiring of the existing cabinet server, optimizes the management network, and improves the cabinet server system. Practicality.
具体的,作为一种实施方式,首先,初始化机柜服务器系统的管理网络。Specifically, as an implementation manner, first, a management network of the rack server system is initialized.
其中,机柜服务器系统的管理网络包括管理节点和控制节点。管理节点为manager,例如PODM(POD Manager,POD数据管理节点),作为管理终端,管理服务器资源和逻辑服务器,例如资源的发现、分配和回收;控制节点为controller,例如DMC(Drawer Management Controller,抽屉管理控制器),作为管理网络的交换节点,用于对其所包含的资源进行发现和组装,并以client(客户端)与管理节点进行协作,完成资源管理;控制节点还可以包括网络交换机,例如ToR交换机(Top of Rack,架顶交换机),ToR交换机可以下挂资源用于管理服务器的网络资源的管理、交换;当然,ToR交换机也可以不下挂资源,不作为控制节点管理网络资源,仅用于网络交换。The management network of the cabinet server system includes a management node and a control node. The management node is a manager, such as a PODM (POD Manager, POD Data Management Node), as a management terminal, managing server resources and logical servers, such as resource discovery, allocation, and recycling; the control node is a controller, such as a DMC (Drawer Management Controller, drawer) The management controller is used as a switching node of the management network for discovering and assembling the resources it contains, and collaborating with the management node by the client (client) to complete resource management; the control node may further include a network switch. For example, a ToR switch (Top of Rack) can be used to manage and exchange network resources of a server. Of course, a ToR switch can also not use resources as a control node to manage network resources. Used for network switching.
本实施例以管理节点为PODM、控制节点为DMC,ToR交换机仅用于网络交换进行举例说明。控制节点可包括多个DMC和ToR交换机。In this embodiment, the management node is a PODM, the control node is a DMC, and the ToR switch is used only for network switching. The control node can include multiple DMC and ToR switches.
管理网络初始化时,DMC的交换模块启动,ToR交换机启动。然后,DMC交换模块和ToR交换机进行选举、收敛,形成无环树形网络,任意节点均可以与其他节点互联,以保证任意节点发生故障时,可重新收敛形成无环树形网络,提升管理网络的可靠性。When the management network is initialized, the DMC switch module is started and the ToR switch is started. Then, the DMC switch module and the ToR switch perform election and convergence to form an acyclic tree network. Any node can be interconnected with other nodes to ensure that any node fails to reconverge to form an acyclic tree network and improve the management network. Reliability.
管理节点可挂接于无环树形网络的任意节点,进行管理。The management node can be attached to any node of the acyclic tree network for management.
管理节点定时从各控制节点收集资源信息,各控制节点实时更新其下挂的资源状态,以保证管理节点获取的资源信息为准确地资源信息。或者,各控制节点主动将本地资源信息发送给管理节点,管理节点接收各控制节点的资源信息,并进行存储。 The management node periodically collects resource information from each control node, and each control node updates its resource status in real time to ensure that the resource information acquired by the management node is accurate resource information. Alternatively, each control node actively sends local resource information to the management node, and the management node receives resource information of each control node and stores it.
需要说明的是,各控制节点主动收集其下挂的各项本地资源信息。各控制节点下挂的资源包括处理器、内存、存储、网络资源等,可根据实际需要灵活设置。各控制节点收集的资源信息包括各资源的位置标识、当前使用状态、处理能力等。It should be noted that each control node actively collects various local resource information that is connected to it. The resources connected to each control node include the processor, memory, storage, and network resources, which can be flexibly set according to actual needs. The resource information collected by each control node includes the location identifier of each resource, the current usage status, and the processing capability.
由此,管理节点获取各控制节点的资源信息。其中,管理节点获取的资源信息包括各资源的位置标识、所挂接的控制节点、当前使用状态、处理能力等。Thereby, the management node acquires resource information of each control node. The resource information acquired by the management node includes a location identifier of each resource, a connected control node, a current usage state, and a processing capability.
然后,管理节点将各类资源根据资源信息分别合并形成资源池,例如CPU资源池、内存资源池、存储资源池和网络资源池等,用于处理业务时根据业务需求组合成逻辑服务器。Then, the management node combines various resources according to the resource information to form a resource pool, for example, a CPU resource pool, a memory resource pool, a storage resource pool, and a network resource pool, and is used to process the services into a logical server according to service requirements.
管理节点可以将各控制节点的资源信息存储在CMDB(Configuration Management Database,配置管理数据库),并根据后续获取的控制节点资源信息进行数据更新。The management node may store the resource information of each control node in a CMDB (Configuration Management Database), and perform data update according to the subsequently obtained control node resource information.
步骤S20、根据收到的业务请求和所述资源信息,生成组装请求。Step S20: Generate an assembly request according to the received service request and the resource information.
在获取各控制节点的资源信息后,管理节点根据业务请求,进行资源组装。After acquiring the resource information of each control node, the management node performs resource assembly according to the service request.
具体的,作为一种实施方式,首先,管理节点接收业务请求,例如电信业务,可以通过远程PC(personal computer,个人电脑)等终端发送给管理节点。业务请求可以携带有业务类型、处理业务所需要的资源、对各资源的规格要求等信息,可根据实际需要灵活设置。Specifically, as an implementation manner, first, the management node receives a service request, for example, a telecommunication service, and may send the information to a management node through a terminal such as a remote PC (personal computer). A service request may carry information such as a service type, a resource required for processing a service, and a specification requirement for each resource, and may be flexibly set according to actual needs.
然后,管理节点可以根据业务请求的类型,从预置的资源分配表中获取本次业务请求对应的各资源规格要求,然后从已获取的资源信息中,挑选出符合条件的各项资源;或者管理节点可以根据业务请求携带的对资源的各项要求,从已获取的资源信息中,挑选出符合条件的各项资源。Then, the management node may obtain, according to the type of the service request, the resource specification requirements corresponding to the current service request from the preset resource allocation table, and then select, from the acquired resource information, the resources that meet the conditions; or The management node may select various resources that meet the requirements from the acquired resource information according to the requirements of the resource carried by the service request.
由此,管理节点得到适于处理本次业务请求的各项资源,并将得到的各项资源作为本次处理业务请求的服务资源。根据选取的服务资源,管理节点可以组装得到逻辑服务器,用于处理本次业务请求。Therefore, the management node obtains various resources suitable for processing the current service request, and uses the obtained resources as the service resource for processing the service request. According to the selected service resource, the management node can assemble a logical server for processing the current service request.
然后,管理节点根据选取的服务资源生成组装请求。组装请求包括各服务资源信息,也即被选取的、本次组装逻辑服务器所需的各资源信息,例如各服务资源的位置标识、所挂接的控制节点、连接关系等。The management node then generates an assembly request based on the selected service resource. The assembly request includes each service resource information, that is, the selected resource information required for assembling the logical server, such as the location identifier of each service resource, the connected control node, and the connection relationship.
步骤S30、根据所述组装请求,控制所述控制节点组装逻辑服务器,处理所述业务请求。Step S30: Control, according to the assembly request, the control node to assemble a logical server to process the service request.
管理节点在得到组装请求后,根据组装请求,使控制节点组装逻辑服务器处理业务请求。After obtaining the assembly request, the management node causes the control node to assemble the logical server to process the service request according to the assembly request.
具体的,作为一种实施方式,首先,管理节点根据组装请求中的各服务资源信息,将组装请求发送给各服务资源所挂接的控制节点,也即将组装请求发送给被选取的资源所挂接的控制节点。Specifically, as an implementation manner, first, the management node sends an assembly request to the control node connected to each service resource according to each service resource information in the assembly request, and sends the assembly request to the selected resource. Connected control node.
各控制节点收到组装请求后,管理节点分别控制各控制节点根据组装请求,查找到各控制节点挂接的资源中、被选择用于组装逻辑服务器的资源,也即服务资源。After each control node receives the assembly request, the management node controls each control node to find, according to the assembly request, the resources selected by the control nodes and the resources selected for assembling the logical server, that is, the service resources.
然后,各控制节点根据组装请求,将位于不同控制节点上的各服务资源进行相互连接,组装逻辑服务器。其中,DMC与子网内部的BMC(BaseboardManagementController,基板管理控制器)进行交互,访问具体的资源。 Then, each control node interconnects the service resources located on different control nodes according to the assembly request, and assembles the logical server. The DMC interacts with the BMC (Baseboard Management Controller) inside the subnet to access specific resources.
例如,通过控制节点的交换板,设置SAS expander(扩展),完成CPU和storages(存储器)的组装。需要说明的是,DMC与BMC的交互协议可以是IPMI(Intelligent Platform Management Interface,智能平台管理接口)协议,也可以是HTTP(HyperText Transfer Protocol,超文本传输协议),也可以是其他交互协议,可根据实际需要灵活设置。For example, by controlling the node's switchboard, set the SAS expander to complete the assembly of the CPU and storage. It should be noted that the interaction protocol between the DMC and the BMC may be an IPMI (Intelligent Platform Management Interface) protocol, or may be an HTTP (HyperText Transfer Protocol) or other interactive protocol. Flexible settings according to actual needs.
然后,管理节点或远程控制机根据本次业务处理的需求,为组装完成的逻辑服务器部署操作系统、云平台软件和其他用于业务处理的软件。Then, the management node or the remote control machine deploys an operating system, cloud platform software, and other software for business processing for the assembled logical server according to the requirements of the current business processing.
完成软件部署后,管理节点控制逻辑服务器处理本次业务请求。After the software deployment is completed, the management node controls the logical server to process the current service request.
逻辑服务器作为物理机,通过各服务资源,进行本次业务的处理。The logical server acts as a physical machine and processes the service through various service resources.
后续,管理节点或远程控制机可以根据本次业务处理的需求,控制逻辑服务器中各服务资源所属的控制节点,进行逻辑服务器的上电、下电、复位等操作。例如,需要对逻辑服务器进行上电操作时,管理节点根据服务资源的信息,将复位操作请求发送给此服务资源所挂接的控制节点,控制节点收到上电操作请求后,进行相应的上电操作。Subsequently, the management node or the remote control machine can control the control node to which each service resource belongs in the logical server according to the requirements of the current service processing, and perform operations such as powering on, powering off, and resetting the logical server. For example, when the logical server needs to be powered on, the management node sends a reset operation request to the control node attached to the service resource according to the information of the service resource, and after receiving the power-on operation request, the control node performs corresponding operation. Electrical operation.
在本实施例中,管理节点获取各控制节点下挂的资源信息;根据收到的业务请求和资源信息,生成组装请求;然后,管理节点根据组装请求,控制控制节点组装逻辑服务器,处理本次业务请求。本实施例避免传统服务器的机架层级概念,将资源挂接在各控制节点,由控制节点直接与管理节点交互进行资源管理,降低了管理软件的复杂度,同时简化了服务器系统的组网、布线,实现了服务器系统管理网络结构的优化,对服务器系统中各资源的管理更加简便,提升了资源管理的效率。In this embodiment, the management node acquires resource information hanged by each control node; generates an assembly request according to the received service request and resource information; and then, the management node controls the control node to assemble the logical server according to the assembly request, and processes the current request. Business request. In this embodiment, the concept of the rack level of the traditional server is avoided, and resources are connected to each control node, and the control node directly interacts with the management node for resource management, which reduces the complexity of the management software and simplifies the networking of the server system. Wiring realizes the optimization of the server system management network structure, manages the resources of the server system more easily, and improves the efficiency of resource management.
进一步的,参照图2,本发明资源管理方法第二实施例提供一种资源管理方法,基于上述图1所示的实施例,所述步骤S10包括:Further, referring to FIG. 2, a second embodiment of the resource management method of the present invention provides a resource management method. Based on the foregoing embodiment shown in FIG. 1, the step S10 includes:
步骤S11、接收各控制节点的配置请求,向所述控制节点分配动态地址。Step S11: Receive a configuration request of each control node, and allocate a dynamic address to the control node.
在服务器管理平台启动后,首先,初始化机柜服务器系统的管理网络。After the server management platform is started, first, the management network of the rack server system is initialized.
本实施例以管理节点为PODM、控制节点为DMC,ToR交换机仅用于网络交换进行举例说明。控制节点可包括多个DMC和ToR交换机。In this embodiment, the management node is a PODM, the control node is a DMC, and the ToR switch is used only for network switching. The control node can include multiple DMC and ToR switches.
管理网络初始化时,DMC的交换模块启动,ToR交换机启动。然后,DMC交换模块和ToR交换机进行选举、收敛,形成相互通信、互不影响的无环树形网络。在形成的无环树形网络中,任意节点均可以与其他节点互联,以保证任意节点发生故障时,可重新收敛形成无环树形网络,提升管理网络的可靠性。同时,无环树形网络阻断了环路,保证节点的负载均衡。When the management network is initialized, the DMC switch module is started and the ToR switch is started. Then, the DMC switch module and the ToR switch perform election and convergence to form an acyclic tree network that communicates with each other and does not affect each other. In the formed acyclic tree network, any node can be interconnected with other nodes to ensure that any node fails, and can reconverge to form an acyclic tree network, which improves the reliability of the management network. At the same time, the acyclic tree network blocks the loop and ensures the load balancing of the nodes.
以DMC和ToR交换机运行MSTP(Multi Spanning Tree Protocol,多生成树协议)进行举例说明,DMC的交换模块和ToR交换机为平等的节点,DMC节点有下挂资源,而ToR交换机没有。The DMC and the ToR switch run the MSTP (Multiple Spanning Tree Protocol). The DMC switch module and the ToR switch are equal nodes. The DMC node has the attached resources, but the ToR switch does not.
生成的无环树形网络可参照图3,每一个DMC或ToR交换机至少与另外3个节点互联,某一个网口或连接故障后,MSTP重新收敛形成一个新的无环树形网络,通过连接上的3倍冗余达到3倍的可靠性。需要说明的是,任一节点在布线时可以根据工程设计尽量多的互联,互联节点数量可根据实际需要灵活设置。The generated acyclic tree network can refer to Figure 3. Each DMC or ToR switch is interconnected with at least three other nodes. After a network port or connection fails, MSTP reconverges to form a new acyclic tree network. The 3x redundancy on the 3x reliability. It should be noted that any node can be interconnected as much as possible according to the engineering design during wiring, and the number of interconnected nodes can be flexibly set according to actual needs.
管理节点PODM可以挂接在无环树形网络的任意节点,而且无环树形网络的任 意节点都可以继续增加挂接的DMC。The management node PODM can be attached to any node of the acyclic tree network, and the acyclic tree network Any node can continue to increase the attached DMC.
在完成管理网络初始化后,管理节点接收各控制节点的配置请求,向所述控制节点分配动态地址。After completing the management network initialization, the management node receives the configuration request of each control node, and assigns a dynamic address to the control node.
作为一种实施方式,管理节点可以运行DHCPD(Dynamic Host Configuration Protocol Daemon,动态主机配置协议进程)服务,接收控制节点发送的DHCP(Dynamic Host Configuration Protocol,动态主机配置协议)请求。As an implementation manner, the management node can run a DHCPD (Dynamic Host Configuration Protocol Daemon) service and receive a DHCP (Dynamic Host Configuration Protocol) request sent by the control node.
控制节点在上电后,主动向管理节点发送DHCP请求,请求分配动态地址。After powering on, the control node actively sends a DHCP request to the management node to request allocation of a dynamic address.
然后,管理节点根据收到的控制节点DHCP请求,向控制节点分配动态地址,例如IP、addr(地址)。管理节点分配的动态地址设置有租期时长,当控制节点发生异常或租期使用完毕后,回收控制节点的动态地址,并可将回收的动态地址分配给其他控制节点。需要说明的是,租期时长可根据实际需要灵活设置。Then, the management node assigns a dynamic address, such as IP, addr (address), to the control node according to the received control node DHCP request. The dynamic address assigned by the management node is set with the lease duration. When the control node is abnormal or the lease is used, the dynamic address of the control node is recovered, and the recovered dynamic address can be assigned to other control nodes. It should be noted that the lease duration can be flexibly set according to actual needs.
然后,管理节点将分配的动态地址发送给相应的控制节点。The management node then sends the assigned dynamic address to the corresponding control node.
步骤S12、获取所述控制节点基于所述动态地址发送的注册信息,并登记所述控制节点。Step S12: Acquire registration information sent by the control node based on the dynamic address, and register the control node.
管理节点分配动态地址后,获取控制节点的注册信息,并登记控制节点。After the management node assigns a dynamic address, it acquires registration information of the control node and registers the control node.
具体的,作为一种实施方式,控制节点收到管理节点分配的动态地址后,以此动态地址作为后续与管理节点通信的地址。Specifically, as an implementation manner, after receiving the dynamic address allocated by the management node, the control node uses the dynamic address as an address for subsequent communication with the management node.
控制节点主动向管理节点发送注册信息进行注册。控制节点的注册信息包括控制节点的主机名和当前运行状态。其中,控制节点的当前运行状态包括控制节点当前是否正常运行、资源占用率等信息。The control node actively sends registration information to the management node for registration. The registration information of the control node includes the host name and current running status of the control node. The current running state of the control node includes information such as whether the control node is currently running normally and the resource occupancy rate.
管理节点接收控制节点基于动态地址发送的注册请求,获取控制节点的注册信息。由此,管理节点可获知使用当前动态地址的控制节点信息。The management node receives the registration request sent by the control node based on the dynamic address, and acquires the registration information of the control node. Thus, the management node can learn the control node information using the current dynamic address.
然后,管理节点登记进行注册的各控制节点,保存各控制节点的动态地址、主机名,缓存各控制节点的当前状态,并建立对应关系,用以识别不同的控制节点。Then, the management node registers each control node for registration, saves the dynamic address and host name of each control node, caches the current state of each control node, and establishes a correspondence relationship for identifying different control nodes.
步骤S13、获取所述已登记控制节点下挂的资源信息。Step S13: Obtain resource information that is linked by the registered control node.
控制节点在上电后,启动本地资源发现,主动收集其下挂的各项资源。各控制节点下挂的资源包括处理器、内存、存储、网络资源等,可根据实际需要灵活设置。After the control node is powered on, it starts local resource discovery and actively collects the resources it hangs. The resources connected to each control node include the processor, memory, storage, and network resources, which can be flexibly set according to actual needs.
各控制节点收集的资源信息包括各资源的位置标识、当前使用状态、处理能力等。The resource information collected by each control node includes the location identifier of each resource, the current usage status, and the processing capability.
作为一种实施方式,控制节点发现的资源可以使用控制节点主机名和UUID(Universally Unique Identifier,通用唯一识别码)作为位置标识。其中,控制节点主机名为资源所挂接的控制节点主机名;UUID为预先配置的识别标识,可以根据资源的出厂信息、出场时间设置UUID,当然也可以根据资源的其他硬件信息设置UUID,可根据实际需要灵活设置。As an implementation manner, the resource discovered by the control node may use a control node host name and a UUID (Universally Unique Identifier) as the location identifier. The control node host name is the host name of the control node to which the resource is attached; the UUID is a pre-configured identification identifier, and the UUID can be set according to the factory information and the playing time of the resource. Of course, the UUID can also be set according to other hardware information of the resource. Flexible settings according to actual needs.
另外,在控制节点内部,可以增加SLED(槽位)等位置信息,增加对资源的位置标识,用于进一步标识资源的物理位置,以便发生硬件故障时可以方便快捷的查找到资源,进行处理。In addition, within the control node, location information such as SLED (slot) can be added, and the location identifier of the resource can be added to further identify the physical location of the resource, so that resources can be conveniently and quickly found for processing when a hardware failure occurs.
对于管理节点只需要通过主机名和UUID识别不同的资源即可,不需要控制节点内部的位置信息。For the management node, only the host name and the UUID need to identify different resources, and it is not necessary to control the location information inside the node.
由此,简化了服务器系统的架构,层次架构针对硬件应用更有针对性。当发生资 源故障时,首先根据故障资源的挂接关系,通过主机名查找到挂接的控制节点,然后通过控制节点内部的位置信息,快速的定位故障资源的物理位置,实现对资源位置的快速定位,同时简化了管理软件的复杂程度,实际操作难度小,避免了通过严格布线定位资源时容易发生的混乱和错误。As a result, the architecture of the server system is simplified, and the hierarchical architecture is more targeted for hardware applications. When the capital occurs When the source is faulty, firstly, according to the hook relationship of the faulty resource, the connected control node is found by the host name, and then the location information inside the control node is used to quickly locate the physical location of the faulty resource, so as to quickly locate the resource location. At the same time, the complexity of the management software is simplified, and the actual operation difficulty is small, which avoids confusion and errors that are easy to occur when locating resources through strict wiring.
各控制节点在发送注册请求进行登记后,主动将本地资源信息发送给管理节点,管理节点接收各控制节点的资源信息,并进行存储;或管理节点定时从已登记的各控制节点收集资源信息,各控制节点实时更新其下挂的资源状态,以保证管理节点获取的资源信息为准确地资源信息。After transmitting the registration request for registration, each control node actively sends the local resource information to the management node, and the management node receives the resource information of each control node and stores it; or the management node periodically collects resource information from the registered control nodes. Each control node updates its resource status in real time to ensure that the resource information acquired by the management node is accurate resource information.
由此,管理节点获取已登记的各控制节点的资源信息。管理节点获取的资源信息包括各资源的位置标识、所挂接的控制节点、当前使用状态、处理能力等。Thereby, the management node acquires resource information of each registered control node. The resource information acquired by the management node includes the location identifier of each resource, the connected control node, the current usage status, and the processing capability.
管理节点可以将控制节点的主机名和控制节点下挂的各资源信息建立对应关系,用于标识不同控制节点的资源。由此,管理节点可以根据主机名查找到各控制节点下挂的资源信息,进行控制节点资源信息的数据查询或更新等。The management node may associate the host name of the control node with each resource information of the control node to identify resources of different control nodes. Therefore, the management node can find the resource information that is connected to each control node according to the host name, and perform data query or update of the control node resource information.
然后,管理节点将各类资源根据资源信息分别合并形成资源池,例如CPU资源池、内存资源池、存储资源池和网络资源池等,用于处理业务时根据业务需求组合成逻辑服务器。Then, the management node combines various resources according to the resource information to form a resource pool, for example, a CPU resource pool, a memory resource pool, a storage resource pool, and a network resource pool, and is used to process the services into a logical server according to service requirements.
管理节点将各控制节点的资源信息存储在CMDB。需要说明的是,存储资源信息的CMDB可以根据存储的数据量、环境规模等实际情况进行配置。The management node stores the resource information of each control node in the CMDB. It should be noted that the CMDB storing the resource information may be configured according to the actual situation such as the amount of stored data and the size of the environment.
在本实施例中,管理节点接收各控制节点的配置请求,向控制节点分配动态地址;然后,获取控制节点基于动态地址发送的注册信息,并登记控制节点;然后,获取已登记控制节点下挂的资源信息。本实施例通过管理节点向控制节点分配动态地址,注册控制节点,有效提升了地址使用效率和对管理节点的管理效率,避免失效控制节点占用资源;同时,管理节点能够及时获取有效控制节点的资源信息,数据有序、规整,便于后续对资源的管理。In this embodiment, the management node receives the configuration request of each control node, and assigns a dynamic address to the control node; then, acquires registration information sent by the control node based on the dynamic address, and registers the control node; and then acquires the registered control node Resource information. In this embodiment, the management node allocates a dynamic address to the control node, registers the control node, effectively improves the address usage efficiency and the management efficiency of the management node, and avoids the resource occupied by the failure control node; at the same time, the management node can timely acquire the resources of the effective control node. Information, data is orderly and regular, and it is convenient for subsequent management of resources.
进一步的,参照图4,本发明资源管理方法第三实施例提供一种资源管理方法,基于上述图1或图2所示的实施例(本实施例以图2进行举例说明),所述步骤S20包括:Further, referring to FIG. 4, a third embodiment of the resource management method of the present invention provides a resource management method, which is based on the foregoing embodiment shown in FIG. 1 or FIG. 2 (this embodiment is illustrated by using FIG. 2). S20 includes:
步骤S21、根据收到的业务请求,对所述资源信息进行过滤。Step S21: Filter the resource information according to the received service request.
在获取各控制节点的资源信息后,管理节点根据业务请求,进行资源组装。After acquiring the resource information of each control node, the management node performs resource assembly according to the service request.
具体的,作为一种实施方式,首先,管理节点接收业务请求,例如电信业务,可以通过远程PC(personal computer,个人电脑)等终端发送给管理节点。业务请求可以携带有业务类型、处理业务所需要的资源、对各资源的规格要求等信息,可根据实际需要灵活设置。Specifically, as an implementation manner, first, the management node receives a service request, for example, a telecommunication service, and may send the information to a management node through a terminal such as a remote PC (personal computer). A service request may carry information such as a service type, a resource required for processing a service, and a specification requirement for each resource, and may be flexibly set according to actual needs.
然后,管理节点根据处理业务请求的所需要的资源,从已存储的各类资源池中,筛选出处理本次业务请求所需要的资源池。Then, the management node filters out the resource pools required for processing the current service request from the stored resource pools according to the required resources for processing the service request.
然后,根据业务请求对资源的规格要求和各资源信息,对各资源池中的资源进行过滤,筛选出符合要求的资源。例如,业务请求限制多核CPU的核数,则管理节点过滤掉CPU资源池中,核数不满足要求的CPU,也即过滤掉不满足要求的CPU资源信息;业务请求也可以限制内存的存储量,则管理节点根据业务请求设置的参数,过 滤掉内存资源池中不满足参数要求的内存资源,也即过滤掉不满足要求的内存资源信息;业务请求还可以限制网络流量,则管理节点根据业务请求设置的参数,过滤掉网络资源池中不满足参数要求的网络资源,也即过滤掉不满足要求的网络资源信息。Then, according to the resource requirements and the resource information of the service request, the resources in each resource pool are filtered to filter out the resources that meet the requirements. For example, if the service request limits the number of cores of the multi-core CPU, the management node filters out the CPU in the CPU resource pool, the number of cores does not meet the requirements, that is, filters out CPU resource information that does not meet the requirements; the service request can also limit the amount of memory storage. , the management node according to the parameters set by the business request, Filter out the memory resources in the memory resource pool that do not meet the parameter requirements, that is, filter out the memory resource information that does not meet the requirements; the service request can also limit the network traffic, and the management node filters out the network resource pool according to the parameters set by the service request. Network resources that do not meet the parameter requirements, that is, filter out network resource information that does not meet the requirements.
由此,管理节点根据业务请求,过滤掉了资源池中能不满足业务处理需求的资源,也即过滤掉了不能满足业务处理需求的资源信息。Therefore, the management node filters out the resources in the resource pool that cannot meet the service processing requirements according to the service request, that is, filters out the resource information that cannot meet the service processing requirements.
过滤后得到的资源信息,满足处理本次业务请求的要求。The resource information obtained after filtering meets the requirements for processing the current service request.
步骤S22、根据预设的权重算法和过滤得到的资源信息,选取服务资源并获取所述服务资源的信息。Step S22: Select a service resource and obtain information about the service resource according to the preset weight algorithm and the filtered resource information.
在对资源信息进行过滤后,管理节点根据预设的权重算法和过滤得到的资源信息,选取资源作为组装逻辑服务器的服务资源。After filtering the resource information, the management node selects the resource as the service resource of the assembly logical server according to the preset weight algorithm and the filtered resource information.
具体的,作为一种实施方式,首先,管理节点根据预设的权重算法和过滤得到的资源信息,选取适于组装逻辑服务器的资源。Specifically, as an implementation manner, first, the management node selects resources suitable for assembling the logical server according to the preset weight algorithm and the filtered resource information.
例如,预设的权重算法设置有CPU与内存的距离参数,则管理节点根据距离参数和资源信息,选取满足要求的CPU和内存,避免CPU与内存距离过远导致数据传输异常。For example, if the preset weight algorithm is set with a distance parameter between the CPU and the memory, the management node selects the CPU and the memory that meet the requirements according to the distance parameter and the resource information, and avoids the data transmission abnormality caused by the CPU and the memory being too far apart.
需要说明的是,预设的权重算法可根据实际情况灵活设置,用于设置参数条件,使获取的资源组合得到的逻辑服务器能够达到处理速度、存储占用率等性能均衡或最优。It should be noted that the preset weight algorithm can be flexibly set according to actual conditions, and is used to set parameter conditions, so that the logical server obtained by the acquired resource combination can achieve performance balance or optimal performance such as processing speed and storage occupancy.
由此,管理节点得到用于组装逻辑服务器的资源,并将得到的各资源作为组装逻辑服务器的服务资源。根据选取的服务资源,管理节点可以组装得到逻辑服务器,用于处理本次业务请求。Thereby, the management node obtains resources for assembling the logical server, and uses each obtained resource as a service resource of the assembly logical server. According to the selected service resource, the management node can assemble a logical server for processing the current service request.
然后,管理节点获取各服务资源的信息。各服务资源的信息包括:各服务资源的位置标识、所挂接的控制节点、当前使用状态、处理能力等,可根据实际需要灵活设置。Then, the management node obtains information of each service resource. The information of each service resource includes: the location identifier of each service resource, the connected control node, the current usage status, and the processing capability, and can be flexibly set according to actual needs.
步骤S23、根据所述服务资源信息,生成组装请求。Step S23: Generate an assembly request according to the service resource information.
在获取服务资源信息后,管理节点根据服务资源信息生成组装请求。After obtaining the service resource information, the management node generates an assembly request according to the service resource information.
其中,组装请求包括各服务资源的信息,也即被选取的、本次组装逻辑服务器所需的各资源信息,例如各服务资源的位置标识、所挂接的控制节点、连接关系等。The assembly request includes the information of each service resource, that is, the selected resource information required for assembling the logical server, such as the location identifier of each service resource, the connected control node, and the connection relationship.
在本实施例中,管理节点根据收到的业务请求,对资源信息进行过滤;然后根据预设的权重算法和过滤得到的资源信息,选取服务资源并获取服务资源的信息;然后根据服务资源信息,生成组装请求。本实施例实现了组装逻辑服务器资源的优选,简化了资源的选取流程,选取得到的服务资源能够更加高效的处理业务请求。In this embodiment, the management node filters the resource information according to the received service request; then, according to the preset weight algorithm and the filtered resource information, the service resource is selected and the service resource information is obtained; and then the service resource information is obtained according to the service resource information. , generate an assembly request. This embodiment implements the optimization of assembling logical server resources, simplifies the process of selecting resources, and selects the obtained service resources to process service requests more efficiently.
进一步的,参照图5,本发明资源管理方法第四实施例提供一种资源管理方法,基于上述图4所示的实施例,所述步骤S30包括:Further, referring to FIG. 5, the fourth embodiment of the resource management method of the present invention provides a resource management method. Based on the foregoing embodiment shown in FIG. 4, the step S30 includes:
步骤S31、将所述组装请求发送给所述服务资源挂接的控制节点。Step S31: Send the assembly request to the control node to which the service resource is attached.
管理节点在得到组装请求后,根据组装请求,使控制节点组装逻辑服务器处理业务请求。After obtaining the assembly request, the management node causes the control node to assemble the logical server to process the service request according to the assembly request.
具体的,作为一种实施方式,首先,管理节点根据组装请求中的各服务资源信息,将组装请求分别发送给各服务资源所挂接的控制节点。 Specifically, as an implementation manner, first, the management node separately sends the assembly request to the control node that is connected to each service resource according to each service resource information in the assembly request.
管理节点发送的组装请求包括各控制节点中被选取作为服务资源的资源信息,各服务资源的连接关系等。The assembly request sent by the management node includes resource information selected as a service resource in each control node, a connection relationship of each service resource, and the like.
步骤S32、控制所述服务资源挂接的控制节点根据所述组装请求,组装逻辑服务器。Step S32: The control node that controls the connection of the service resource assembles the logical server according to the assembly request.
将组装请求发送给各服务资源挂接的控制节点后,作为一种实施方式,首先,管理节点分别控制各控制节点根据组装请求,查找到各控制节点挂接的资源中、被选择用于组装逻辑服务器的资源,也即查找服务资源。After the assembly request is sent to the control node to which the service resource is attached, as an implementation manner, first, the management node controls each control node to find the resources hooked by each control node according to the assembly request, and is selected for assembly. The resource of the logical server, that is, the service resource.
然后,各控制节点根据组装请求,将位于不同控制节点上的各服务资源进行相互连接,组装成逻辑服务器。Then, each control node interconnects the service resources located on different control nodes according to the assembly request, and assembles them into a logical server.
其中,控制节点DMC与子网内部的BMC进行交互,访问具体的资源。需要说明的是,DMC与BMC的交互协议可以是IPMI协议,也可以是HTTP,也可以是其他交互协议,可根据实际需要灵活设置。The control node DMC interacts with the BMC inside the subnet to access specific resources. It should be noted that the interaction protocol between the DMC and the BMC may be the IPMI protocol, the HTTP protocol, or other interaction protocols, and may be flexibly set according to actual needs.
由此,得到组装完成的逻辑服务器。逻辑服务器由各服务资源连接组成。Thereby, the assembled logical server is obtained. A logical server consists of a connection of service resources.
步骤S33、控制所述逻辑服务器处理所述业务请求。Step S33: Control the logical server to process the service request.
在完成组装逻辑服务器后,管理节点或远程控制机根据本次业务处理的需求,为组装完成的逻辑服务器部署操作系统、云平台软件和其他用于业务处理的软件。After the logical server is assembled, the management node or the remote controller deploys an operating system, cloud platform software, and other software for business processing for the assembled logical server according to the requirements of the current business processing.
完成软件部署后,管理节点控制逻辑服务器处理本次业务请求。After the software deployment is completed, the management node controls the logical server to process the current service request.
逻辑服务器作为物理机,通过各服务资源,进行本次业务的处理。The logical server acts as a physical machine and processes the service through various service resources.
后续,管理节点或远程控制机可以根据本次业务处理的需求,控制逻辑服务器中各服务资源挂接的控制节点,进行逻辑服务器的上电、下电、复位等操作。例如,需要对逻辑服务器进行上电操作时,管理节点根据服务资源的信息,将上电操作请求发送给此服务资源所挂接的控制节点,控制节点收到上电操作请求后,进行相应的上电操作。Subsequently, the management node or the remote control machine can control the control nodes connected to the service resources in the logical server according to the requirements of the current service processing, and perform operations such as powering on, powering off, and resetting the logical server. For example, when the logical server needs to be powered on, the management node sends a power-on operation request to the control node connected to the service resource according to the information of the service resource, and after receiving the power-on operation request, the control node performs corresponding Power on operation.
在本实施例中,管理节点将组装请求发送给服务资源挂接的控制节点;然后,控制服务资源所挂接的控制节点根据组装请求,组装逻辑服务器;然后控制逻辑服务器处理业务请求。本实施例通过将组装请求发送给服务资源所挂接的控制节点,控制相应的控制节点连接服务资源,完成逻辑服务器的组装,进而处理业务请求。本实施例简化了逻辑服务器中各资源的组装流程,提升了资源管理效率。In this embodiment, the management node sends the assembly request to the control node to which the service resource is attached; then, the control node attached to the control service resource assembles the logical server according to the assembly request; and then controls the logical server to process the service request. In this embodiment, the assembly request is sent to the control node that is connected to the service resource, and the corresponding control node is controlled to connect to the service resource, complete the assembly of the logical server, and then process the service request. This embodiment simplifies the assembly process of resources in the logical server and improves resource management efficiency.
进一步的,参照图6,本发明资源管理方法第五实施例提供一种资源管理方法,基于上述图5所示的实施例,所述步骤S30之后,还包括:Further, referring to FIG. 6, the fifth embodiment of the resource management method of the present invention provides a resource management method. After the step S30, the method further includes:
步骤S40、接收所述业务请求的撤销请求。Step S40: Receive a revocation request of the service request.
在进行业务请求处理时,或完后业务处理请求后,若管理节点收到对于业务请求的撤销请求,则停止对此业务的处理,撤销处理此业务的逻辑服务器。When the service request processing is performed, or after the business processing request is completed, if the management node receives the revocation request for the service request, the processing of the service is stopped, and the logical server that processes the service is revoked.
具体的,作为一种实施方式,远程控制机可根据实际需要,发出针对业务请求的撤销请求,撤销对于业务的处理。Specifically, as an implementation manner, the remote control machine may issue a revocation request for the service request according to actual needs, and cancel the processing for the service.
管理节点接收远程控制机发送的撤销请求。其中,撤销请求携带有本次请求撤销的业务信息。The management node receives the revocation request sent by the remote controller. The revocation request carries the business information that is revoked by the request.
步骤S50、根据所述撤销请求,控制所述服务资源挂接的控制节点拆分所述逻辑服务器。 Step S50: Control the node connected to the service resource to split the logical server according to the revocation request.
在收到撤销请求后,作为一种实施方式,首先,管理节点根据撤销请求获取本次请求撤销的业务。After receiving the revocation request, as an implementation manner, first, the management node acquires the service requested to be revoked according to the revocation request.
然后,管理节点根据本次请求撤销的业务,获取处理此业务的逻辑服务器信息,得到各服务资源的信息。Then, the management node obtains the logical server information for processing the service according to the service that is requested to be revoked, and obtains the information of each service resource.
然后,管理节点根据各服务资源的信息,获取各服务资源所挂接的控制节点,并且,将撤销请求发送分别给各服务资源所挂接的控制节点。Then, the management node acquires the control node to which each service resource is attached according to the information of each service resource, and sends the revocation request to the control node to which each service resource is attached.
控制节点收到撤销请求后,根据撤销请求,对服务资源进行下电操作,拆分组成逻辑服务器的各资源。After receiving the revocation request, the control node performs a power-off operation on the service resource according to the revocation request, and splits the resources that constitute the logical server.
由此,管理节点实现对逻辑服务器资源的拆分。Thus, the management node implements splitting of logical server resources.
步骤S60、撤销所述逻辑服务器,并转入执行步骤S10。Step S60, the logical server is revoked, and the process proceeds to step S10.
在完成逻辑服务器资源的拆分后,管理节点撤销此逻辑服务器,停止此逻辑服务器的业务处理。After the logical server resource is split, the management node revokes the logical server and stops the business processing of the logical server.
然后,管理节点向各控制节点发出资源收集请求,收集各控制节点当前的资源信息;各控制节点实时更新其下挂的资源信息,并向管理节点上报。Then, the management node sends a resource collection request to each control node, and collects the current resource information of each control node; each control node updates the resource information of the next node in real time and reports it to the management node.
管理节点收到各控制节点资源信息后,根据各控制节点的主机名,将各控制节点对应的资源信息进行更新,实现CMDB的更新。After receiving the resource information of each control node, the management node updates the resource information corresponding to each control node according to the host name of each control node to implement the update of the CMDB.
需要说明的是,管理节点可以更新当前管理网络中所有控制节点的资源信息,也可以仅更新拆分逻辑服务器的控制节点的资源信息,可根据实际需要灵活设置。It should be noted that the management node may update the resource information of all the control nodes in the current management network, or may only update the resource information of the control node of the split logical server, and may be flexibly set according to actual needs.
在本实施例中,管理节点接收针对业务请求的撤销请求;然后,根据撤销请求,控制所述服务资源所挂接的控制节点拆分逻辑服务器;并撤销所述逻辑服务器,然后更新资源信息,用于后续其他逻辑服务器的组装。本实施例通过对逻辑服务器的拆分,释放资源并更新资源信息,提升了资源的使用效率,释放的资源可用于其他业务的处理,保证了资源管理的有序性,简化了对资源的管理。In this embodiment, the management node receives the revocation request for the service request; then, according to the revocation request, controls the control node to which the service resource is attached to split the logical server; and revokes the logical server, and then updates the resource information, Used for subsequent assembly of other logical servers. In this embodiment, by splitting the logical server, releasing resources and updating resource information, the resource use efficiency is improved, and the released resources can be used for processing other services, ensuring order management of resources, and simplifying management of resources. .
参照图7,本发明资源管理装置第一实施例提供一种资源管理装置,所述资源管理装置包括:Referring to FIG. 7, a first embodiment of the resource management apparatus of the present invention provides a resource management apparatus, where the resource management apparatus includes:
收集模块100,用于管理节点获取各控制节点下挂的资源信息。The collecting module 100 is configured to acquire, by the management node, resource information that is connected to each control node.
本发明主要应用于资源管理,本实施例以机柜服务器系统的资源管理进行举例说明,本发明提出的资源管理装置简化了现有机柜服务器组网和布线,优化了管理网络,提升了机柜服务器系统的实用性。The present invention is mainly applied to resource management. The resource management device provided by the present invention exemplifies the networking and cabling of the existing cabinet server, optimizes the management network, and improves the cabinet server system. Practicality.
具体的,作为一种实施方式,首先,初始化机柜服务器系统的管理网络。Specifically, as an implementation manner, first, a management network of the rack server system is initialized.
其中,机柜服务器的管理网络包括资源管理装置和控制节点。资源管理装置为manager,例如PODM(POD Manager,POD数据资源管理装置),作为管理终端,管理服务器资源和逻辑服务器,例如资源的发现、分配和回收;控制节点为controller,例如DMC(Drawer Management Controller,抽屉管理控制器),作为管理网络的交换节点,用于对其所包含的资源进行发现和组装,并以client(客户端)与资源管理装置进行协作,完成资源管理;控制节点还可以包括网络交换机,例如ToR交换机(Top of Rack,架顶交换机),ToR交换机可以下挂资源用于管理服务器的网络资源的管理、交换;当然,ToR交换机也可以不下挂资源,不作为控制节点管理网络资源,仅用于网络交换。 The management network of the cabinet server includes a resource management device and a control node. The resource management device is a manager, such as a PODM (POD Manager, POD Data Resource Management Device), as a management terminal, managing server resources and logical servers, such as resource discovery, allocation, and recycling; the control node is a controller, such as DMC (Drawer Management Controller) , drawer management controller), as a switching node of the management network, for discovering and assembling the resources it contains, and collaborating with the resource management device by the client (client) to complete resource management; the control node may also include A network switch, such as a ToR switch (Top of Rack), can be connected to resources to manage and exchange network resources of the server. Of course, the ToR switch can also be used as a control node to manage the network. Resources, only for network switching.
本实施例以资源管理装置为PODM、控制节点为DMC,ToR交换机仅用于网络交换进行举例说明。控制节点可包括多个DMC和ToR交换机。In this embodiment, the resource management device is a PODM, the control node is a DMC, and the ToR switch is used only for network switching. The control node can include multiple DMC and ToR switches.
管理网络初始化时,DMC的交换模块启动,ToR交换机启动。然后,DMC交换模块和ToR交换机进行选举、收敛,形成无环树形网络,任意节点均可以与其他节点互联,以保证任意节点发生故障时,可重新收敛形成无环树形网络,提升管理网络的可靠性。When the management network is initialized, the DMC switch module is started and the ToR switch is started. Then, the DMC switch module and the ToR switch perform election and convergence to form an acyclic tree network. Any node can be interconnected with other nodes to ensure that any node fails to reconverge to form an acyclic tree network and improve the management network. Reliability.
资源管理装置可挂接于无环树形网络的任意节点,进行管理。The resource management device can be connected to any node of the acyclic tree network for management.
资源管理装置的收集模块100定时从各控制节点收集资源信息,各控制节点实时更新其下挂的资源状态,以保证收集模块100获取的资源信息为准确地资源信息。或者,各控制节点主动将本地资源信息发送给资源管理装置,资源管理装置的收集模块100接收各控制节点的资源信息,并进行存储。The collection module 100 of the resource management device periodically collects resource information from each control node, and each control node updates the state of the resource that is connected to it in real time to ensure that the resource information acquired by the collection module 100 is accurate resource information. Alternatively, each control node actively sends the local resource information to the resource management device, and the collection module 100 of the resource management device receives the resource information of each control node and stores the resource information.
需要说明的是,各控制节点主动收集其下挂的各项本地资源信息。各控制节点下挂的资源包括处理器、内存、存储、网络资源等,可根据实际需要灵活设置。各控制节点收集的资源信息包括各资源的位置标识、当前使用状态、处理能力等。It should be noted that each control node actively collects various local resource information that is connected to it. The resources connected to each control node include the processor, memory, storage, and network resources, which can be flexibly set according to actual needs. The resource information collected by each control node includes the location identifier of each resource, the current usage status, and the processing capability.
由此,收集模块100获取各控制节点的资源信息。其中,收集模块100获取的资源信息包括各资源的位置标识、所挂接的控制节点、当前使用状态、处理能力等。Thereby, the collection module 100 acquires resource information of each control node. The resource information acquired by the collection module 100 includes a location identifier of each resource, a connected control node, a current usage state, a processing capability, and the like.
然后,收集模块100将各类资源根据资源信息分别合并形成资源池,例如CPU资源池、内存资源池、存储资源池和网络资源池等,用于处理业务时根据业务需求组合成逻辑服务器。Then, the collection module 100 combines various resources according to the resource information to form a resource pool, such as a CPU resource pool, a memory resource pool, a storage resource pool, and a network resource pool, and is combined into a logical server according to service requirements when processing the service.
收集模块100可以将各控制节点的资源信息存储在CMDB(Configuration Management Database,配置管理数据库),并根据后续获取的控制节点资源信息进行数据更新。The collection module 100 may store the resource information of each control node in a CMDB (Configuration Management Database), and perform data update according to the subsequently acquired control node resource information.
组装模块200,用于根据收到的业务请求和所述资源信息,生成组装请求。The assembly module 200 is configured to generate an assembly request according to the received service request and the resource information.
在获取各控制节点的资源信息后,组装模块200根据业务请求,进行资源组装。After acquiring the resource information of each control node, the assembly module 200 performs resource assembly according to the service request.
具体的,作为一种实施方式,首先,组装模块200接收业务请求,例如电信业务,可以通过远程PC(personal computer,个人电脑)等终端发送给组装模块200。业务请求可以携带有业务类型、处理业务所需要的资源、对各资源的规格要求等信息,可根据实际需要灵活设置。Specifically, as an implementation manner, first, the assembly module 200 receives a service request, such as a telecommunication service, and can be sent to the assembly module 200 through a terminal such as a remote PC (personal computer). A service request may carry information such as a service type, a resource required for processing a service, and a specification requirement for each resource, and may be flexibly set according to actual needs.
然后,组装模块200可以根据业务请求的类型,从预置的资源分配表中获取本次业务请求对应的各资源规格要求,然后从已获取的资源信息中,挑选出符合条件的各项资源;或者组装模块200可以根据业务请求携带的对资源的各项要求,从已获取的资源信息中,挑选出符合条件的各项资源。Then, the assembly module 200 may obtain, according to the type of the service request, the resource specification requirements corresponding to the current service request from the preset resource allocation table, and then select, from the acquired resource information, the resources that meet the conditions; Or the assembly module 200 can select various resources that meet the requirements from the acquired resource information according to the requirements of the resources carried by the service request.
由此,组装模块200得到适于处理本次业务请求的各项资源,并将得到的各项资源作为本次处理业务请求的服务资源。Therefore, the assembly module 200 obtains various resources suitable for processing the current service request, and uses the obtained resources as the service resource for processing the service request.
然后,组装模块200根据选取的服务资源生成组装请求。组装请求包括各服务资源信息,也即被选取的、本次组装逻辑服务器所需的各资源信息,例如各资源的位置标识、所挂接的控制节点、各资源的连接关系等。The assembly module 200 then generates an assembly request based on the selected service resource. The assembly request includes each service resource information, that is, the selected resource information required for assembling the logical server, such as the location identifier of each resource, the connected control node, and the connection relationship of each resource.
处理模块300,用于根据所述组装请求,控制所述控制节点组装逻辑服务器,处理所述业务请求。 The processing module 300 is configured to control, according to the assembly request, the control node to assemble a logical server to process the service request.
在得到组装请求后,根据组装请求,处理模块300使控制节点组装逻辑服务器处理业务请求。After the assembly request is obtained, the processing module 300 causes the control node assembly logic server to process the service request according to the assembly request.
具体的,作为一种实施方式,首先,处理模块300根据组装请求中的各服务资源信息,将组装请求发送给各服务资源所挂接的控制节点,也即将组装请求发送给被选取的资源所挂接的控制节点。Specifically, as an implementation manner, first, the processing module 300 sends an assembly request to the control node that is connected to each service resource according to each service resource information in the assembly request, and sends the assembly request to the selected resource. The attached control node.
各控制节点收到组装请求后,处理模块300分别控制各控制节点根据组装请求,查找到各控制节点挂接的资源中、被选择用于组装逻辑服务器的资源,也即服务资源。After each control node receives the assembly request, the processing module 300 controls each control node to find, according to the assembly request, the resources selected by the control nodes to be used for assembling the logical server, that is, the service resources.
然后,各控制节点根据组装请求,将位于不同控制节点上的各服务资源进行相互连接,组装逻辑服务器。其中,DMC与子网内部的BMC(BaseboardManagementController,基板管理控制器)进行交互,访问具体的资源。Then, each control node interconnects the service resources located on different control nodes according to the assembly request, and assembles the logical server. The DMC interacts with the BMC (Baseboard Management Controller) inside the subnet to access specific resources.
例如,通过控制节点的交换板,设置SAS expander(扩展),完成CPU和storages(存储器)的组装。需要说明的是,DMC与BMC的交互协议可以是IPMI(Intelligent Platform Management Interface,智能平台管理接口)协议,也可以是HTTP(HyperText Transfer Protocol,超文本传输协议),也可以是其他交互协议,可根据实际需要灵活设置。For example, by controlling the node's switchboard, set the SAS expander to complete the assembly of the CPU and storage. It should be noted that the interaction protocol between the DMC and the BMC may be an IPMI (Intelligent Platform Management Interface) protocol, or may be an HTTP (HyperText Transfer Protocol) or other interactive protocol. Flexible settings according to actual needs.
然后,处理模块300或远程控制机根据本次业务处理的需求,为组装完成的逻辑服务器部署操作系统、云平台软件和其他用于业务处理的软件。Then, the processing module 300 or the remote control machine deploys an operating system, cloud platform software, and other software for business processing for the assembled logical server according to the requirements of the current business processing.
完成软件部署后,处理模块300控制逻辑服务器处理本次业务请求。After the software deployment is completed, the processing module 300 controls the logical server to process the current service request.
逻辑服务器作为物理机,通过各服务资源,进行本次业务的处理。The logical server acts as a physical machine and processes the service through various service resources.
后续,处理模块300或远程控制机可以根据本次业务处理的需求,控制逻辑服务器中各服务资源所属的控制节点,进行逻辑服务器的上电、下电、复位等操作。例如,需要对逻辑服务器进行上电操作时,处理模块300根据服务资源的信息,将上电操作请求发送给此服务资源所挂接的控制节点,控制节点收到上电操作请求后,进行相应的上电操作。Subsequently, the processing module 300 or the remote control machine can control the control node to which each service resource belongs in the logical server according to the requirements of the current service processing, and perform operations such as power-on, power-off, and reset of the logical server. For example, when the logical server needs to be powered on, the processing module 300 sends a power-on operation request to the control node that is connected to the service resource according to the information of the service resource, and after receiving the power-on operation request, the control node performs corresponding Power-on operation.
在本实施例中,收集模块100获取各控制节点下挂的资源信息;组装模块200根据收到的业务请求和资源信息,生成组装请求;然后,处理模块300根据组装请求,控制控制节点组装逻辑服务器,处理本次业务请求。本实施例避免传统服务器的机架层级概念,将资源挂接在各控制节点,由控制节点直接与资源管理装置交互进行资源管理,降低了管理软件的复杂度,同时简化了服务器系统的组网、布线,实现了服务器系统管理网络结构的优化,对服务器系统中各资源的管理更加简便,提升了资源管理的效率。In this embodiment, the collection module 100 acquires resource information linked by each control node; the assembly module 200 generates an assembly request according to the received service request and resource information; and then, the processing module 300 controls the control node assembly logic according to the assembly request. Server, processing this business request. In this embodiment, the concept of the rack level of the traditional server is avoided, and resources are connected to each control node, and the control node directly interacts with the resource management device for resource management, which reduces the complexity of the management software and simplifies the networking of the server system. And wiring, the server system management network structure is optimized, the management of each resource in the server system is more convenient, and the efficiency of resource management is improved.
进一步的,参照图8,本发明资源管理装置第二实施例提供一种资源管理装置,基于上述图7所示的实施例,所述收集模块100包括:Further, referring to FIG. 8, the second embodiment of the resource management apparatus of the present invention provides a resource management apparatus. Based on the foregoing embodiment, the collection module 100 includes:
分配单元110,用于接收各控制节点的配置请求,向所述控制节点分配动态地址。The allocating unit 110 is configured to receive a configuration request of each control node, and allocate a dynamic address to the control node.
在服务器管理平台启动后,首先,初始化机柜服务器系统的管理网络。After the server management platform is started, first, the management network of the rack server system is initialized.
本实施例以资源管理装置为PODM、控制节点为DMC,ToR交换机仅用于网络交换进行举例说明。控制节点可包括多个DMC和ToR交换机。In this embodiment, the resource management device is a PODM, the control node is a DMC, and the ToR switch is used only for network switching. The control node can include multiple DMC and ToR switches.
管理网络初始化时,DMC的交换模块启动,ToR交换机启动。然后,DMC交换模块和ToR交换机进行选举、收敛,形成相互通信、互不影响的无环树形网络。在 形成的无环树形网络中,任意节点均可以与其他节点互联,以保证任意节点发生故障时,可重新收敛形成无环树形网络,提升管理网络的可靠性。同时,无环树形网络阻断了环路,保证节点的负载均衡。When the management network is initialized, the DMC switch module is started and the ToR switch is started. Then, the DMC switch module and the ToR switch perform election and convergence to form an acyclic tree network that communicates with each other and does not affect each other. In In the formed acyclic tree network, any node can be interconnected with other nodes to ensure that any node fails, and can reconverge to form an acyclic tree network to improve the reliability of the management network. At the same time, the acyclic tree network blocks the loop and ensures the load balancing of the nodes.
以DMC和ToR交换机运行MSTP(Multi Spanning Tree Protocol,多生成树协议)进行举例说明,DMC的交换模块和ToR交换机为平等的节点,DMC节点有下挂资源,而ToR交换机没有。The DMC and the ToR switch run the MSTP (Multiple Spanning Tree Protocol). The DMC switch module and the ToR switch are equal nodes. The DMC node has the attached resources, but the ToR switch does not.
生成的无环树形网络可参照图3,每一个DMC或ToR交换机至少与另外3个节点互联,某一个网口或连接故障后,MSTP重新收敛形成一个新的无环树形网络,通过连接上的3倍冗余达到3倍的可靠性。需要说明的是,任一节点在布线时可以根据工程设计尽量多的互联,互联节点数量可根据实际需要灵活设置。The generated acyclic tree network can refer to Figure 3. Each DMC or ToR switch is interconnected with at least three other nodes. After a network port or connection fails, MSTP reconverges to form a new acyclic tree network. The 3x redundancy on the 3x reliability. It should be noted that any node can be interconnected as much as possible according to the engineering design during wiring, and the number of interconnected nodes can be flexibly set according to actual needs.
资源管理装置PODM可以挂接在无环树形网络的任意节点,而且无环树形网络的任意节点都可以继续增加挂接的DMC。The resource management device PODM can be attached to any node of the acyclic tree network, and any node of the acyclic tree network can continue to increase the attached DMC.
在完成管理网络初始化后,资源管理装置的分配单元110接收各控制节点的配置请求,向所述控制节点分配动态地址。After completing the management network initialization, the allocation unit 110 of the resource management apparatus receives the configuration request of each control node, and assigns a dynamic address to the control node.
作为一种实施方式,分配单元110可以运行DHCPD(Dynamic Host Configuration Protocol Daemon,动态主机配置协议进程)服务,接收控制节点发送的DHCP(Dynamic Host Configuration Protocol,动态主机配置协议)请求。As an implementation manner, the allocating unit 110 may run a DHCPD (Dynamic Host Configuration Protocol Daemon) service to receive a DHCP (Dynamic Host Configuration Protocol) request sent by the control node.
控制节点在上电后,主动向分配单元110发送DHCP请求,请求分配动态地址。After powering on, the control node actively sends a DHCP request to the allocating unit 110 to request allocation of a dynamic address.
然后,分配单元110根据收到的控制节点DHCP请求,向控制节点分配动态地址,例如IP、addr(地址)。分配单元110分配的动态地址设置有租期时长,当控制节点发生异常或租期使用完毕后,回收控制节点的动态地址,并可将回收的动态地址分配给其他控制节点。需要说明的是,租期时长可根据实际需要灵活设置。Then, the allocating unit 110 assigns a dynamic address, such as IP, addr (address), to the control node according to the received control node DHCP request. The dynamic address allocated by the allocating unit 110 is set with a lease duration. When an abnormality occurs in the control node or the lease period is used, the dynamic address of the control node is recovered, and the recovered dynamic address can be allocated to other control nodes. It should be noted that the lease duration can be flexibly set according to actual needs.
然后,分配单元110将分配的动态地址发送给相应的控制节点。The allocation unit 110 then sends the assigned dynamic address to the corresponding control node.
登记单元120,用于获取所述控制节点基于所述动态地址发送的注册信息,并登记所述控制节点。The registration unit 120 is configured to acquire registration information that is sent by the control node based on the dynamic address, and register the control node.
分配单元110分配动态地址后,登记单元120获取控制节点的注册信息,并登记控制节点。After the allocation unit 110 assigns the dynamic address, the registration unit 120 acquires the registration information of the control node and registers the control node.
具体的,作为一种实施方式,控制节点收到分配单元110分配的动态地址后,以此动态地址作为后续与资源管理装置通信的地址。Specifically, as an implementation manner, after receiving the dynamic address allocated by the allocating unit 110, the control node uses the dynamic address as an address for subsequent communication with the resource management apparatus.
控制节点主动向登记单元120发送注册信息进行注册。控制节点的注册信息包括控制节点的主机名和当前运行状态。其中,控制节点的当前运行状态包括控制节点当前是否正常运行、资源占用率等信息。The control node actively sends registration information to the registration unit 120 for registration. The registration information of the control node includes the host name and current running status of the control node. The current running state of the control node includes information such as whether the control node is currently running normally and the resource occupancy rate.
登记单元120接收控制节点基于动态地址发送的注册请求,获取控制节点的注册信息。由此,登记单元120可获知使用当前动态地址的控制节点信息。The registration unit 120 receives the registration request sent by the control node based on the dynamic address, and acquires registration information of the control node. Thus, the registration unit 120 can learn the control node information using the current dynamic address.
然后,登记单元120登记进行注册的各控制节点,保存各控制节点的动态地址、主机名,缓存各控制节点的当前状态,并建立对应关系,用以识别不同的控制节点。Then, the registration unit 120 registers each control node that performs registration, saves the dynamic address and host name of each control node, caches the current state of each control node, and establishes a correspondence relationship for identifying different control nodes.
收集单元130,用于获取所述已登记控制节点下挂的资源信息。The collecting unit 130 is configured to acquire resource information that is linked by the registered control node.
控制节点在上电后,启动本地资源发现,主动收集其下挂的各项资源。各控制节点下挂的资源包括处理器、内存、存储、网络资源等,可根据实际需要灵活设置。 After the control node is powered on, it starts local resource discovery and actively collects the resources it hangs. The resources connected to each control node include the processor, memory, storage, and network resources, which can be flexibly set according to actual needs.
各控制节点收集的资源信息包括各资源的位置标识、当前使用状态、处理能力等。The resource information collected by each control node includes the location identifier of each resource, the current usage status, and the processing capability.
作为一种实施方式,控制节点发现的资源可以使用控制节点主机名和UUID(Universally Unique Identifier,通用唯一识别码)作为位置标识。其中,控制节点主机名为资源所挂接的控制节点主机名;UUID为预先配置的识别标识,可以根据资源的出厂信息、出场时间设置UUID,当然也可以根据资源的其他硬件信息设置UUID,可根据实际需要灵活设置。As an implementation manner, the resource discovered by the control node may use a control node host name and a UUID (Universally Unique Identifier) as the location identifier. The control node host name is the host name of the control node to which the resource is attached; the UUID is a pre-configured identification identifier, and the UUID can be set according to the factory information and the playing time of the resource. Of course, the UUID can also be set according to other hardware information of the resource. Flexible settings according to actual needs.
另外,在控制节点内部,可以增加SLED(槽位)等位置信息,增加对资源的位置标识,用于进一步标识资源的物理位置,以便发生硬件故障时可以方便快捷的查找到资源,进行处理。In addition, within the control node, location information such as SLED (slot) can be added, and the location identifier of the resource can be added to further identify the physical location of the resource, so that resources can be conveniently and quickly found for processing when a hardware failure occurs.
对于资源管理装置只需要通过主机名和UUID识别不同的资源即可,不需要控制节点内部的位置信息。For the resource management device, only different resources need to be identified by the host name and the UUID, and it is not necessary to control the location information inside the node.
由此,简化了服务器系统的架构,层次架构针对硬件应用更有针对性。当发生资源故障时,首先根据故障资源的挂接关系,通过主机名查找到挂接的控制节点,然后通过控制节点内部的位置信息,快速的定位故障资源的物理位置,实现对资源位置的快速定位,同时简化了管理软件的复杂程度,实际操作难度小,避免了通过严格布线定位资源时容易发生的混乱和错误。As a result, the architecture of the server system is simplified, and the hierarchical architecture is more targeted for hardware applications. When a resource fault occurs, firstly, according to the hook relationship of the faulty resource, the mounted control node is found by the host name, and then the location information inside the control node is used to quickly locate the physical location of the faulty resource, thereby realizing the rapid location of the resource. Positioning, while simplifying the complexity of the management software, the practical operation is less difficult, avoiding the confusion and errors that are easy to occur when locating resources through strict wiring.
各控制节点在发送注册请求进行登记后,主动将本地资源信息发送给收集单元130,收集单元130接收各控制节点的资源信息,并进行存储;或收集单元130定时从已登记的各控制节点收集资源信息,各控制节点实时更新其下挂的资源状态,以保证收集单元130获取的资源信息为准确地资源信息。After sending the registration request for registration, each control node actively sends the local resource information to the collecting unit 130, and the collecting unit 130 receives the resource information of each control node and stores it; or the collecting unit 130 periodically collects the collected control nodes. The resource information is updated in real time by each control node to ensure that the resource information acquired by the collecting unit 130 is accurate resource information.
由此,收集单元130获取已登记的各控制节点的资源信息。收集单元130获取的资源信息包括各资源的位置标识、所挂接的控制节点、当前使用状态、处理能力等。Thereby, the collecting unit 130 acquires resource information of each registered control node. The resource information acquired by the collecting unit 130 includes a location identifier of each resource, a connected control node, a current usage state, a processing capability, and the like.
收集单元130可以将控制节点的主机名和控制节点下挂的各资源信息建立对应关系,用于标识不同控制节点的资源。由此,收集单元130可以根据主机名查找到各控制节点下挂的资源信息,进行控制节点资源信息的数据查询或更新等。The collecting unit 130 may establish a correspondence between the host name of the control node and each resource information that is connected to the control node, and is used to identify resources of different control nodes. Therefore, the collecting unit 130 can search for resource information linked to each control node according to the host name, and perform data query or update of the control node resource information.
然后,收集单元130将各类资源根据资源信息分别合并形成资源池,例如CPU资源池、内存资源池、存储资源池和网络资源池等,用于处理业务时根据业务需求组合成逻辑服务器。Then, the collecting unit 130 combines the various types of resources according to the resource information to form a resource pool, for example, a CPU resource pool, a memory resource pool, a storage resource pool, and a network resource pool, and is used to process the services into a logical server according to the business requirements.
收集单元130将各控制节点的资源信息存储在CMDB。需要说明的是,存储资源信息的CMDB可以根据存储的数据量、环境规模等实际情况进行配置。The collecting unit 130 stores the resource information of each control node in the CMDB. It should be noted that the CMDB storing the resource information may be configured according to the actual situation such as the amount of stored data and the size of the environment.
在本实施例中,分配单元110接收各控制节点的配置请求,向控制节点分配动态地址;然后,登记单元120获取控制节点基于动态地址发送的注册信息,并登记控制节点;然后,收集单元130获取已登记控制节点下挂的资源信息。本实施例通过资源管理装置向控制节点分配动态地址,注册控制节点,有效提升了地址使用效率和资源管理装置的管理效率,避免失效控制节点占用资源;同时,资源管理装置能够及时获取有效控制节点的资源信息,数据有序、规整,便于后续对资源的管理。In this embodiment, the allocating unit 110 receives the configuration request of each control node, and allocates a dynamic address to the control node; then, the registration unit 120 acquires the registration information sent by the control node based on the dynamic address, and registers the control node; then, the collecting unit 130 Obtain the resource information of the registered control node. In this embodiment, the resource management device allocates a dynamic address to the control node, registers the control node, effectively improves the address usage efficiency and the management efficiency of the resource management device, and avoids the resource occupied by the failure control node; at the same time, the resource management device can acquire the effective control node in time. The resource information, the data is orderly and regular, and it is convenient for subsequent management of resources.
进一步的,参照图9,本发明资源管理装置第三实施例提供一种资源管理装置,基于上述图7或图8所示的实施例(本实施例以图8进行举例说明),所述组装模块200包括: Further, referring to FIG. 9, the third embodiment of the resource management apparatus of the present invention provides a resource management apparatus, which is based on the embodiment shown in FIG. 7 or FIG. 8 (this embodiment is illustrated by FIG. 8). Module 200 includes:
过滤单元210,用于根据收到的业务请求,对所述资源信息进行过滤。The filtering unit 210 is configured to filter the resource information according to the received service request.
在获取各控制节点的资源信息后,组装模块200根据业务请求,进行资源组装。After acquiring the resource information of each control node, the assembly module 200 performs resource assembly according to the service request.
具体的,作为一种实施方式,首先,过滤单元210接收业务请求,例如电信业务,可以通过远程PC(personal computer,个人电脑)等终端发送给资源管理装置。业务请求可以携带有业务类型、处理业务所需要的资源、对各资源的规格要求等信息,可根据实际需要灵活设置。Specifically, as an implementation manner, first, the filtering unit 210 receives a service request, such as a telecommunication service, and may send the information to the resource management device through a terminal such as a remote PC (personal computer). A service request may carry information such as a service type, a resource required for processing a service, and a specification requirement for each resource, and may be flexibly set according to actual needs.
然后,过滤单元210根据处理业务请求的所需要的资源,从已存储的各类资源池中,筛选出处理本次业务请求所需要的资源池。Then, the filtering unit 210 filters out the resource pools required for processing the current service request from the stored resource pools according to the required resources for processing the service request.
然后,过滤单元210根据业务请求对资源的规格要求和各资源信息,对各资源池中的资源进行过滤,筛选出符合要求的资源。例如,业务请求限制多核CPU的核数,则过滤单元210过滤掉CPU资源池中,核数不满足要求的CPU,也即过滤掉不满足要求的CPU资源信息;业务请求也可以限制内存的存储量,则过滤单元210根据业务请求设置的参数,过滤掉内存资源池中不满足参数要求的内存资源,也即过滤掉不满足要求的内存资源信息;业务请求还可以限制网络流量,则过滤单元210根据业务请求设置的参数,过滤掉网络资源池中不满足参数要求的网络资源,也即过滤掉不满足要求的网络资源信息。Then, the filtering unit 210 filters the resources in each resource pool according to the resource requirements and the resource information according to the service request, and filters out the resources that meet the requirements. For example, if the service request limits the number of cores of the multi-core CPU, the filtering unit 210 filters out the CPU in the CPU resource pool, and the number of cores does not meet the requirements, that is, filters out CPU resource information that does not meet the requirements; the service request may also limit the memory storage. The filtering unit 210 filters out the memory resources in the memory resource pool that do not meet the parameter requirements according to the parameters set by the service request, that is, filters out the memory resource information that does not meet the requirement; the service request can also limit the network traffic, and the filtering unit The network resource of the network resource pool that does not meet the parameter requirement is filtered out according to the parameter set by the service request, that is, the network resource information that does not meet the requirement is filtered out.
由此,过滤单元210根据业务请求,过滤掉了资源池中能不满足业务处理需求的资源,也即过滤掉了不能满足业务处理需求的资源信息。Therefore, the filtering unit 210 filters out resources in the resource pool that cannot meet the service processing requirements according to the service request, that is, filters out resource information that cannot meet the service processing requirements.
过滤后得到的资源信息,满足处理本次业务请求的要求。The resource information obtained after filtering meets the requirements for processing the current service request.
权重单元220,用于根据预设的权重算法和过滤得到的资源信息,选取服务资源并获取所述服务资源的信息。The weighting unit 220 is configured to select a service resource and obtain information about the service resource according to the preset weight algorithm and the filtered resource information.
在对资源信息进行过滤后,权重单元220根据预设的权重算法和过滤得到的资源信息,选取资源作为组装逻辑服务器的服务资源。After the resource information is filtered, the weighting unit 220 selects the resource as the service resource of the assembly logical server according to the preset weight algorithm and the filtered resource information.
具体的,作为一种实施方式,首先,权重单元220根据预设的权重算法和过滤得到的资源信息,选取适于组装逻辑服务器的资源。Specifically, as an implementation manner, first, the weight unit 220 selects resources suitable for assembling the logical server according to the preset weight algorithm and the filtered resource information.
例如,预设的权重算法设置有CPU与内存的距离参数,则权重单元220根据距离参数和资源信息,选取满足要求的CPU和内存,避免CPU与内存距离过远导致数据传输异常。For example, if the preset weight algorithm is configured with a distance parameter between the CPU and the memory, the weight unit 220 selects the CPU and the memory that meet the requirements according to the distance parameter and the resource information, and avoids the data transmission abnormality caused by the CPU and the memory being too far apart.
需要说明的是,预设的权重算法可根据实际情况灵活设置,用于设置参数条件,使获取的资源组合得到的逻辑服务器能够达到处理速度、存储占用率等性能均衡或最优。It should be noted that the preset weight algorithm can be flexibly set according to actual conditions, and is used to set parameter conditions, so that the logical server obtained by the acquired resource combination can achieve performance balance or optimal performance such as processing speed and storage occupancy.
由此,权重单元220得到用于组装逻辑服务器的资源,并将得到的各资源作为组装逻辑服务器的服务资源。根据选取的服务资源,可以组装得到逻辑服务器,用于处理本次业务请求。Thereby, the weight unit 220 obtains resources for assembling the logical server, and uses each obtained resource as a service resource of the assembly logical server. According to the selected service resources, a logical server can be assembled to process the current service request.
然后,权重单元220获取各服务资源的信息。各服务资源的信息包括:各服务资源的位置标识、所挂接的控制节点、当前使用状态、处理能力等,可根据实际需要灵活设置。Then, the weight unit 220 acquires information of each service resource. The information of each service resource includes: the location identifier of each service resource, the connected control node, the current usage status, and the processing capability, and can be flexibly set according to actual needs.
生成单元230,用于根据所述服务资源信息,生成组装请求。The generating unit 230 is configured to generate an assembly request according to the service resource information.
在获取服务资源信息后,生成单元230根据服务资源信息生成组装请求。 After acquiring the service resource information, the generating unit 230 generates an assembly request based on the service resource information.
其中,组装请求包括各服务资源的信息,也即被选取的、本次组装逻辑服务器所需的各资源信息,例如各服务资源的位置标识、所挂接的控制节点、各资源的连接关系等。The assembly request includes information of each service resource, that is, selected resource information required for assembling the logical server, such as location identifier of each service resource, connected control node, connection relationship of each resource, and the like. .
在本实施例中,过滤单元210根据收到的业务请求,对资源信息进行过滤;然后,权重单元220根据预设的权重算法和过滤得到的资源信息,选取服务资源并获取服务资源的信息;然后,生成单元230根据服务资源信息,生成组装请求。本实施例实现了组装逻辑服务器资源的优选,简化了资源的选取流程,选取得到的服务资源能够更加高效的处理业务请求。In this embodiment, the filtering unit 210 filters the resource information according to the received service request. Then, the weighting unit 220 selects the service resource and obtains the information of the service resource according to the preset weight algorithm and the filtered resource information. Then, the generating unit 230 generates an assembly request based on the service resource information. This embodiment implements the optimization of assembling logical server resources, simplifies the process of selecting resources, and selects the obtained service resources to process service requests more efficiently.
进一步的,参照图10,本发明资源管理装置第四实施例提供一种资源管理装置,基于上述图9所示的实施例,所述处理模块300包括:Further, referring to FIG. 10, a fourth embodiment of the resource management apparatus of the present invention provides a resource management apparatus. The processing module 300 includes:
请求单元310,用于将所述组装请求发送给所述服务资源挂接的控制节点。The requesting unit 310 is configured to send the assembly request to the control node that is attached to the service resource.
在得到组装请求后,处理模块300根据组装请求,使控制节点组装逻辑服务器处理业务请求。After the assembly request is obtained, the processing module 300 causes the control node to assemble the logical server to process the service request according to the assembly request.
具体的,作为一种实施方式,首先,请求单元310根据组装请求中的各服务资源信息,将组装请求分别发送给各服务资源所挂接的控制节点。Specifically, as an implementation manner, first, the requesting unit 310 separately sends an assembly request to the control node to which each service resource is attached according to each service resource information in the assembly request.
请求单元310发送的组装请求包括各控制节点中被选取作为服务资源的资源信息,各服务资源的连接关系等。The assembly request sent by the requesting unit 310 includes resource information selected as a service resource in each control node, a connection relationship of each service resource, and the like.
组装单元320,用于控制所述服务资源挂接的控制节点根据所述组装请求,组装逻辑服务器。The assembling unit 320, the control node for controlling the service resource hooking, assembles the logical server according to the assembly request.
将组装请求发送给各服务资源挂接的控制节点后,作为一种实施方式,首先,组装单元320分别控制各控制节点根据组装请求,查找到各控制节点挂接的资源中、被选择用于组装逻辑服务器的资源,也即查找服务资源。After the assembly request is sent to the control node to which the service resource is attached, as an implementation manner, first, the assembly unit 320 controls each control node to find, according to the assembly request, the resources that are connected to each control node, and is selected to be used for Assemble the resources of the logical server, that is, find the service resources.
然后,各控制节点根据组装请求,将位于不同控制节点上的各服务资源进行相互连接,组装成逻辑服务器。Then, each control node interconnects the service resources located on different control nodes according to the assembly request, and assembles them into a logical server.
其中,控制节点DMC与子网内部的BMC进行交互,访问具体的资源。需要说明的是,DMC与BMC的交互协议可以是IPMI协议,也可以是HTTP,也可以是其他交互协议,可根据实际需要灵活设置。The control node DMC interacts with the BMC inside the subnet to access specific resources. It should be noted that the interaction protocol between the DMC and the BMC may be the IPMI protocol, the HTTP protocol, or other interaction protocols, and may be flexibly set according to actual needs.
由此,得到组装完成的逻辑服务器。逻辑服务器由各服务资源连接组成。Thereby, the assembled logical server is obtained. A logical server consists of a connection of service resources.
处理单元330,用于控制所述逻辑服务器处理所述业务请求。The processing unit 330 is configured to control the logical server to process the service request.
在完成组装逻辑服务器后,处理单元330或远程控制机根据本次业务处理的需求,为组装完成的逻辑服务器部署操作系统、云平台软件和其他用于业务处理的软件。After the logical server is assembled, the processing unit 330 or the remote control machine deploys an operating system, cloud platform software, and other software for business processing for the assembled logical server according to the requirements of the current business processing.
完成软件部署后,处理单元330控制逻辑服务器处理本次业务请求。After the software deployment is completed, the processing unit 330 controls the logical server to process the current service request.
逻辑服务器作为物理机,通过各服务资源,进行本次业务的处理。The logical server acts as a physical machine and processes the service through various service resources.
后续,处理单元330或远程控制机可以根据本次业务处理的需求,控制逻辑服务器中各服务资源挂接的控制节点,进行逻辑服务器的上电、下电、复位等操作。例如,需要对逻辑服务器进行上电操作时,处理单元330根据服务资源的信息,将上电操作请求发送给此服务资源所挂接的控制节点,控制节点收到上电操作请求后,进行相应的上电操作。Subsequently, the processing unit 330 or the remote control machine can control the control nodes connected to the service resources in the logical server according to the requirements of the current service processing, and perform operations such as power-on, power-off, and reset of the logical server. For example, when the logical server needs to be powered on, the processing unit 330 sends a power-on operation request to the control node that is connected to the service resource according to the information of the service resource, and after receiving the power-on operation request, the control node performs corresponding Power-on operation.
在本实施例中,请求单元310将组装请求发送给服务资源挂接的控制节点;然后, 组装单元320控制服务资源所挂接的控制节点根据组装请求,组装逻辑服务器;然后,处理单元330控制逻辑服务器处理业务请求。本实施例通过将组装请求发送给服务资源所挂接的控制节点,控制相应的控制节点连接服务资源,完成逻辑服务器的组装,进而处理业务请求。本实施例简化了逻辑服务器中各资源的组装流程,提升了资源管理效率。In this embodiment, the requesting unit 310 sends an assembly request to the control node to which the service resource is attached; then, The assembly unit 320 controls the control node to which the service resource is attached to assemble the logical server according to the assembly request; then, the processing unit 330 controls the logical server to process the service request. In this embodiment, the assembly request is sent to the control node that is connected to the service resource, and the corresponding control node is controlled to connect to the service resource, complete the assembly of the logical server, and then process the service request. This embodiment simplifies the assembly process of resources in the logical server and improves resource management efficiency.
进一步的,参照图11,本发明资源管理装置第五实施例提供一种资源管理装置,基于上述图10所示的实施例,所述资源管理装置还包括:Further, referring to FIG. 11, the fifth embodiment of the resource management apparatus of the present invention provides a resource management apparatus. The resource management apparatus further includes:
接收模块400,用于接收所述业务请求的撤销请求。The receiving module 400 is configured to receive a revocation request of the service request.
在进行业务请求处理时,或完后业务处理请求后,若接收模块400收到对于业务请求的撤销请求,则停止对此业务的处理,撤销处理此业务的逻辑服务器。When the service request processing is performed, or after the business processing request is completed, if the receiving module 400 receives the revocation request for the service request, the processing of the service is stopped, and the logical server that processes the service is revoked.
具体的,作为一种实施方式,远程控制机可根据实际需要,发出针对业务请求的撤销请求,撤销对于业务的处理。Specifically, as an implementation manner, the remote control machine may issue a revocation request for the service request according to actual needs, and cancel the processing for the service.
接收模块400接收远程控制机发送的撤销请求。其中,撤销请求携带有本次请求撤销的业务信息。The receiving module 400 receives the revocation request sent by the remote controller. The revocation request carries the business information that is revoked by the request.
拆分模块500,用于根据所述撤销请求,控制所述服务资源挂接的控制节点拆分所述逻辑服务器。The splitting module 500 is configured to, according to the revocation request, control a control node that is connected to the service resource to split the logical server.
在收到撤销请求后,作为一种实施方式,首先,拆分模块500根据撤销请求获取本次请求撤销的业务。After receiving the revocation request, as an implementation manner, first, the splitting module 500 acquires the service requested to be revoked according to the revocation request.
然后,拆分模块500根据本次请求撤销的业务,获取处理此业务的逻辑服务器信息,得到各服务资源的信息。Then, the splitting module 500 obtains the logical server information for processing the service according to the service that is requested to be revoked, and obtains the information of each service resource.
然后,拆分模块500根据各服务资源的信息,获取各服务资源所挂接的控制节点,并且,将撤销请求发送给各服务资源所挂接的控制节点。Then, the splitting module 500 acquires the control node to which each service resource is attached according to the information of each service resource, and sends the revocation request to the control node to which each service resource is attached.
控制节点收到撤销请求后,根据撤销请求,对服务资源进行下电操作,拆分组成逻辑服务器的各资源。After receiving the revocation request, the control node performs a power-off operation on the service resource according to the revocation request, and splits the resources that constitute the logical server.
由此,拆分模块500实现对逻辑服务器资源的拆分。Thus, the split module 500 implements splitting of logical server resources.
撤销模块600,用于撤销所述逻辑服务器。The revocation module 600 is configured to revoke the logical server.
在完成逻辑服务器资源的拆分后,撤销模块600撤销此逻辑服务器,停止此逻辑服务器的业务处理。After completing the splitting of the logical server resources, the undo module 600 revokes the logical server and stops the business processing of the logical server.
然后,收集模块100向各控制节点发出资源收集请求,收集各控制节点当前的资源信息;各控制节点实时更新其下挂的资源信息,并向收集模块100上报。Then, the collection module 100 sends a resource collection request to each control node, and collects the current resource information of each control node; each control node updates the resource information of the control node in real time, and reports the information to the collection module 100.
收集模块100收到各控制节点资源信息后,根据各控制节点的主机名,将各控制节点对应的资源信息进行更新,实现CMDB的更新。After receiving the resource information of each control node, the collection module 100 updates the resource information corresponding to each control node according to the host name of each control node to update the CMDB.
需要说明的是,收集模块100可以更新当前管理网络中所有控制节点的资源信息,也可以仅更新拆分逻辑服务器的控制节点的资源信息,可根据实际需要灵活设置。It should be noted that the collection module 100 may update the resource information of all the control nodes in the current management network, or may only update the resource information of the control node of the split logical server, and may be flexibly set according to actual needs.
在本实施例中,接收模块400接收针对业务请求的撤销请求;然后,拆分模块500根据撤销请求,控制所述服务资源所挂接的控制节点拆分逻辑服务器;并撤销模块600撤销所述逻辑服务器,然后收集模块100更新资源信息,用于后续其他逻辑服务器的组装。本实施例通过对逻辑服务器的拆分,释放资源并更新资源信息,提升了资源的使用效率,释放的资源可用于其他业务的处理,保证了资源管理的有序性,简 化了对资源的管理。In this embodiment, the receiving module 400 receives the revocation request for the service request; then, the splitting module 500 controls the control node connected to the service resource to split the logical server according to the revocation request; and the revocation module 600 revokes the The logical server then collects the module 100 to update the resource information for subsequent assembly of other logical servers. In this embodiment, by splitting the logical server, releasing the resource and updating the resource information, the resource use efficiency is improved, and the released resource can be used for processing other services, thereby ensuring the orderly management of the resource. The management of resources has been reduced.
参照图12,本发明资源管理系统第一实施例提供一种资源管理系统,所述资源管理系统包括管理节点A和控制节点B,其中:Referring to FIG. 12, a first embodiment of the resource management system of the present invention provides a resource management system, where the resource management system includes a management node A and a control node B, where:
所述管理节点A包括如收集模块100、组装模块200、处理模块300、接收模块400、拆分模块500和撤销模块600。The management node A includes, for example, a collection module 100, an assembly module 200, a processing module 300, a receiving module 400, a split module 500, and an undo module 600.
本发明主要应用于资源管理,本实施例以机柜服务器系统的资源管理进行举例说明,本发明提出的资源管理方法简化了现有机柜服务器组网和布线,优化了管理网络,提升了机柜服务器系统的实用性。The present invention is mainly applied to resource management. In this embodiment, the resource management method of the cabinet server system is used as an example. The resource management method proposed by the present invention simplifies the networking and wiring of the existing cabinet server, optimizes the management network, and improves the cabinet server system. Practicality.
具体的,作为一种实施方式,首先,初始化机柜服务器系统的管理网络。Specifically, as an implementation manner, first, a management network of the rack server system is initialized.
其中,管理网络包括管理节点A和控制节点B。管理节点A为manager,例如PODM(POD Manager,POD数据管理节点),作为管理终端,管理服务器资源和逻辑服务器,例如资源的发现、分配和回收;控制节点B为controller,例如DMC(Drawer Management Controller,抽屉管理控制器),作为管理网络的交换节点,用于对其所包含的资源进行发现和组装,并以client(客户端)与管理节点A进行协作,完成资源管理;控制节点B还可以包括网络交换机,例如ToR交换机(Top of Rack,架顶交换机),ToR交换机可以下挂资源用于管理服务器的网络资源的管理、交换;当然,ToR交换机也可以不下挂资源,不作为控制节点管理网络资源,仅用于网络交换。The management network includes a management node A and a control node B. Management node A is a manager, such as PODM (POD Manager, POD Data Management Node), as a management terminal, management server resources and logical servers, such as resource discovery, allocation, and recycling; control node B is a controller, such as DMC (Drawer Management Controller) , drawer management controller), as a switching node of the management network, for discovering and assembling the resources it contains, and collaborating with the management node A by the client (client) to complete resource management; the control node B can also Including network switches, such as ToR switches (Top of Rack), ToR switches can be used to manage and exchange network resources of servers. Of course, ToR switches can also be used as control nodes. Network resources, only for network switching.
本实施例以管理节点A为PODM、控制节点B为DMC,ToR交换机仅用于网络交换进行举例说明。控制节点B可包括多个DMC和ToR交换机。In this embodiment, the management node A is a PODM, the control node B is a DMC, and the ToR switch is used only for network switching. Control Node B may include multiple DMC and ToR switches.
管理网络初始化时,DMC的交换模块启动,ToR交换机启动。然后,DMC交换模块和ToR交换机进行选举、收敛,形成无环树形网络,任意节点均可以与其他节点互联,以保证任意节点发生故障时,可重新收敛形成无环树形网络,提升管理网络的可靠性。When the management network is initialized, the DMC switch module is started and the ToR switch is started. Then, the DMC switch module and the ToR switch perform election and convergence to form an acyclic tree network. Any node can be interconnected with other nodes to ensure that any node fails to reconverge to form an acyclic tree network and improve the management network. Reliability.
管理节点A可挂接于无环树形网络的任意节点,进行管理。Management node A can be attached to any node of the acyclic tree network for management.
管理节点A收集模块100定时从各控制节点收集资源信息,各控制节点B实时更新其下挂的资源状态,以保证收集模块100获取的资源信息为准确地资源信息。或者管理节点A的收集模块100接收各控制节点的资源信息,并进行存储。需要说明的是,各控制节点B主动收集其下挂的各项本地资源信息,并主动将本地资源信息发送给管理节点A。The management node A collection module 100 periodically collects resource information from each control node, and each control node B updates its resource status in real time to ensure that the resource information acquired by the collection module 100 is accurate resource information. Or the collection module 100 of the management node A receives the resource information of each control node and stores it. It should be noted that each control node B actively collects various local resource information that is connected to it, and actively sends the local resource information to the management node A.
由此,收集模块100获取各控制节点的资源信息。其中,收集模块100获取的资源信息包括各资源的位置标识、所挂接的控制节点B、当前使用状态、处理能力等。Thereby, the collection module 100 acquires resource information of each control node. The resource information acquired by the collection module 100 includes a location identifier of each resource, a connected control node B, a current usage state, a processing capability, and the like.
然后,收集模块100将各类资源根据资源信息分别合并形成资源池,例如CPU资源池、内存资源池、存储资源池和网络资源池等,用于处理业务时根据业务需求组合成逻辑服务器。Then, the collection module 100 combines various resources according to the resource information to form a resource pool, such as a CPU resource pool, a memory resource pool, a storage resource pool, and a network resource pool, and is combined into a logical server according to service requirements when processing the service.
收集模块100可以将各控制节点的资源信息存储在CMDB(Configuration Management Database,配置管理数据库),并根据后续获取的控制节点资源信息进行数据更新。The collection module 100 may store the resource information of each control node in a CMDB (Configuration Management Database), and perform data update according to the subsequently acquired control node resource information.
然后,组装模块200接收业务请求,并根据业务请求的类型,从预置的资源分配表中获取本次业务请求对应的各资源规格要求,然后从已获取的资源信息中,挑选出 符合条件的各项资源;或者组装模块200可以根据业务请求携带的对资源的各项要求,从已获取的资源信息中,挑选出符合条件的各项资源。Then, the assembly module 200 receives the service request, and obtains the resource specification requirements corresponding to the current service request from the preset resource allocation table according to the type of the service request, and then selects the resource information from the acquired resource information. Each resource that meets the requirements; or the assembly module 200 may select various resources that meet the requirements from the acquired resource information according to the requirements of the resource carried by the service request.
由此,组装模块200得到适于处理本次业务请求的各项资源,并将得到的各项资源作为本次处理业务请求的服务资源。然后,组装模块200根据选取的服务资源信息生成组装请求。组装请求包括各服务资源信息,也即被选取的、本次组装逻辑服务器所需的各资源信息,例如各服务资源的位置标识、所挂接的控制节点、各服务资源的连接关系等。Therefore, the assembly module 200 obtains various resources suitable for processing the current service request, and uses the obtained resources as the service resource for processing the service request. Then, the assembly module 200 generates an assembly request according to the selected service resource information. The assembly request includes each service resource information, that is, the selected resource information required for assembling the logical server, such as the location identifier of each service resource, the connected control node, and the connection relationship of each service resource.
然后,处理模块300根据组装请求中的各服务资源信息,将组装请求分别发送给各服务资源所挂接的控制节点B。Then, the processing module 300 sends the assembly request to the control node B to which each service resource is attached according to each service resource information in the assembly request.
各控制节点B收到组装请求后,处理模块300分别控制各控制节点B根据组装请求,查找到各控制节点挂接的资源中、被选择用于组装逻辑服务器的资源,也即服务资源。After each control node B receives the assembly request, the processing module 300 controls each control node B to find, according to the assembly request, the resources selected by the control nodes and the resources selected for assembling the logical server, that is, the service resources.
然后,各控制节点B根据组装请求,将位于不同控制节点上的各服务资源进行相互连接,组装逻辑服务器。Then, each control node B connects the service resources located on different control nodes to each other according to the assembly request, and assembles the logical server.
然后,处理模块300或远程控制机根据本次业务处理的需求,为组装完成的逻辑服务器部署操作系统、云平台软件和其他用于业务处理的软件。Then, the processing module 300 or the remote control machine deploys an operating system, cloud platform software, and other software for business processing for the assembled logical server according to the requirements of the current business processing.
完成软件部署后,处理模块300控制逻辑服务器处理本次业务请求。After the software deployment is completed, the processing module 300 controls the logical server to process the current service request.
逻辑服务器作为物理机,通过各服务资源,进行本次业务的处理。The logical server acts as a physical machine and processes the service through various service resources.
在完成业务处理后,若远程控制机发出撤销请求,则接收模块400接收撤销请求。After the business process is completed, if the remote control machine issues a revocation request, the receiving module 400 receives the revocation request.
然后,拆分模块500根据撤销请求获取本次请求撤销的业务,并根据本次请求撤销的业务,获取处理此业务的逻辑服务器信息,得到各服务资源的信息。Then, the splitting module 500 acquires the service that is requested to be revoked according to the revocation request, and obtains the logical server information for processing the service according to the service that is revoked by the current request, and obtains the information of each service resource.
然后,拆分模块500根据各服务资源的信息,获取各服务资源所挂接的控制节点B,并且,将撤销请求发送给各服务资源所挂接的控制节点B。Then, the splitting module 500 acquires the control node B to which each service resource is attached according to the information of each service resource, and sends the revocation request to the control node B to which each service resource is attached.
控制节点B收到撤销请求后,根据撤销请求,对服务资源进行下电操作,拆分组成逻辑服务器的各资源。After receiving the revocation request, the control node B performs a power-off operation on the service resource according to the revocation request, and splits the resources that constitute the logical server.
然后,撤销模块600撤销此逻辑服务器,停止此逻辑服务器的处理业务。Then, the undo module 600 revokes the logical server and stops the processing service of the logical server.
所述控制节点B,用于向所述管理节点A注册;收集其下挂的资源信息,并上报给所述管理节点A;根据所述管理节点A发送的组装请求组装逻辑服务器;根据所述管理节点A发送的撤销请求拆分所述逻辑服务器。The control node B is configured to register with the management node A; collect the resource information of the connection node B and report it to the management node A; assemble the logical server according to the assembly request sent by the management node A; The revocation request sent by the management node A splits the logical server.
控制节点B在上电后,主动向管理节点A发送DHCP请求,请求分配动态地址。收到管理节点A分配的动态地址后,控制节点B向管理节点A发送注册请求,进行登记。After power-on, the control node B actively sends a DHCP request to the management node A to request allocation of a dynamic address. Upon receiving the dynamic address assigned by the management node A, the control node B sends a registration request to the management node A to register.
同时,控制节点B主动收集其下挂的各项本地资源信息。各控制节点B下挂的资源包括处理器、内存、存储、网络资源等,可根据实际需要灵活设置。各控制节点B收集的资源信息包括各资源的位置标识、当前使用状态、处理能力等。At the same time, the control node B actively collects various local resource information linked thereto. The resources that are connected to each control node B include the processor, memory, storage, network resources, etc., and can be flexibly set according to actual needs. The resource information collected by each control node B includes location identifiers, current usage states, processing capabilities, and the like of the resources.
在完成登记后,各控制节点B主动将本地资源信息发送给管理节点A,管理节点A接收各控制节点的资源信息,并进行存储;或管理节点A定时从各控制节点B收集资源信息,各控制节点B实时更新其下挂的资源状态,以保证管理节点A获取的资源信息为准确地资源信息。 After the registration is completed, each control node B actively sends local resource information to the management node A, and the management node A receives the resource information of each control node and stores it; or the management node A periodically collects resource information from each control node B, each The control node B updates the state of the resource under its control in real time to ensure that the resource information acquired by the management node A is accurate resource information.
若控制节点B收到管理节点A发送的组装请求,则根据组装请求,查找其挂接的资源中,被选择用于组装逻辑服务器的资源,也即查找服务资源。然后,控制节点B根据组装请求,将位于不同控制节点B上的各服务资源进行相互连接,组装成逻辑服务器。If the control node B receives the assembly request sent by the management node A, it searches for the resources of the attached logical server, that is, the service resource, according to the assembly request. Then, the control node B connects the service resources located on the different control nodes B to each other according to the assembly request, and assembles them into a logical server.
若控制节点B收到管理节点A发送撤销请求,则根据撤销请求,查找其挂接的资源中的服务资源,然后对服务资源进行下电操作,逻辑服务器。If the control node B receives the revocation request from the management node A, it searches for the service resource in the resource to which it is attached according to the revocation request, and then performs a power-off operation on the service resource, the logical server.
在本实施例中,资源管理系统包括管理节点A和控制节点B;其中,控制节点B发现、收集其下挂的资源的信息并上报给管理节点A;管理节点A将控制节点B下挂的资源分别合并形成资源池,然后根据业务请求,从资源池中筛选出服务资源,由控制节点B将服务资源组装成逻辑服务器进行业务处理。完成业务处理后,管理节点A可以根据撤销请求,使控制节点B拆分逻辑服务器,释放资源。本实施例降低了管理软件的复杂度,同时简化了服务器系统的组网、布线,通过管理节点和控制节点实现了对资源管理的简化,优化了服务器资源管理的平面结构,对服务器系统中各资源的管理更加简便,提升了资源管理的效率。In this embodiment, the resource management system includes a management node A and a control node B. The control node B discovers and collects the information of the resources that are hanged and reports the information to the management node A. The management node A hangs the control node B. The resources are merged to form a resource pool, and then the service resources are filtered out from the resource pool according to the service request, and the control node B assembles the service resources into a logical server for service processing. After the service processing is completed, the management node A can split the logical server and release the resources according to the revocation request. In this embodiment, the complexity of the management software is reduced, and the networking and wiring of the server system are simplified, and the resource management is simplified by the management node and the control node, and the plane structure of the server resource management is optimized, and each of the server systems is optimized. The management of resources is easier and the efficiency of resource management is improved.
本申请实施例提供的装置中的各个模块或单元可以通过一个或多个数字信号处理器(DSP)、专用集成电路(ASIC)、处理器、微处理器、控制器、微控制器、现场可编程阵列(FPGA)、可编程逻辑器件或其他电子单元或其任意组合来实现。在本申请实施例中描述的一些功能或处理也可以通过在处理器上执行的软件来实现。The modules or units in the apparatus provided by the embodiments of the present application may pass through one or more digital signal processors (DSPs), application specific integrated circuits (ASICs), processors, microprocessors, controllers, microcontrollers, and on-site Implemented by a programming array (FPGA), programmable logic device, or other electronic unit, or any combination thereof. Some of the functions or processes described in this application embodiment may also be implemented by software executing on a processor.
例如,本发明的实施例还提供了一种资源管理装置装置,例如该装置可以应用于一管理终端,包括:For example, the embodiment of the present invention further provides a resource management device, for example, the device can be applied to a management terminal, including:
处理器;processor;
用于存储处理器可执行指令的存储器;a memory for storing processor executable instructions;
其中,所述处理器被配置为:Wherein the processor is configured to:
获取各控制节点下挂的资源信息;Obtaining resource information linked by each control node;
根据收到的业务请求和所述资源信息,生成组装请求;Generating an assembly request according to the received service request and the resource information;
根据所述组装请求,控制所述控制节点组装逻辑服务器,处理所述业务请求。And controlling, according to the assembly request, the control node to assemble a logical server to process the service request.
工业实用性Industrial applicability
本发明可以应用于服务器资源管理技术领域。本发明提出的实施例通过管理节点获取各控制节点下挂的资源信息;根据收到的业务请求和资源信息,生成组装请求;根据组装请求,控制节点组装逻辑服务器,处理业务请求。这样就可以通过控制节点直接与管理节点交互进行资源管理,降低了管理软件的复杂度,同时简化了服务器系统的组网、布线,实现了服务器系统管理网络结构的优化,使服务器系统中各资源的管理更加简便,提升了资源管理的效率。The invention can be applied to the field of server resource management technology. The embodiment of the present invention obtains the resource information of each control node by using the management node; generates an assembly request according to the received service request and the resource information; and according to the assembly request, the control node assembles the logical server to process the service request. In this way, the control node can directly interact with the management node for resource management, which reduces the complexity of the management software, and simplifies the networking and wiring of the server system, realizes the optimization of the server system management network structure, and makes the resources in the server system. The management is easier and the efficiency of resource management is improved.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。 The above are only the preferred embodiments of the present invention, and are not intended to limit the scope of the invention, and the equivalent structure or equivalent process transformations made by the description of the present invention and the drawings are directly or indirectly applied to other related technical fields. The same is included in the scope of patent protection of the present invention.

Claims (11)

  1. 一种资源管理方法,其中,所述资源管理方法包括以下步骤:A resource management method, wherein the resource management method comprises the following steps:
    管理节点获取各控制节点下挂的资源信息;The management node obtains resource information linked by each control node;
    根据收到的业务请求和所述资源信息,生成组装请求;Generating an assembly request according to the received service request and the resource information;
    根据所述组装请求,控制所述控制节点组装逻辑服务器,处理所述业务请求。And controlling, according to the assembly request, the control node to assemble a logical server to process the service request.
  2. 如权利要求1所述的资源管理方法,其中,所述管理节点获取各控制节点下挂的资源信息的步骤包括:The resource management method according to claim 1, wherein the step of the management node acquiring the resource information of each control node comprises:
    接收各控制节点的配置请求,向所述控制节点分配动态地址;Receiving a configuration request of each control node, and assigning a dynamic address to the control node;
    获取所述控制节点基于所述动态地址发送的注册信息,并登记所述控制节点;Obtaining registration information that is sent by the control node based on the dynamic address, and registering the control node;
    获取所述已登记控制节点下挂的资源信息。Obtaining resource information that is linked by the registered control node.
  3. 如权利要求1或2所述的资源管理方法,其中,所述根据收到的业务请求和所述资源信息,生成组装请求的步骤包括:The resource management method according to claim 1 or 2, wherein the step of generating an assembly request according to the received service request and the resource information comprises:
    根据收到的业务请求,对所述资源信息进行过滤;Filtering the resource information according to the received service request;
    根据预设的权重算法和过滤得到的资源信息,选取服务资源并获取所述服务资源的信息;Obtaining the service resource and obtaining the information of the service resource according to the preset weight algorithm and the filtered resource information;
    根据所述服务资源信息,生成组装请求。An assembly request is generated based on the service resource information.
  4. 如权利要求3所述的资源管理方法,其中,所述根据所述组装请求,控制所述控制节点组装逻辑服务器,处理所述业务请求的步骤包括:The resource management method according to claim 3, wherein the controlling the control node to assemble the logical server according to the assembly request, and processing the service request comprises:
    将所述组装请求发送给所述服务资源挂接的控制节点;Sending the assembly request to the control node of the service resource hook;
    控制所述服务资源挂接的控制节点根据所述组装请求,组装逻辑服务器;a control node that controls the connection of the service resource to assemble a logical server according to the assembly request;
    控制所述逻辑服务器处理所述业务请求。Controlling the logical server to process the service request.
  5. 如权利要求4所述的资源管理方法,其中,所述根据所述组装请求,控制所述控制节点组装逻辑服务器,处理所述业务请求的步骤之后,还包括:The resource management method according to claim 4, wherein the step of controlling the control node to assemble the logical server and processing the service request according to the assembly request further comprises:
    接收所述业务请求的撤销请求;Receiving a revocation request of the service request;
    根据所述撤销请求,控制所述服务资源挂接的控制节点拆分所述逻辑服务器;Determining, by the control node that the service resource is attached, the logical server according to the revocation request;
    撤销所述逻辑服务器,并转入执行步骤:管理节点获取各控制节点下挂的资源信息。The logical server is revoked, and the execution step is performed: the management node acquires resource information linked by each control node.
  6. 一种资源管理装置,其中,所述资源管理装置包括:A resource management device, wherein the resource management device comprises:
    收集模块,设置为管理节点获取各控制节点下挂的资源信息;The collection module is configured to obtain the resource information of each control node by the management node;
    组装模块,设置为根据收到的业务请求和所述资源信息,生成组装请求;An assembly module, configured to generate an assembly request according to the received service request and the resource information;
    处理模块,设置为根据所述组装请求,控制所述控制节点组装逻辑服务器,处理所述业务请求。The processing module is configured to control the control node to assemble the logical server to process the service request according to the assembly request.
  7. 如权利要求6所述的资源管理装置,其中,所述收集模块包括: The resource management device of claim 6, wherein the collection module comprises:
    分配单元,设置为接收各控制节点的配置请求,向所述控制节点分配动态地址;An allocating unit, configured to receive a configuration request of each control node, and allocate a dynamic address to the control node;
    登记单元,设置为获取所述控制节点基于所述动态地址发送的注册信息,并登记所述控制节点;a registration unit, configured to acquire registration information sent by the control node based on the dynamic address, and register the control node;
    收集单元,设置为获取所述已登记控制节点下挂的资源信息。The collecting unit is configured to obtain resource information that is linked by the registered control node.
  8. 如权利要求6或7所述的资源管理装置,其中,所述组装模块包括:The resource management device according to claim 6 or 7, wherein the assembly module comprises:
    过滤单元,设置为根据收到的业务请求,对所述资源信息进行过滤;a filtering unit, configured to filter the resource information according to the received service request;
    权重单元,设置为根据预设的权重算法和过滤得到的资源信息,选取服务资源并获取所述服务资源的信息;a weight unit, configured to select a service resource according to a preset weight algorithm and filtered resource information, and obtain information about the service resource;
    生成单元,设置为根据所述服务资源信息,生成组装请求。The generating unit is configured to generate an assembly request according to the service resource information.
  9. 如权利要求8所述的资源管理装置,其中,所述处理模块包括:The resource management device of claim 8, wherein the processing module comprises:
    请求单元,设置为将所述组装请求发送给所述服务资源挂接的控制节点;a requesting unit, configured to send the assembly request to a control node that is attached to the service resource;
    组装单元,设置为控制所述服务资源挂接的控制节点根据所述组装请求,组装逻辑服务器;An assembly unit, the control node configured to control the service resource hooking, assembling the logical server according to the assembly request;
    处理单元,设置为控制所述逻辑服务器处理所述业务请求。a processing unit configured to control the logical server to process the service request.
  10. 如权利要求9所述的资源管理装置,其中,所述资源管理装置还包括:The resource management device of claim 9, wherein the resource management device further comprises:
    接收模块,设置为接收所述业务请求的撤销请求;a receiving module, configured to receive a revocation request of the service request;
    拆分模块,设置为根据所述撤销请求,控制所述服务资源挂接的控制节点拆分所述逻辑服务器;a splitting module, configured to: according to the revocation request, control a control node that is connected to the service resource to split the logical server;
    撤销模块,设置为撤销所述逻辑服务器。The undo module is set to revoke the logical server.
  11. 一种资源管理系统,其中,所述资源管理系统包括管理节点和控制节点,其中:A resource management system, wherein the resource management system includes a management node and a control node, wherein:
    所述管理节点包括如权利要求6-10任一项所述的装置;The management node includes the apparatus of any one of claims 6-10;
    所述控制节点,设置为向所述管理节点注册;收集其下挂的资源信息,并上报给所述管理节点;根据所述管理节点发送的组装请求组装逻辑服务器;根据所述管理节点发送的撤销请求拆分所述逻辑服务器。 The control node is configured to register with the management node; collect the resource information of the connection node and report it to the management node; assemble the logical server according to the assembly request sent by the management node; and send according to the management node The undo request splits the logical server.
PCT/CN2016/107277 2016-01-18 2016-11-25 Resource management method, apparatus, and system WO2017124834A1 (en)

Applications Claiming Priority (2)

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

Publications (1)

Publication Number Publication Date
WO2017124834A1 true WO2017124834A1 (en) 2017-07-27

Family

ID=59339886

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/107277 WO2017124834A1 (en) 2016-01-18 2016-11-25 Resource management method, apparatus, and system

Country Status (2)

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

Cited By (1)

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

Families Citing this family (3)

* 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
CN109862134B (en) * 2019-03-18 2022-02-01 中国联合网络通信集团有限公司 Lease time configuration method and system of IP address and DHCP client
CN113472565B (en) * 2021-06-03 2024-02-20 北京闲徕互娱网络科技有限公司 Method, apparatus, device and computer readable medium for expanding server function

Citations (3)

* 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
WO2015130613A1 (en) * 2014-02-27 2015-09-03 Intel Corporation Techniques to allocate configurable computing resources
US20160011894A1 (en) * 2014-07-11 2016-01-14 Vmware, Inc. Methods and apparatus to configure virtual resource managers for use in virtual server rack deployments for virtual computing environments

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10142192B2 (en) * 2014-04-09 2018-11-27 International Business Machines Corporation Management of virtual machine resources in computing environments
US10530837B2 (en) * 2014-04-10 2020-01-07 International Business Machines Corporation Always-on monitoring in the cloud

Patent Citations (3)

* 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
WO2015130613A1 (en) * 2014-02-27 2015-09-03 Intel Corporation Techniques to allocate configurable computing resources
US20160011894A1 (en) * 2014-07-11 2016-01-14 Vmware, Inc. Methods and apparatus to configure virtual resource managers for use in virtual server rack deployments for virtual computing environments

Cited By (2)

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

Also Published As

Publication number Publication date
CN106982241A (en) 2017-07-25

Similar Documents

Publication Publication Date Title
TWI568231B (en) Method and system of automatic generation of server network topology
US10657012B2 (en) Dynamically changing members of a consensus group in a distributed self-healing coordination service
US8909758B2 (en) Physical server discovery and correlation
TWI469607B (en) Cloud server for managing hostnames and ip addresses, and management method for the cloud server
WO2017124834A1 (en) Resource management method, apparatus, and system
EP2922238A1 (en) Resource allocation method
US9088477B2 (en) Distributed fabric management protocol
CN110661641B (en) Virtual network function VNF deployment method and device
CN103607430A (en) Network processing method and system, and network control center
US10868581B2 (en) Data center management using device identification over power-line
US7966394B1 (en) Information model registry and brokering in virtualized environments
US8819200B2 (en) Automated cluster node configuration
CN112073555A (en) Method for configuring IP address, electronic device and computer readable storage medium
CN110196721B (en) Internet data center management method, system and medium
WO2015067051A1 (en) Test agent method and device thereof
JPWO2012153388A1 (en) Management information generation method, management information generation program, and management information generation apparatus
CN109150941B (en) Data center physical resource floating method
JP2015103827A (en) Management device, method, and program
CN108475210B (en) Rack sensing
US20140344419A1 (en) Computer system, method of controlling network interface
JP2012203625A (en) Logical server operation system and logical server operation method
CN103685015A (en) Extensible router task assignment method based on components
TWM643617U (en) Multi-cluster monitoring system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16886094

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16886094

Country of ref document: EP

Kind code of ref document: A1