Storage system, and storage node management method
The storage system automatically selects reliable worker nodes for master promotion based on failure history and status, addressing the challenge of optimal node selection and enhancing system availability by reducing downtime and user intervention.
Patent Information
- Application Number
- JP2023068517
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-19
- Publication Date
- 2024-10-31
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In storage systems with redundant master nodes, selecting an optimal worker node for promotion to master node is challenging due to varying failure histories and operating statuses, leading to potential recurring failures and manual selection difficulties.
A storage system with a score calculation unit that evaluates worker nodes based on failure history and operating status, automatically selecting a node with high reliability for promotion to master using a score management system and promoted node selection unit.
Automated selection of stable worker nodes for master promotion reduces the likelihood of recurring failures, minimizes downtime, and enhances system availability by ensuring quick recovery without increasing user workload.
Smart Images

Figure 2024154603000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a storage system and a storage node management method. [Background technology]
[0002] With conventional server cluster technology, system operation continues by repeating failovers until the number of failed servers out of the total number of servers exceeds a threshold, at which point the entire system is temporarily halted and maintenance work such as server replacement is carried out.
[0003] Storage systems such as SDS (Software Defined Storage) that are made up of multiple storage nodes (hereafter referred to as "nodes") operate in a redundant configuration that stores copies of data in different server chassis to improve availability and reliability. SDS is a storage device constructed by implementing software with storage functions in a general-purpose server device. A storage node is a physical or virtual server that has a CPU (Central Processing Unit), memory, and drives assigned to it.
[0004] In SDS, each node is managed together with multiple other nodes in a group called a storage cluster (hereafter abbreviated as "cluster"). A cluster is a virtual storage system constructed from multiple storage nodes. A coordination service and a scale-out DB run in a cluster to coordinate the operations of the nodes. Coordination is the process of checking the operation of each node in the cluster and managing the information used by each node. The node that serves as the master within the cluster (called the master node) has the function of coordinating the operations of each node in the cluster.
[0005] Patent Document 1 states that "first fault information relating to a first fault that has occurred in a storage node is obtained, and based on the storage node management information, the rebuild time for the storage system configuration for the first fault information and the fault occurrence probability that a second fault will occur are calculated, and using the rebuild time and the fault occurrence probability, the probability that a fault will occur and the storage system will transition to a stopped state is calculated as an availability level, and based on the availability level, a notification is issued as to whether maintenance work is required." [Prior art documents] [Patent documents]
[0006] [Patent Document 1] Patent No. 6850771 Summary of the Invention [Problem to be solved by the invention]
[0007] In a cluster, if the number of master nodes falls below a certain number, the cooperative function will no longer function properly. For this reason, multiple master nodes are always secured within a cluster, and the master nodes are configured to be redundant. If a master node fails, a new node is added to the cluster as a master node in order to maintain the number of master nodes. In this operation, when a new node is constructed, one method is to replace the failed node with the newly constructed node through manual maintenance operations.
[0008] Also, if the master node fails, a method called "master promotion" is used, in which another node (called a "worker node") that is not a master node in operation is promoted to the master node. Switching a worker node in a cluster that is not a master node to the master node in this way is called "master promotion." When master promotion is performed, the worker node that was set up in advance when the cluster was initially constructed is promoted.
[0009] Worker nodes have a history of operation up until the point when a failure occurred in the master node, and each worker node has a different number of failures and operating time in the past. If a node that has experienced many failures in the past is selected as a candidate for promotion to master, there is a concern that failures will reoccur after promotion to master. However, in the past, the only use for the worker node's operation history was for users to refer to it to understand the nature of the failure, and they could only treat worker nodes as candidates for promotion to master on an equal basis. This made it difficult for users to select the most suitable worker node to promote to master from the many worker nodes available.
[0010] The present invention has been made in view of the above circumstances, and has an object to automatically select a node to be promoted to master. [Means for solving the problem]
[0011] In the storage system according to the present invention, a plurality of storage nodes each having a processor, a memory, and a storage device are connected via a network, and a cluster is formed with a plurality of the storage nodes as master nodes and the remaining storage nodes as worker nodes. The processor of the worker node has a score calculation unit that calculates the score of the worker node based on the failure history and operation status of the worker node, and the processor of the master node has a promotion node selection unit that, when a failure occurs in one of the master nodes, compares the scores of the worker nodes and selects a worker node to be promoted to master node in place of the failed master node based on the score. Effect of the Invention
[0012] According to the present invention, a worker node to be promoted to master can be automatically selected based on the score. Problems, configurations and effects other than those described above will become apparent from the following description of the embodiments. [Brief description of the drawings]
[0013] [Figure 1] FIG. 1 is a diagram illustrating an example of the configuration of a storage system according to an embodiment of the present invention. [Diagram 2] 1 is a block diagram showing a schematic configuration example of a storage node according to an embodiment of the present invention; [Diagram 3] FIG. 1 is a diagram showing an example of a conventional method for promoting one node selected from worker nodes that are candidates for master promotion to a master node. [Figure 4] FIG. 1 is a diagram showing the premise of promotion to master. [Diagram 5] FIG. 1 illustrates an example of a conventional method for selecting a worker node to be promoted to master. [Figure 6] FIG. 2 is a diagram illustrating an example of the configuration of a master node and a worker node of a cluster according to one embodiment of the present invention. [Figure 7] FIG. 2 is a block diagram showing an example of the internal configuration of a master node and a worker node according to an embodiment of the present invention. [Figure 8] FIG. 13 is a diagram showing an example of a score that is set in the score table when a communication abnormality occurs in one embodiment of the present invention. [Figure 9] FIG. 11 is a diagram illustrating a method of setting a fault domain when a failure occurs in a master node in one embodiment of the present invention. [Figure 10] FIG. 11 is a diagram illustrating an example of a worker node selection process according to an embodiment of the present invention. [Figure 11] FIG. 1 illustrates an example of a worker node master promotion and group reconfiguration process in accordance with an embodiment of the present invention. [Figure 12] FIG. 11 illustrates an example of a master demotion and score table update process according to an embodiment of the present invention. [Figure 13] FIG. 11 is a diagram illustrating an example of an index management table according to an embodiment of the present invention. [Figure 14] FIG. 13 is a diagram illustrating an example of a priority management table for index classification according to an embodiment of the present invention. [Figure 15] FIG. 11 is a diagram illustrating an example of a score table according to an embodiment of the present invention. [Figure 16] FIG. 11 is a diagram illustrating an example of a history management table according to an embodiment of the present invention. [Figure 17] FIG. 13 is a diagram showing an example of a score calculation table according to an embodiment of the present invention. [Figure 18] FIG. 11 is a diagram showing an example of score information according to an embodiment of the present invention. [Figure 19] 11 is a flowchart illustrating an example of a process related to score calculation according to an embodiment of the present invention. [Figure 20] FIG. 2 is a sequence diagram showing the relationship between the processing of a master node (P) and a worker node according to one embodiment of the present invention. [Figure 21] 11 is a flowchart illustrating an example of a process from the occurrence of a failure to the completion of promotion to master according to an embodiment of the present invention. [Figure 22] FIG. 2 is a sequence diagram showing the relationship between the processing of a master node (P) and a worker node according to one embodiment of the present invention. [Figure 23] FIG. 11 is a diagram showing a display example of a notification screen according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0014] Hereinafter, an embodiment of the present invention will be described with reference to the accompanying drawings. In this specification and the drawings, components having substantially the same functions or configurations are designated by the same reference numerals, and redundant description will be omitted.
[0015] In the following explanation, there may be cases where the processing performed by executing a program is described, but since the program is executed by at least one processor (e.g., a CPU) to perform the specified processing while appropriately using storage resources (e.g., memory) and / or interface devices (e.g., communication ports), the processor may be the main subject of the processing.
[0016] Similarly, the subject of processing performed by executing a program may be a controller, device, system, computer, node, storage system, storage device, server, management computer, client, or host having a processor. The subject of processing performed by executing a program (e.g., a processor) may include a hardware circuit that performs part or all of the processing. For example, the subject of processing performed by executing a program may include a hardware circuit that performs encryption and decryption, or compression and decompression. The processor operates as a functional unit that realizes a specified function by processing according to the program. Devices and systems that include a processor are devices and systems that include these functional units.
[0017] A program may be installed in a device such as a computer from a program source. The program source may be, for example, a program distribution server or a computer-readable storage medium. When the program source is a program distribution server, the program distribution server includes a processor (e.g., a CPU) and a storage resource, and the storage resource may further store a distribution program and a program to be distributed. The processor of the program distribution server may then execute the distribution program, causing the processor of the program distribution server to distribute the program to be distributed to other computers. Also, in the following description, two or more programs may be realized as one program, and one program may be realized as two or more programs.
[0018] [One embodiment] FIG. 1 is a diagram showing an example of the configuration of a storage system 1 according to an embodiment of the present invention. The storage system 1 is composed of multiple compute nodes 2(1)-2(3) and multiple storage nodes 3(1)-3(3). When the compute nodes 2(1)-2(3) are not specified, the code "2" is used. When the storage nodes 3(1)-3(3) are not specified, the code "3" is used. The same applies to the codes of the other components.
[0019] The compute nodes 2 and the storage nodes 3 are connected to each other via a storage service network 4 configured by, for example, Fibre Channel, Ethernet (registered trademark), InfiniBand, or a wireless LAN (Local Area Network). The storage nodes 3 are connected to each other via a back-end network 5 configured from a LAN, Ethernet (registered trademark), InfiniBand, wireless LAN, or the like.
[0020] However, the storage service network 4 and the backend network 5 may be configured as the same network, and each compute node 2 and each storage node 3 may be connected to a management network other than the storage service network 4 and the backend network 5.
[0021] The compute node 2 is a general-purpose computer device that functions as a host (higher-level device) for the storage node 3. The compute node 2 may be a virtual computer device such as a virtual machine. The compute node 2 reads and writes data from the storage node 3 via the storage service network 4 in response to a user operation or a request from an implemented application program.
[0022] The storage node 3 is a server device that provides a storage area for reading and writing data to the compute node 2. The storage node 3 may be a virtual machine. The storage node 3 may also be configured to coexist with the compute node 2 in the same physical node.
[0023] As shown in Fig. 1, each storage node 3 according to this embodiment is managed together with one or more other storage nodes 3 in a group called a cluster 6. The example in Fig. 1 illustrates a case in which one cluster 6 is set, but multiple clusters 6 may be provided within the storage system 1. The cluster 6 may be called a distributed storage system.
[0024] FIG. 2 is a block diagram showing a schematic configuration example of the storage node 3. As shown in FIG. 2, the storage node 3 includes one or more CPUs 10, one or more memories 11, a plurality of storage devices 12, a first communication device 13, and a second communication device 14. The storage node 3 is configured from a general-purpose physical server device in which the CPU 10, the storage device 12, the first communication device 13, and the second communication device 14 are connected via an internal network 15.
[0025] The CPU 10 is a processor that controls the entire storage node 3. The memory 11 is composed of a volatile semiconductor memory such as a static RAM (random access memory) or a dynamic RAM (DRAM), or a non-volatile semiconductor memory, and is used as a work memory for the CPU 10 to temporarily store various programs and necessary data. At least one CPU 10 executes a program stored in the memory 11, thereby executing various processes of the entire storage node 3 as described below.
[0026] The storage device 12 is composed of a large-capacity non-volatile storage device such as an HDD (Hard Disk Drive), SSD (Solid State Drive) or SCM (Storage Class Memory), and is connected via an interface such as NVMe (Non-Volatile Memory Express), SAS (Serial Attached SCSI (Small Computer System Interface)), or SATA (Serial ATA (Advanced Technology Attachment)), and provides a storage area for reading and writing data in response to read and write requests from the compute node 2.
[0027] The first communication device 13 is an interface for the storage node 3 to communicate with the compute node 2 via the storage service network 4, and is composed of, for example, a Fibre Channel card, an Ethernet (registered trademark) card, an InfiniBand card, a wireless LAN card, etc. The first communication device 13 performs protocol control during communication with the compute node 2.
[0028] The second communication device 14 is an interface for the storage node 3 to communicate with other storage nodes 3 via the back-end network 5, and is composed of, for example, a Fibre Channel card, an Ethernet (registered trademark) card, an InfiniBand card, a wireless LAN card, a PCIe host adapter, etc. The second communication device 14 performs protocol control during communication with other storage nodes 3.
[0029] As shown in Fig. 1, each storage node 3 according to this embodiment is managed together with one or more other storage nodes 3 in a group called a cluster 6. The example in Fig. 1 illustrates a case in which only one cluster 6 is set, but multiple clusters 6 may be provided within the storage system 1.
[0030] <Previous method for promoting to Master> Here, a conventional method for promoting a user to master will be described with reference to FIG. FIG. 3 is a diagram showing an example of a conventional method for promoting one node selected from worker nodes that are candidates for master promotion to a master node.
[0031] As shown in the node configuration diagram (1) of FIG. 3, a cluster 6 is configured to include six storage nodes 3, which refer to a plurality of master and worker nodes in total, and is used as an example of a storage cluster. Each storage node 3 is given a node name, Node1 to Node6, and the node names may be used in the following explanation. Node1 to Node3 are master nodes, and Node4 to Node6 are worker nodes. A master node is a storage node in cluster 6 that has the role of managing the entire cluster 6. A worker node is a node in cluster 6 that is not a master node. Both the master node and the worker node are nodes that are always running.
[0032] In Cluster 6, one of the multiple master nodes is configured as a primary node used as the active system, and the rest are configured as secondary nodes used as standby systems. For example, of the master nodes Node1 to Node3, Node1 is the primary node, and Node2 and Node3 are secondary nodes. When a problem occurs with the active master node, the secondary master node takes over the primary functions. In the following explanation, the primary master node is called the master node (P), and the secondary master node is called the master node (S). In the diagram, the master node (P) is written as "Master (P)" and the master node (S) is written as "Master (S)".
[0033] The master nodes, Node 1 to Node 3, run Storage Software, Coordination Service, and Scale-out DB.
[0034] Storage Software is a software program that implements a cluster6. The Coordination Service is a software program that controls cooperative operations within the cluster 6. The Coordination Service is used as a platform for operating one or more distributed storage nodes as one cluster 6. The Coordination Service is the platform for processing according to this embodiment. In addition, the Coordination Service is also used to realize alive monitoring between storage nodes, process communication between multiple storage nodes 3, and the like.
[0035] Scale-out DB is a database that manages information in cluster 6 while making it redundant. Scale-out DB is executed redundantly only on the master node (P) and master node (S), and is not executed on worker nodes. Therefore, even if a failure occurs in one master node (S), the contents of the Scale-out DB are not damaged because the Scale-out DB of the other master node (S) and master node (P) are still executing.
[0036] Only the Storage Software runs on the worker nodes Node 4 to Node 6. If a failure occurs in one of the master nodes (for example, Node 3), one of Node 4 to Node 6 becomes a candidate for promotion to master.
[0037] As shown in the node configuration diagram (2) in Figure 3, Node 3 where the failure occurred is isolated from the configuration of Cluster 6. Then, Node 4, which was a worker node, is promoted to master, and in addition to Storage Software, Coordination Service and Scale-out DB start operating. Node 4, which has been promoted to master, is used as the master node (S).
[0038] Figure 4 is a diagram showing the concept behind the promotion to master. Here, the promotion to master will be explained in two parts: premise 1 and premise 2.
[0039] (Premise 1) If the majority of the master nodes become blocked, Cluster 6 will be unable to operate correctly. As shown in node configuration diagram (1) in Figure 4, if one of the three master nodes (Nodes 1 to 3), Node 3, fails and is left unattended, the majority of the master nodes (2 out of 3) will become blocked when another master node fails. For this reason, it is desirable to have a redundancy of 3 or 5 master nodes.
[0040] (Premise 2) As explained in Premise 1, when a failure occurs in one master node (Node 3), one of the worker nodes (for example, Node 6) is promoted to the master node as shown in the node configuration diagram (2) in Figure 4. The functions of Node 3 are taken over by Node 6. When this promotion to master is performed automatically, the number of master nodes that have not failed becomes three, so that the operation of Cluster 6 can be continued while maintaining the redundancy of the master nodes. Note that when Node 6 is promoted to master, the Coordination Service and Scale-out DB are not started on the worker nodes Node 4 and Node 5. The reason for this is that when the number of master nodes increases, it takes time to replicate DB information between the master nodes. By minimizing the number of master nodes in operation, the time required for replicating DB information is reduced.
[0041] FIG. 5 is a diagram showing an example of a conventional method for selecting a worker node to be promoted to master. Cluster 6 contains multiple worker nodes (Node 4 to Node 6) as candidates for master promotion. The user must select a worker node suitable for master promotion from among the multiple worker nodes.
[0042] As mentioned above, conventionally, the operation history of a worker node was only used for analysis when a failure occurred. Also, when the resources (mainly hardware) of a storage node that had previously experienced a failure were replaced or repaired, the operation history corresponding to the replaced or repaired part was reset. As a result, users were unable to use the operation history of nodes since the initial construction to determine which node should be promoted to master, and they sometimes chose a node that was prone to recurring failures as the target for promotion to master. The question mark in the figure indicates that it is unknown which of the worker nodes Node 4 to Node 6 will be selected.
[0043] On the other hand, in this embodiment, a score is automatically calculated based on the failure history of the worker node and the configuration of the worker node, and a worker node with a high score and high reliability is automatically selected. The score is a value indicating how stably a storage node has operated up to now. For example, assume that Node4 has a score of "70", Node5 has a score of "80", and Node6 has a score of "90". In this case, Node6, which has the highest score, is selected as the node to be promoted to master.
[0044] <Node configuration example according to an embodiment of the present invention> FIG. 6 is a diagram illustrating an example of the configuration of a master node and a worker node of a cluster 6 according to an embodiment of the present invention.
[0045] The storage system 1 according to this embodiment has a configuration in which a plurality of storage nodes 3, each having a CPU 10, a memory 11, and a storage device 12 shown in Fig. 2, are connected via an inter-node network 7. A cluster 6 is formed with the plurality of storage nodes 3 as master nodes and the remaining storage nodes 3 as worker nodes. The plurality of master nodes are configured with a certain degree of redundancy (for example, three or five nodes).
[0046] The cluster 6 is configured with six storage nodes 3 (Node 1 to Node 6) similar to the node configuration diagram (1) in FIG. 3. As shown in FIG. 6, Node 1 to Node 3 are master nodes, and Node 4 to Node 6 are worker nodes. When various programs are initially installed on the storage nodes 3, the user designates the master node. Nodes not designated by the user are used as worker nodes. After the initial installation is complete, which of the storage nodes 3 in the cluster 6 are to be the master node and which are to be the worker node is managed by the scale-out DB of the master node. Note that the cluster 6 may be configured with fewer than six storage nodes 3 or more than six storage nodes 3.
[0047] All the nodes included in the cluster 6 are connected by an inter-node network 7, and can communicate various types of data with each other via the inter-node network 7. The inter-node network 7 may be either the storage service network 4 or the back-end network 5 shown in FIG.
[0048] Node 4 to Node 6 each calculate a score as an initial score when construction of Cluster 6 is completed. The scores of each worker node calculated during the initial construction of Cluster 6 are all similar values. Each worker node transmits its total score, which is its own node's total score, as score information 20(4) to 20(6) to Node 1, which is the master node (P). Node 1, which is the master node, writes the score information 20(4) to 20(6) received from all worker nodes via the inter-node network 7 into a score table 40 in the scale-out DB and manages the scores of each worker node. When the score information 20(4) to 20(6) is not to be individually identified, the code "20" is used. As the time that Cluster 6 provides services to users increases, differences will arise in the scores of each worker node.
[0049] The score table 40 is a table that allows the master node (P) to collectively manage the scores of all worker nodes. The score table 40 is managed by the scale-out DB of the master node (P). In this score table 40, the scores calculated for each classification A, B, and C are stored for each worker node. The master node Node1 then refers to the score table 40 to select a worker node to be promoted to master when a failure occurs in a secondary node. Storage node 3, which is a candidate for promotion to master, is a storage node (Node4, Node5, Node6) that does not have a Coordination Service or Scale-out DB configured and has ample resources.
[0050] The scale-out DB of the master node (P) and the scale-out DB of the master node (S) are always in communication with each other. When the information of the scale-out DB of the master node (P) is updated, the update contents are notified to the master node (S), and the information of the scale-out DB of the master node (S) is updated. Therefore, the scale-out DB of the master node (P) and the scale-out DB of the master node (S) have the same contents. This process is similar for the coordination service of the master node (P) and the coordination service of the master node (S). Therefore, if the score table 40 of the master node (P) is configured in the scale-out DB, all master nodes may have the same score table 40 by copying the score table 40 to the master node (S). In this case, the master node (P) receives the score information 20 from the worker node and reflects the score of the score information 20 in the score table 40. Thereafter, the score table 40 is copied to the master node (S), thereby synchronizing the score tables 40 of the master node (P) and the master node (S).
[0051] Fig. 7 is a block diagram showing an example of the internal configuration of a master node and a worker node. Fig. 7 shows an example of Node1 as a master node and an example of Node4 as a worker node. The other master nodes have the same configuration as Node1, and the other worker nodes have the same configuration as Node4.
[0052] (Worker node) The memory 11 of the storage node 3 (4) which is a worker node has score information 20, a history management table 21, a score calculation table 22, and configuration information 23. The score information 20, the history management table 21, the score calculation table 22, and the configuration information 23 are all stored in the memory 11 of the worker node as a database or file unique to the worker node. These pieces of information may be stored in the storage device 12 of the worker node.
[0053] As described above, the score information 20 is data that stores the scores sent from the worker nodes to the master node (P). A detailed configuration example of the score information 20 is shown in FIG. 18, which will be described later.
[0054] The history management table 21 is a table for managing history information of the worker node itself, such as its failure history, operation history, etc. An example of the detailed configuration of the history management table 21 is shown in FIG. The score calculation table 22 is referred to when the score calculation unit 31 calculates the score of its own node. A score calculation formula for each index is stored in the score calculation table 22. A detailed configuration example of the score calculation table 22 is shown in FIG. 17, which will be described later. The configuration information 23 stores information such as the specifications of the CPU 10 of the worker node itself, the storage capacity of the memory 11 and storage device 12, and programs installed in the worker node.
[0055] The CPU 10 of the worker node has a score calculation unit 31 and a worker-side group reconfiguration unit 32. The storage software of the worker node (see FIG. 6) has the function of the score calculation unit 31. In addition, when starting up as a master node, the Coordination Service and Scale-out DB of the worker node (see FIG. 11 described later) have the function of the worker-side group reconfiguration unit 32.
[0056] The score calculation unit 31 calculates the score of a worker node based on the failure history and operation status of the worker node. For example, the score calculation unit 31 calculates its own score for each index classification into which the indexes are classified, using the failure history and operation status of the worker node as information that can be compared by the promoted node selection unit 52 of the master node. The score can be calculated by applying the history information read by the score calculation unit 31 from the history management table 21 to the calculation formula of the score calculation table 22. After calculating the score, the score calculation unit 31 stores the score in the score information 20, and transmits the score information 20 to Node 1, which is the master node (P).
[0057] The worker-side group reconfiguration unit 32 is started to operate the own node as a master node by instructions from the promoted node selection unit 52, and reconfigures information required as a master node in synchronization with the master-side group reconfiguration unit 53. When the own node becomes a target for promotion to master, the worker-side group reconfiguration unit 32 starts the Coordination Service and Scale-out DB of the own node. Then, by the functions of the worker-side group reconfiguration unit 32 that the Coordination Service and Scale-out DB of the own node respectively have, the Coordination Service group and the Scale-out DB group in the cluster 6 are reconfigured as information required as a master node. As a result, the own node becomes able to operate as a master node.
[0058] (Masternode) The memory 11 of the storage node 3(1) which is the master node (P) has a score table 40, an index management table 41, and a priority management table 42. These tables may be stored in the storage device 12 of the master node (P).
[0059] In the score table 40, the scores extracted from the score information 20 are stored for each worker node and for each index classification. The score table 40 collectively manages the scores of all the worker nodes that configure the cluster 6. The scores in the score table 40 are added, deleted, or updated by a score management unit 51. A detailed configuration example of the score table 40 is shown in FIG. 15, which will be described later.
[0060] The indexes used for score calculation are managed in the index management table 41. A detailed configuration example of the index management table 41 is shown in FIG. The priority order management table 42 is a table for managing the priority order of index classifications. A detailed configuration example of the priority order management table 42 is shown in FIG.
[0061] The CPU 10 of the master node (P) includes a score management unit 51, a promoted node selection unit 52, and a master-side group reconfiguration unit 53. The storage software of the master node (P) (see FIG. 6) has the functions of the score management unit 51 and the promoted node selection unit 52. In addition, the coordination service and scale-out DB of the master node (P) (see FIG. 6) have the functions of the master-side group reconfiguration unit 53.
[0062] The score management unit 51 updates the scores in the score table 40 based on the score information 20 received from the worker nodes. Furthermore, the score management unit 51 manages the score information 20 received from the worker nodes using the score table 40. The score management unit 51 can invalidate, from the score table 40, the scores of worker nodes that cannot receive the score information 20 for a predetermined period of time or longer due to a network failure shown in Fig. 8, which will be described later, for example.
[0063] The promoted node selection unit 52 selects a worker node to be promoted to a master node when the number of master nodes is not sufficient to ensure redundancy. For example, when a failure occurs in one of the master nodes constituting the cluster 6, the promoted node selection unit 52 compares the scores of each worker node and selects a worker node to be promoted to a master node in place of the failed master node based on the score. Here, the promoted node selection unit 52 refers to the index management table 41 and the priority management table 42, compares the scores of each worker node stored in the score table 40, and selects the worker node with the highest score.
[0064] The master-side group reconfiguration unit 53 removes the failed master node from the cluster nodes, promotes the worker node selected by the promoted node selection unit 52 to the master node, and demotes the failed master node from master. The master-side group reconfiguration unit 53 reconfigures the Coordination Service group and the Scale-out DB group in cluster 6 by updating the information of the storage node managed as the master node with the information of the worker node to be promoted to the master node. Reconfiguring the Coordination Service group and the Scale-out DB group in cluster 6 is also referred to as "reconfiguring cluster 6."
[0065] Next, an overview of the processing performed by each node in the cluster 6 of the storage system 1 and changes in the scores in the score table 40 will be described with reference to the respective drawings.
[0066] <Score table when communication is abnormal> Fig. 8 is a diagram showing an example of scores set in the score table 40 when a communication abnormality occurs. In Fig. 8, it is assumed that a network disconnection failure occurs in Node 6, and the master node (P) and Node 6 cannot communicate with each other.
[0067] As shown in Fig. 6, the score of each worker node is managed in a score table 40 of Node 1, which is the master node (P). Score calculation is performed when construction of the cluster 6 described above is completed, as well as periodically and when the configuration information of the cluster 6 is changed. Furthermore, a score calculation unit 31 calculates the score per node for each classification. After the score is calculated, score information 20 is transmitted to the master node (P).
[0068] When Node1, which is the master node (P), receives score information 20 from a worker node, it updates the score table 40 in the scale-out DB. In FIG. 8, a network disconnection failure has occurred in Node6, so Node1 is in a state where it cannot receive score information 20 from Node6. Therefore, when the score management unit 51 of Node1 detects that there is a worker node that cannot receive score information 20, it sets the score stored in the score table 40 of this worker node to "0". A worker node whose score has been set to "0" is temporarily removed from the candidates for promotion to master. For this reason, the candidates for promotion to master that the promotion node selection unit 52 can select are only the worker nodes Node4 and Node5 from which Node1 can receive score information 20.
[0069] <Fault domain> FIG. 9 is a diagram showing a method of setting a fault domain when a failure occurs in a master node.
[0070] A fault domain is a group set for multiple storage nodes that share at least one of a power supply system and a network switch. In FIG. 9, the fault domain 1 is configured to include two master nodes, but this example assumes a case in which the user can freely set the master node at the time of initial installation. The promoted node selection unit 52 shown in FIG. 7 selects a worker node to be promoted to a master node for each fault domain. For example, in the process of promoting to master, which is an internal process of the cluster 6, the master nodes are distributed so that they do not share a failure point in any grouping. The promoted node selection unit 52 selects a worker node included in the fault domain 3 that does not share a failure point with the failed Node 3 as a candidate for promotion to master.
[0071] Figure 9 shows an example where fault domains 1, 2, and 3 are set for each two nodes. For example, fault domain 1 is configured by grouping Node 1 and Node 2. Fault domain 2 is configured by grouping Node 3 and Node 4. Fault domain 3 is configured by grouping Node 5 and Node 6.
[0072] The promoted node selection unit 52 of Node 1, which is the master node (P), calculates the number of master nodes for each fault domain. However, this calculation does not include nodes in which a failure has occurred. As a result, the number of master nodes in fault domain 1 that have not failed is calculated to be two. Also, the number of worker nodes in fault domain 3 that have not failed is calculated to be two. Meanwhile, because a failure has occurred in Node 3, the number of master nodes in fault domain 2 that have not failed is calculated to be one.
[0073] The promoted node selection unit 52 running on Node 1 selects a worker node to be promoted to a master node from among the worker nodes included in the fault domain with the fewest number of master nodes. If the number of master nodes is 0 in multiple fault domains, the promoted node selection unit 52 may set multiple fault domains as the selection range of the worker node to be promoted to a master node.
[0074] As described above, the fault domains share the power supply system and the network switch. For example, if a hardware failure occurs in Node 3, it is expected that the voltage fluctuation will affect Node 4 due to the repair or removal of Node 3. In such a case, the promoted node selection unit 52 may lower the priority of Node 4 even if Node 4 has the highest score among the worker nodes. When multiple master nodes are arranged in one fault domain, the effect of a failure occurring in any one of the master nodes will spread to other master nodes in the same fault domain. For this reason, the promoted node selection unit 52 distributes the master nodes to different fault domains to prevent the effect of a failure occurring in any one of the nodes from spreading to other nodes.
[0075] <Worker selection process> 10 is a diagram illustrating an example of a worker node selection process. The worker node selection process is performed in two stages when a failure occurs in the master node.
[0076] (First stage of the selection process) The node configuration diagram (1) in Fig. 10 shows the first stage of the worker node selection process. The promotion node selection unit 52 of Node 1, which is the master node (P), selects the worker node with the highest score as the master promotion destination based on the score table 40 stored in the scale-out DB of its own node. However, the scores of category A stored in the score table 40 are the same for Node 5 and Node 6, "30." If a failure occurs in the master node (P), the worker node selection process starts after the master promotion that promotes the master node (S) to primary is performed.
[0077] (Second stage of the selection process) The node configuration diagram (2) in FIG. 10 shows the second stage of the worker node selection process. Scores are classified by priority, and comparison processing is performed starting from the top score. The promoted node selection unit 52 compares the scores for each index classification and for each of multiple worker nodes according to the priority order defined in the index classification. Then, when the scores of an index classification with a high priority are the same for multiple worker nodes, the promoted node selection unit 52 repeats the process of comparing the scores of the index classification with the next highest priority, and selects a worker node with the same index classification and a high score. For example, when the scores of a certain classification are the same (the same value or a small difference), the score of another classification with a lower priority is used for comparison. As described above, since the scores of classification A are the same for Node 5 and Node 6, the scores of classification B are compared next.
[0078] 11 is a diagram illustrating an example of a worker node being promoted to master and a group reconfiguration process. After a worker node is promoted to master, a state in which a Coordination Service group and a Scale-out DB group are reconfigured is illustrated.
[0079] The node configuration diagram (1) in Figure 11 shows how the Coordination Service and Scale-out DB are started on Node6, the worker node selected as the destination for promotion to master. By starting the Coordination Service and Scale-out DB, Node6 is ready to be promoted to master.
[0080] The node configuration diagram (2) in Figure 11 shows how the group is reconfigured. The Coordination Service group started in Node 6 is reconfigured by the worker-side group reconfiguration unit 32. The Coordination Service group is a collection of master nodes that control cooperative operations, and includes all master nodes. By reconfiguring the Coordination Service group, the master node where the failure occurred is removed from the Coordination Service group, and the node to be promoted to master is added to the Coordination Service group.
[0081] The Scale-out DB group is also reconfigured by the worker-side group reconfiguration unit 32. The Scale-out DB group is a set of master nodes that operate the Scale-out DB, and all master nodes apply to it. By reconfiguring the Scale-out DB group, the master node where a failure has occurred is removed from the Scale-out DB group, and the node to be promoted to master is added to the Scale-out DB group.
[0082] 12 is a diagram showing an example of master demotion and update processing of the score table 40. Here, a state in which the score table 40 is updated after Node 3 is demoted from master is shown.
[0083] 12, node configuration diagram (1) shows how Node3, the failed master node, is demoted from master. When Node3 is demoted from master by the promoted node selection unit 52, the Coordination Service and Scale-out DB running on Node3 are stopped.
[0084] Node configuration diagram (2) in FIG. 12 shows how Node 1, which is the master node (P), updates the score table 40. As described above, when Node 3 is demoted from master and Node 6 is promoted to master, the score management unit 51 of Node 1 deletes the entry of Node 6, which has been promoted to master, from the score table 40. Cluster 6 then operates with a new configuration. Note that Node 3 is repaired or replaced, and then reintegrated into cluster 6. In this case, Node 3 operates as a worker node, and the score management unit 51 of Node 1 stores the score of Node 3 in the score table 40.
[0085] So far, we have explained a form in which the master node (P) collects score information 20 from each worker node, manages the scores, and controls master promotion when a failure occurs in the master node (S). When a failure occurs in the master node (P) itself, a process is executed to select a new master node (P) from among the master nodes (S) before executing the master promotion process. After that, the newly elected master node (P) takes the lead in the master promotion process.
[0086] 13 is a diagram showing an example of the index management table 41. The index management table 41 is a table for managing indexes associated with failures and operating statuses of worker nodes. The master node itself does not calculate scores, but the calculation method that the score calculation unit 31 of the worker node refers to when calculating the score will be described with reference to the index management table 41.
[0087] The index management table 41 is made up of the following items: index name, index classification, description, and calculation method. The index name field stores the name of a fault that occurs in a worker node, the name of an index that indicates the operating status of a worker node, etc. The indicator classification item stores an indicator classification that classifies the type of indicator. The indicator classification includes at least one of a main failure, which is an indicator of the failure history of a worker node, a network failure, which is an indicator of the failure history of a network to which a worker node is connected, an operating time, which is an indicator related to the operation of a worker node, and a virtualization status, which is an indicator related to the status of the virtualization environment of a worker node. Here, the following description assumes four types of indicator classifications, for example, "A: main failure", "B: network (NW) failure", "C: operating time", and "D: virtualization status".
[0088] The explanation item stores an explanation for each index. The explanation item is provided to facilitate understanding of this specification, and the actual index management table 41 does not require the explanation item. The calculation method item stores the calculation method for each index.
[0089] Next, the index names, index classifications, descriptions, and calculation methods stored in the index management table 41 will be explained in order.
[0090] (#1: User data drive failure) The indicator classification for user data drive failure is "A: Main unit failure" and the explanation is "The failure history of the drive that stores user data is reflected in the score." The calculation method is as follows, assuming that the average number of drive blockages per month is x. x = 0 ... score = 3 0 < x ≦ 1 time...score=2 1 time < x ≦ 5 times ... score = 1 5 times ≦ x ... score = 0
[0091] (#2: Node blocking) The index classification for node blocking is "A: Main unit failure", and the explanation is "The history of a node being unable to operate due to software or hardware failure is reflected in the score." The calculation method is as follows, assuming that the average number of node blockings per month is x. 0 = x ... score = 3 0 < x ≦ 3 times...score=2 3 times < x ≦ 10 times ... score = 1 10 times ≦ x ... score = 0
[0092] (#3: Compute Network Outage) The index classification for Compute Network failure is "B: Network failure" and the explanation is "The number of resend requests for data transmission related to reading and writing user data is reflected in the score." The calculation method is as follows, assuming that the average number of resend requests per user data read / write (IO: Input / Output) is x. x < 10 ...score=3 10 times < x ≦ 100 times ... score = 2 100 times < x ≦ 700 times...score = 1 700 times < x ... score = 0
[0093] (#4: Inter-Node Network Failure) The index classification for Inter-Node Network failure is "B: Network failure" and the explanation is "Reflecting the number of retransmission requests in inter-node communication in the score." The calculation method is as follows, assuming that the average number of retransmission requests per inter-node communication is x. x = 0 ... score = 2 0 < x ≦ 1 times...score=1 3 times < x ≦ ... score = 0
[0094] (#5: Management Network failure) The indicator classification for Management Network failure is "B: Network failure" and the explanation is "The number of retransmission requests for communication related to management operations from users is reflected in the score." The calculation method is as follows, assuming that the average number of retransmission requests per communication for management operations is x. x = 0 ... score = 2 0 < x ≦ 1 times...score=1 3 times < x ≦ ... score = 0
[0095] (#6: Uptime of the physical server on which the node is running) The index classification for the uptime of the physical server on which the node is running is "C: Uptime", and the explanation is "Reflecting the shortness of the node's uptime in the score." The calculation method is as follows, assuming the average uptime is x. x ⊂ {Early life} ...score=1 x ⊂ {random failure period} ...score=2 x ⊂ {wear-out failure phase} ...score=0
[0096] (#7: Drive uptime on physical servers) The index classification for the uptime of drives on a physical server is "C: Uptime", and the explanation is "Reflecting the shortness of the drive's uptime in the score." The calculation method is as follows, assuming that the average uptime is x. x ⊂ {Early life} ...score=1 x ⊂ {random failure period} ...score=2 x ⊂ {wear-out failure phase} ...score=0
[0097] (#8: (Virtualized environment) Resource sharing status) (Virtualized environment) The index classification for resource sharing status is "D: Virtualization status", and the explanation is "The score reflects the processing time taken away by other VMs (Virtual Machines) that share the physical CPU." The calculation method is as follows, assuming that the average percentage of time that a VM is waiting for CPU allocation over a certain period is x. x ≦ 10% ...Score=2 10% < x ≦ 30% ...Score=1 30% < x ...score=0
[0098] 14 is a diagram showing an example of the priority management table 42. Priorities of the index management table are stored in the priority management table 42. The priority management table 42 is used when the score management unit 51 compares scores according to the priorities of the index classifications of the master node (P).
[0099] The priority management table 42 is made up of items including index classifications and examples of reasons for varying the priority of the index classifications. In the item of index classification, the above-mentioned index classifications A to D are stored. The item "Example of motive for changing the priority order of index classification" stores the conditions for changing the priority order. Examples of motives for changing the priority order for each index classification are described below.
[0100] When the indicator classification is "A: Main unit failure", the motivation for changing the priority is that "since it is a failure history for the core function as a storage node, it is assumed that it will always be compared with a higher priority." When the indicator classification is "B: Network failure," the motivation for changing the priority is that "the management of the network infrastructure depends on the cloud service side, and if it is not considered important, the priority of "B: Network failure" will be lowered."
[0101] In the case of the metric classification "C: Uptime", the motivation for changing the priority is "if uptime is not important because servers are replaced at short intervals, then lower the priority of "C: Uptime". In the case of the indicator classification "D: Virtualization status", the motivation for changing the priority is to lower the priority of "D: Virtualization status" when building a cluster in a virtualized environment with isolated hardware resources. However, in an on-premise environment, this indicator classification "D" is not used. For example, in cases where operations are performed on a bare metal server (physical server) or where virtual machines are operated for each node on a server but the virtual machines do not share the server's hardware resources, the priority of "D: Virtualization status" is lowered.
[0102] 15 is a diagram showing an example of the score table 40. Here, it is assumed that the worker node ID for identifying the worker nodes is not a number such as Node1 but is identified by alphabets such as Node_A to Node_D.
[0103] The score table 40 is composed of the following items: worker node ID, index classification A score, index classification B score, index classification C score, index classification D score, last update time, and updater node ID. The score table 40 stores the score for each index classification calculated for each worker node ID. In addition, it indicates that the updater node ID is Node_E, and the time when Node_E last updated the score.
[0104] 16 is a diagram showing an example of the history management table 21. The history management table 21 is a table used by a worker node to hold history related to failures in the own node.
[0105] The history management table 21 is made up of the following items: index name, history, and last update time. In the item of index name, the same names as the index names in the index management table 41 shown in FIG. 13 are stored. The history item stores measurement values of various indicators that form the basis for score calculation by the score calculation unit 31, such as the history of failures that occurred in the worker node and the history showing the usage status of the worker node (operating time, resource sharing status, etc.). The last update time field stores the time when the history management table 21 was updated for each index.
[0106] 17 is a diagram showing an example of the score calculation table 22. The score calculation table 22 is used by the score calculation unit 31 of a worker node to calculate the score of the node itself.
[0107] The score calculation table 22 is composed of the items of index name, index classification, and calculation method. This score calculation table 22 is obtained by selecting the items of index name, index classification, and calculation method from the index management table 41 shown in Figure 13, and since the contents are the same, detailed explanation will be omitted. By using the score calculation table 22, the worker node can calculate the score of the node itself for each index.
[0108] Here, a specific example of calculation processing according to score calculation table 22 based on the history information in history management table 21 shown in Fig. 16 will be described. In the calculation method column, the results calculated for each index are shown surrounded by a dashed line. In the history management table 21, the history of user data drive failures is "0", so the formula x=0 is satisfied and the score is calculated as "3". Similarly, since the history of node blockage is "1", the formula 0 < x ≦ 3 times is satisfied, and the score is calculated as "2". Since the history of Compute Network failures is “20”, the formula 10 times < x ≦ 100 times is satisfied, and the score is calculated as “2”. Since the history of Inter-Node Network failures is “0”, the equation x = 0 is satisfied and the score is calculated as “2”. Since the history of Management Network failures is "4", the formula 3 times < x is satisfied and the score is calculated as "0". Since the uptime history of the physical server on which the node is running is “1200”, the equation x ⊂ {random failure period} is satisfied, and the score is calculated as “2”. Since the operating time history of the drive on the physical server is “1400”, the equation x ⊂ {wear-out period} is satisfied, and the score is calculated as “0”. (Virtualized environment) Since the resource sharing status history is “20”, the formula 10% < x ≦ 30% is satisfied and the score is calculated as “1”. Based on these calculation results, the score calculation unit 31 calculates the total score for index classification A as "5," the total score for index classification B as "4," the total score for index classification C as "2," and the total score for index classification D as "1."
[0109] 18 is a diagram showing an example of the score information 20. The score calculation unit 31 generates the score information 20 that stores the total score for each index classification. This score information 20 is transmitted to the master node (P) by a worker node whose sender node ID is Node_A.
[0110] The score information 20 is composed of the following items: sender node ID, index classification A score, index classification B score, index classification C score, and index classification D score. The score for each index classification is calculated by a worker node identified by the sender node ID. The master node (P) then collects score information 20 from each worker node included in the cluster 6. Since the score information 20 includes the sender node ID, the master node (P) replaces the sender node ID with the worker node ID and stores the score in the score table 40.
[0111] <Storage management method example> Next, an example of a storage management method performed in the cluster 6 of the storage system 1 will be described with reference to FIGS.
[0112] (Processing related to score calculation) First, an example of processing relating to score calculation will be described with reference to FIGS. FIG. 19 is a flowchart showing an example of a process related to score calculation. 20 is a sequence diagram showing the relationship between the processing of the master node (P) and the worker node. The reference numerals of the processing steps shown in FIG. 20 correspond to the processing steps shown in FIG.
[0113] First, the score calculation unit 31 of the worker node refers to the history management table 21 (S1 in FIG. 19). At this time, the storage software of the worker node acquires information such as the failure history and operation history of the node itself from the history management table 21 (S1A in FIG. 20).
[0114] Next, the score calculation unit 31 refers to the configuration information 23 (see FIG. 7) of the own node stored in the memory 11 (see FIG. 2) (S2 in FIG. 19). At this time, the storage software of the worker node acquires the configuration information 23 of the own node (S2A in FIG. 20).
[0115] Next, the score calculation unit 31 calculates the score of the own node by referring to the score calculation table 22 (S3 in FIG. 19). At this time, the storage software of the worker node calculates the score of the own node based on the referenced failure history, operation history, and configuration information 23 of the own node (S3A in FIG. 20).
[0116] Next, the score calculation unit 31 transmits the calculated score of its own node to the master node (P) (S4 in FIG. 19). At this time, the storage software of the worker node transmits the calculated score of its own node to the storage software of the master node (P) (S4A in FIG. 20).
[0117] Next, the score management unit 51 of the master node (P) updates the score table 40 (S5 in FIG. 19). At this time, the storage software of the master node (P) queries the scale-out DB for the last update time of the score table 40 (S5A in FIG. 20).
[0118] Next, the score management unit 51 checks the nodes that have not received the score, subtracts points from the scores of problematic nodes (S6 in FIG. 19), and ends this process. At this time, the storage software of the master node (P) invalidates the scores of nodes that have not updated their scores for a certain period of time (S6A in FIG. 20).
[0119] (Processing from failure occurrence to completion of promotion to master) Next, an example of the process from the occurrence of a failure to the completion of promotion to master will be described with reference to FIGS. 21 and 22. FIG. FIG. 21 is a flowchart showing an example of a process from the occurrence of a failure to the completion of promotion to master. 22 is a sequence diagram showing the relationship between the processing of the master node (P) and the worker node. The reference numerals of the processing steps shown in FIG. 22 correspond to the processing steps shown in FIG.
[0120] First, the promoted node selection unit 52 of the master node (P) checks the number of master nodes for each fault domain (S11 in FIG. 21). At this time, the storage software of the master node (P) queries the scale-out DB of its own node for fault domain affiliation information (S11A in FIG. 22). The storage software of the master node (P) also queries the scale-out DB of its own node for the scores of worker nodes (S11B in FIG. 22) and obtains the scores of the worker nodes.
[0121] Next, the promoted node selection unit 52 compares the scores of the worker nodes (S12 in FIG. 21). At this time, the storage software of the master node (P) compares the scores of the worker nodes (S12A in FIG. 22).
[0122] Next, the storage software of the master node (P) starts the Coordination Service of the worker node to be promoted to master (S13 in FIG. 21). At this time, the storage software of the master node (P) sends an instruction to start the Coordination Service to the storage software of the worker node to be promoted to master (S13A in FIG. 22). Upon receiving the start instruction, the storage software of the worker node starts the Coordination Service of its own node (S13B in FIG. 22).
[0123] Next, the master side group reconfiguration unit 53 of the master node (P) reconfigures the Coordination Service group of the master node (P), and the worker side group reconfiguration unit 32 of the worker node to be promoted to master reconfigures the Coordination Service group of the own node (S14 in FIG. 21). At this time, the Storage Software of the master node (P) instructs the Coordination Service of the own node to reconfigure the group (S14A in FIG. 22), and the master side group reconfiguration unit 53 of the Coordination Service of the master node (P) reconfigures the Coordination Service group of the own node (S14B in FIG. 22). As a result, the worker node to be promoted to master is included as a master node in the Coordination Service group of the own node.
[0124] Furthermore, the storage software of the master node (P) instructs the storage software of the worker node to be promoted to master to reconfigure the Coordination Service group (S14C in FIG. 22). The storage software of the worker node instructs the Coordination Service of its own node to reconfigure the group (S14D in FIG. 22), and the worker-side group reconfiguration unit 32 of the Coordination Service reconfigures the Coordination Service group of the worker node (S14E in FIG. 22). The contents of the reconfigured Coordination Service group will be the same as the Coordination Service group of the master node (P) described in S14B in FIG. 22.
[0125] Next, the storage software of the master node (P) starts the scale-out DB of the worker node to be promoted to master (S15 in FIG. 21). At this time, the storage software of the master node (P) instructs the storage software of the worker node to be promoted to master to start the scale-out DB (S15A in FIG. 22). Upon receiving the start instruction, the storage software of the worker node starts the scale-out DB of its own node (S15B in FIG. 22).
[0126] Next, the master side group reconfiguration unit 53 of the master node (P) reconfigures the Scale-out DB group of the master node (P), and the worker side group reconfiguration unit 32 of the worker node to be promoted to master reconfigures the Scale-out DB group of the own node (S16 in FIG. 21). At this time, the Storage Software of the master node (P) instructs the Scale-out DB of the own node to reconfigure the group (S16A in FIG. 22), and the master side group reconfiguration unit 53 of the Scale-out DB of the master node (P) reconfigures the Scale-out DB group of the own node (S16B in FIG. 22). As a result, the worker node to be promoted to master is included as a master node in the Scale-out DB group of the own node.
[0127] Also, the storage software of the master node (P) instructs the storage software of the worker node to be promoted to master to reconfigure the scale-out DB group (S16C in FIG. 22). The storage software of the worker node instructs the scale-out DB of its own node to reconfigure the group (S16D in FIG. 22), and the worker-side group reconfiguration unit 32 of the scale-out DB reconfigures the scale-out DB group of the worker node (S16E in FIG. 22). The contents of the reconfigured scale-out DB group will be the same as the contents of the scale-out DB group of the master node (P) described in S16B in FIG. 22.
[0128] Next, the master side group reconfiguration unit 53 of the master node (P) stops the Coordination Service and Scale-out DB of the failed master node (S) (S17). At this time, the Storage Software of the master node (P) stops the Coordination Service and Scale-out DB of the failed master node (S) (S17A in FIG. 22).
[0129] In step S17A, the process of stopping the Coordination Service and the Scale-out DB has been explained, but when a failure occurs in the master node (S), the master node (S) in which the failure occurs is logically separated from the cluster 6. This makes it possible to suppress the impact of the failed master node (S) on other nodes.
[0130] Next, the score management unit 51 of the master node (P) updates the score table 40 (S18 in FIG. 21) and ends this process. At this time, as shown in FIG. 12, the storage software of the master node (P) updates the score table 40 by deleting the entry of the node to be promoted to master from the score table 40 (S18A in FIG. 22).
[0131] <Example of notification screen> 23 is a diagram showing an example of a display of a notification screen 70. The notification screen 70 is displayed when a worker node is promoted to master when a failure occurs in the master.
[0132] The notification screen 70 is used by the user to confirm the master node where a failure occurred and the worker node that was promoted to master. This notification screen 70 displays that the target cluster 6 is composed of Nodes 1 to 6, that the node where the failure occurred is Node 3, and the score table 40 at the time of promotion to master. At the bottom of the notification screen 70, a message is displayed stating, "The master node (Node 3) has been demoted and deleted, and the worker node 6 with the highest score has been promoted to master node." The user can confirm from this notification screen 70 that Node 3, which was the master node, has been demoted and Node 6, which was the worker node, has been promoted to master node. This allows the user to smoothly carry out repairs and troubleshooting for Node 3, which was demoted from master.
[0133] In the storage system 1 according to the embodiment described above, during operation of the cluster 6, a worker node that is expected to operate stably as a target for master promotion is automatically selected in place of a failed master node, and the selected worker node is promoted to master. Therefore, a worker node that is unlikely to fail is likely to be selected as a target for master promotion. In addition, since the selection of a worker node to be promoted to master is automated, the user does not need to select a worker node that can be promoted to master from a large number of worker nodes. In addition, even if a master node fails and the service is stopped, the service can be resumed in a short time using the master node that has been promoted to master, so the service downtime can be reduced. Therefore, the availability of the storage system 1 can be increased without increasing the user's workload.
[0134] In addition, while the cluster 6 is in operation, the worker node score calculation unit 31 calculates a score indicating how stably the node is operating based on the number of past failures it has experienced and its operating time, and the master node score management unit 51 manages the score for each worker node. In addition, the master node promotion node selection unit 52 can compare the scores of the worker nodes when promotion to master is actually required, and automatically select a reliable worker node as the target for promotion to master.
[0135] In addition, the score table 40 manages scores for each index classification. Also, according to the priority order of the index classification, the worker node to be promoted to master is selected in descending order of score. Therefore, a worker node that is less likely to fail is more likely to be selected as a target for promotion to master.
[0136] In addition, the user is notified of the failed master node, the contents of the score table 40, and information on the worker node promoted to master via a notification screen 70. Through the notification screen 70, the user can easily grasp the operating status of the cluster 6, and can expedite the response to repair or replace the failed master node.
[0137] In addition, in Cluster 6, the number of master nodes and worker nodes is managed for each fault domain, and a worker node that belongs to a fault domain with the fewest number of master nodes is more likely to be selected as a target for promotion to master. Therefore, after a worker node that belongs to the same fault domain as a failed master node is promoted to master, the fault response of the failed master node can avoid the shutdown of the promoted master node due to a power outage.
[0138] The present invention is not limited to the above-described embodiment, and various other applications and modifications are possible without departing from the gist of the present invention as set forth in the claims. For example, the above-mentioned embodiment describes the system configuration in detail and specifically in order to explain the present invention in an easily understandable manner, and is not necessarily limited to a system having all of the described configurations. In addition, it is also possible to add, delete, or replace part of the configuration of the present embodiment with other configurations. In addition, the control lines and information lines shown are those that are considered necessary for the explanation, and not all control lines and information lines in the product are necessarily shown. In reality, it can be considered that almost all components are connected to each other. [Explanation of symbols]
[0139] 1...storage system, 3...storage node, 6...cluster, 10...CPU, 11...memory, 12...storage device, 20...score information, 21...history management table, 22...score calculation table, 31...score calculation unit, 32...worker-side group reconfiguration unit, 40...score table, 41...index management table, 42...priority management table, 51...score management unit, 52...promoted node selection unit, 53...master-side group reconfiguration unit, 70...notification screen
Claims
1. A storage system in which a plurality of storage nodes each having a processor, a memory, and a storage device are connected to one another via a network, and a cluster is formed with a plurality of the storage nodes as master nodes and the remaining storage nodes as worker nodes, The processor of the worker node has a score calculation unit that calculates a score of the worker node based on a failure history and an operating status of the worker node, The processor of the master node has a promotion node selection unit that, when a failure occurs in one of the master nodes, compares the scores for each of the worker nodes and selects, based on the scores, the worker node to be promoted to the master node in place of the failed master node. Storage system.
2. The processor of the master node has a master-side reconfiguration unit that promotes the worker node selected by the promoted node selection unit to the master node and reconfigures the cluster. The storage system according to claim 1 .
3. The plurality of master nodes are configured with a certain degree of redundancy, The promoted node selection unit selects the worker node to be promoted to the master node when the number of the master nodes is not sufficient to ensure the redundancy. The storage system according to claim 2.
4. the score calculation unit calculates the score for each index classification into which the indexes are classified, as information that can be compared by the promoted node selection unit regarding the failure history and the operating status of the worker node; The memory of the master node has a score table in which information on the scores is stored for each of the worker nodes and for each of the index classifications. The storage system according to claim 3.
5. The indicator classification includes at least one of a main failure, which is an indicator of the failure history of the worker node, a network failure, which is an indicator of the failure history of the network to which the worker node is connected, an operating time, which is an indicator of the operation of the worker node, and a virtualization status, which is an indicator of the status of the virtualization environment of the worker node. The storage system according to claim 4.
6. The promotion node selection unit compares the scores for each index classification and for each of the plurality of worker nodes in accordance with the priority order defined for the index classification, and when the scores of the index classification with the highest priority order are the same for the plurality of worker nodes, repeats a process of comparing the scores of the index classification with the next highest priority order, and selects the worker node with the same index classification and the highest score. The storage system according to claim 4.
7. The processor of the master node has a score management unit that manages the score information received from the worker node in the score table and invalidates the score of the worker node that has not been able to receive the score information for a predetermined time or longer from the score table. The storage system according to claim 4.
8. the master-side reconfiguration unit removes the master node in which a failure has occurred from the cluster, and updates information on the storage node managed as the master node with information on the worker node to be promoted to the master node; The processor of the worker node to be promoted to the master node has a worker-side reconfiguration unit that is started to operate as the master node by an instruction from the promoted node selection unit and reconfigures information required as the master node in synchronization with the master-side reconfiguration unit. The storage system according to claim 3.
9. A fault domain is set for each of the storage nodes that share at least one of a power supply system and a network switch; The promotion node selection unit selects the worker node to be promoted to the master node for each fault domain. The storage system according to claim 3.
10. The promotion node selection unit selects the worker node to be promoted to the master node from the worker nodes included in the fault domain having the fewest master nodes. The storage system according to claim 9.
11. Among the plurality of master nodes, one is configured as a primary node used as an active system, and the rest are configured as secondary nodes used as standby systems, The master node configured as the primary receives the score information from the worker node, and reflects the score information to the master node configured as the secondary. The storage system according to claim 3.
12. A storage management method performed in a storage system in which a plurality of storage nodes, each having a processor, a memory, and a storage device, are connected via a network, and a cluster is formed with a plurality of the storage nodes as master nodes and the remaining storage nodes as worker nodes, comprising: The processor of the worker node calculates a score of the worker node based on the failure history and operating status of the worker node; The processor of the master node, when a failure occurs in one of the master nodes, compares the scores for each of the worker nodes and selects, based on the score, the worker node to be promoted to the master node in place of the failed master node. A method for managing storage nodes.
Citation Information
Patent Citations
Information processing system, information processing system management method and program
JP6850771B2
