CN116737364A - server - Google Patents
server Download PDFInfo
- Publication number
- CN116737364A CN116737364A CN202310530769.3A CN202310530769A CN116737364A CN 116737364 A CN116737364 A CN 116737364A CN 202310530769 A CN202310530769 A CN 202310530769A CN 116737364 A CN116737364 A CN 116737364A
- Authority
- CN
- China
- Prior art keywords
- processor
- controller
- node
- mode
- physical node
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5027—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
- G06F9/5044—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering hardware capabilities
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Hardware Redundancy (AREA)
Abstract
本申请实施例提供一种服务器,服务器包括基板管理控制器BMC、第一物理节点和第二物理节点;BMC分别与第一物理节点和第二物理节点电连接;第一物理节点和第二物理节点的硬件资源相互独立,BMC用于确定服务器的工作模式,工作模式为单节点模式或者双节点模式;其中,在工作模式为单节点模式的情况下,BMC控制第一物理节点和第二物理节点以主从模式运行;在工作模式为双节点模式的情况下,BMC控制第一物理节点和第二物理节点独立运行。在上述服务器中,可以根据业务需求,通过BMC来控制服务器在单节点模式和双节点模式之间灵活转换,提高了服务器应用时的灵活性。
An embodiment of the present application provides a server. The server includes a baseboard management controller BMC, a first physical node and a second physical node; the BMC is electrically connected to the first physical node and the second physical node respectively; the first physical node and the second physical node The hardware resources of the nodes are independent of each other. The BMC is used to determine the working mode of the server. The working mode is single node mode or dual node mode. When the working mode is single node mode, the BMC controls the first physical node and the second physical node. The node operates in master-slave mode; when the working mode is dual-node mode, the BMC controls the first physical node and the second physical node to operate independently. In the above-mentioned servers, the BMC can be used to control the server to flexibly switch between single-node mode and dual-node mode according to business needs, which improves the flexibility of server applications.
Description
技术领域Technical field
本申请实施例涉及服务器技术领域,尤其涉及一种服务器。The embodiments of the present application relate to the field of server technology, and in particular, to a server.
背景技术Background technique
通常会在计算设备(例如服务器)上部署不同的业务,但在一些数据安全性和运行可靠性要求高的场景下,会要求不同业务之间在运行时互相隔离。Different services are usually deployed on computing devices (such as servers). However, in some scenarios with high data security and operational reliability requirements, different services are required to be isolated from each other at runtime.
在相关技术中,可以将各业务单独部署在独立的计算设备中,以实现各业务在物理层面互相隔离。然而,在上述过程中,计算设备一旦投入使用其硬件配置不会频繁更换,由于每个业务的业务需求不同,若将每个业务单独部署在独立的计算设备中,计算设备的硬件资源将无法及时随着业务需求的增减而灵活改变,导致计算设备应用的灵活度较低。In related technologies, each business can be deployed separately in an independent computing device to achieve physical isolation of each business from each other. However, in the above process, once the computing device is put into use, its hardware configuration will not be changed frequently. Since the business requirements of each business are different, if each business is deployed separately in an independent computing device, the hardware resources of the computing device will not be able to Flexible changes in time as business needs increase or decrease, resulting in low flexibility in computing device applications.
发明内容Contents of the invention
本申请实施例提供了一种服务器,该服务器的工作模式可以根据业务需求在单节点模式和双节点模式之间灵活转换,使服务器在应用时更为灵活。Embodiments of the present application provide a server whose working mode can be flexibly converted between single-node mode and dual-node mode according to business requirements, making the server more flexible in application.
第一方面,本申请实施例提供一种服务器,所述服务器包括基板管理控制器BMC、第一物理节点、第二物理节点;所述BMC分别与所述第一物理节点和所述第二物理节点电连接;所述第一物理节点和所述第二物理节点的硬件资源相互独立;其中,In a first aspect, embodiments of the present application provide a server, which includes a baseboard management controller BMC, a first physical node, and a second physical node; the BMC is connected to the first physical node and the second physical node respectively. The nodes are electrically connected; the hardware resources of the first physical node and the second physical node are independent of each other; wherein,
所述BMC用于确定所述服务器的工作模式,所述工作模式为单节点模式或者双节点模式;The BMC is used to determine the working mode of the server, and the working mode is a single node mode or a dual node mode;
其中,在所述工作模式为所述单节点模式的情况下,所述BMC控制所述第一物理节点和所述第二物理节点以主从模式运行;Wherein, when the working mode is the single node mode, the BMC controls the first physical node and the second physical node to operate in a master-slave mode;
在所述工作模式为所述双节点模式的情况下,所述BMC控制所述第一物理节点和所述第二物理节点独立运行。When the working mode is the dual-node mode, the BMC controls the first physical node and the second physical node to operate independently.
上述技术方案的服务器中包含两个硬件资源相互独立的物理节点,对于这两个物理节点而言,每个物理节点既可以独立运行进行业务处理,又可以与另一个物理节点以主从模式运行进行业务处理,可以通过服务器中的BMC确定服务器的工作模式,并根据工作模式对服务器的物理节点的硬件资源进行配置,使得服务器可以在单节点模式和双节点模式之间进行灵活转换,提高了服务器在应用时的灵活性。The server of the above technical solution contains two physical nodes with independent hardware resources. For these two physical nodes, each physical node can run independently for business processing, and can also run in master-slave mode with another physical node. For business processing, the working mode of the server can be determined through the BMC in the server, and the hardware resources of the physical node of the server can be configured according to the working mode, so that the server can flexibly convert between single-node mode and dual-node mode, improving efficiency. Server flexibility in application.
在一种可能的实施方式中,所述第一物理节点包括第一处理器、第一控制器、第一DC-DC电源转换模块和第一电源;In a possible implementation, the first physical node includes a first processor, a first controller, a first DC-DC power conversion module and a first power supply;
所述第二物理节点包括第二处理器、第二控制器、第二DC-DC电源转换模块和第二电源,其中,The second physical node includes a second processor, a second controller, a second DC-DC power conversion module and a second power supply, wherein,
所述BMC分别与所述第一处理器、所述第二处理器、所述第一控制器和所述第二控制器电连接;The BMC is electrically connected to the first processor, the second processor, the first controller and the second controller respectively;
所述第一处理器分别与所述第一控制器、所述第一DC-DC电源转换模块和所述第二处理器电连接;The first processor is electrically connected to the first controller, the first DC-DC power conversion module and the second processor respectively;
所述第一控制器还分别与所述第一DC-DC电源转换模块和所述第二控制器电连接;The first controller is also electrically connected to the first DC-DC power conversion module and the second controller respectively;
所述第一DC-DC电源转换模块还与所述第一电源电连接;The first DC-DC power conversion module is also electrically connected to the first power supply;
所述第二处理器还分别与所述第二控制器和所述第二DC-DC电源转换模块电连接;The second processor is also electrically connected to the second controller and the second DC-DC power conversion module respectively;
所述第二DC-DC电源转换模块还分别与所述第二控制器和所述第二电源电连接。The second DC-DC power conversion module is also electrically connected to the second controller and the second power supply respectively.
在上述技术方案中,每个物理节点都具有单独的处理器、控制器、DC-DC电源转换模块和电源,并且BMC可以对每个物理节点中的处理器和控制器进行单独控制,使得每个物理节点可以在硬件资源上相互独立,有利于保障每个物理节点在单独进行业务处理时数据的安全性。In the above technical solution, each physical node has a separate processor, controller, DC-DC power conversion module and power supply, and the BMC can independently control the processor and controller in each physical node, so that each Physical nodes can be independent of each other in terms of hardware resources, which is beneficial to ensuring the security of data when each physical node performs business processing independently.
在一种可能的实施方式中,所述BMC还用于运行第一管理组件和第二管理组件,其中,In a possible implementation, the BMC is also used to run the first management component and the second management component, wherein,
所述第一管理组件用于管理所述第一物理节点;The first management component is used to manage the first physical node;
所述第二管理组件用于管理所述第二物理节点。The second management component is used to manage the second physical node.
在上述技术方案中,可以通过BMC中运行的两个管理组件分别对第一物理节点和第二物理节点单独进行管理,有利于保障每个物理节点在单独进行业务处理时数据的安全性。In the above technical solution, the first physical node and the second physical node can be managed separately through two management components running in the BMC, which is beneficial to ensuring the security of data when each physical node performs business processing independently.
在一种可能的实施方式中,在所述工作模式为所述单节点模式的情况下,所述BMC控制所述第一物理节点和所述第二物理节点以主从模式运行,包括:In a possible implementation, when the working mode is the single node mode, the BMC controls the first physical node and the second physical node to run in master-slave mode, including:
所述BMC用于:The BMC is used for:
将第一处理器确定为主处理器,以及将第二处理器确定为从处理器;identifying the first processor as the master processor and the second processor as the slave processor;
控制所述第一管理组件启动以及控制所述第二管理组件关闭;其中,所述第一管理组件用于管理所述第一处理器的运行状态和所述第二处理器的运行状态;Control the startup of the first management component and the shutdown of the second management component; wherein the first management component is used to manage the running status of the first processor and the running status of the second processor;
向所述第一处理器、所述第二处理器、第一控制器和第二控制器发送单节点模式指令,所述单节点模式指令用于指示所述第一处理器为主处理器、以及所述第二处理器为从处理器;Send a single node mode instruction to the first processor, the second processor, the first controller and the second controller, the single node mode instruction is used to instruct the first processor to be the main processor, and the second processor is a slave processor;
所述第一控制器用于控制所述第一处理器的运行状态和供电状态,以及通过所述第二控制器控制所述第二处理器的运行状态和供电状态。The first controller is used to control the operating state and power supply state of the first processor, and controls the operating state and power supply state of the second processor through the second controller.
需要说明的是,BMC也可以将第二处理器确定为主处理器,第一处理器确定为从处理器,此时BMC可以控制第一管理组件关闭、以及控制第二管理组件启动,BMC还用于向第一处理器、第二处理器、第一控制器和第二控制器发送单节点模式指令,单节点模式指令用于指示第二处理器为主处理器、以及所述第一处理器为从处理器。第二控制器用于控制第二处理器的运行状态和供电状态,以及通过第一控制器控制第一处理器的运行状态和供电状态。It should be noted that the BMC can also determine the second processor as the master processor and the first processor as the slave processor. At this time, the BMC can control the shutdown of the first management component and the startup of the second management component. The BMC can also determine Used to send a single node mode instruction to the first processor, the second processor, the first controller and the second controller, the single node mode instruction is used to instruct the second processor to be the main processor, and the first processing The processor is a slave processor. The second controller is used to control the operating state and power supply state of the second processor, and control the operating state and power supply state of the first processor through the first controller.
上述技术方案中,当需要将服务器的工作模式设置为单节点模式时,通过BMC即可实现对服务器中每个物理节点的工作模式以及硬件资源的配置,无需再对服务器进行开箱操作,提高了用户对服务器的工作模式配置的便利性。并且,相比于相关技术中双处理器的服务器而言,上述服务器中的每个物理节点都可以作为主节点或从节点,使该服务器在进行单节点模式工作时更为灵活。In the above technical solution, when the working mode of the server needs to be set to single node mode, the working mode and hardware resource configuration of each physical node in the server can be realized through the BMC. There is no need to unbox the server, which improves It makes it easier for users to configure the working mode of the server. Moreover, compared with dual-processor servers in related technologies, each physical node in the above-mentioned server can serve as a master node or a slave node, making the server more flexible when working in single-node mode.
在一种可能的实施方式中,所述第一控制器用于控制所述第一处理器的运行状态和供电状态,包括:In a possible implementation, the first controller is used to control the running state and power supply state of the first processor, including:
所述第一控制器用于:The first controller is used for:
采集所述第一处理器的第一处理器信息;Collect first processor information of the first processor;
根据所述第一处理器信息控制所述第一处理器的运行状态和供电状态。Control the operating status and power supply status of the first processor according to the first processor information.
在上述技术方案中,当服务器处于单节点模式的情况下,第一控制器可以通过第一处理器信息实现对第一处理器运行状态和供电状态的单独控制,使服务器的控制更为简便。In the above technical solution, when the server is in single-node mode, the first controller can use the first processor information to independently control the operating status and power supply status of the first processor, making the control of the server easier.
在一种可能的实施方式中,所述第一控制器用于通过所述第二控制器控制所述第二处理器的运行状态和供电状态,包括:In a possible implementation, the first controller is used to control the running state and power supply state of the second processor through the second controller, including:
所述第一控制器用于:The first controller is used for:
通过所述第二控制器采集所述第二处理器的第二处理器信息;Collect second processor information of the second processor through the second controller;
根据所述第二处理器信息生成第一控制信号以及第二控制信号;其中,所述第一控制信号用于控制所述第二处理器的运行状态;所述第二控制信号用于控制第二DC-DC电源转换模块的供电状态;A first control signal and a second control signal are generated according to the second processor information; wherein the first control signal is used to control the operating state of the second processor; the second control signal is used to control the second processor. 2. The power supply status of the DC-DC power conversion module;
向所述第二控制器发送所述第一控制信号和所述第二控制信号。The first control signal and the second control signal are sent to the second controller.
在上述技术方案中,当服务器处于单节点模式的情况下,可以通过第一控制器对第二控制器进行控制,以实现第一控制器对第二处理器和第二DC-DC电源转换模块的控制,使服务器的管理更为方便。In the above technical solution, when the server is in single node mode, the first controller can control the second controller to realize the first controller controlling the second processor and the second DC-DC power conversion module. control, making server management more convenient.
在一种可能的实施方式中,在所述工作模式为所述双节点模式的情况下,所述BMC控制所述第一物理节点和所述第二物理节点独立运行,包括:In a possible implementation, when the working mode is the dual-node mode, the BMC controls the first physical node and the second physical node to operate independently, including:
所述BMC用于:The BMC is used for:
控制第一管理组件和第二管理组件启动;所述第一管理组件用于管理第一处理器的运行状态;所述第二管理组件用于管理第二处理器的运行状态;Control the startup of the first management component and the second management component; the first management component is used to manage the running status of the first processor; the second management component is used to manage the running status of the second processor;
向所述第一处理器、所述第二处理器、第一控制器和第二控制器发送双节点模式指令;所述双节点模式指令用于指示所述第一处理器和所述第二处理器为主处理器;Send a dual-node mode instruction to the first processor, the second processor, the first controller and the second controller; the dual-node mode instruction is used to instruct the first processor and the second The processor is the main processor;
所述第一控制器用于控制所述第一处理器的运行状态和供电状态;The first controller is used to control the operating status and power supply status of the first processor;
所述第二控制器用于控制所述第二处理器的运行状态和供电状态。The second controller is used to control the operating status and power supply status of the second processor.
在上述技术方案中,当需要将服务器的工作模式设置为双节点模式时,通过BMC即可实现对服务器中每个物理节点的工作模式以及硬件资源的配置,无需再对服务器进行开箱操作,提高了用户对服务器的工作模式配置的便利性。并且每个物理节点中的控制器和处理器独立工作,处理器对应的管理组件在BMC中独立运行,可以实现每个物理节点在运行状态上的物理隔离,以保证每个物理节点在单独进行业务处理时的安全性。In the above technical solution, when the working mode of the server needs to be set to dual-node mode, the working mode and hardware resource configuration of each physical node in the server can be realized through the BMC, without unboxing the server. Improved the convenience for users to configure the working mode of the server. And the controller and processor in each physical node work independently, and the management component corresponding to the processor runs independently in the BMC, which can achieve physical isolation in the running state of each physical node to ensure that each physical node operates independently. Security during business processing.
在一种可能的实施方式中,所述第一控制器用于控制所述第一处理器的运行状态和供电状态,包括:In a possible implementation, the first controller is used to control the running state and power supply state of the first processor, including:
所述第一控制器用于:The first controller is used for:
采集所述第一处理器的第一处理器信息;Collect first processor information of the first processor;
根据所述第一处理器信息控制所述第一处理器的运行状态和所述供电状态;Control the operating state and the power supply state of the first processor according to the first processor information;
所述第二控制器用于控制所述第二处理器的运行状态和供电状态,包括:The second controller is used to control the operating status and power supply status of the second processor, including:
所述第二控制器用于:The second controller is used for:
采集所述第二处理器的第二处理器信息;Collect second processor information of the second processor;
根据所述第二处理器信息控制所述第二处理器的运行状态和所述供电状态。Control the operating state and the power supply state of the second processor according to the second processor information.
在上述技术方案中,每个控制器单独控制一个处理器,可以实现每个物理节点中处理器的运行状态和供电状态的物理隔离,以保证每个物理节点在单独进行业务处理时的安全性。In the above technical solution, each controller independently controls a processor, which can realize physical isolation of the running status and power supply status of the processor in each physical node to ensure the security of each physical node when processing business independently. .
在一种可能的实施方式中,所述BMC还用于:In a possible implementation, the BMC is also used for:
在确定所述第一物理节点故障的情况下,控制所述第一管理组件关闭、以及控制所述第二管理组件启动;其中,所述第二管理组件用于管理所述第二处理器的运行状态;When it is determined that the first physical node is faulty, control the first management component to shut down and control the second management component to start; wherein the second management component is used to manage the second processor Operating status;
向所述第二处理器和所述第二控制器发送主节点指令,所述主节点指令用于指示所述第二处理器为主处理器。Send a master node instruction to the second processor and the second controller, where the master node instruction is used to instruct the second processor to be the master processor.
在上述技术方案中,在一个物理节点发生异常时,可以通过BMC控制另一个物理节点作为主节点继续工作,以避免数据的丢失或业务处理的中断,提高了服务器使用时的稳健性。In the above technical solution, when an abnormality occurs in one physical node, the BMC can be used to control another physical node to continue working as the master node to avoid data loss or interruption of business processing and improve the robustness of the server.
在一种可能的实施方式中,所述第一物理节点还包括第一内存和第一硬盘;所述第二物理节点还包括第二内存和第二硬盘;In a possible implementation, the first physical node further includes a first memory and a first hard disk; the second physical node further includes a second memory and a second hard disk;
第一处理器分别与所述第一内存和所述第一硬盘电连接;The first processor is electrically connected to the first memory and the first hard disk respectively;
第二处理器分别与所述第二内存和所述第二硬盘电连接。The second processor is electrically connected to the second memory and the second hard disk respectively.
在上述技术方案中,每个物理节点具备单独的硬盘和内存,可以实现每个物理节点在数据存储过程中的物理隔离,以保障每个物理节点单独进行业务处理时数据的安全性。In the above technical solution, each physical node has an independent hard disk and memory, which can realize physical isolation of each physical node during the data storage process to ensure the security of data when each physical node performs business processing independently.
本申请实施例提供的服务器,可以包括基板管理控制器BMC、第一物理节点和第二物理节点,BMC分别与第一物理节点和第二物理节点电连接,并且第一物理节点和第二物理节点的硬件资源相互独立。其中,BMC可以用于确定服务器的工作模式,工作模式为单节点模式或者双节点模式;在工作模式为单节点模式时,BMC可以控制第一物理节点和第二物理节点以主从模式运行;在工作模式为双节点模式时,BMC可以控制第一物理节点和第二物理节点独立运行。在上述服务器中,可以根据业务需求,通过BMC来控制服务器在单节点模式和双节点模式之间灵活转换,提高了服务器应用时的灵活性。The server provided by the embodiment of the present application may include a baseboard management controller BMC, a first physical node and a second physical node. The BMC is electrically connected to the first physical node and the second physical node respectively, and the first physical node and the second physical node The hardware resources of nodes are independent of each other. Among them, BMC can be used to determine the working mode of the server, and the working mode is single node mode or dual node mode; when the working mode is single node mode, BMC can control the first physical node and the second physical node to run in master-slave mode; When the working mode is dual-node mode, the BMC can control the first physical node and the second physical node to operate independently. In the above-mentioned servers, the BMC can be used to control the server to flexibly switch between single-node mode and dual-node mode according to business needs, which improves the flexibility of server applications.
附图说明Description of drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present application or the technical solutions in the prior art more clearly, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings in the following description are only These are some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without exerting any creative effort.
图1为本申请实施例提供的服务器的一种架构示意图;Figure 1 is an architectural schematic diagram of a server provided by an embodiment of the present application;
图2为本申请实施例提供的服务器的另一种架构示意图;Figure 2 is another architectural schematic diagram of a server provided by an embodiment of the present application;
图3为本申请实施例提供的一种相关技术的双处理器的服务器的结构示意图;Figure 3 is a schematic structural diagram of a dual-processor server of related technology provided by an embodiment of the present application;
图4为本申请实施例提供的服务器的一种结构示意图;Figure 4 is a schematic structural diagram of a server provided by an embodiment of the present application;
图5为本申请实施例提供的服务器的另一种结构示意图;Figure 5 is another structural schematic diagram of a server provided by an embodiment of the present application;
图6为本申请实施例提供的服务器的另一种结构示意图;Figure 6 is another structural schematic diagram of a server provided by an embodiment of the present application;
图7为本申请实施例提供的服务器的另一种结构示意图;Figure 7 is another structural schematic diagram of a server provided by an embodiment of the present application;
图8为本申请实施例提供的一种服务器的工作模式的配置方法示意图;Figure 8 is a schematic diagram of a configuration method of a server working mode provided by an embodiment of the present application;
图9为本申请实施例提供的另一种服务器的工作模式的配置方法流程示意图;Figure 9 is a schematic flowchart of a configuration method for another server working mode provided by an embodiment of the present application;
图10为本申请实施例提供的一种服务器的工作模式的配置装置的结构示意图。FIG. 10 is a schematic structural diagram of a device for configuring the working mode of a server provided by an embodiment of the present application.
具体实施方式Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this application. Rather, they are merely examples of apparatus and methods consistent with aspects of the application as detailed in the appended claims.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, in this document, the terms "comprising", "comprises" or any other variations thereof are intended to cover a non-exclusive inclusion, such that a process, method, article or device that includes a series of elements not only includes those elements, It also includes other elements not expressly listed or inherent in the process, method, article or apparatus. Without further limitation, an element defined by the statement "comprises a..." does not exclude the presence of additional identical elements in a process, method, article or apparatus that includes that element.
通常,可以在计算设备上部署不同的业务,但在一些数据安全性和运行可靠性要求高的场景下,会要求不同业务之间在运行时互相隔离。目前,将不同业务之间在运行时互相隔离有两种方式,一种方式是在物理层面将各业务互相隔离,例如,将各业务单独部署在独立的计算设备中;另一种方式是在逻辑层面互相隔离,例如,通过虚拟化技术将一台计算设备虚拟为多台虚拟机,将各业务单独部署在每台虚拟机中。Generally, different services can be deployed on computing devices, but in some scenarios with high requirements on data security and operational reliability, different services are required to be isolated from each other at runtime. Currently, there are two ways to isolate different services from each other at runtime. One way is to isolate each business from each other at the physical level. For example, each business is deployed in an independent computing device; the other way is to Logically isolated from each other, for example, one computing device is virtualized into multiple virtual machines through virtualization technology, and each business is deployed separately in each virtual machine.
需要说明的是,本申请实施例所涉及的计算设备可以包括但不限于为服务器。下述实施例内容中均以计算设备为服务器进行方案阐述。It should be noted that the computing devices involved in the embodiments of this application may include, but are not limited to, servers. In the following embodiments, the computing device is used as a server to illustrate the solution.
下面,结合图1和图2,对上述两种方式中服务器的架构进行说明。Next, the architecture of the server in the above two methods will be described with reference to Figure 1 and Figure 2.
图1为本申请实施例提供的服务器的一种架构示意图。请参见图1,服务器集群中包括服务器1和服务器2,服务器1和服务器2相互独立。可以将每个应用程序单独部署在独立的服务器中。例如,在图1的(a)中,应用程序A单独部署在服务器1中;在图1的(b)中,应用程序B单独部署在服务器2中。应用程序A和应用程序B因单独部署在独立的服务器中,可以保障数据的安全性。然而,在这种架构下,服务器一旦投入使用其硬件配置不会频繁更换,当后续应用程序A或应用程序B的业务需求增加或减少时,服务器的硬件资源将无法及时随着业务需求的增减而灵活改变,导致服务器的灵活度较低。并且,若服务器出现问题,将导致该服务器中部署的业务、以及与该业务相关联的业务均受到影响。Figure 1 is an architectural schematic diagram of a server provided by an embodiment of the present application. Please refer to Figure 1. The server cluster includes server 1 and server 2. Server 1 and server 2 are independent of each other. Each application can be deployed individually on a separate server. For example, in (a) of Figure 1 , application A is deployed alone in server 1; in (b) of Figure 1 , application B is deployed alone in server 2. Since Application A and Application B are deployed on separate servers, data security can be guaranteed. However, under this architecture, once the server is put into use, its hardware configuration will not be changed frequently. When the subsequent business needs of Application A or Application B increase or decrease, the server's hardware resources will not be able to increase or decrease in time with the increase in business needs. Reduced and flexibly changed, resulting in lower flexibility of the server. Moreover, if there is a problem with the server, the services deployed on the server and the services associated with the service will be affected.
图2为本申请实施例提供的服务器的另一种架构示意图。请参见图2,可以将一个服务器虚拟为两台虚拟机,可以将每个应用程序单独部署在一台虚拟机中。例如,应用程序A单独部署在虚拟机1中,应用程序B单独部署在虚拟机2中。在这种架构下,服务器虽然可以实现各业务在逻辑层面互相隔离,但由于在服务器的硬件资源上并未实现物理隔离,在一些对业务数据安全性要求严格的场景下,难以保障数据的安全性。Figure 2 is another architectural schematic diagram of a server provided by an embodiment of the present application. Referring to Figure 2, one server can be virtualized into two virtual machines, and each application can be deployed separately in a virtual machine. For example, application A is deployed separately in virtual machine 1, and application B is deployed separately in virtual machine 2. Under this architecture, although the server can achieve logical isolation of each business from each other, because the server's hardware resources have not been physically isolated, it is difficult to ensure data security in some scenarios that require strict security of business data. sex.
鉴于此,本申请实施例提供一种服务器,该服务器可以通过对相关技术的双处理器的服务器的硬件结构进行更新,以实现在不改变服务器的硬件装置的基础上,通过BMC来控制服务器在单节点模式和双节点模式之间灵活转换,从而使一台服务器既可以按照单节点模式工作,又可以按照双节点模式工作,使服务器应用时更为灵活。In view of this, embodiments of the present application provide a server that can control the server through the BMC by updating the hardware structure of a dual-processor server in the related art without changing the hardware device of the server. Flexible conversion between single-node mode and dual-node mode allows a server to work in both single-node mode and dual-node mode, making server applications more flexible.
为了便于理解本申请实施例提供的服务器与相关技术中双处理器的服务器在硬件结构上的区别,下面,结合图3,先对相关技术的双处理器的服务器的结构进行说明。In order to facilitate understanding of the difference in hardware structure between the server provided by the embodiment of the present application and the dual-processor server in the related art, the structure of the dual-processor server in the related art will be described below with reference to FIG. 3 .
图3为本申请实施例提供的一种相关技术的双处理器的服务器的结构示意图。请参见图3,服务器10包括基板管理控制器(Baseboard Management Controller,BMC)、主处理器、从处理器、控制器、DC-DC(Direct Current-Direct Current)电源转换模块、电源(Power Supply Unit,PSU)、第一硬盘、第一内存、第二硬盘和第二内存。FIG. 3 is a schematic structural diagram of a related-art dual-processor server provided by an embodiment of the present application. Referring to Figure 3, the server 10 includes a baseboard management controller (BMC), a main processor, a slave processor, a controller, a DC-DC (Direct Current-Direct Current) power conversion module, a power supply unit , PSU), the first hard disk, the first memory, the second hard disk and the second memory.
示例性的,第一硬盘和第二硬盘可以为但不限于如下所示的硬盘:非易失性内存主机控制器接口规范(Non-Volatile Memory express,NVMe)硬盘、固态硬盘(Solid StateDisk或Solid State Drive,SSD)、机械硬盘(Hard Disk Drive,HDD)或混合硬盘(HybridHard Disk,HHD)等。Exemplarily, the first hard disk and the second hard disk may be but are not limited to the following hard disks: Non-Volatile Memory Express (NVMe) hard disk, solid state hard disk (Solid StateDisk or Solid State Disk) State Drive (SSD), mechanical hard disk (Hard Disk Drive, HDD) or hybrid hard disk (HybridHard Disk, HHD), etc.
示例性的,第一内存和第二内存可以为双列直插式存储模块(Dual-Inline-Memory-Modules,DIMM)。For example, the first memory and the second memory may be dual-inline memory modules (Dual-Inline-Memory-Modules, DIMM).
在图3中,BMC与主处理器电连接,BMC可用于运行管理组件,该管理组件可以通过物理信号线与主处理器进行通信,以获取主处理器和从处理器的运行状态信息,运行状态信息可以包括处理器的温度、功耗、频率和外挂设备型号等平台信息。In Figure 3, the BMC is electrically connected to the main processor. The BMC can be used to run the management component. The management component can communicate with the main processor through physical signal lines to obtain the running status information of the main processor and the slave processor. Run Status information can include platform information such as processor temperature, power consumption, frequency, and plug-in device models.
主处理器还分别与从处理器、控制器、DC-DC电源转换模块、PSU、第一硬盘和第一内存电连接,从处理器还与DC-DC电源转换模块、第二硬盘和第二内存电连接。The main processor is also electrically connected to the slave processor, the controller, the DC-DC power conversion module, the PSU, the first hard disk and the first memory. The slave processor is also electrically connected to the DC-DC power conversion module, the second hard disk and the second Memory electrical connections.
主处理器可以通过主处理器和从处理器之间的通道,来访问从处理器、以及从处理器上外挂的第二硬盘和第二内存。The master processor can access the slave processor, as well as the second hard disk and the second memory attached to the slave processor through the channel between the master processor and the slave processor.
控制器与DC-DC电源模块电连接,可以用于控制主处理器和从处理器的运行状态、以及控制DC-DC-电源模块为主处理器和从处理器上下电,其中,运行状态可以包括:复位和工作模式等。The controller is electrically connected to the DC-DC power module and can be used to control the operating status of the main processor and the slave processor, and to control the DC-DC power module to power on and off the main processor and the slave processor. The operating status can be Including: reset and working mode, etc.
DC-DC电源模块分别与主处理器和从处理器电连接,用于将从PSU处接收的直流电的的电压转换成主处理器和从处理器需要的工作电压,例如,从PSU处接收的直流电的电压可以为12V直流电。The DC-DC power module is electrically connected to the main processor and the slave processor respectively, and is used to convert the DC voltage received from the PSU into the operating voltage required by the main processor and the slave processor, for example, The voltage of the DC power can be 12V DC.
PSU模块可以用于将外接的交流/直流电压转换为直流电,例如,将220V交流电转换为12V直流电。The PSU module can be used to convert external AC/DC voltage to DC power, for example, convert 220V AC power to 12V DC power.
在图3所示的双处理器的服务器中,当主处理器出现异常时,从处理器无法单独进行工作,因此,该服务器只能在单节点模式下进行工作,该双处理器的服务器只能作为一个物理节点进行工作。In the dual-processor server shown in Figure 3, when the main processor is abnormal, the slave processor cannot work alone. Therefore, the server can only work in single-node mode. The dual-processor server can only Works as a physical node.
下面结合图4~图7,对本申请实施例所提出的服务器的结构进行说明。The structure of the server proposed in the embodiment of the present application will be described below with reference to Figures 4 to 7.
图4为本申请实施例提供的服务器的一种结构示意图。请参见图4,服务器10包括基板管理控制器BMC、第一物理节点和第二物理节点。Figure 4 is a schematic structural diagram of a server provided by an embodiment of the present application. Referring to Figure 4, the server 10 includes a baseboard management controller BMC, a first physical node and a second physical node.
在图4所示的服务器中,BMC分别与第一物理节点和第二物理节点电连接。第一物理节点和第二物理节点的硬件资源相互独立,且第一物理节点和第二物理节点的硬件资源类型可以相同,或者第一物理节点和第二物理节点的硬件资源类型可以不相同。因此,该服务器可以以两个物理节点独立运行,每个物理节点在进行业务处理时可以与另一个物理节点在物理层面隔离开来,有利于保障不同物理节点在单独进行业务处理时数据的安全性。In the server shown in Figure 4, the BMC is electrically connected to the first physical node and the second physical node respectively. The hardware resources of the first physical node and the second physical node are independent of each other, and the hardware resource types of the first physical node and the second physical node may be the same, or the hardware resource types of the first physical node and the second physical node may be different. Therefore, the server can run independently as two physical nodes. Each physical node can be physically isolated from another physical node when processing business, which is beneficial to ensuring the security of data when different physical nodes perform business processing independently. sex.
BMC可以用于确定服务器的工作模式,工作模式可以为单节点模式或者双节点模式。其中:BMC can be used to determine the working mode of the server, which can be single-node mode or dual-node mode. in:
在工作模式为单节点模式的情况下,BMC可以控制第一物理节点和第二物理节点以主从模式运行。When the working mode is single node mode, the BMC can control the first physical node and the second physical node to operate in master-slave mode.
在工作模式为双节点模式的情况下,BMC可以控制第一物理节点和第二物理节点独立运行。When the working mode is dual-node mode, the BMC can control the first physical node and the second physical node to operate independently.
需要说明的是,物理节点可以为至少两个,本申请实施例以物理节点的数量为两个进行说明,而在其它实施例中,物理节点的数量还可以为3个、4个、5个、……,本申请实施例不限定物理节点的数量。It should be noted that there may be at least two physical nodes. In the embodiment of this application, the number of physical nodes is two for description. In other embodiments, the number of physical nodes may also be 3, 4, or 5. ,..., the embodiment of this application does not limit the number of physical nodes.
本申请实施例提供的服务器中包含两个硬件资源相互独立的物理节点,对于这两个物理节点而言,每个物理节点既可以独立运行进行业务处理,又可以与另一个物理节点以主从模式运行进行业务处理,使得无需改变服务器的硬件配置,就可以实现服务器在单节点模式和双节点模式之间的灵活转换,并且服务器在使用时可以根据业务需求灵活配置硬件资源,提高了服务器在应用时的灵活性。The server provided by the embodiment of the present application includes two physical nodes with independent hardware resources. For these two physical nodes, each physical node can run independently for business processing, and can also communicate with another physical node in a master-slave manner. mode operation for business processing, so that the server can be flexibly converted between single-node mode and dual-node mode without changing the server's hardware configuration, and the server can flexibly configure hardware resources according to business needs when in use, improving the server's performance. Flexibility in application.
图5为本申请实施例提供的服务器的另一种结构示意图。请参见图5,在图4所示的服务器10的基础上,第一物理节点可以包括第一处理器、第一控制器、第一DC-DC电源转换模块和第一电源,第二物理节点可以包括第二处理器、第二控制器、第二DC-DC电源转换模块和第二电源。Figure 5 is another schematic structural diagram of a server provided by an embodiment of the present application. Referring to Figure 5, based on the server 10 shown in Figure 4, the first physical node may include a first processor, a first controller, a first DC-DC power conversion module and a first power supply, and the second physical node A second processor, a second controller, a second DC-DC power conversion module and a second power supply may be included.
BMC分别与第一处理器、第二处理器、第一控制器和第二控制器电连接。The BMC is electrically connected to the first processor, the second processor, the first controller and the second controller respectively.
需要说明的是,第一控制器与第二控制器之间可以是有线连接,也可以是无线连接。It should be noted that the first controller and the second controller may be wired or wirelessly connected.
第一处理器分别与第一控制器、第一DC-DC电源转换模块和第二处理器电连接,第一控制器还分别与第一DC-DC电源转换模块和第二控制器电连接,第一DC-DC电源转换模块还与第一电源电连接。The first processor is electrically connected to the first controller, the first DC-DC power conversion module and the second processor respectively, and the first controller is also electrically connected to the first DC-DC power conversion module and the second controller respectively, The first DC-DC power conversion module is also electrically connected to the first power supply.
第二处理器还分别与第二控制器和第二DC-DC电源转换模块电连接,第二DC-DC电源转换模块还分别与第二控制器和第二电源电连接。The second processor is also electrically connected to the second controller and the second DC-DC power conversion module respectively, and the second DC-DC power conversion module is also electrically connected to the second controller and the second power supply respectively.
第一DC-DC电源转换模块可以将第一电源提供的电源转换为第一处理器所需要的工作电源。The first DC-DC power conversion module can convert the power provided by the first power supply into the operating power required by the first processor.
第二DC-DC电源转换模块可以将第二电源提供的电源转换为第二处理器所需要的工作电源。The second DC-DC power conversion module can convert the power provided by the second power supply into the operating power required by the second processor.
在本申请实施例中,处理器可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。In this embodiment of the present application, the processor may be a central processing unit (CPU), or other general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), or an application specific integrated circuit (Application Specific Integrated Circuit). , ASIC), etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
在本申请实施例中,控制器可以为复杂可编程逻辑器件(Complex ProgrammableLogic Device,CPLD)或者现场可编程门阵列(Field-Programmable Gate Array,FPGA)。In this embodiment of the present application, the controller may be a complex programmable logic device (Complex Programmable Logic Device, CPLD) or a field programmable gate array (Field-Programmable Gate Array, FPGA).
在本申请实施例提供的服务器中,每个物理节点都具有单独的处理器和控制器,BMC可以对每个物理节点中的处理器和控制器进行单独控制,使得每个物理节点可以在硬件资源上相互独立,有利于保障每个物理节点在单独进行业务处理时数据的安全性。并且每个物理节点具备单独的DC-DC电源转换模块和电源,使得每个物理节点可以单独进行上下电,当一个物理节点异常时,不影响另一个物理节点的正常使用,可以提高服务器使用时的稳健性。In the server provided by the embodiment of this application, each physical node has an independent processor and controller, and the BMC can independently control the processor and controller in each physical node, so that each physical node can Resources are independent of each other, which helps ensure the security of data when each physical node performs business processing independently. And each physical node has a separate DC-DC power conversion module and power supply, so that each physical node can be powered on and off independently. When one physical node is abnormal, it does not affect the normal use of another physical node, which can improve the server usage time. of robustness.
图6为本申请实施例提供的服务器的另一种结构示意图。请参见图6,服务器10包括BMC、第一物理节点和第二物理节点。其中,Figure 6 is another schematic structural diagram of a server provided by an embodiment of the present application. Referring to Figure 6, the server 10 includes a BMC, a first physical node and a second physical node. in,
BMC还用于运行第一管理组件和第二管理组件。其中,第一管理组件用于管理第一物理节点;第二管理组件用于管理第二物理节点。The BMC is also used to run the first management component and the second management component. The first management component is used to manage the first physical node; the second management component is used to manage the second physical node.
在本申请实施例提供的服务器中,可以通过BMC中运行的两个管理组件分别对第一物理节点和第二物理节点单独进行管理,有利于保障每个物理节点在单独进行业务处理时数据的安全性。In the server provided by the embodiment of this application, the first physical node and the second physical node can be separately managed through two management components running in the BMC, which is beneficial to ensuring the data security of each physical node when performing business processing independently. safety.
图7为本申请实施例提供的服务器的另一种结构示意图。请参见图7,在图6所示的服务器10中,第一物理节点还包括第一内存和第一硬盘;第二物理节点还包括第二内存和第二硬盘。Figure 7 is another schematic structural diagram of a server provided by an embodiment of the present application. Referring to Figure 7, in the server 10 shown in Figure 6, the first physical node also includes a first memory and a first hard disk; the second physical node also includes a second memory and a second hard disk.
第一处理器分别与第一内存和第一硬盘电连接。The first processor is electrically connected to the first memory and the first hard disk respectively.
第二处理器分别与第二内存和第二硬盘电连接。The second processor is electrically connected to the second memory and the second hard disk respectively.
本申请实施例提供的服务器,每个物理节点具备单独的硬盘和内存,可以实现每个物理节点在数据存储过程中的物理隔离,以保障每个物理节点单独进行业务处理时数据的安全性。In the server provided by the embodiment of this application, each physical node has a separate hard disk and memory, which can realize the physical isolation of each physical node during the data storage process to ensure the security of data when each physical node performs business processing independently.
本申请实施例提供的服务器,可以在单节点模式或者双节点模式下进行工作,在实际应用过程中,用户可以根据业务需求情况,通过BMC对应对服务器的工作模式进行设置。当BMC确定用户设置的工作模式后,可以根据该工作模式对服务器进行配置,以使服务器按照该工作模式进行工作。The server provided by the embodiment of this application can work in a single node mode or a dual node mode. In the actual application process, the user can set the working mode of the server through the BMC according to the business requirements. After the BMC determines the working mode set by the user, it can configure the server according to the working mode so that the server works according to the working mode.
需要说明的是,本申请实施例示意的服务器10的结构并不构成对服务器10的具体限定。在一些实施例中,服务器10可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It should be noted that the structure of the server 10 illustrated in the embodiment of this application does not constitute a specific limitation on the server 10 . In some embodiments, server 10 may include more or fewer components than illustrated, some components may be combined, some components may be separated, or components may be arranged differently. The components illustrated may be implemented in hardware, software, or a combination of software and hardware.
下面,结合图8,对BMC确定服务器的工作模式、以及根据确定后的工作模式对服务器进行配置的过程进行说明。Next, with reference to Figure 8, the process of BMC determining the working mode of the server and configuring the server according to the determined working mode will be described.
图8为本申请实施例提供的一种服务器的工作模式的配置方法示意图。请参见图8,该流程包括:Figure 8 is a schematic diagram of a configuration method of a server working mode provided by an embodiment of the present application. See Figure 8, the process includes:
S801、获取第一指令。S801. Obtain the first instruction.
本实施例的执行主体可以为服务器,或者服务器中的BMC。可选的,BMC可以通过软件实现,也可以通过软件和硬件的结合实现。The execution subject of this embodiment may be a server or a BMC in the server. Optionally, BMC can be implemented through software or through a combination of software and hardware.
BMC中还可以运行有配置软件,该配置软件可以用于确定服务器的工作模式、以及根据确定后的工作模式对服务器进行配置。在本申请实施例中,该配置软件可以为独立版本形式的软件,也可以为网页版本形式的软件。The BMC can also run configuration software, which can be used to determine the working mode of the server and configure the server according to the determined working mode. In this embodiment of the present application, the configuration software may be an independent version of software or a web page version of software.
第一指令可以为服务器的模式配置指令,例如,该模式配置指令可以用编码符号进行编码,其中,当编码符号为1时,表示单节点模式;当编码符号为0时,表示双节点模式。The first instruction may be a mode configuration instruction of the server. For example, the mode configuration instruction may be encoded with an encoding symbol, where when the encoding symbol is 1, it represents a single-node mode; when the encoding symbol is 0, it represents a dual-node mode.
第一指令可以用于设置服务器的工作模式。示例性的,在实际应用过程中,第一指令可以有如下两种情况:The first instruction can be used to set the working mode of the server. For example, in actual application, the first instruction can have the following two situations:
第一种情况:配置软件对应的系统页面中设置有每个工作模式对应的功能按键,用户可以通过触发系统页面中任意一个功能按键,向配置软件发送第一指令,以指示配置软件根据该功能按键对应的工作模式来设置服务器的工作模式。The first situation: The system page corresponding to the configuration software is set with function keys corresponding to each working mode. The user can send a first instruction to the configuration software by triggering any function key on the system page to instruct the configuration software according to the function. Press the corresponding working mode of the button to set the working mode of the server.
第二种情况:在双节点模式下,当服务器中一个物理节点单独工作、另一个物理节点硬件资源闲置时,若BMC检测到处于工作状态的物理节点所处理的业务量超过预设业务量阈值时,可以向配置软件发送第一指令,以指示配置软件将服务器由双节点模式切换为单节点模式。The second situation: In dual-node mode, when one physical node in the server works alone and the hardware resources of the other physical node are idle, if the BMC detects that the business volume processed by the working physical node exceeds the preset business volume threshold , a first instruction may be sent to the configuration software to instruct the configuration software to switch the server from the dual-node mode to the single-node mode.
在实际使用过程中,用户可以根据业务需求来设置服务器的工作模式。例如,当业务需求小但数据安全性要求高时,可以采用双节点模式进行工作,此时,每个物理节点可以单独进行一项业务处理,且每个物理节点之间在物理层面上完全隔离,可以保障数据的安全性。In actual use, users can set the working mode of the server according to business needs. For example, when business needs are small but data security requirements are high, dual-node mode can be used to work. At this time, each physical node can independently perform a business process, and each physical node is completely isolated at the physical level. , which can ensure data security.
当业务需求大时,可以采用单节点模式进行工作,此时两个物理节点可以协同进行业务处理,有利于提高业务处理的速度以及业务处理过程中系统的可靠性。When business needs are large, single-node mode can be used to work. At this time, two physical nodes can collaborate for business processing, which is beneficial to improving the speed of business processing and the reliability of the system during business processing.
S802、根据第一指令,确定服务器的工作模式。S802. Determine the working mode of the server according to the first instruction.
在服务器的工作模式为单节点模式的情况下,则执行S803~S805;When the working mode of the server is single node mode, S803 to S805 are executed;
在服务器的工作模式为双节点模式的情况下,则执行S806~S807。When the working mode of the server is the dual-node mode, S806 to S807 are executed.
S803、将第一处理器确定为主处理器,以及将第二处理器确定为从处理器。S803. Determine the first processor as the master processor and the second processor as the slave processor.
在本实施例中,BMC可以按照默认模式在两个物理节点中确定主节点对应的物理节点、以及从节点对应的物理节点;BMC也可以根据业务需求和每个物理节点的硬件资源信息,在两个物理节点中确定主节点对应的物理节点、以及从节点对应的物理节点。In this embodiment, BMC can determine the physical node corresponding to the master node and the physical node corresponding to the slave node among the two physical nodes according to the default mode; BMC can also determine the physical node corresponding to the slave node based on business requirements and the hardware resource information of each physical node. Among the two physical nodes, determine the physical node corresponding to the master node and the physical node corresponding to the slave node.
S804、控制第一管理组件启动以及控制第二管理组件关闭。S804. Control the startup of the first management component and the shutdown of the second management component.
其中,第一管理组件用于管理第一处理器的运行状态和第二处理器的运行状态。The first management component is used to manage the running status of the first processor and the running status of the second processor.
示例性的,第一管理组件可以通过物理信号线与第一处理器进行通讯、以及通过第一处理器与第二处理器进行通讯,以获取第一处理器和第二处理器的运行状态信息,并通过上述运行状态信息对第一处理器和第二处理器的运行状态进行管理。例如,运行状态信息可以包括处理器的运行信息和处理器内部的寄存器信息,寄存器信息可以包括温度、功耗和频率等。For example, the first management component can communicate with the first processor through a physical signal line, and communicate with the second processor through the first processor, to obtain the running status information of the first processor and the second processor. , and manage the running status of the first processor and the second processor through the above running status information. For example, the running status information may include the running information of the processor and the register information inside the processor. The register information may include temperature, power consumption, frequency, etc.
S805、向第一处理器、第二处理器、第一控制器和第二控制器发送单节点模式指令。S805. Send a single node mode instruction to the first processor, the second processor, the first controller and the second controller.
单模式模式指令用于指示第一处理器为主处理器、以及第二处理器为从处理器。The single-mode mode instruction is used to instruct the first processor to be the master processor and the second processor to be the slave processor.
在一种可能的实现方式中,BMC可以向第一处理器和第一控制器发送主模式控制信号,以使第一处理器以主处理器模式工作、以及第一控制器以主控制器模式工作;BMC向第二处理器和第二控制器发送从模式控制信号,以使第二处理器以从处理器模式工作、以及第二控制器为从控制器模式工作。In a possible implementation, the BMC can send a master mode control signal to the first processor and the first controller, so that the first processor operates in the master processor mode and the first controller operates in the master controller mode. Work; the BMC sends a slave mode control signal to the second processor and the second controller, so that the second processor works in the slave processor mode and the second controller works in the slave controller mode.
当第一控制器以主控制器模式、第二控制器以从控制器模式进行工作时:When the first controller works in master controller mode and the second controller works in slave controller mode:
第一控制器可以用于:采集第一处理器的第一处理器信息;根据第一处理器信息控制第一处理器的运行状态和供电状态。The first controller may be used to: collect first processor information of the first processor; and control the operating status and power supply status of the first processor according to the first processor information.
第一控制器还可以用于:通过所述第二控制器采集第二处理器的第二处理器信息;根据第二处理器信息生成第一控制信号以及第二控制信号。其中,第一控制信号用于控制第二处理器的运行状态;第二控制信号用于控制第二DC-DC电源转换模块的供电状态。The first controller may also be configured to: collect second processor information of the second processor through the second controller; and generate a first control signal and a second control signal according to the second processor information. The first control signal is used to control the operating state of the second processor; the second control signal is used to control the power supply state of the second DC-DC power conversion module.
示例性的,供电状态可以包括上电状态或下电状态。For example, the power supply state may include a power on state or a power off state.
需要说明的是,S804可以在S805之前执行,或者,S804可以在S805之后执行,或者,S804可以和S805同步执行。It should be noted that S804 can be executed before S805, or S804 can be executed after S805, or S804 can be executed synchronously with S805.
下面,结合S806~S807,对服务器的双节点模式的配置过程进行说明。Next, the configuration process of the server's dual-node mode will be explained based on S806~S807.
S806、控制第一管理组件和第二管理组件启动。S806. Control the startup of the first management component and the second management component.
在双节点模式下,第一管理组件用于管理第一处理器的运行状态,第二管理组件用于管理第二处理器的运行状态。In the dual-node mode, the first management component is used to manage the running status of the first processor, and the second management component is used to manage the running status of the second processor.
S807、向第一处理器、第二处理器、第一控制器和第二控制器发送双节点模式指令。S807. Send a dual-node mode instruction to the first processor, the second processor, the first controller, and the second controller.
双模式模式指令用于指示第一处理器和第二处理器为主节点。The dual mode instruction is used to instruct the first processor and the second processor to be the master node.
例如,BMC可以向第一处理器、第二处理器、第一控制器和第二控制器发送主模式控制信号,以使第一处理器、第二处理器以主处理器模式进行工作、以及第一控制器和第二控制以主控制器模式进行工作。For example, the BMC may send a master mode control signal to the first processor, the second processor, the first controller, and the second controller to cause the first processor and the second processor to operate in the master processor mode, and The first controller and the second controller operate in master controller mode.
在双节点模式下,第一控制器可以用于控制第一处理器的运行状态和供电状态,第二控制器可以用于控制第二处理器的运行状态和供电状态。In the dual-node mode, the first controller can be used to control the running status and power supply status of the first processor, and the second controller can be used to control the running status and power supply status of the second processor.
具体地,第一控制器可以用于:采集第一处理器的第一处理器信息;根据第一处理器信息控制第一处理器的运行状态和供电状态。Specifically, the first controller may be configured to: collect first processor information of the first processor; and control the operating status and power supply status of the first processor according to the first processor information.
第二控制器可以用于:采集第二处理器的第二处理器信息;根据第二处理器信息控制第二处理器的运行状态和供电状态。The second controller may be used to: collect second processor information of the second processor; and control the operating status and power supply status of the second processor according to the second processor information.
需要说明的是,S806可以在S807之前执行,或者,S806可以在S807之后执行,或者,S806可以和S807同步执行。It should be noted that S806 can be executed before S807, or S806 can be executed after S807, or S806 can be executed synchronously with S807.
本申请实施例提供的服务器中包含两个硬件资源相互独立的物理节点,对于这两个物理节点而言,每个物理节点既可以独立运行进行业务处理,又可以与另一个物理节点以主从模式运行进行业务处理,可以通过服务器中的BMC确定服务器的工作模式并根据工作模式对服务器的物理节点的工作模式进行配置,使得服务器可以在单节点模式和双节点模式之间进行灵活转换,提高了服务器在应用时的灵活性。The server provided by the embodiment of the present application includes two physical nodes with independent hardware resources. For these two physical nodes, each physical node can run independently for business processing, and can also communicate with another physical node in a master-slave manner. mode operation for business processing, the working mode of the server can be determined through the BMC in the server and the working mode of the physical node of the server can be configured according to the working mode, so that the server can flexibly convert between single-node mode and dual-node mode, improving This increases the flexibility of the server in application.
在一种可能的场景中,当服务器以单节点模式进行工作时,若第一物理节点出现异常时,还可以通过BMC向用户进行告警提示。在一些容灾、备份等业务需要紧急恢复的场景下,用户可以根据该告警提示,通过BMC重新调整物理节点,以使服务器尽快恢复正常工作。In one possible scenario, when the server is working in single-node mode, if an abnormality occurs on the first physical node, an alarm may be provided to the user through the BMC. In some scenarios where emergency recovery is required for disaster recovery, backup and other services, users can readjust the physical nodes through BMC according to the alarm prompt so that the server can return to normal operation as soon as possible.
下面,结合图9,对容灾或者备份等业务需要紧急恢复的场景下,BMC对服务器的工作模式的配置过程进行说明。Next, combined with Figure 9, the BMC configuration process of the server's working mode is explained in the scenario where disaster recovery or backup and other services require emergency recovery.
图9为本申请实施例提供的另一种服务器的工作模式的配置方法流程示意图。请参见图9,该过程包括:Figure 9 is a schematic flowchart of a configuration method for another server working mode provided by an embodiment of the present application. See Figure 9, the process includes:
S901、在确定第一物理节点故障的情况下,控制第一管理组件关闭、以及控制第二管理组件启动。S901. When it is determined that the first physical node is faulty, control the first management component to shut down and control the second management component to start.
第二管理组件用于管理第二处理器的运行状态。The second management component is used to manage the running status of the second processor.
S902、向第二处理器和第二控制器发送主节点指令。S902. Send the master node instruction to the second processor and the second controller.
主节点指令用于指示第二处理器为主处理器。The master node instruction is used to indicate that the second processor is the master processor.
第二控制器在获取主节点指令后,可以采集第二处理器的第二处理器信息,并根据第二处理器信息控制第二处理器的运行状态和供电状态。After obtaining the master node instruction, the second controller can collect the second processor information of the second processor, and control the operating status and power supply status of the second processor based on the second processor information.
需要说明的是,S901可以在S902之前执行,或者,S901可以在S902之后执行,或者,S901可以和S902同步执行。It should be noted that S901 can be executed before S902, or S901 can be executed after S902, or S901 can be executed synchronously with S902.
本申请实施例提供的服务器,在一个物理节点发生异常时,可以通过BMC控制另一个物理点继续工作,以避免数据的丢失或业务处理的中断,提高了服务器使用时的稳健性。The server provided by the embodiment of the present application can control another physical node to continue working through the BMC when an abnormality occurs in one physical node, so as to avoid data loss or interruption of business processing and improve the robustness of the server during use.
图10为本申请实施例提供的一种服务器的工作模式的配置装置的结构示意图。请参见图10,所述服务器的工作模式的配置装置20包括处理模块21和发送模块22,其中:FIG. 10 is a schematic structural diagram of a device for configuring the working mode of a server provided by an embodiment of the present application. Referring to Figure 10, the server's working mode configuration device 20 includes a processing module 21 and a sending module 22, wherein:
所述处理模块21用于,获取第一指令,并根据第一指令,确定服务器的工作模式。The processing module 21 is configured to obtain the first instruction and determine the working mode of the server according to the first instruction.
在一种可能的实施方式中,所述服务器的工作模式为单节点模式,所述处理模块21具体用于,将第一处理器确定为主处理器,以及将第二处理器确定为从处理器;In a possible implementation, the working mode of the server is a single node mode, and the processing module 21 is specifically configured to determine the first processor as the master processor and the second processor as the slave processor. device;
所述处理模块21还具体用于,控制第一管理组件启动以及控制第二管理组件关闭;其中,所述第一管理组件用于管理第一处理器的运行状态和第二处理器的运行状态;The processing module 21 is also specifically configured to control the startup of the first management component and the shutdown of the second management component; wherein the first management component is used to manage the running status of the first processor and the running status of the second processor. ;
所述发送模块22具体用于,向第一处理器、第二处理器、第一控制器和第二控制器发送单节点模式指令,所述单节点模式指令用于指示第一处理器为主处理器、以及第二处理器为从处理器。The sending module 22 is specifically configured to send a single node mode instruction to the first processor, the second processor, the first controller and the second controller. The single node mode instruction is used to instruct the first processor to be the master. The processor and the second processor are slave processors.
在一种可能的实施方式中,所述服务器的工作模式为双节点模式,所述处理模块21具体用于,控制第一管理组件和第二管理组件启动;第一管理组件用于管理第一处理器的运行状态;第二管理组件用于管理第二处理器的运行状态;In a possible implementation, the working mode of the server is a dual-node mode, and the processing module 21 is specifically used to control the startup of the first management component and the second management component; the first management component is used to manage the first The running status of the processor; the second management component is used to manage the running status of the second processor;
所述发送模块22具体用于,向第一处理器、第二处理器、第一控制器和第二控制器发送双节点模式指令;所述双节点模式指令用于指示所述第一处理器和所述第二处理器为主处理器。The sending module 22 is specifically configured to send a dual-node mode instruction to the first processor, the second processor, the first controller, and the second controller; the dual-node mode instruction is used to instruct the first processor and the second processor as the main processor.
在一种可能的实施方式中,所述处理模块21还具体用于,在确定第一物理节点故障的情况下,控制第一管理组件关闭、以及控制第二管理组件启动;其中,第二管理组件用于管理第二处理器的运行状态;In a possible implementation, the processing module 21 is also specifically configured to control the shutdown of the first management component and the startup of the second management component when it is determined that the first physical node is faulty; wherein, the second management component The component is used to manage the running status of the second processor;
所述发送模块22具体用于,向所述第二处理器和所述第二控制器发送主节点指令,所述主节点指令用于指示所述第二处理器为主处理器。The sending module 22 is specifically configured to send a master node instruction to the second processor and the second controller, and the master node instruction is used to instruct the second processor to be the master processor.
本申请实施例提供的服务器的工作模式的配置装置,可用于执行上述图8和/或图9实施例所示的技术方案,其实现原理和技术效果类似,此处不作赘述。The server working mode configuration device provided by the embodiment of the present application can be used to implement the technical solution shown in the embodiment of FIG. 8 and/or FIG. 9. The implementation principles and technical effects are similar and will not be described again here.
本申请实施例还提供一种芯片,所述芯片用于执行如上述图8和/或图9实施例所述的服务器的工作模式的配置方法,其实现原理和技术效果类似,此处不作赘述。Embodiments of the present application also provide a chip, which is used to perform the configuration method of the working mode of the server as described in the embodiments of FIG. 8 and/or FIG. 9. Its implementation principles and technical effects are similar and will not be described in detail here. .
本申请实施例提供一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机执行指令;所述计算机执行指令被处理器执行时用于实现如上述图8和/或图9实施例所述的服务器的工作模式的配置方法。Embodiments of the present application provide a computer-readable storage medium. Computer-executable instructions are stored on the computer-readable storage medium; when the computer-executable instructions are executed by a processor, they are used to implement the implementation as shown in Figure 8 and/or Figure 9. The example describes how to configure the server's working mode.
本申请实施例提供一种计算机程序产品,所述计算机程序产品包括计算机程序,当所述计算机程序被处理器执行时,使得计算机执行上述图8和/或图9实施例所述的服务器的工作模式的配置方法。Embodiments of the present application provide a computer program product. The computer program product includes a computer program. When the computer program is executed by a processor, it causes the computer to perform the work of the server described in the embodiment of FIG. 8 and/or FIG. 9 . Mode configuration method.
显然,本领域的技术人员可以对本申请实施例进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请实施例的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the embodiments of the present application without departing from the spirit and scope of the present application. In this way, if these modifications and variations of the embodiments of the present application fall within the scope of the claims of this application and equivalent technologies, then this application is also intended to include these modifications and variations.
在本申请中,术语“包括”及其变形可以指非限制性的包括;术语“或”及其变形可以指“和/或”。本申请中术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。本申请中,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。In this application, the term "including" and its variations may refer to non-limiting inclusion; the term "or" and its variations may refer to "and/or". The terms "first", "second", etc. in this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. In this application, "plurality" means two or more. "And/or" describes the relationship between related objects, indicating that there can be three relationships. For example, A and/or B can mean: A exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the related objects are in an "or" relationship.
Claims (10)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310530769.3A CN116737364A (en) | 2023-05-11 | 2023-05-11 | server |
| PCT/CN2023/135206 WO2024230135A1 (en) | 2023-05-11 | 2023-11-29 | Server |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310530769.3A CN116737364A (en) | 2023-05-11 | 2023-05-11 | server |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN116737364A true CN116737364A (en) | 2023-09-12 |
Family
ID=87914113
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202310530769.3A Pending CN116737364A (en) | 2023-05-11 | 2023-05-11 | server |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN116737364A (en) |
| WO (1) | WO2024230135A1 (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2024230135A1 (en) * | 2023-05-11 | 2024-11-14 | 超聚变数字技术有限公司 | Server |
| CN119232685A (en) * | 2024-10-18 | 2024-12-31 | 苏州元脑智能科技有限公司 | Local area network exchange board, network management method and device and readable storage medium |
Family Cites Families (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2014026374A1 (en) * | 2012-08-17 | 2014-02-20 | 华为技术有限公司 | Server system, management method, and device |
| US9842003B2 (en) * | 2014-10-07 | 2017-12-12 | Dell Products, L.P. | Master baseboard management controller election and replacement sub-system enabling decentralized resource management control |
| CN105549696B (en) * | 2015-12-07 | 2019-04-26 | 中国电子科技集团公司第三十二研究所 | Rack-mounted server system with case management function |
| CN216719089U (en) * | 2021-12-21 | 2022-06-10 | 浙江宇视科技有限公司 | a server |
| CN115664922A (en) * | 2022-10-18 | 2023-01-31 | 苏州浪潮智能科技有限公司 | Management method, system, equipment and storage medium of multi-node server |
| CN116737364A (en) * | 2023-05-11 | 2023-09-12 | 超聚变数字技术有限公司 | server |
-
2023
- 2023-05-11 CN CN202310530769.3A patent/CN116737364A/en active Pending
- 2023-11-29 WO PCT/CN2023/135206 patent/WO2024230135A1/en active Pending
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2024230135A1 (en) * | 2023-05-11 | 2024-11-14 | 超聚变数字技术有限公司 | Server |
| CN119232685A (en) * | 2024-10-18 | 2024-12-31 | 苏州元脑智能科技有限公司 | Local area network exchange board, network management method and device and readable storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| WO2024230135A1 (en) | 2024-11-14 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US9965367B2 (en) | Automatic hardware recovery system | |
| CN107122321B (en) | Hardware repair method, hardware repair system, and computer-readable storage device | |
| CN106339058B (en) | Method and system for dynamically managing power supply | |
| EP3255527B1 (en) | Remote keyboard-video-mouse technologies | |
| US9489274B2 (en) | System and method for performing efficient failover and virtual machine (VM) migration in virtual desktop infrastructure (VDI) | |
| US9912535B2 (en) | System and method of performing high availability configuration and validation of virtual desktop infrastructure (VDI) | |
| CN106155970B (en) | automatic hardware recovery method and automatic hardware recovery system | |
| US8990632B2 (en) | System for monitoring state information in a multiplex system | |
| CN111949320B (en) | Methods, systems and servers for providing system data | |
| CN101938368A (en) | Virtual machine manager and virtual machine processing method in blade server system | |
| WO2018095107A1 (en) | Bios program abnormal processing method and apparatus | |
| WO2018120200A1 (en) | Server management method and server | |
| CN116737364A (en) | server | |
| CN103309422A (en) | Power supply device | |
| EP3528125A2 (en) | Power supply unit fan recovery process | |
| US10139878B2 (en) | Systems and methods for extended power performance capability discovery for a modular chassis | |
| CN105446654B (en) | Server control method and rack controller | |
| CN103620558A (en) | The method and basic input and output system for realizing the correspondence between physical resources and virtual resources | |
| CN116795195A (en) | Main board system with multiple CPU modules, control method of main board and computing equipment | |
| US11977437B2 (en) | Dynamic adjustment of log level of microservices in HCI environment | |
| CN114443446B (en) | Hard disk indicator lamp control method, system, terminal and storage medium | |
| CN113419980B (en) | Out-of-band management method, device, controller, system and storage medium | |
| US12430183B2 (en) | Snapshot based pool of virtual resources for efficient development and test of hyper-converged infrastructure environments | |
| US20250199984A1 (en) | Individual power cycle control of accelerator modules configured on a node | |
| CN120371748A (en) | Data transmission control method and device, electronic equipment and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |