CN103576819B - Server starts control system, method and device on a large scale - Google Patents
Server starts control system, method and device on a large scale Download PDFInfo
- Publication number
- CN103576819B CN103576819B CN201210269624.4A CN201210269624A CN103576819B CN 103576819 B CN103576819 B CN 103576819B CN 201210269624 A CN201210269624 A CN 201210269624A CN 103576819 B CN103576819 B CN 103576819B
- Authority
- CN
- China
- Prior art keywords
- server
- power
- delay time
- value
- power supply
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Power Sources (AREA)
Abstract
本发明提出了一种服务器大规模启动控制系统,包括:多个服务器;电源,为多个服务器供电;多个电源控制器,每个电源控制器连接在服务器和电源之间,用于在电源上电之后,根据对应的服务器的唯一标识生成相应的延迟时间,且在经过该延迟时间之后控制对应的服务器启动。本发明还提出了一种服务器大规模启动控制方法,包括:接收对多个服务器的启动信号;分别根据每个服务器的唯一标识计算每个服务器相应的延迟时间;在每个服务器的延迟时间结束之后,控制该服务器启动。本发明还提出了一种用于服务器的系统控制器。本发明通过对多个服务器设置不同的延迟启动时间,避免了电源断电重启过程中服务器组重启导致最大瞬时功率超出电源额定功率。
The present invention proposes a large-scale start-up control system for servers, including: multiple servers; a power supply for supplying power to multiple servers; After power-on, a corresponding delay time is generated according to the unique identifier of the corresponding server, and the corresponding server is controlled to start after the delay time elapses. The present invention also proposes a large-scale start-up control method for servers, including: receiving start-up signals for multiple servers; calculating the corresponding delay time of each server according to the unique identifier of each server; After that, control the server startup. The invention also proposes a system controller for a server. The invention avoids the maximum instantaneous power exceeding the rated power of the power supply caused by restarting of the server group during the restarting process of the power supply by setting different delayed startup times for multiple servers.
Description
技术领域 technical field
本发明涉及服务器管理技术领域,特别涉及一种服务器大规模启动控制系统及方法、电源控制器。The invention relates to the technical field of server management, in particular to a server large-scale start-up control system and method, and a power controller.
背景技术 Background technique
在现有的服务器直流电源中,没有100%保证服务器供电不断电的情况。服务器组电源一旦断电在电源恢复的情况下,服务器在启动瞬间因需要建立起原来没有的输出电压等级(能量积蓄,从无到有,需大电流供电),将在启动的某个时刻达到瞬间最大功率。如果没有相应的保护措施,整个机柜的服务器同时启动的瞬间功率可能将远远大于服务器运行时的额定功率,此时产生的最大瞬间直流电流超过电源的额定直流电流导致电源断开,或者由于整体功率不够,可能导致服务器反复重启动。In the existing DC power supply for servers, there is no 100% guarantee of uninterrupted power supply for servers. Once the power supply of the server group is powered off and the power supply is restored, the server needs to establish an output voltage level that did not exist at the moment of startup (energy storage, starting from scratch, requiring high-current power supply), and will reach the output voltage level at a certain moment of startup. Instantaneous maximum power. If there are no corresponding protection measures, the instantaneous power of the servers in the entire cabinet may be far greater than the rated power when the server is running. Insufficient power may cause the server to restart repeatedly.
现有的处理服务器大规模启动控制技术,主要是针对电源与开机功耗上进行一些优化,但是针对点和细节都与本发明是不同的。实现电源与负载在不同情况的处理,其中当总供电量不足够负荷开机电量时,现有专利的处理方式是选择最佳开机数。现有的这项专利由于控制的方式和针对的问题出现不同,与本发明相比在逻辑上过于复杂与繁琐。The existing large-scale start-up control technology for processing servers is mainly aimed at optimizing the power supply and power-on power consumption, but the points and details are different from those of the present invention. Realize the processing of power supply and load in different situations. When the total power supply is not enough for the load to start up, the existing patented processing method is to select the optimal number of start-ups. Compared with the present invention, this existing patent is logically too complicated and loaded down with trivial details due to different control methods and targeted problems.
发明内容 Contents of the invention
本发明旨在至少在一定程度上解决上述技术问题之一或至少提供一种有用的商业选择。The present invention aims at solving one of the above technical problems at least to a certain extent or at least providing a useful commercial choice.
为此,本发明的第一个目的在于提出一种服务器大规模启动控制系统,通过服务器自带的逻辑运算单元产生一个随机数对电源进行控制,完成对服务器的启动延迟,从而避开服务器同时到达启动的最大瞬间电流。本发明的第二个目的在于提出一种服务器大规模启动控制方法。本发明的第三个目的在于提出一种用于服务器的电源控制器。For this reason, the first object of the present invention is to propose a large-scale startup control system for servers, which generates a random number to control the power supply through the logical operation unit of the server, and completes the startup delay of the server, thereby avoiding the server at the same time. The maximum instantaneous current to start. The second object of the present invention is to propose a method for controlling large-scale startup of servers. The third object of the present invention is to provide a power controller for a server.
为达到上述目的,本发明第一方面的实施例提出了一种服务器大规模启动控制系统,包括:多个服务器;电源,所述电源为所述多个服务器供电;多个电源控制器,每个所述电源控制器连接在一个或多个所述服务器和所述电源之间,所述电源控制器用于在所述电源上电之后,根据对应的所述服务器的唯一标识生成相应的延迟时间,且在经过所述延迟时间之后控制对应的所述服务器启动。In order to achieve the above object, the embodiment of the first aspect of the present invention proposes a server large-scale start-up control system, including: a plurality of servers; a power supply, which supplies power to the plurality of servers; a plurality of power controllers, each One or more of the power controllers are connected between one or more of the servers and the power supply, and the power controller is configured to generate a corresponding delay time according to the unique identifier of the corresponding server after the power supply is powered on , and control the corresponding server to start after the delay time elapses.
根据本发明实施例的服务器大规模启动控制系统,通过对多个服务器设置不同的延迟启动时间,实现了电源断电后重启过程中避免各服务器同时重启,到达最大瞬时功率,避免了服务器组重启导致功率超出电源额定功率,提高了服务器组的启动效率和使用寿命,并且,本发明对服务器的硬件改动很小,节约了成本,对服务器组的稳定性没有不良影响。According to the server large-scale start-up control system of the embodiment of the present invention, by setting different delayed start times for multiple servers, it is possible to avoid simultaneous restart of each server during the restart process after power failure, reach the maximum instantaneous power, and avoid server group restart As a result, the power exceeds the rated power of the power supply, which improves the starting efficiency and service life of the server group, and the present invention makes little changes to the hardware of the server, saves costs, and has no adverse effect on the stability of the server group.
在本发明的一个实施例中,所述服务器的唯一标识包括上述服务器的IP地址、MAC地址和序列号SN中的一种或多种。In an embodiment of the present invention, the unique identifier of the server includes one or more of the above-mentioned server's IP address, MAC address and serial number SN.
在本发明的一个实施例中,所述电源控制器为可编程逻辑单元CPLD。In one embodiment of the present invention, the power controller is a programmable logic unit CPLD.
在本发明的一个实施例中,所述服务器的唯一标识存储在对应的电源控制器中。In an embodiment of the present invention, the unique identifier of the server is stored in a corresponding power controller.
在本发明的一个实施例中,所述延迟时间=(MAC值+SN值)%n,其中,MAC值为所述服务器的MAC地址的值,SN值为所述服务器的序列号,n根据所述服务器组达到最大瞬时功率和电源额定功率的比值确定。In one embodiment of the present invention, the delay time=(MAC value+SN value)%n, wherein, the MAC value is the value of the MAC address of the server, the SN value is the serial number of the server, and n is based on The ratio between the maximum instantaneous power of the server group and the rated power of the power supply is determined.
在本发明的一个实施例中,所述电源控制器还用于记录所述延迟时间,并在所述服务器下次启动时读取所述延迟时间。In an embodiment of the present invention, the power controller is further configured to record the delay time, and read the delay time when the server starts next time.
本发明第二方面的实施例提出了一种服务器大规模启动控制方法,包括:接收对多个服务器的启动信号;分别根据每个服务器的唯一标识计算每个服务器相应的延迟时间;在每个服务器的延迟时间结束之后,控制相应的服务器启动。The embodiment of the second aspect of the present invention proposes a large-scale start-up control method for servers, including: receiving a start-up signal for multiple servers; calculating the corresponding delay time of each server according to the unique identifier of each server; After the server's delay time expires, the corresponding server is controlled to start.
根据本发明实施例的服务器大规模启动控制方法,通过对多个服务器设置不同的延迟启动时间,实现了电源断电后重启过程中避免各服务器同时重启,到达最大瞬时功率,避免了服务器组重启导致功率超出电源额定功率,提高了服务器组的启动效率和使用寿命,并且,本发明对服务器的硬件改动很小,节约了成本,对服务器组的稳定性没有不良影响。According to the server large-scale start-up control method of the embodiment of the present invention, by setting different delayed start times for multiple servers, it is realized that all servers are prevented from restarting at the same time during the restart process after power failure, reaching the maximum instantaneous power, and avoiding server group restart As a result, the power exceeds the rated power of the power supply, which improves the starting efficiency and service life of the server group, and the present invention makes little changes to the hardware of the server, saves costs, and has no adverse effect on the stability of the server group.
在本发明的一个实施例中,所述服务器的唯一标识包括上述服务器的IP地址、MAC地址和序列号SN中的一种或多种。In an embodiment of the present invention, the unique identifier of the server includes one or more of the above-mentioned server's IP address, MAC address and serial number SN.
在本发明的一个实施例中,所述延迟时间=(MAC值+SN值)%n,其中,MAC值为所述服务器的MAC地址的值,SN值为所述服务器的序列号,n根据所述服务器组达到最大瞬时功率和电源额定功率的比值确定。In one embodiment of the present invention, the delay time=(MAC value+SN value)%n, wherein, the MAC value is the value of the MAC address of the server, the SN value is the serial number of the server, and n is based on The ratio between the maximum instantaneous power of the server group and the rated power of the power supply is determined.
本发明第三方面的实施例提出了一种用于服务器的电源控制器,包括:检测模块,用于检测与所述电源控制器相连的电源是否上电;存储模块,用于存储与所述电源控制器相连的服务器的唯一标识;计算模块,用于根据所述唯一标识计算相应的延迟时间;控制模块,用于在所述经过所述延迟时间之后控制所述服务器启动。The embodiment of the third aspect of the present invention provides a power controller for a server, including: a detection module, used to detect whether the power supply connected to the power controller is powered on; a storage module, used to store the A unique identifier of the server connected to the power controller; a calculation module, configured to calculate a corresponding delay time according to the unique identifier; a control module, configured to control the server to start after the delay time has elapsed.
根据本发明实施例的用于服务器的电源控制器,通过对服务器设置延迟启动时间,可控制服务器的具体启动时机,为服务器组在断电后的重启恢复策略提供了有效的解决方法。According to the power controller for the server in the embodiment of the present invention, by setting the delay start time for the server, the specific start timing of the server can be controlled, which provides an effective solution for the restart recovery strategy of the server group after power failure.
在本发明的一个实施例中,所述服务器的唯一标识包括上述服务器的IP地址、MAC地址和序列号SN中的一种或多种。In an embodiment of the present invention, the unique identifier of the server includes one or more of the above-mentioned server's IP address, MAC address and serial number SN.
在本发明的一个实施例中,所述电源控制器为可编程逻辑单元CPLD。In one embodiment of the present invention, the power controller is a programmable logic unit CPLD.
在本发明的一个实施例中,所述延迟时间=(MAC值+SN值)%n,其中,MAC值为所述服务器的MAC地址的值,SN值为所述服务器的序列号,n根据所述服务器组达到最大瞬时功率和电源额定功率的比值确定。In one embodiment of the present invention, the delay time=(MAC value+SN value)%n, wherein, the MAC value is the value of the MAC address of the server, the SN value is the serial number of the server, and n is based on The ratio between the maximum instantaneous power of the server group and the rated power of the power supply is determined.
在本发明的一个实施例中,所述存储模块还用于记录所述延迟时间,并在所述服务器下次启动时供所述控制模块读取。In an embodiment of the present invention, the storage module is also used to record the delay time, and provide the control module to read when the server starts up next time.
本发明附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实践了解到。Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
附图说明 Description of drawings
本发明上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present invention will become apparent and easy to understand from the following description of the embodiments in conjunction with the accompanying drawings, wherein:
图1为根据本发明一个实施例的服务器大规模启动控制系统的示意图;FIG. 1 is a schematic diagram of a server large-scale startup control system according to an embodiment of the present invention;
图2为根据本发明一个实施例的CPLD在服务器主板中的布局示意图;Fig. 2 is the layout schematic diagram of the CPLD in the server motherboard according to one embodiment of the present invention;
图3为根据本发明一个实施例的服务器大规模启动控制方法的流程图;FIG. 3 is a flow chart of a method for controlling large-scale startup of servers according to an embodiment of the present invention;
图4为根据本发明一个实施例的服务器组断电后进行恢复作业的流程图;以及Fig. 4 is the flow chart of recovery operation after the server group is powered off according to one embodiment of the present invention; And
图5为根据本发明一个实施例的用于服务器的电源控制器的示意图。FIG. 5 is a schematic diagram of a power controller for a server according to an embodiment of the present invention.
具体实施方式 detailed description
下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,仅用于解释本发明,而不能解释为对本发明的限制。Embodiments of the present invention are described in detail below, examples of which are shown in the drawings, wherein the same or similar reference numerals designate the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary only for explaining the present invention and should not be construed as limiting the present invention.
在本发明的描述中,需要理解的是,术语“纵向”、“横向”、“上”、“下”、“前”、“后”、“左”、“右”、“竖直”、“水平”、“顶”、“底”“内”、“外”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本发明和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本发明的限制。In describing the present invention, it should be understood that the terms "longitudinal", "transverse", "upper", "lower", "front", "rear", "left", "right", "vertical", The orientation or positional relationship indicated by "horizontal", "top", "bottom", "inner", "outer", etc. are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than Nothing indicating or implying that a referenced device or element must have a particular orientation, be constructed, and operate in a particular orientation should therefore not be construed as limiting the invention.
在本发明的描述中,需要说明的是,除非另有规定和限定,术语“安装”、“相连”、“连接”应做广义理解,例如,可以是机械连接或电连接,也可以是两个元件内部的连通,可以是直接相连,也可以通过中间媒介间接相连,对于本领域的普通技术人员而言,可以根据具体情况理解上述术语的具体含义。In the description of the present invention, it should be noted that unless otherwise specified and limited, the terms "installation", "connection" and "connection" should be understood in a broad sense, for example, it can be a mechanical connection or an electrical connection, or it can be two The internal communication of each element may be directly connected or indirectly connected through an intermediary. Those skilled in the art can understand the specific meanings of the above terms according to specific situations.
下面参考图1和图2描述根据本发明实施例的服务器大规模启动控制系统。The following describes a server large-scale startup control system according to an embodiment of the present invention with reference to FIG. 1 and FIG. 2 .
如图1所示,根据本发明第一方面的实施例的服务器大规模启动控制系统,包括:多个服务器101;电源102,电源102为多个服务器101供电;多个电源控制器103,每个电源控制器103连接在一个服务器101和电源102之间,电源控制器103用于在电源102上电之后,根据对应的服务器101的唯一标识生成相应的延迟时间,且在经过该延迟时间之后控制对应的服务器101启动。As shown in Figure 1, the server large-scale start-up control system according to the embodiment of the first aspect of the present invention includes: multiple servers 101; power supply 102, power supply 102 supplies power for multiple servers 101; A power controller 103 is connected between a server 101 and the power supply 102, and the power controller 103 is used to generate a corresponding delay time according to the unique identification of the corresponding server 101 after the power supply 102 is powered on, and after passing through the delay time The corresponding server 101 is controlled to start.
其中,服务器101的唯一标识可包括:服务器101的IP地址、MAC地址和序列号SN等中的一种或多种组合。Wherein, the unique identifier of the server 101 may include: one or more combinations of the server 101's IP address, MAC address, and serial number SN.
具体地,电源控制器103可以采用可编程逻辑单元CPLD(ComplexProgrammable Logic Device),CPLD获取服务器101的唯一标识,其中,唯一标识包括MAC地址(Media Access Control,硬件地址)和SN(SerialNumber,序列号)等,并对唯一标识进行储存。CPLD根据服务器101的唯一标识计算延迟时间的计算公式为:Specifically, the power controller 103 may use a programmable logic unit CPLD (Complex Programmable Logic Device), and the CPLD obtains the unique identifier of the server 101, wherein the unique identifier includes a MAC address (Media Access Control, hardware address) and an SN (SerialNumber, serial number ), etc., and store the unique identifier. The calculation formula for CPLD to calculate the delay time according to the unique identification of server 101 is:
t=(MAC+SN)%nt=(MAC+SN)%n
其中,t为延迟时间,MAC值为服务器的MAC地址的值,SN值为服务器的序列号,n根据服务器组达到最大瞬时功率和电源额定功率的比值确定。计算出延迟时间后,CPLD记录该延迟时间,并在服务器组下次启动时读取该延迟时间。启动服务器组时,在电源上电后,CPLD等待该延迟时间结束后,接通对应服务器101的电源,启动服务器101。Among them, t is the delay time, the MAC value is the value of the MAC address of the server, the SN value is the serial number of the server, and n is determined according to the ratio of the maximum instantaneous power of the server group to the rated power of the power supply. After calculating the delay time, the CPLD records the delay time and reads the delay time when the server group starts next time. When starting the server group, after the power is turned on, the CPLD waits for the delay time to end, then turns on the power of the corresponding server 101, and starts the server 101.
在本发明的一个实施例中,在电源和服务器之间加入CPLD作为控制服务器电源接入的使能。由于服务器较多,一个服务器组可以通过几个CPLD来控制。一个服务器组中得所有CPLD的时钟可通过服务器组中的一台服务器来提供各CPLD的时钟,这样就可以保证各CPLD时钟的同步性,在设定延迟时间时就能够在各CPLD之间达到时间同步的目的。In one embodiment of the present invention, a CPLD is added between the power supply and the server as an enable to control the access of the server power supply. Because there are many servers, a server group can be controlled by several CPLDs. The clocks of all CPLDs in a server group can provide the clocks of each CPLD through one server in the server group, so that the synchronization of each CPLD clock can be guaranteed, and when the delay time is set, it can be achieved between each CPLD. The purpose of time synchronization.
图2为本发明一个实施例的CPLD在服务器主板中的布局示意图。如图2中显示了CPLD作为服务器的电源控制单元在服务器主板上的逻辑位置布局。所有的服务器中在已有的CPLD控制器中加入相应的电源控制代码,使得CPLD完成对服务器电源的延迟控制。值得说明的是CPLD为服务器的电源管理控制器,是服务器中硬件。本发明只需在服务器上管理电源的CPLD中加入相应的控制程序,就可以达到本发明的发明效果,即对多个服务器设置不同的延迟启动时间,实现电源断电后重启过程中避免各服务器同时重启,到达最大瞬时功率。CPLD包括了服务器电源管理的控制,本发明只是在该服务器的原有硬件上加入了随机数延迟启动这一技术。在硬件部分中,CPLD的位置位于小功率器件和大功率器件之间,针对服务器板上的大功率器件进行随机数启动的控制。FIG. 2 is a schematic layout diagram of a CPLD in a server motherboard according to an embodiment of the present invention. Figure 2 shows the logical location layout of the CPLD as the power control unit of the server on the server motherboard. Add corresponding power control codes to the existing CPLD controllers in all servers, so that the CPLD completes the delay control of the server power supply. It is worth noting that CPLD is the power management controller of the server and is the hardware in the server. The present invention only needs to add the corresponding control program in the CPLD that manages the power supply on the server, and the inventive effect of the present invention can be achieved, that is, different delay start times are set for multiple servers, so as to avoid the delay of each server during the restart process after power failure. Restart at the same time to reach the maximum instantaneous power. The CPLD includes the control of server power supply management, and the present invention only adds the random number delayed start technology to the original hardware of the server. In the hardware part, the CPLD is located between the low-power device and the high-power device, and controls the random number startup of the high-power device on the server board.
根据本发明实施例的服务器大规模启动控制系统,通过对多个服务器设置不同的延迟启动时间,实现了电源断电后重启过程中避免各服务器同时重启,到达最大瞬时功率,避免了服务器组重启导致功率超出电源额定功率,提高了服务器组的启动效率和使用寿命,并且,本发明对服务器的无需加入新的硬件完成控制,硬件改动很小,节约了成本,对服务器组的稳定性没有不良影响。According to the server large-scale start-up control system of the embodiment of the present invention, by setting different delayed start times for multiple servers, it is possible to avoid simultaneous restart of each server during the restart process after power failure, reach the maximum instantaneous power, and avoid server group restart The power exceeds the rated power of the power supply, which improves the startup efficiency and service life of the server group, and the present invention does not need to add new hardware to complete the control of the server, and the hardware changes are very small, which saves costs and has no adverse effects on the stability of the server group influences.
如图3所示,根据本发明第二方面的实施例的服务器大规模启动控制方法,包括以下步骤:As shown in Figure 3, the server large-scale start-up control method according to the embodiment of the second aspect of the present invention includes the following steps:
S301:接收对多个服务器的启动信号。S301: Receive a start signal for multiple servers.
当电源上电后,连接在电源和服务器之间的每个电源控制器将接收到对服务器的启动信号。在本发明的一个实施例中,电源控制器采用可编程逻辑单元CPLD。When the power supply is powered on, each power controller connected between the power supply and the server will receive a start signal to the server. In one embodiment of the present invention, the power controller adopts a programmable logic unit CPLD.
S302:分别根据每个服务器的唯一标识计算每个服务器相应的延迟时间。S302: Calculate the corresponding delay time of each server according to the unique identifier of each server.
其中,服务器的唯一标识可包括:服务器的IP地址、MAC地址和序列号SN等中的一种或多种组合。Wherein, the unique identifier of the server may include: one or more combinations of the server's IP address, MAC address, and serial number SN.
延迟时间的计算公式为:The formula for calculating the delay time is:
t=(MAC+SN)%nt=(MAC+SN)%n
其中,t为延迟时间,MAC值为服务器的MAC地址的值,SN值为服务器的序列号,n根据服务器组达到最大瞬时功率和电源额定功率的比值确定。Among them, t is the delay time, the MAC value is the value of the MAC address of the server, the SN value is the serial number of the server, and n is determined according to the ratio of the maximum instantaneous power of the server group to the rated power of the power supply.
S303:在每个服务器的延迟时间结束之后,控制相应的服务器启动。S303: After the delay time of each server ends, control the corresponding server to start.
由S302步骤中延迟时间的计算公式可以得知,由于各个服务器的MAC值和SN值都是唯一的,因此从概率角度上来说,各服务器的延迟时间的值应均匀分布在0~n-1上,因此每个服务器等待各自的延迟时间后再启动,可使每个时刻启动的服务器数量得到有效的分摊,从而有效地避免了同一时刻有过多服务器启动从而导致功率超过电源额定功率的问题。From the calculation formula of the delay time in step S302, it can be known that since the MAC value and SN value of each server are unique, from the perspective of probability, the delay time values of each server should be evenly distributed between 0~n-1 Therefore, each server waits for its own delay time before starting, which can effectively distribute the number of servers started at each time, thus effectively avoiding the problem that too many servers start at the same time, causing the power to exceed the rated power of the power supply .
图4为本发明一个实施例的服务器组工作中产生了断电情形时的恢复作业流程图。FIG. 4 is a flow chart of recovery operations when a power outage occurs during the work of a server group according to an embodiment of the present invention.
S401:在电源正常的情况下,每台服务器都正常运行。S401: When the power supply is normal, each server runs normally.
S402:将CPLD所连接的各服务器的MAC地址以及序列号SN烧入CPLD内,并与各服务器做一一对应。S402: Burn the MAC address and serial number SN of each server connected to the CPLD into the CPLD, and make a one-to-one correspondence with each server.
S403:CPLD通过服务器的MAC地址及SN计算出每台服务器的延迟时间,即通过MAC地址和SN得到每台机器对应的随机数,计算公式如下:S403: CPLD calculates the delay time of each server through the MAC address and SN of the server, that is, obtains the random number corresponding to each machine through the MAC address and SN, and the calculation formula is as follows:
t=(MAC+SN)%nt=(MAC+SN)%n
其中,t为延迟时间,MAC值为服务器的MAC地址的值,SN值为服务器的序列号,n根据服务器组达到最大瞬时功率和电源额定功率的比值确定。Among them, t is the delay time, the MAC value is the value of the MAC address of the server, the SN value is the serial number of the server, and n is determined according to the ratio of the maximum instantaneous power of the server group to the rated power of the power supply.
CPLD将计算得到的延迟时间进行保存,等待电源断电后重启。The CPLD saves the calculated delay time and waits for the power to restart after power failure.
S404:实时监测电源状态,如果电源断电,执行S405;如果未断电,维持对电源的监测状态。S404: Monitor the status of the power supply in real time. If the power supply is cut off, perform S405; if the power supply is not cut off, maintain the monitoring status of the power supply.
S405:服务器组恢复过程开始。CPLD检测服务器的各个硬件参数。S405: The recovery process of the server group starts. CPLD detects various hardware parameters of the server.
S406:CPLD将步骤S403中计算的延迟时间读取,并开始计时。S406: The CPLD reads the delay time calculated in step S403, and starts timing.
S407:当某台连接在CPLD上的服务器的延迟时间结束时,CPLD接通该服务器的电源,启动该服务器。S407: When the delay time of a certain server connected to the CPLD ends, the CPLD turns on the power of the server and starts the server.
值得说明的是,在本发明实施例中,CPLD不仅仅完成如图4所示的逻辑控制,还完成了对服务器电源的管理等控制,但在本发明实施例中予以省略。It is worth noting that, in the embodiment of the present invention, the CPLD not only completes the logic control shown in FIG. 4 , but also completes control such as the management of the server power supply, but this is omitted in the embodiment of the present invention.
根据本发明实施例的服务器大规模启动控制方法,通过对多个服务器设置不同的延迟启动时间,实现了电源断电后重启过程中避免各服务器同时重启,到达最大瞬时功率,避免了服务器组重启导致功率超出电源额定功率,提高了服务器组的启动效率和使用寿命,并且,本发明对服务器的硬件改动很小,节约了成本,对服务器组的稳定性没有不良影响。According to the server large-scale start-up control method of the embodiment of the present invention, by setting different delayed start times for multiple servers, it is realized that all servers are prevented from restarting at the same time during the restart process after power failure, reaching the maximum instantaneous power, and avoiding server group restart As a result, the power exceeds the rated power of the power supply, which improves the starting efficiency and service life of the server group, and the present invention makes little changes to the hardware of the server, saves costs, and has no adverse effect on the stability of the server group.
如图5所示,本发明第三方面实施例的用于服务器的电源控制器,包括:检测模块510、存储模块520、计算模块530和控制模块540。As shown in FIG. 5 , the power controller for a server according to the embodiment of the third aspect of the present invention includes: a detection module 510 , a storage module 520 , a calculation module 530 and a control module 540 .
具体地,检测模块510用于检测与电源控制器相连的电源是否上电。存储模块520用于存储与电源控制器相连的服务器的唯一标识。计算模块530用于根据该唯一标识计算相应的延迟时间。控制模块540用于在经过延迟时间之后控制对应的服务器启动。Specifically, the detection module 510 is used to detect whether the power supply connected to the power controller is powered on. The storage module 520 is used for storing the unique identification of the server connected to the power controller. The calculation module 530 is configured to calculate a corresponding delay time according to the unique identifier. The control module 540 is used to control the corresponding server to start after the delay time elapses.
其中,服务器的唯一标识可包括:服务器的IP地址、MAC地址和序列号SN等中的一种或多种组合。Wherein, the unique identifier of the server may include: one or more combinations of the server's IP address, MAC address, and serial number SN.
具体地,电源控制器可以采用可编程逻辑单元CPLD。CPLD的计算模块530计算与CPLD相连的服务器的延迟时间Specifically, the power controller may use a programmable logic unit CPLD. The calculation module 530 of CPLD calculates the delay time of the server connected with CPLD
t=(MAC+SN)%nt=(MAC+SN)%n
其中,t为延迟时间,MAC值为服务器的MAC地址的值,SN值为服务器的序列号,n根据服务器组达到最大瞬时功率和电源额定功率的比值确定。计算出延迟时间后,将该延迟时间保存在存储模块520中,在下次检测模块510检测到电源上电后,控制模块540读取延迟时间,并在等待延迟时间结束后,控制对应的服务器启动。Among them, t is the delay time, the MAC value is the value of the MAC address of the server, the SN value is the serial number of the server, and n is determined according to the ratio of the maximum instantaneous power of the server group to the rated power of the power supply. After the delay time is calculated, the delay time is stored in the storage module 520. After the detection module 510 detects that the power is turned on next time, the control module 540 reads the delay time, and after waiting for the delay time to end, controls the corresponding server to start .
根据本发明实施例的用于服务器的电源控制器,通过对服务器设置延迟启动时间,可控制服务器的具体启动时机,为服务器组在断电后的重启恢复策略提供了有效的解决方法。According to the power controller for the server in the embodiment of the present invention, by setting the delay start time for the server, the specific start timing of the server can be controlled, which provides an effective solution for the restart recovery strategy of the server group after power failure.
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本发明的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本发明的实施例所属技术领域的技术人员所理解。Any process or method descriptions in flowcharts or otherwise described herein may be understood to represent modules, segments or portions of code comprising one or more executable instructions for implementing specific logical functions or steps of the process , and the scope of preferred embodiments of the invention includes alternative implementations in which functions may be performed out of the order shown or discussed, including substantially concurrently or in reverse order depending on the functions involved, which shall It is understood by those skilled in the art to which the embodiments of the present invention pertain.
在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,"计算机可读介质"可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。The logic and/or steps represented in the flowcharts or otherwise described herein, for example, can be considered as a sequenced listing of executable instructions for implementing logical functions, can be embodied in any computer-readable medium, For use with an instruction execution system, device, or device (such as a computer-based system, a system including a processor, or other systems that can fetch instructions from an instruction execution system, device, or device and execute instructions), or in conjunction with such an instruction execution system, device or equipment for use. For the purposes of this specification, a "computer-readable medium" may be any device that can contain, store, communicate, propagate or transmit a program for use in or in conjunction with an instruction execution system, device or device. More specific examples (non-exhaustive list) of computer-readable media include the following: electrical connection with one or more wires (electronic device), portable computer disk case (magnetic device), random access memory (RAM), Read Only Memory (ROM), Erasable and Editable Read Only Memory (EPROM or Flash Memory), Fiber Optic Devices, and Portable Compact Disc Read Only Memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program can be printed, since the program can be read, for example, by optically scanning the paper or other medium, followed by editing, interpretation or other suitable processing if necessary. The program is processed electronically and stored in computer memory.
应当理解,本发明的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that various parts of the present invention can be realized by hardware, software, firmware or their combination. In the above described embodiments, various steps or methods may be implemented by software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques known in the art: Discrete logic circuits, ASICs with suitable combinational logic gates, Programmable Gate Arrays (PGAs), Field Programmable Gate Arrays (FPGAs), etc.
本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。Those of ordinary skill in the art can understand that all or part of the steps carried by the methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium. During execution, one or a combination of the steps of the method embodiments is included.
此外,在本发明各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing module, each unit may exist separately physically, or two or more units may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules. If the integrated modules are realized in the form of software function modules and sold or used as independent products, they can also be stored in a computer-readable storage medium.
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。In the description of this specification, descriptions referring to the terms "one embodiment", "some embodiments", "example", "specific examples", or "some examples" mean that specific features described in connection with the embodiment or example , structure, material or characteristic is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
尽管已经示出和描述了本发明的实施例,对于本领域的普通技术人员而言,可以理解在不脱离本发明的原理和精神的情况下可以对这些实施例进行多种变化、修改、替换和变型,本发明的范围由所附权利要求及其等同限定。Although the embodiments of the present invention have been shown and described, those skilled in the art can understand that various changes, modifications and substitutions can be made to these embodiments without departing from the principle and spirit of the present invention. and modifications, the scope of the invention is defined by the appended claims and their equivalents.
Claims (8)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201210269624.4A CN103576819B (en) | 2012-07-30 | 2012-07-30 | Server starts control system, method and device on a large scale |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201210269624.4A CN103576819B (en) | 2012-07-30 | 2012-07-30 | Server starts control system, method and device on a large scale |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN103576819A CN103576819A (en) | 2014-02-12 |
| CN103576819B true CN103576819B (en) | 2016-12-21 |
Family
ID=50048787
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201210269624.4A Active CN103576819B (en) | 2012-07-30 | 2012-07-30 | Server starts control system, method and device on a large scale |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN103576819B (en) |
Families Citing this family (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US11625147B2 (en) | 2014-05-08 | 2023-04-11 | Beet, Inc. | Automation management interface with multiple asset display |
| US10048670B2 (en) * | 2014-05-08 | 2018-08-14 | Beet, Llc | Automation operating and management system |
| CN106557138B (en) * | 2015-09-28 | 2019-07-09 | 佛山市顺德区顺达电脑厂有限公司 | Servo-system and random start device |
| CN107239274A (en) * | 2017-05-03 | 2017-10-10 | 深圳市同泰怡信息技术有限公司 | The method and its server of a kind of server random start |
| CN109976495A (en) * | 2019-03-28 | 2019-07-05 | 苏州浪潮智能科技有限公司 | A kind of server start-up control method, device and server |
| CN111787104A (en) * | 2020-06-30 | 2020-10-16 | 常德玖和广告有限公司 | An automatic push method and system for displaying information of an outdoor landscape iron tower |
| CN112947733A (en) * | 2021-03-29 | 2021-06-11 | 联想(北京)信息技术有限公司 | Control method, server and control terminal |
| CN114567576B (en) * | 2022-03-09 | 2023-05-26 | 冠捷电子科技(福建)有限公司 | Method and architecture for reducing instantaneous current in medical display terminal in starting mode |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2008139949A (en) * | 2006-11-30 | 2008-06-19 | Seiko Epson Corp | Power management apparatus, processing apparatus, power management method and program thereof |
| CN102480361A (en) * | 2010-11-30 | 2012-05-30 | 英业达股份有限公司 | Power Control Method for Multiple Servers |
| CN102480389A (en) * | 2010-11-30 | 2012-05-30 | 英业达股份有限公司 | Rack server system |
-
2012
- 2012-07-30 CN CN201210269624.4A patent/CN103576819B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2008139949A (en) * | 2006-11-30 | 2008-06-19 | Seiko Epson Corp | Power management apparatus, processing apparatus, power management method and program thereof |
| CN102480361A (en) * | 2010-11-30 | 2012-05-30 | 英业达股份有限公司 | Power Control Method for Multiple Servers |
| CN102480389A (en) * | 2010-11-30 | 2012-05-30 | 英业达股份有限公司 | Rack server system |
Also Published As
| Publication number | Publication date |
|---|---|
| CN103576819A (en) | 2014-02-12 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN103576819B (en) | Server starts control system, method and device on a large scale | |
| CN102687094B (en) | Processing method and appliance for multi-power supply | |
| KR101458357B1 (en) | Rack and power control method thereof | |
| US8656003B2 (en) | Method for controlling rack system using RMC to determine type of node based on FRU's message when status of chassis is changed | |
| US9170618B2 (en) | Power management circuit, server, and power management method thereof | |
| JP5169186B2 (en) | Power supply | |
| JP5997700B2 (en) | Power supply device and control method thereof | |
| CN118778790A (en) | Operation control method and device of server power supply | |
| US20140132070A1 (en) | Rack and power control method thereof | |
| WO2024255230A1 (en) | Power-failure hold circuit, power supply protection method and apparatus, and power supply control circuit | |
| US9389659B2 (en) | Power supply system | |
| US10886749B2 (en) | Synchronized startup of power supplies in electrical systems | |
| CN105824381A (en) | Single board power down restart adjustment method, apparatus and system | |
| CN106774760A (en) | A kind of power supply cabinet, electric power system and method | |
| TWI547060B (en) | Power system, and non-transitory machine-readable storage medium and method related to said power system | |
| CN102130772A (en) | Energy-saving method of service single board, main control board, service single board and access equipment | |
| CN104218665A (en) | A power supply apparatus and a method for switching the same | |
| CN103138967B (en) | Server rack system and time delay starting-up method thereof | |
| TWI477032B (en) | Rack and power controlling method thereof | |
| TWI482395B (en) | Rack and power controlling method thereof | |
| CN110049264B (en) | Laser television power supply control system and method | |
| CN114647293B (en) | Power-down protection method and device, power supply monitoring assembly and server | |
| CN119651816A (en) | Power supply method and power supply system for energy storage device | |
| US20180113503A1 (en) | Deep off power states | |
| TW201137586A (en) | Information system with backup power |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant |