A storage server cluster startup method and storage server cluster

By obtaining the storage unit information and current power value of the storage server cluster, the hard disk groups are started in batches, which solves the power surge problem when the server cluster is started and achieves more stable power management and efficiency improvement.

CN118567582BActive Publication Date: 2024-10-29ZHEJIANG HUAQI INTELLIGENT TECHNOLOGY CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411052997.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-02
Publication Date
2024-10-29
Estimated Expiration
2044-08-02

AI Technical Summary

Technical Problem

When a server cluster is started, when all storage server devices are powered on or started at the same time, the power consumption peaks are superimposed, causing great pressure on the power supply of the computer room or server cluster, causing a surge phenomenon.

Method used

By obtaining the cluster storage unit information table, determine the current power value of the unstarted target storage server, and based on the cluster total power value and the storage unit information table, start the hard disk group in batches to reduce the power peak at startup. The master target storage server executes a preset election algorithm, determines the master target storage server and the slave target storage server from multiple target storage servers, and sends startup information in batches to control the power on of the hard disk group.

Benefits of technology

It realizes the batch startup of storage server clusters, reduces the power peak during startup, avoids power surges, and improves the power-on efficiency of the cluster and the stability of the power supply equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118567582B_ABST
    Figure CN118567582B_ABST
Patent Text Reader

Abstract

The present application relates to a storage server cluster startup method and storage server cluster, wherein the method comprises: obtaining a cluster storage unit information table; the storage unit information table comprises the device numbers of the multiple target storage servers, the startup policy information of the storage units of the multiple target storage servers and the startup status of the storage units of the multiple target storage servers; the target storage server is a storage server in the storage server cluster that has completed the startup of the computing unit; when there is a target storage server whose storage unit is not started, the current power value of the multiple target storage servers is obtained; according to the total power value of the cluster, the current power value of the multiple target storage servers and the cluster storage unit information table, the startup information of the next startup batch is determined. Through the present application, the power peak of the storage server cluster at startup is reduced, and the surge phenomenon of the server cluster in the prior art is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method for starting a storage server cluster and a storage server cluster. Background Art

[0002] A server cluster such as a data center or a server room usually includes a large number of servers. The power consumption of a large number of servers is very large, especially during the power-on startup phase of the servers.

[0003] For storage servers, the energy-consuming components they contain mainly include CPU (Central Processing Unit), hard disk, and fan. Since the CPU computing performance requirements of storage servers are not as high as those of computing servers, the CPU power consumption will not be very large. After the device is turned on and running, as the startup speed adjustment strategy takes effect, the fan speed decreases, and the power consumption will not be very large. However, when the hard disk is started, due to the start-up of the internal motor of the hard disk, there will be a relatively large peak power consumption. For example, the peak power consumption of a 3.5-inch mechanical hard disk at startup will reach about 3 times the stable operation power consumption of the hard disk. Therefore, for a storage server, the peak power consumption of the hard disk at startup has a decisive impact on the peak power consumption of the storage server at startup. The problem brought about by this situation is that when all storage server devices are powered on or started together, the peak power consumption of all servers is superimposed, which will cause a very large pressure on the power supply of the computer room or server cluster, thereby causing a surge in the power supply equipment of the server cluster. Summary of the invention

[0004] The embodiments of the present application provide a method for starting a storage server cluster and a storage server cluster to solve the problem of power surge in the power supply equipment of the server cluster in the prior art.

[0005] In a first aspect, an embodiment of the present application provides a method for starting a storage server cluster, wherein the storage server cluster includes a plurality of storage servers, and the method for starting the storage server cluster includes:

[0006] Obtaining a cluster storage unit information table; the storage unit information table includes device numbers of the multiple target storage servers, startup policy information of the storage units of the multiple target storage servers, and startup status of the storage units of the multiple target storage servers; the target storage server is a storage server in the storage server cluster that has completed the startup of the computing unit;

[0007] When there is a target storage server whose storage unit is not started, obtaining current power values ​​of the plurality of target storage servers;

[0008] The startup information of the next startup batch is determined according to the total power value of the cluster, the current power values ​​of the plurality of target storage servers and the cluster storage unit information table.

[0009] In some embodiments, determining the startup information of the next startup batch according to the total power value of the cluster, the current power values ​​of the plurality of target storage servers and the cluster storage unit information table includes:

[0010] Determine the power peak value of the next startup batch according to the total power value of the cluster and the current power values ​​of the multiple target storage servers;

[0011] The startup information of the next startup batch is determined according to the power peak value of the next startup batch and the cluster storage unit information table.

[0012] In some embodiments, the storage unit of the target storage server includes one or more hard disk groups, and the hard disk group includes one or more hard disks. The determining the startup information of the next startup batch according to the power peak value of the next startup batch and the cluster storage unit information table includes:

[0013] Determine the number of hard disks that can be started in the next startup batch according to the power peak value of the next startup batch and the average power value of the hard disk when starting;

[0014] Determine the target storage server to be started in the next startup batch and the hard disk group to be started in the target storage server to be started according to the number of hard disks that can be started in the next startup batch and the cluster storage unit information table;

[0015] Alternatively, the target storage servers to be started in the next startup batch and the hard disks to be started in the target storage servers to be started are determined according to the number of hard disks that can be started in the next startup batch and the cluster storage unit information table.

[0016] In some embodiments, the startup policy information of the storage unit of the target storage server includes the total number of hard disks of the storage unit, the number of hard disk groups into which the storage unit is divided when it is started, and the number of hard disks in each hard disk group.

[0017] In some embodiments, the startup information of the next startup batch includes one or more hard disk groups to be started in the next startup batch; the multiple hard disk groups to be started are hard disk groups of different target storage servers.

[0018] In some embodiments, the plurality of target storage servers include a master target storage server and a plurality of slave target storage servers, and after determining the startup information of the next startup batch, the method further includes:

[0019] Sending the startup information of the next startup batch to the corresponding multiple slave target storage servers;

[0020] And / or, starting the storage unit of the primary target storage server according to the startup information.

[0021] In some of the embodiments, the method further includes: updating the cluster storage unit information table according to the startup result of the current startup batch.

[0022] In some of the embodiments, the multiple target storage servers include a master target storage server and multiple slave target storage servers, the computing unit also includes a storage medium, and the method also includes: when the storage unit of the master target storage server is started, writing the data stored in the storage medium to the storage unit of the master target storage server for storage.

[0023] In a second aspect, an embodiment of the present application provides a method for starting a storage server cluster, wherein the storage server cluster includes a plurality of storage servers and a power supply device, wherein the plurality of storage servers are respectively connected to the power supply device, and the method includes:

[0024] The power supply device starts the computing units of the plurality of storage servers;

[0025] The multiple target storage servers respectively execute a preset election algorithm to determine a master target storage server and multiple slave target storage servers from the multiple target storage servers; the target storage servers are storage servers started by the completion computing unit in the storage server cluster;

[0026] The primary target storage server executes the method for starting the storage server cluster described in the first aspect;

[0027] The plurality of slave target storage servers receive the startup information of the next startup batch sent by the master target storage server, and start the servers according to the startup information.

[0028] In the third aspect, an embodiment of the present application provides a storage server cluster, wherein the storage server cluster includes multiple storage servers, a network switch and a power supply device, the multiple storage servers are respectively connected to the network switch, the multiple storage servers are respectively connected to the power supply device, the power supply device starts the computing units of the multiple storage servers, and the multiple target storage servers respectively execute a preset election algorithm to determine a main target storage server and multiple slave target storage servers from the multiple target storage servers, the target storage server is a storage server in the storage server cluster that completes the startup of the computing unit, and the main target storage server executes the startup method of the storage server cluster described in the first aspect.

[0029] Compared with the prior art, the startup method and storage server cluster of the storage server cluster provided in the embodiments of the present application start the computing units of multiple storage servers first, record the storages that complete the startup or power-on of the computing units in the multiple storage servers as target storage servers, and the multiple target storage servers respectively execute a preset election algorithm to determine the main target storage server and multiple slave target storage servers from the multiple target storage servers, and obtain the cluster storage unit information table through the main target storage server. The storage unit information table includes the device numbers of the multiple target storage servers, the startup policy information of the storage units of the multiple target storage servers, and the startup status of the storage units of the multiple target storage servers. When there are target storage servers whose storage units are not started, the main target storage server obtains the current power values ​​of the multiple target storage servers, and the main target storage server determines the startup information of the next startup batch according to the total power value of the cluster, the current power values ​​of the multiple target storage servers, and the cluster storage unit information table. This enables the storage servers in the storage server cluster to be started in batches, reduces the power peak of the storage server cluster during startup, and solves the problem in the prior art that when all storage server devices are powered on or started together, the power consumption peaks of all servers are superimposed, which puts great pressure on the power supply of the computer room or server cluster, thereby causing a surge in the power supply equipment of the server cluster.

[0030] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0032] Figure 1 It is a schematic diagram of the structure of a storage server cluster in an embodiment of the present application;

[0033] Figure 2 It is a structural diagram of a storage server in an embodiment of the present application;

[0034] Figure 3 It is a flow chart of a method for starting a storage server cluster according to an embodiment of the present application;

[0035] Figure 4 is a flow chart of determining startup information of the next startup batch according to an embodiment of the present application;

[0036] Figure 5is a flow chart of another method for starting a storage server cluster according to an embodiment of the present application;

[0037] Figure 6 It is a structural block diagram of a startup device for a storage server cluster according to an embodiment of the present application. DETAILED DESCRIPTION

[0038] In order to more clearly understand the purpose, technical solutions and advantages of the present application, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments.

[0039] Unless otherwise defined, the technical terms or scientific terms involved in this application shall have the general meaning understood by people with general skills in the technical field to which this application belongs. The words "one", "a", "the", "these" and the like in this application do not indicate a quantitative limitation, and they may be singular or plural. The terms "include", "comprise", "have" and any variants thereof involved in this application are intended to cover non-exclusive inclusions; for example, a process, method and system, product or device comprising a series of steps or modules (units) is not limited to the listed steps or modules (units), but may include unlisted steps or modules (units), or may include other steps or modules (units) inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The "multiple" involved in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there may be three relationships, for example, "A and / or B" may mean: A exists alone, A and B exist at the same time, and B exists alone. Generally, the character " / " indicates that the objects associated with each other are in an "or" relationship. The terms "first", "second", "third", etc. in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.

[0040] In an embodiment of the present application, a storage server cluster is provided. Figure 1 is a schematic diagram of the structure of a storage server cluster in an embodiment of the present application, such as Figure 1 As shown, the storage server cluster includes multiple storage servers and network switches, wherein the multiple storage servers are connected to the network switches respectively, and each storage server is connected to the network switch through a network to form a local area network, so as to realize mutual communication between the multiple storage servers. Figure 1 Storage server A1, storage server A2, ... storage server A N , where N is a positive integer greater than 2, storage server A1, storage server A2... storage server AN The storage server cluster also includes a power supply device, and the plurality of storage servers are connected to the power supply device, namely, storage server A1, storage server A2, ... storage server A N They are respectively connected to power supply devices. The power supply devices are used to control the power-on and startup of multiple storage servers. Usually, the power supply devices first control the control unit or computing unit of the storage server, such as the CPU. After the control unit or computing unit is powered on or started, the control unit or computing unit sends corresponding instructions to other units or modules to start other units or modules.

[0041] In some of the embodiments, from the perspective of power supply, the storage server is divided into a computing unit and a storage unit, wherein the power supply of the storage unit is controlled by the computing unit, such as Figure 2 As shown, the storage server includes a computing unit and a storage unit, wherein the storage unit includes one or more hard disk groups, the computing unit includes a CPU processor and a storage medium, the CPU processor is connected to the storage medium, when the storage unit is not started, the data that needs to be stored generated by the CPU processor is stored in the storage medium, and the CPU processor controls the power-on or startup of the hard disk group through the corresponding hard disk power switch. The storage server also includes a power supply module. For a storage server, limited by the power limit of the power supply module of each storage server, the hard disks of the storage unit are reasonably divided into M groups, each group includes one or more hard disks, and each hard disk group is powered on or started in batches. The CPU processor in the computing unit controls the hard disk power switch through the IO signal, and then controls the power-on of each batch of hard disks. Figure 2 The storage unit is divided into three hard disk groups as an example for schematic illustration, that is, all hard disks of the storage unit are divided into three batches for startup or power-on. It is understandable that the storage unit can be divided into multiple hard disk groups according to the power limit of the power supply module of the storage server, such as 4 hard disk groups, 5 hard disk groups, 6 hard disk groups, etc., which are not specifically limited here.

[0042] The power supply device controls the power-on or startup of the computing units of multiple storage servers in the storage server cluster. The power supply device can control the computing units of multiple storage servers to start or power on simultaneously, or can control the computing units of multiple storage servers to start or power on in batches. That is, the power supply device can control storage server A1, storage server A2, ... storage server A N A total of N computing units are started or powered on at the same time, and storage servers A1, A2, and A3 can also be controlled. NA total of N computing units of the storage server are started or powered on in batches. When the computing unit of the storage server is started or powered on, no startup or power-on control signal is sent to the corresponding storage unit, and the storage unit is started or powered on after the main target storage server sends the corresponding startup or power-on instruction, that is, only the computing unit is started or powered on in the current stage. After the power supply device controls the computing units of multiple storage servers to start or power on at the same time, within a preset time, the storage units that complete the startup or power-on of the computing units in the multiple storage servers are recorded as target storage servers. If a total of M storage servers among the N storage servers complete the startup or power-on of their computing units within the preset time, the M storage servers are recorded as target storage servers, where M is a positive integer less than or equal to N. The M target storage servers respectively execute a preset election algorithm to determine the main target storage server and multiple slave target storage servers from the multiple target storage servers. The main target storage server obtains a cluster storage unit information table; the storage unit information table includes the device numbers of the multiple target storage servers, the startup policy information of the storage units of the multiple target storage servers, and the startup status of the storage units of the multiple target storage servers. When there are target storage servers whose storage units are not started or powered on in the cluster storage unit information table, that is, there are still some target storage servers whose storage units are not started or powered on, the main target storage server obtains the current power values ​​of multiple target storage servers, where the current power values ​​of multiple target storage servers are the current power values ​​of all target storage servers in the storage server cluster at the current moment. The current power value here can be determined by reading the current value of the power module or power supply module of the target storage server by the CPU, and then determined according to the rated voltage of the power module or power supply module. The main target storage server determines the startup information of the next startup batch according to the total power value of the cluster, the current power values ​​of multiple target storage servers and the cluster storage unit information table, and the storage units of all target storage servers in the cluster storage unit information table are started or powered on. After the main target storage server determines the startup information of the next startup batch, it sends the startup information of the next startup batch to the corresponding multiple slave target storage servers and starts the storage units of the main target storage server according to the startup information, and multiple slave target storage servers start the storage units of the slave target storage servers according to the startup information of the next startup batch. Alternatively, after the master target storage server determines the startup information of the next startup batch, it sends the startup information of the next startup batch to the corresponding multiple slave target storage servers, and the multiple slave target storage servers start the storage units of the slave target storage servers according to the startup information of the next startup batch. Alternatively, after the master target storage server determines the startup information of the next startup batch, it starts the storage units of the master target storage server according to the startup information.The startup strategy information of the storage unit here includes the time-sharing power-on strategy information of the storage unit. When the corresponding computing unit or CPU processor is started or powered on, the CPU processor can obtain the time-sharing power-on strategy information of the current target storage server. The time-sharing power-on strategy information here includes the total number of hard disks of the current target storage server, the number of hard disk groups, and the number of hard disks in each hard disk group. When each storage server leaves the factory, it will preset the time-sharing power-on strategy of the hard disks loaded on each storage server according to the power of the industrial power module configured by itself. The purpose is to avoid exceeding the total power of the industrial power module configured by the device when the device is powered on, causing the industrial power supply of the device to be unable to start due to overcurrent. For example, the hard disk is powered on by 3 groups according to the preset settings, and is controlled by the CPU processor through IO signals.

[0043] As a non-limiting example, the preset election algorithm here can be a random election algorithm, such as each target storage server generates a random number, and sends the generated random number to other target storage servers in the network through the network, and each target storage server compares these random numbers, and the target storage server with the largest or smallest value is elected as the main target storage server. As another non-limiting example, the preset election algorithm here can be an election method based on voting, such as the target storage servers in the local area network can communicate with each other and vote, and each target storage server can cast its own vote for other target storage servers, and the device that obtains the most votes becomes the main target storage server. The example here is only used to explain the preset election algorithm, and is not a limitation on the preset election algorithm. The preset election algorithm can also adopt other election algorithms.

[0044] The storage server cluster provided in this embodiment includes multiple storage servers, the power supply device first starts the computing units of the multiple storage servers, and the storages that complete the startup or power-on of the computing units in the multiple storage servers are recorded as target storage servers. The multiple target storage servers respectively execute a preset election algorithm to determine a main target storage server and multiple slave target storage servers from the multiple target storage servers. The main target storage server obtains a cluster storage unit information table, and the storage unit information table includes the device numbers of the multiple target storage servers, the startup policy information of the storage units of the multiple target storage servers, and the startup status of the storage units of the multiple target storage servers. When there are target storage servers whose storage units are not started, the main target storage server obtains the current power values ​​of the multiple target storage servers. The main target storage server determines the startup information of the next startup batch according to the total power value of the cluster, the current power values ​​of the multiple target storage servers, and the cluster storage unit information table. This enables the storage servers in the storage server cluster to be started in batches, reduces the power peak of the storage server cluster during startup, and solves the problem in the prior art that when all storage server devices are powered on or started together, the power consumption peaks of all servers are superimposed, which puts great pressure on the power supply of the computer room or server cluster, thereby causing a surge in the power supply equipment of the server cluster.

[0045] In an embodiment of the present application, a method for starting a storage server cluster is provided. Figure 3 is a flow chart of a method for starting a storage server cluster according to an embodiment of the present application, such as Figure 3 As shown, the process includes the following steps:

[0046] Step S310, obtain the cluster storage unit information table; the storage unit information table includes the device numbers of multiple target storage servers, the startup policy information of the storage units of multiple target storage servers, and the startup status of the storage units of multiple target storage servers; the target storage server is the storage server in the storage server cluster that completes the startup of the computing unit.

[0047] In this step, the power supply device starts the computing units of multiple storage servers, and the storages that have completed the startup of the computing units or powered on in the multiple storage servers are recorded as target storage servers. The multiple target storage servers respectively execute the preset election algorithm to determine the main target storage server and multiple slave target storage servers from the multiple target storage servers. After determining the main target storage server and the multiple slave target storage servers, the main target storage server respectively performs device numbers on the main target storage server and the multiple slave target storage servers. After the computing units are started, the computing units of the multiple slave target storage servers respectively obtain their own startup policy information, and the multiple slave target storage servers send their own startup policy information and device numbers to the main target storage server. The computing unit of the main target storage server generates a cluster storage unit information table based on the device numbers, startup policy information and startup status of the multiple slave target storage servers, as well as the device number, startup policy information and startup status of the storage units of the main target storage server. That is, the cluster storage unit information table includes the device numbers, startup policy information, and startup status of the storage units of all target storage servers, and the startup policy information and the startup status of the storage unit correspond to the device numbers. The startup policy information and the startup status of the storage unit can be stored in the cluster storage unit information table in the order of the size of the device numbers. For example, the device numbers of the M target storage servers are B1, B2, ... B M , according to B1, B2, ... B M The startup policy information and the startup status of the storage unit are stored in the cluster storage unit information table in the order of. The startup status of the storage unit here includes that the storage unit is started and that the storage unit is not started. The startup policy information of the storage unit here includes the time-sharing power-on policy information of the storage unit. When the corresponding computing unit or CPU processor is started or powered on, the CPU processor can obtain the time-sharing power-on policy information of the current target storage server. The time-sharing power-on policy information here includes the total number of hard disks of the current target storage server, the number of hard disk groups, and the number of hard disks in each hard disk group.

[0048] Step S320: When there is a target storage server whose storage unit is not started, obtain current power values ​​of multiple target storage servers.

[0049] In this step, the computing unit of the main target storage server judges whether the storage units of all the target storage servers in the storage server cluster have all completed power-on or startup according to the startup state of the storage unit in the cluster storage unit information table. For example, whether the startup state of M target storage servers in the cluster storage unit information table is that the storage unit has been started, to judge whether the storage units of M target storage servers have all been started or powered on. When there is a target storage server in which the storage unit has not been started or powered on in the M target storage servers, the computing unit of the main target storage server obtains the current power value of multiple target storage servers. The current power value of the multiple target storage servers obtained here is the current power value of the M target storage servers. The current power value here can be read by the CPU The current value of the power module or the power supply module at the current moment of the target storage server, and then determined according to the rated voltage of the power module or the power supply module. The current power value of each target storage server is added to obtain the current power value of multiple target storage servers.

[0050] Step S330: Determine the startup information of the next startup batch according to the total power value of the cluster, the current power values ​​of the multiple target storage servers, and the cluster storage unit information table.

[0051] In this step, the calculation unit of the main target storage server determines the startup information of the next startup batch according to the total power value of the cluster, the current power values ​​of the multiple target storage servers and the cluster storage unit information table. The total power value of the cluster here can be determined according to the performance parameters of the power supply equipment of the storage server cluster. The total power value of the cluster here can be determined according to the maximum power value that the power supply equipment can provide.

[0052] The method for starting a storage server cluster provided in this embodiment first starts the computing units of multiple storage servers, records the storages that have completed the startup or power-on of the computing units in the multiple storage servers as target storage servers, and the multiple target storage servers respectively execute a preset election algorithm to determine a master target storage server and multiple slave target storage servers from the multiple target storage servers, and obtains a cluster storage unit information table through the computing unit of the master target storage server, the storage unit information table includes the device numbers of the multiple target storage servers, the startup policy information of the storage units of the multiple target storage servers, and the startup status of the storage units of the multiple target storage servers. When there are target storage servers whose storage units are not started, the computing unit of the master target storage server obtains the current power values ​​of the multiple target storage servers, and the computing unit of the master target storage server determines the startup information of the next startup batch according to the total power value of the cluster, the current power values ​​of the multiple target storage servers, and the cluster storage unit information table. This enables the storage servers in the storage server cluster to be started in batches, reduces the power peak of the storage server cluster during startup, and solves the problem in the prior art that when all storage server devices are powered on or started together, the power consumption peaks of all servers are superimposed, which puts great pressure on the power supply of the computer room or server cluster, thereby causing a surge in the power supply equipment of the server cluster.

[0053] In some of the embodiments, Figure 4 As shown, according to the total power value of the cluster, the current power values ​​of multiple target storage servers and the cluster storage unit information table, determining the startup information of the next startup batch includes the following steps:

[0054] Step S410, determining the power peak value of the next startup batch according to the total power value of the cluster and the current power values ​​of the multiple target storage servers.

[0055] Step S420: determining the startup information of the next startup batch according to the power peak value of the next startup batch and the cluster storage unit information table.

[0056] In this embodiment, the calculation unit of the main target storage server determines the power peak value of the next startup batch based on the total power value of the cluster and the current power values ​​of multiple target storage servers. The calculation unit of the main target storage server determines the startup information of the next startup batch based on the power peak value of the next startup batch and the cluster storage unit information table.

[0057] In some of the embodiments, the storage unit of the target storage server includes one or more hard disk groups, and the hard disk group includes one or more hard disks. The startup information of the next startup batch is determined according to the power peak value of the next startup batch and the cluster storage unit information table, including: determining the number of hard disks that can be started in the next startup batch according to the power peak value of the next startup batch and the average power value when the hard disks are started; determining the target storage server to be started in the next startup batch and the hard disk group to be started in the target storage server to be started according to the number of hard disks that can be started in the next startup batch and the cluster storage unit information table; or, determining the target storage server to be started in the next startup batch and the hard disk to be started in the target storage server to be started according to the number of hard disks that can be started in the next startup batch and the cluster storage unit information table.

[0058] In this embodiment, the calculation unit of the master target storage server determines the number of hard disks that can be started in the next startup batch according to the power peak value of the next startup batch and the average power value when the hard disk is started. After determining the number of hard disks that can be started in the next startup batch, the calculation unit of the master target storage server determines the target storage servers to be started in the next startup batch and the hard disk groups to be started in the target storage servers to be started according to the number of hard disks that can be started in the next startup batch and the cluster storage unit information table. Alternatively, the calculation unit of the master target storage server determines the target storage servers to be started in the next startup batch and the hard disks to be started in the target storage servers to be started according to the number of hard disks that can be started in the next startup batch and the cluster storage unit information table, and each startup batch starts at most one hard disk group in one target storage server. As a non-limiting example, the computing unit of the main target storage server determines that the number of hard disks that can be started in the next startup batch is L based on the power peak value of the next startup batch and the average power value when the hard disk is started. Assume that the device number of the starting target storage server of the next startup batch is B2 obtained by querying the cluster storage unit information table, and the hard disk group of the started storage unit is the second group. If the sum of the number of all hard disks in the second hard disk group of the target storage with device numbers B2~B6 is greater than L, and the sum of the number of all hard disks in the second hard disk group of the target storage with device numbers B2~B5 is less than L, then the target storage with device numbers B2~B5 is determined to be the target storage server to be started in the next startup batch, and the second hard disk group of the target storage with device numbers B2~B5 is determined to be the hard disk group to be started in the target storage server to be started in the next startup batch. As another non-limiting example, if the calculation unit of the main target storage server determines that the number of hard disks that can be started in the next startup batch is L according to the power peak value of the next startup batch and the average power value when the hard disk is started, it is assumed that the device number of the starting target storage server of the next startup batch is B2, and the hard disk group of the storage unit to be started is the second group, and if the number of all hard disks in the second hard disk group of the target storage with device numbers B2~B5 is added up to L1, where L1 is less than L, then the target storage with device numbers B2~B6 is determined to be the target storage server to be started in the next startup batch, and all hard disks in the second hard disk group of the target storage with device numbers B2~B5 and L-L1 hard disks in the second hard disk group of the target storage with device number B6 are determined to be the hard disks to be started in the target storage server to be started in the next startup batch. In this embodiment, the number of hard disks that can be started in the next startup batch is determined by the power peak value of the next startup batch and the average power value when the hard disk is started, and then the strategy of the next startup batch is determined according to the number of hard disks that can be started in the next startup batch and the cluster storage unit information table, so as to improve the power-on efficiency of the cluster on the basis of avoiding power surges.

[0059] In some of the embodiments, the startup policy information of the storage unit of the target storage server includes the total number of hard disks of the storage unit, the number of hard disk groups into which the storage unit is divided when it is started, and the number of hard disks in each hard disk group.

[0060] In some of the embodiments, the startup information of the next startup batch includes one or more hard disk groups to be started in the next startup batch; the multiple hard disk groups to be started are hard disk groups of different target storage servers.

[0061] In some of the embodiments, the multiple target storage servers include a master target storage server and multiple slave target storage servers. After determining the startup information of the next startup batch, the method also includes: sending the startup information of the next startup batch to the corresponding multiple slave target storage servers; and / or, starting the storage unit of the master target storage server according to the startup information.

[0062] In this embodiment, after the calculation unit of the master target storage server determines the startup information of the next startup batch, it sends the startup information of the next startup batch to the corresponding multiple slave target storage servers and starts the storage units of the master target storage server according to the startup information, and the multiple slave target storage servers start the storage units of the slave target storage servers according to the startup information of the next startup batch. Alternatively, after the calculation unit of the master target storage server determines the startup information of the next startup batch, it sends the startup information of the next startup batch to the corresponding multiple slave target storage servers, and the multiple slave target storage servers start the storage units of the slave target storage servers according to the startup information of the next startup batch. Alternatively, after the calculation unit of the master target storage server determines the startup information of the next startup batch, it starts the storage units of the master target storage server according to the startup information.

[0063] In some of the embodiments, the method includes: updating the cluster storage unit information table according to the startup result of the current startup batch.

[0064] In this embodiment, the computing unit of the master target storage server updates the cluster storage unit information table according to the startup result of the current startup batch. After the current startup batch is executed, the computing unit of the slave target storage server involved in the current startup batch obtains the startup status of the hard disk group of its own storage unit, and sends the startup status to the master target storage server, obtains the startup status of the hard disk group of the storage unit of the master target storage server, and updates the cluster storage unit information table according to the startup status of the hard disk group of the storage unit of the slave target storage server of the current startup batch and / or the startup status of the hard disk group of the storage unit of the master target storage server of the current startup batch. The updated cluster storage unit information table is used to determine the startup information of the next startup batch.

[0065] In some of the embodiments, the multiple target storage servers include a master target storage server and multiple slave target storage servers, the computing unit also includes a storage medium, and the method also includes: when the storage unit of the master target storage server is started, writing the data stored in the storage medium to the storage unit of the master target storage server for storage.

[0066] In this embodiment, when the storage unit of the primary target storage server is started, the computing unit of the primary target storage server writes the data stored in the storage medium into the storage unit of the primary target storage server for storage, thereby ensuring data integrity.

[0067] The present application also provides a method for starting a storage server cluster. Figure 5 is a flowchart of another method for starting a storage server cluster according to an embodiment of the present application. The storage server cluster includes multiple storage servers and power supply devices. The multiple storage servers are respectively connected to the power supply devices. Figure 5 As shown, the process includes the following steps:

[0068] Step S510: The power supply device starts computing units of multiple storage servers.

[0069] In this step, the power supply device controls the power-on or startup of the computing units of multiple storage servers in the storage server cluster, wherein the power supply device can control the computing units of multiple storage servers to start or power on simultaneously, or can control the computing units of multiple storage servers to start or power on in batches. After the computing unit of the storage server is started or powered on, no start or power-on control signal is sent to the corresponding storage unit, and the storage unit is started or powered on after the main target storage server sends the corresponding start or power-on instruction, that is, only the computing unit is started or powered on in the current stage.

[0070] Step S520, the multiple target storage servers respectively execute a preset election algorithm to determine a master target storage server and multiple slave target storage servers from the multiple target storage servers; the target storage server is a storage server in the storage server cluster that has completed the startup of the computing unit.

[0071] Step S530: The primary target storage server determines the startup information of the next startup batch.

[0072] In this step, the primary target storage server executes the storage server cluster startup method in any of the aforementioned embodiments to generate startup information for the next startup batch.

[0073] Step S540: a plurality of slave target storage servers receive the startup information of the next startup batch sent by the master target storage server, and start the servers according to the startup information.

[0074] The startup method of the storage server cluster provided in this embodiment first starts the computing units of multiple storage servers, records the storage units that have completed the startup or power-on of the computing units in the multiple storage servers as the target storage servers, and the multiple target storage servers respectively execute the preset election algorithm to determine the main target storage server and multiple slave target storage servers from the multiple target storage servers, and obtain the cluster storage unit information table through the main target storage server, the storage unit information table includes the device numbers of the multiple target storage servers, the startup policy information of the storage units of the multiple target storage servers, and the startup status of the storage units of the multiple target storage servers, when there is a target storage server whose storage unit is not started, the computing unit of the main target storage server obtains the current power values ​​of the multiple target storage servers, and the computing unit of the main target storage server determines the startup information of the next startup batch according to the total power value of the cluster, the current power values ​​of the multiple target storage servers and the cluster storage unit information table. Thus, the storage servers in the storage server cluster are started in batches, the power peak of the storage server cluster at startup is reduced, and the problem in the prior art that when all storage server devices are powered on or started together, all server power consumption peaks are superimposed together, which will cause very large pressure on the power supply of the computer room or server cluster, thereby causing a surge phenomenon in the power supply equipment of the server cluster.

[0075] The embodiments of the present application are described and illustrated below.

[0076] When each storage server leaves the factory, a time-sharing power-on strategy for the hard disks installed on each storage server will be preset according to the power of the industrial power module configured on the server. The purpose is to avoid exceeding the total power of the industrial power module configured on the device when the device is powered on, causing the industrial power supply of the device to be unable to start due to overcurrent. Figure 2 As shown, it is assumed that the preset is divided into 3 groups for power-on, and the CPU processor controls it through IO signals. The AC power is connected to the storage server cluster, and the computing units of all storage servers are powered on and started at the same time. The computing units include the CPU processor, storage medium, network interface, etc. The computing units of all storage servers start working. At the same time, the storage units of all storage servers are not started by default, waiting for the computing units to send IO control signals. Since the storage units are not running at this time, all current storage servers first pre-store the data (such as video data) in the storage medium (such as SSD solid state drive) plug-in of the CPU processor to ensure that all storage servers are powered on at the same time to start normal business. Each storage server starts working and forms a local area network through the network switch. The master and slave target storage servers are selected in the local area network through the preset election algorithm and numbered. For example, the number of the selected master target storage server is B1, and the other servers are numbered B2, B3, ..., B M. The main target storage server obtains the number information of other target storage servers, the time-sharing power-on strategy of each server's hard disk (such as how many groups to power on, the number of hard disks powered on in each group, etc.) and other information through the network. After the main target storage server obtains these time-sharing power-on strategy information, it combines the hard disk startup peak power and stable working power information to build a total hard disk pool for all storage servers, and generates a cluster storage unit information table corresponding to the total hard disk pool, and then formulates a total staggered power-on strategy for the entire hard disk pool. The calculation unit of the main target storage server calculates the total power value of the computer room, that is, the total power value of the cluster, the current operating power value of all target storage servers, and the estimated peak value of each batch of hard disk startup, and sets a specific total hard disk pool staggered power-on strategy to ensure that the power-on of each batch of hard disks will not exceed the total power value of the computer room. On the other hand, the device numbers of all target storage servers are B1, B2,...B M , and assume that for each storage server, the hard disks are divided into 3 groups. The number of hard disks in the three groups of the storage server with device number B1 is a1, b1, and c1 in the preset power-on sequence. The number of hard disks in the three groups of the storage server with device number B2 is a2, b2, and c2 in the preset power-on sequence. M The number of hard disks in the three groups of storage servers is am, bm, cm, and so on according to the preset power-on sequence. Then the strategy for staggered startup of the total hard disk pool must meet the requirements that the total power of all servers cannot exceed the total power of the computer room, that is, the total power value of the cluster, and that the total power of a single target storage server cannot exceed the power of the industrial power supply configured for a single server.

[0077] As a non-limiting example, assume that the total power of the equipment room is Q T Before the first batch of hard disks are started, the total power value of all target storage server computing units is Q0 (the computing unit of the target storage server is started first, and the storage units of the target storage server are not started). The total hard disk pool of all storage servers is divided into several batches for startup and power-on, that is, the total hard disk pool of all storage servers is started in batches, and at the same time, only one group of hard disks is started for each storage server at the same time, and two groups of hard disks of the same storage server are not allowed to start at the same time. Then the total number of hard disks started in the first batch must meet the peak power Q T - Q0. Before the second batch of hard disks are started, the main target storage server obtains the total power value of all target storage servers currently running through the network, which is Q1 (including the computing units of all target storage servers and the power of the first batch of hard disks running smoothly). Then the total number of hard disks started in the first batch must meet the peak power Q T -Q 1。 ​​The same logic applies until all storage units of the target storage server are started, that is, all hard disks in the hard disk pool are started. In order to ensure the margin, the total power Q of the computer room can be reduced, such as taking a value of 80%. At the same time, when formulating the hard disk quantity strategy, you can use the method of substituting constants to simplify the implementation of the strategy. For example, according to the hard disk model, rated power, etc., the average peak power of a single hard disk when it is started is set to X (such as 30W maximum power), then the number of hard disks allowed to be started in each batch Y = (80% × Q- Q0) / X. After determining the number of hard disks allowed to be started in each batch Y, formulate a corresponding staggered power-on strategy based on the number of hard disks allowed to be started in each batch Y and the cluster storage unit information table corresponding to the hard disk pool, that is, determine the target storage server to be started in the next startup batch and the hard disk group to be started in the target storage server to be started according to the number of hard disks allowed to be started in each batch Y and the cluster storage unit information table corresponding to the hard disk pool; or determine the target storage server to be started in the next startup batch and the hard disk to be started in the target storage server to be started according to the number of hard disks allowed to be started in each batch Y and the cluster storage unit information table corresponding to the hard disk pool. After the main target storage server formulates the peak-shifting strategy, it transmits it to other target storage servers through network signaling. Each target storage server controls the first batch of hard disks to start and power on through IO signals, such as a1, a2, and a3. After the startup is completed, the target storage servers B1, B2, and B3 report the real-time power stability information. After the main target storage server confirms that the power is stable, it calculates the number of hard disks Y allowed to start in the second batch, and then controls the second batch of hard disks to start and power on through network signaling, such as a4, a5...an. After the main target storage server confirms that the power is stable, it calculates the number of hard disks Y allowed to start in the third batch, and then controls the third batch of hard disks to start and power on through network signaling, such as b1, a2...bn, and so on. Until all hard disks in the total hard disk pool are fully started. For each storage server, when the hard disk is loaded, the CPU processor will flush the data pre-stored in the external storage medium (such as SSD) to the hard disk to ensure the integrity of the data storage data.

[0078] This application splits the storage server into two major power units, the computing unit and the storage unit, and makes full use of the low power consumption of the computing unit. When the city power is connected, first ensure that all storage server computing units are started to ensure that the business starts normal operation as soon as possible. The data is first pre-stored in the main program storage medium directly plugged into the computing unit. After all the computing units are started, the network is established, the main target storage server is elected, and the storage units of all target storage servers are organized into a unified hard disk pool. The main target storage server formulates the staggered startup strategy of the hard disk pool through the calculation of various power parameters, and controls the hard disk pool to start and power on in batches through network signaling. After the hard disk of the target storage server is started and powered on, the previously pre-stored data is flushed to the hard disk to ensure data integrity until all hard disks are fully started. Ensure that the storage server cluster can start and run data storage services at the same time without causing power surges in the computer room. This enables the storage servers in the storage server cluster to be started in batches, reduces the power peak of the storage server cluster during startup, and solves the problem in the prior art that when all storage server devices are powered on or started together, the power consumption peaks of all servers are superimposed, which puts great pressure on the power supply of the computer room or server cluster, thereby causing a surge in the power supply equipment of the server cluster.

[0079] It should be noted that the steps shown in the above process or the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0080] The present application also provides a startup device for a storage server cluster, which is used to implement the above-mentioned embodiments and preferred implementation modes, and will not be repeated hereafter. The terms "module", "unit", "subunit", etc. used below may implement a combination of software and / or hardware for a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0081] Figure 6 is a structural block diagram of a startup device for a storage server cluster according to an embodiment of the present application, such as Figure 6 As shown, the device comprises:

[0082] The first acquisition module 610 is used to acquire a cluster storage unit information table; the storage unit information table includes the device numbers of the multiple target storage servers, the startup policy information of the storage units of the multiple target storage servers, and the startup status of the storage units of the multiple target storage servers; the target storage server is a storage server in the storage server cluster that has completed the startup of the computing unit;

[0083] A second acquisition module 620 is used to acquire current power values ​​of the multiple target storage servers when there is a target storage server whose storage unit is not started;

[0084] The determination module 630 determines the startup information of the next startup batch according to the total power value of the cluster, the current power values ​​of the multiple target storage servers and the cluster storage unit information table.

[0085] It should be noted that the above modules can be functional modules or program modules, and can be implemented by software or hardware. For modules implemented by hardware, the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.

[0086] An embodiment of the present application also provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0087] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0088] Optionally, in the embodiment of the present application, the processor may be configured to perform the following steps through a computer program:

[0089] S1, obtaining a cluster storage unit information table; the storage unit information table includes the device numbers of the multiple target storage servers, the startup policy information of the storage units of the multiple target storage servers, and the startup status of the storage units of the multiple target storage servers; the target storage server is a storage server in the storage server cluster that has completed the startup of the computing unit;

[0090] S2, when there is a target storage server whose storage unit is not started, obtaining current power values ​​of the multiple target storage servers;

[0091] S3, determining the startup information of the next startup batch according to the total power value of the cluster, the current power values ​​of the multiple target storage servers and the cluster storage unit information table.

[0092] It should be noted that the specific examples in the embodiments of the present application can refer to the examples described in the above embodiments and optional implementation modes, and will not be repeated in the embodiments of the present application.

[0093] In addition, in combination with a storage server cluster startup method provided in the above embodiment, a storage medium can also be provided in the embodiment of the present application to implement the method. The storage medium stores a computer program; when the computer program is executed by a processor, any storage server cluster startup method in the above embodiment is implemented.

[0094] It should be understood that the specific embodiments described herein are only used to explain the application, rather than to limit it. Based on the embodiments provided in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the protection scope of this application.

[0095] Obviously, the drawings are only some examples or embodiments of the present application. For ordinary technicians in the field, the present application can also be applied to other similar situations based on these drawings without creative work. In addition, it is understandable that although the work done in this development process may be complicated and lengthy, for ordinary technicians in the field, certain changes in design, manufacturing or production based on the technical content disclosed in this application are only conventional technical means and should not be regarded as insufficient content disclosed in this application.

[0096] The term "embodiment" in this application refers to a specific feature, structure or characteristic described in conjunction with the embodiment that can be included in at least one embodiment of the present application. The appearance of this phrase in various locations in the specification does not necessarily mean the same embodiment, nor does it mean that it is mutually exclusive with other embodiments and is independent or optional. It is clearly or implicitly understood by those of ordinary skill in the art that the embodiments described in this application can be combined with other embodiments without conflict.

[0097] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of patent protection. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the scope of protection of the present application. Therefore, the scope of protection of the present application shall be subject to the attached claims.

Claims

1. A method for starting a storage server cluster, characterized in that: The storage server cluster includes a plurality of storage servers, and the startup method includes: Obtain a cluster storage unit information table; the storage unit information table includes device numbers of multiple target storage servers, startup policy information of the storage units of the multiple target storage servers, and startup status of the storage units of the multiple target storage servers; the target storage server is a storage server in the storage server cluster that has completed the startup of the computing unit; When there is a target storage server whose storage unit is not started, obtaining current power values ​​of the plurality of target storage servers; The startup information of the next startup batch is determined according to the total power value of the cluster, the current power values ​​of the plurality of target storage servers and the cluster storage unit information table.

2. The method for starting a storage server cluster according to claim 1, characterized in that: The step of determining the startup information of the next startup batch according to the total power value of the cluster, the current power values ​​of the plurality of target storage servers and the cluster storage unit information table includes: Determine the power peak value of the next startup batch according to the total power value of the cluster and the current power values ​​of the multiple target storage servers; The startup information of the next startup batch is determined according to the power peak value of the next startup batch and the cluster storage unit information table.

3. The method for starting a storage server cluster according to claim 2, characterized in that: The storage unit of the target storage server includes one or more hard disk groups, and the hard disk group includes one or more hard disks. The determining the startup information of the next startup batch according to the power peak value of the next startup batch and the cluster storage unit information table includes: Determine the number of hard disks that can be started in the next startup batch according to the power peak value of the next startup batch and the average power value of the hard disk when starting; Determine the target storage server to be started in the next startup batch and the hard disk group to be started in the target storage server to be started according to the number of hard disks that can be started in the next startup batch and the cluster storage unit information table; Alternatively, the target storage servers to be started in the next startup batch and the hard disks to be started in the target storage servers to be started are determined according to the number of hard disks that can be started in the next startup batch and the cluster storage unit information table.

4. The method for starting a storage server cluster according to claim 3, characterized in that: The startup strategy information of the storage unit of the target storage server includes the total number of hard disks of the storage unit, the number of hard disk groups into which the storage unit is divided when it is started, and the number of hard disks in each hard disk group.

5. The method for starting a storage server cluster according to claim 4, characterized in that: The startup information of the next startup batch includes one or more hard disk groups to be started in the next startup batch; the multiple hard disk groups to be started are hard disk groups of different target storage servers.

6. The method for starting a storage server cluster according to claim 1, characterized in that: The multiple target storage servers include a master target storage server and multiple slave target storage servers. After determining the startup information of the next startup batch, the method further includes: Sending the startup information of the next startup batch to the corresponding multiple slave target storage servers; And / or, starting the storage unit of the primary target storage server according to the startup information.

7. The method for starting a storage server cluster according to claim 1, characterized in that: The method further includes: updating the cluster storage unit information table according to the startup result of the current startup batch.

8. The method for starting a storage server cluster according to claim 1, characterized in that: The multiple target storage servers include a master target storage server and multiple slave target storage servers, the computing unit also includes a storage medium, and the method also includes: when the storage unit of the master target storage server is started, writing the data stored in the storage medium into the storage unit of the master target storage server for storage.

9. A method for starting a storage server cluster, characterized in that: The storage server cluster includes a plurality of storage servers and a power supply device, the plurality of storage servers are respectively connected to the power supply devices, and the method includes: The power supply device starts the computing units of the plurality of storage servers; The multiple target storage servers respectively execute a preset election algorithm to determine a master target storage server and multiple slave target storage servers from the multiple target storage servers; the target storage servers are storage servers started by the completion computing unit in the storage server cluster; The primary target storage server executes the method for starting the storage server cluster according to any one of claims 1 to 8; The plurality of slave target storage servers receive the startup information of the next startup batch sent by the master target storage server, and start the servers according to the startup information.

10. A storage server cluster, characterized in that: The storage server cluster includes multiple storage servers, a network switch and a power supply device, the multiple storage servers are respectively connected to the network switch, the multiple storage servers are respectively connected to the power supply device, the power supply device starts the computing units of the multiple storage servers, and the multiple target storage servers respectively execute a preset election algorithm to determine a main target storage server and multiple slave target storage servers from the multiple target storage servers. The target storage server is a storage server in the storage server cluster that completes the startup of the computing unit, and the main target storage server executes the startup method of the storage server cluster described in any one of claims 1 to 8.

Citation Information

Patent Citations

  • Server starting method, device and equipment based on MAC address information

    CN116860339A

  • Hard disk backboard intelligent power supply system control method, computer equipment and storage medium

    CN117608379A