STORAGE SYSTEM AND I / O REQUEST PROCESSING METHOD THEREIN - Patent application
The storage system addresses I/O performance issues in hybrid clouds by using I/O and response waiting threads to manage I/O requests and responses, preventing timeouts and maintaining performance through efficient resource management.
Patent Information
- Application Number
- JP2023029495
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2023-02-28
- Publication Date
- 2024-09-18
- Estimated Expiration
- 2043-02-28
AI Technical Summary
Existing storage systems in hybrid cloud environments experience deteriorating I/O performance due to I/O response timeouts, which are suppressed by conventional methods but result in other I/O requests being left in a waiting state.
A storage system with a processor that includes I/O processing and response waiting threads, which handles I/O requests and responses, performs standby processes, and manages cloud storage states to prevent timeouts and maintain performance by moving resources between threads and queues.
The system effectively suppresses I/O performance declines while preventing timeouts, improves response handling, and ensures efficient recovery from I/O response delays by managing thread states and queues.
Smart Images

Figure 0007553206000015 
Figure 0007553206000010 
Figure 0007553206000004
Abstract
Description
[Technical field]
[0001] The present invention relates to a storage system and an I / O request processing method in a storage system. [Background technology]
[0002] In recent years, hybrid clouds that combine and use public clouds, private clouds, and on-premise environments are becoming more common. For example, there is a system that includes cloud storage, which is a cloud-based storage built in a public cloud, and a host built in a private cloud or on-premise. In such a system, the cloud storage is prone to delays in I / O (Input / Output) responses to I / O requests from the host, and I / O performance may decrease due to timeouts in the I / O response.
[0003] Therefore, as disclosed in Patent Document 1, a technology has been devised that, when an I / O response from cloud storage to an I / O request from a host is delayed, prevents timeout by having the host reissue the I / O before the I / O response to the host times out. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] U.S. Patent No. 10,481,805 Summary of the Invention [Problem to be solved by the invention]
[0005] However, while the above-mentioned conventional technology can prevent I / O response timeouts to the host, there is a problem in that other I / O requests cannot be accepted and are put into a waiting state while the I / O request timeout is being prevented, resulting in a decrease in I / O performance.
[0006] In consideration of the above-mentioned problems with the conventional technology, an object of the present invention is to suppress a decrease in I / O performance in a cloud storage while suppressing a timeout of an I / O response to an I / O request from a host. [Means for solving the problem]
[0007] In one aspect of the present invention to solve such problems, there is provided a storage system having a cloud storage that is a cloud-based storage, and a storage node that processes I / O requests to the cloud storage, wherein a processor of the storage node executes an I / O processing thread that holds I / O resources including information and buffers used in processing related to the I / O request and an I / O response sent from the cloud storage in response to the I / O request, and a response waiting processing thread, and the processor transmits the I / O request to the cloud storage in response to a request from a host using the I / O processing thread, and performs a response waiting processing after a first time from sending the I / O request to the cloud storage. a wait process for waiting for reception of an I / O response to the I / O request until a first timeout time has elapsed, and if the I / O response is received from the cloud storage before the first timeout time has elapsed, the host transfers the I / O response to the host, and if the I / O response is not received from the cloud storage before the first timeout time has elapsed, the response wait process thread moves the I / O resources to the response wait process thread and holds them therein, and the response wait process thread uses the I / O resources moved from the I / O processing thread and held in the response wait process thread to send a response confirmation to the cloud storage requesting the I / O response, and performs the wait process on behalf of the I / O processing thread. Effect of the Invention
[0008] According to the present invention, in cloud storage, it is possible to suppress a decrease in I / O performance while suppressing a timeout of an I / O response to an I / O request from a host. [Brief description of the drawings]
[0009] [Figure 1] FIG. 1 is a diagram showing an example of the configuration of a storage system. [Diagram 2] FIG. 2 is a diagram showing an example of the configuration of a storage node. [Diagram 3] FIG. 2 is a diagram showing an example of a memory configuration of a storage node. [Figure 4] FIG. 2 is a diagram showing an example of a functional configuration of a storage node and an overview of an embodiment. [Diagram 5] FIG. 13 is a diagram showing an example of the configuration of a waiting request queue table. [Figure 6] FIG. 13 is a diagram showing an example of the configuration of a standby resource queue table. [Figure 7] FIG. 13 is a diagram showing an example of the configuration of an I / O processing thread table. [Figure 8] FIG. 13 is a diagram showing an example of the configuration of a response waiting process thread table. [Figure 9] FIG. 13 is a diagram showing an example of the configuration of a cloud storage status management table. [Figure 10] FIG. 11 is a diagram showing an example of a state transition of cloud storage. [Figure 11] FIG. 13 is a diagram showing an example of the configuration of a rebuild request flag table. [Figure 12] FIG. 13 is a diagram showing an example of the configuration of a response timeout time table for cloud storage. [Figure 13] FIG. 13 is a diagram showing an example of the configuration of a cloud storage temporary blocking count table. [Figure 14] FIG. 13 is a diagram showing an example of the configuration of a cloud storage temporary block upper limit count table. [Figure 15] FIG. 11 is a sequence diagram showing an example of an I / O request process. [Figure 16] 11 is a flowchart showing an example of a rebuild process. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] Hereinafter, an embodiment according to the present disclosure will be described with reference to the drawings. The embodiment, including the drawings, is an example for explaining the present application. In the embodiment, appropriate omissions and simplifications are made in order to clarify the explanation. Unless otherwise specified, the components of the embodiment may be singular or plural. In addition, a form in which one embodiment is combined with another embodiment is also included in the embodiment according to the present disclosure.
[0011] In the following description, identical or similar components are given the same reference numerals, and in the following embodiments and examples, the description may be omitted or only the differences may be described. In addition, when there are multiple identical or similar components, the same reference numerals may be given different subscripts. In addition, when there is no need to distinguish between these multiple components, the subscripts may be omitted. The number of each component may be singular or plural unless otherwise specified.
[0012] In the following explanation, various information is explained in the form of tables, queues, etc., but various information may be expressed in data structures other than tables and queues. "XX table" and "XX queue" can be called "XX information" because they do not depend on the data structure. When explaining the content of various information, expressions such as "identification information," "identifier," "name," "ID," and "number" are used, but these are interchangeable.
[0013] In the embodiments, the processing performed by a program may be described. A computer performs processing defined by a program using a processor (e.g., a CPU (Central Processing Unit), a GPU (Graphics Processing Unit)) while using memory in a main storage device. Therefore, the processor may be the entity that performs processing by executing a program. The processor executes a program to realize a functional unit that performs processing.
[0014] Similarly, the subject of the processing performed by executing the program may be a controller, device, system, computer, or node having a processor. The subject of the processing performed by executing the program may be a computing unit, and may include a dedicated circuit that performs specific processing. The dedicated circuit is, for example, an FPGA (Field Programmable Gate Array) or an ASIC (Application Specific Integrated Circuit).
[0015] The program may be installed in the computer from a program source. The program source may be, for example, a program distribution server or a non-transitory storage medium readable by the computer. When the program source is a program distribution server, the program distribution server may include a processor and a storage resource (storage) for storing the program to be distributed, and the processor of the program distribution server may distribute the program to be distributed to other computers. In addition, in the embodiment, two or more programs may be realized as one program, and one program may be realized as two or more programs.
[0016] (Storage System S Configuration) Fig. 1 is a diagram showing an example of the configuration of a storage system S. The storage system S includes a storage node 1, a cloud storage 2, a host 3, and a management server 4. The number of each of the storage nodes 1, cloud storage 2, and hosts 3 is arbitrary.
[0017] The storage node 1 is a virtual server configured with host-type, hypervisor-type, container-type, or other virtual machines, and executes various processes that perform processing related to I / O and management of data on the cloud storage 2. The storage nodes 1 are connected to each other via an Internode-Subnet.
[0018] The cloud storage 2 is a cloud-based non-volatile storage constructed in a cloud environment, and is configured to include a virtual volume or a physical disk. One or more cloud storages 2 are connected to each storage node 1, and each storage cluster is configured.
[0019] The host 3 transmits an I / O request to the cloud storage 2 via the network N (Compute-Subnet). The host 3 receives an I / O response to the I / O request from the cloud storage 2 via the network N (Compute-Subnet).
[0020] The management server 4 is a server for an administrator to perform maintenance management of the storage node 1 and the cloud storage 2 via a network N (Management Subnet) or a management network (not shown). The management server 4 may be directly connected to the cloud storage 2.
[0021] The above-mentioned Compute-Subnet, Internode-Subnet, and Management-Subnet may be the same or different. The Compute-Subnet, Internode-Subnet, and Management-Subnet may be any of Ethernet (registered trademark, the same below), InfiniBand (registered trademark, the same below), and wireless. The network and communication lines may be redundant.
[0022] (Storage node 1 configuration) 2 is a diagram showing an example of the configuration of the storage node 1. The storage node 1 includes a processor 11, a memory 12, a storage 13, and a communication interface 14. The processor 11 reads a program from the storage 13, and cooperates with the memory 12 to realize each thread and processing function unit described below.
[0023] The communication interface 14 includes one or more HBAs (Host Bus Adapters) and one or more NICs (Network Interface Cards). The HBA is a communication interface for a data service network (any of Fiber Channel, Ethernet, InfiniBand, etc.). The NIC is a communication interface for a back-end network (corresponding to the above-mentioned Compute-Subnet and Internode-Subnet, which may be any of Fiber Channel, Ethernet, InfiniBand, etc.).
[0024] (Storage node memory configuration) Fig. 3 is a diagram showing an example of the configuration of the memory 12 of the storage node 1. An I / O processing / alive monitoring delegation processing program 12a, an I / O resource management processing program 12b, a response delay handling processing program 12c, an alive monitoring processing program 12d, and a rebuild processing program 12e are loaded from the storage 13 and stored in the memory 12. Processing functions of these programs will be described later with reference to Figs. 15 and 16.
[0025] The memory 12 also stores a standby request queue table 12T1, a standby resource queue table 12T2, an I / O processing thread table 12T3, a response standby processing thread table 12T4, and a cloud storage status management table 12T5. The memory 12 also stores a rebuild request flag table 12T6, a response timeout time table 12T7, a cloud storage temporary blocking count table 12T8, and a cloud storage temporary blocking upper limit count table 12T9. These tables are loaded from the storage 13 and stored in the memory 12. Details of these tables will be described later with reference to FIGS. 5 to 14.
[0026] (Functional configuration of storage node 1 and overview of embodiment) 4 is a diagram illustrating an example of a functional configuration of the storage node 1 and an overview of an embodiment. The storage node 1 includes an I / O processing thread 101, a response waiting processing thread 102, a cloud storage gateway 103, and a periodic processing substrate 104.
[0027] The I / O processing thread 101 is an instance in which the processor 11 cooperates with the memory 12 to execute the I / O processing and alive monitoring delegation processing program 12a (FIG. 3) loaded from the storage 13 to the memory 12 (FIG. 2).
[0028] I / O processing thread 101 transfers an I / O request from host 3 to cloud storage 2, and transfers an I / O response to the I / O request from cloud storage 2 to host 3. I / O processing thread 101 stores I / O resources 121 having a context ID 1211 and a buffer 1212 in a queue. Context ID 1211 is identification information of source I / O processing thread 101 that executes I / O processing using I / O resources 121 stored in buffer 1212 and transfers I / O resources 121 to response waiting processing thread 102, which will be described later. Buffer 1212 is a storage area that stores I / O data.
[0029] The response waiting process thread 102 is an instance in which the processor 11 cooperates with the memory 12 to execute the I / O resource management process program 12b (FIG. 3) loaded from the storage 13 into the memory 12 (FIG. 2).
[0030] The response waiting processing thread 102 has a waiting request queue table 12T1 and a waiting resource queue table 12T2. The response waiting processing thread 102 holds the I / O resources 121 moved from the I / O processing thread 101 in the waiting request queue table 12T1. The response waiting processing thread 102 also moves the I / O resources 121 from the waiting request queue table 12T1 to the waiting resource queue table 12T2 and holds them there, and waits for an I / O response using the I / O resources 121 held in the waiting resource queue table 12T2.
[0031] The cloud storage gateway 103 is an instance in which the processor 11 cooperates with the memory 12 to execute the response delay handling processing program 12c and the alive monitoring processing program 12d (FIG. 3) loaded from the storage 13 to the memory 12 (FIG. 2).
[0032] The cloud storage gateway 103 cooperates with an I / O processing thread 101 , a response waiting processing thread 102 , and a periodic processing substrate 104 to execute various processes for the cloud storage 2 .
[0033] The periodic processing board 104 cooperates with the memory 12 and is an instance that executes the rebuild processing program 12e (FIG. 3) and the like that are loaded from the storage 13 to the memory 12 (FIG. 2).
[0034] The periodic processing substrate 104 executes a rebuild process (FIG. 16) for the cloud storage 2 to restore data in a redundant array of independent disks (RAID) associated with the return of the cloud storage 2 from the provisionally blocked state to the normal state.
[0035] Hereinafter, an outline of this embodiment will be described with reference to FIG.
[0036] Assume that a delay in an I / O response (I / O response delay) occurs from cloud storage 2 in response to an I / O request sent by I / O processing thread 101. The I / O response delay occurs due to traffic delays in the cloud network, including the communication path connecting storage node 1 and cloud storage 2 and the communication path within cloud storage 2. The I / O response delay may recover naturally due to traffic improvement, etc. In order to wait for the natural recovery, the cloud storage 2 that was the target of the I / O processing is temporarily placed in a provisionally blocked state (see (1) in FIG. 4). The provisionally blocked state is a state in which it is not possible to accept new I / O requests and only a confirmation of an I / O response (response confirmation) to an existing I / O request for which an I / O response delay is occurring can be accepted.
[0037] Next, in order to continue the I / O processing when the I / O response delay of the cloud storage 2 recovers naturally, the I / O resources 121 (context ID 1211 and buffer 1212) required for the processing continuation are transferred. Specifically, the I / O resources 121 required for the processing continuation are moved and held in a waiting request queue table 12T1 present in a response waiting processing thread 102 prepared separately from the I / O processing thread 101 (see (2) in FIG. 4).
[0038] Waiting request queue table 12T1 has a queue structure, handles a plurality of I / O processing threads, and queues I / O resources 121 delegated from each I / O processing thread 101. One response waiting processing thread 102 exists in one storage node 1. One storage node 1 has a plurality of I / O processing threads 101 (five I / O processing threads 101, Th1 to Th5, are shown in FIG. 4).
[0039] While waiting for natural recovery from the response delay of the cloud storage 2, the I / O resource 121 corresponding to the waiting I / O response is frequently referenced. The waiting request queue table 12T1 receives queue push operations from multiple I / O processing threads 101, which causes an inconvenience of high access frequency.
[0040] In order to avoid this inconvenience and distribute the access load of the waiting request queue table 12T1, a waiting resource queue table 12T2 is provided in addition to the waiting request queue table 12T1, which is referred to when monitoring an I / O response delay of the cloud storage 2. The I / O resource 121 required to continue the I / O processing is moved from the waiting request queue table 12T1 to the waiting resource queue table 12T2, and waits for an I / O response from the cloud storage 2 (see (3) in FIG. 4).
[0041] Thereafter, the response waiting process thread 102 receives an I / O response from the cloud storage 2 as the I / O response delay to the I / O request of the cloud storage 2 has naturally recovered.
[0042] Next, the cloud storage gateway 103 starts a differential rebuild, which is a rebuild targeting the data differences from the time when the first timeout elapsed, for the cloud storage 2 that has recovered from the I / O response delay, and performs RAID data recovery (see (4) in Figure 4).
[0043] Note that the differential rebuild is performed on the same cloud storage 2 that was put into a temporary blocked state in (1) of Figure 4. This is because performing a differential rebuild on different cloud storages 2 causes data uneven distribution and reduces I / O performance.
[0044] Next, when the cloud storage gateway 103 completes the differential rebuild of the cloud storage 2 (see (5) in FIG. 4), it returns the corresponding cloud storage 2 to I / O processing (see (6) in FIG. 4). In addition, the response waiting processing thread 102 releases the corresponding I / O resource 121 from the waiting resource queue table 12T2 (see (7) in FIG. 4).
[0045] (Configuration of waiting request queue table 12T1) 5 is a diagram showing an example of the configuration of the waiting request queue table 12T1. The waiting request queue table 12T1 is a container for storing the I / O resources 121 held in the response waiting processing thread 102, and has a queue structure (a FIFO data structure). I / O resources 121 related to the cloud storage 2 in which a response delay is occurring are added from the multiple I / O processing threads 101. The number of I / O resources 121 stored in the waiting request queue table 12T1 is arbitrary.
[0046] The waiting request queue table 12T1 has columns of "INDEX" and "storage element." "INDEX" is identification information of the corresponding record. "Storage element" stores the I / O resource 121.
[0047] (Configuration of standby resource queue table 12T2) 6 is a diagram showing an example of the configuration of the standby resource queue table 12T2. The standby resource queue table 12T2 is a container for storing I / O resources held in the response standby processing thread 102, and has a queue structure. The I / O resources 121 stored in the standby request queue table 12T1 are acquired in order from the top and added to its own queue in order. The number of I / O resources 121 stored in the standby resource queue table 12T2 is arbitrary.
[0048] The standby resource queue table 12T2 has columns of "INDEX" and "storage element." "INDEX" is identification information of the corresponding record. "Storage element" stores the I / O resource 121.
[0049] (I / O processing thread table 12T3 configuration) 7 is a diagram showing an example of the configuration of I / O processing thread table 12T3. I / O processing thread table 12T3 manages a group of I / O processing threads that are executed by I / O processing thread 101 and process I / O requests sent from host 3. One I / O processing thread table 12T3 exists for each storage node 1. The number of I / O processing threads 101 is arbitrary depending on the operating environment.
[0050] I / O processing thread table 12T3 has columns of “thread number” and “thread ID.” “Thread number” is identification information for each record in I / O processing thread table 12T3. “Thread ID” is identification information for each I / O processing thread 101.
[0051] (Configuration of response waiting process thread table 12T4) 8 is a diagram showing an example of the configuration of the response waiting process thread table 12T4. The response waiting process thread table 12T4 manages the response waiting process threads executed by the response waiting process thread 102.
[0052] The response waiting process thread table 12T4 has columns of “thread number” and “thread ID.” The “thread number” is identification information of a record in the response waiting process thread table 12T4. The “thread ID” is identification information of the response waiting process thread 102.
[0053] In this embodiment, there is one response waiting processing thread 102 for each storage node 1. Therefore, the response waiting processing thread table 12T4 illustrated in Fig. 8 has one record. However, there may be multiple response waiting processing threads for each storage node 1.
[0054] (Configuration of Cloud Storage Status Management Table 12T5) Fig. 9 is a diagram showing an example of the configuration of the cloud storage status management table 12T5, and Fig. 10 is a diagram showing an example of the status transition of the cloud storage.
[0055] Cloud storage status management table 12T5 has columns of "cloud storage ID" and "status." "Cloud storage ID" is identification information of the cloud storage 2. "Status" is the "status" of the cloud storage 2 corresponding to the "cloud storage ID."
[0056] The "state" of the cloud storage 2 will be described with reference to Fig. 10. As shown in Fig. 10, the cloud storage 2 is initially in a NORMAL state (state 12T52) when it is recognized by the storage node 1. The NORMAL state is a state in which the cloud storage 2 is normal and is accepting I / O requests from the host 3.
[0057] When an I / O response delay occurs in cloud storage 2 in the NORMAL state (state 12T52), it transitions to the TEMPORARY BLOCKADE state (state 12T53) (state transition 12T54). In the TEMPORARY BLOCKADE state, it does not accept I / O requests from host 3, but it does accept response requests from storage node 1. In cases where the I / O response delay recovers naturally, cloud storage 2 can return to the NORMAL state (state 12T52) by executing a rebuild process (state transition 12T55).
[0058] In the TEMPORARY BLOCKADE state (state 12T53), if the I / O response delay is not resolved within the timeout time, the cloud storage 2 transitions to the BLOCAKDE state (blocked state) (state 12T56) (state transition 12T57). In the BLOCAKDE state, the cloud storage 2 does not accept I / O requests from the host 3 or response requests from the storage node 1.
[0059] (Configuration of rebuild request flag table 12T6) 11 is a diagram showing an example of the configuration of a rebuild request flag table 12T6. The rebuild request flag table 12T6 has columns of "cloud storage ID" and "flag value".
[0060] "Cloud storage ID" is identification information for the cloud storage 2. "Flag value" is a flag value managed for each cloud storage 2, where true indicates that a rebuild process has been requested for the relevant cloud storage 2, and false indicates that no request has been requested. The periodic processing infrastructure 104 (FIG. 4) monitors the rebuild request flag at an arbitrary period, and executes rebuild processes for cloud storages 2 for which the rebuild request flag is true.
[0061] (Cloud storage response timeout table 12T7) 12 is a diagram showing an example of the configuration of a cloud storage response timeout time table 12T7. The response timeout time table 12T7 manages the timeout time related to responses obtained from the cloud storage 2. There is one or more response timeout time tables 12T7 per storage system S.
[0062] The response timeout period table 12T7 has columns for "timeout type" and "timeout period." The "timeout type" includes "maximum response waiting period (first timeout period)" and "maximum response delay recovery waiting period (second timeout period)."
[0063] The "maximum response waiting time" represents the maximum waiting time from when the I / O processing thread 101 of the storage node 1 issues an I / O request until the I / O processing thread 101 receives an I / O response sent from the cloud storage 2 in response to the I / O request. If the I / O processing thread 101 does not receive an I / O response even after the "maximum response waiting time" has elapsed since the I / O processing thread 101 issued an I / O request, it is determined that a response delay is occurring in the corresponding cloud storage 2. Then, the corresponding cloud storage 2 is transitioned to a provisionally blocked state by the cloud storage gateway 103. The "maximum response waiting time" is set to any time.
[0064] The "maximum response delay recovery wait time (second timeout time)" represents the maximum wait time until the response delay of cloud storage 2 in a temporarily blocked state naturally recovers. If the I / O response delay of cloud storage 2 does not naturally recover even after the "maximum response delay recovery wait time" has elapsed since response wait processing thread 102 sent a response confirmation request, the I / O response is not received by response wait processing thread 102. In this case, the corresponding cloud storage 2 is put into a blocked state. The "maximum response delay recovery wait time (second timeout time)" is set to an arbitrary time.
[0065] In addition, the response timeout period table 12T7 may have a uniform value regardless of the individual storage node 1 and cloud storage 2, or may have a different value for each storage node 1 or cloud storage 2.
[0066] (Configuration of Cloud Storage Temporary Blocking Count Table 12T8) 13 is a diagram showing an example of the configuration of the cloud storage temporary block count table 12T8. The cloud storage temporary block count table 12T8 manages the temporary block count of each subordinate cloud storage 2 for each storage node 1.
[0067] Cloud storage temporary blocking count table 12T8 has columns of "cloud storage ID" and "temporary blocking count." "Cloud storage ID" is identification information of the cloud storage. "Temporary blocking count" is counted up every time the corresponding cloud storage 2 generates an I / O response delay, and indicates the number of times an I / O response delay occurred in the past and the state transitioned to a temporary blocking state.
[0068] (Cloud storage temporary blocking limit count table 12T9) 14 is a diagram showing an example of the configuration of a cloud storage temporary block upper limit count table 12T9. The cloud storage temporary block upper limit count table 12T9 has columns of "cloud storage ID" and "upper limit count".
[0069] "Cloud storage ID" is identification information of the cloud storage. "Maximum number of times" is the maximum number of times that the cloud storage 2 is transitioned to a temporary blocking state. When an I / O response delay occurs in the cloud storage 2 and the "temporary blocking number of times" reaches the "maximum number of times", the cloud storage 2 is not transitioned to a temporary blocking state and is disconnected from the storage system S.
[0070] (I / O request processing according to the embodiment) FIG. 15 is a sequence diagram illustrating an example of an I / O request process.
[0071] Steps S12, S16, S17, S23, and S24 described below are processes performed by the I / O processing and alive monitoring delegation processing program 12a (FIG. 2). Steps S25, S26, S27, S28, S29, S35, S36, S37, S40, and S41 are processes performed by the I / O resource management processing program 12b (FIG. 2). Steps S13, S14, S15, S18, S19, S20, S21, and S22 are processes performed by the response delay processing program 12c (FIG. 2). Steps S30, S31, S32, S33, S34, S38, and S39 are processes performed by the alive monitoring processing program 12d (FIG. 2).
[0072] First, in step S11, the host 3 sends an I / O request to the I / O processing thread 101 (FIG. 4). Next, in step S12, the I / O processing thread 101 sends an I / O request to the cloud storage 2 in response to the I / O request from the host 3. Next, in step S13, the cloud storage gateway 103 transfers the I / O request received from the I / O processing thread 101 to the cloud storage 2.
[0073] In step S14, the cloud storage gateway 103 determines whether an I / O response to the I / O request transferred in step S13 is received within the maximum response waiting time (FIG. 12) from the cloud storage 2. If the I / O response is received within the maximum response waiting time (step S14 YES), the cloud storage gateway 103 proceeds to step S15, and if the I / O response is not received within the maximum response waiting time (step S14 NO), the cloud storage gateway 103 proceeds to step S18.
[0074] In step S15, the cloud storage gateway 103 transfers the received I / O response to the I / O processing thread 101.
[0075] Next, in step S16, I / O processing thread 101 determines whether an I / O response to the I / O request issued in step S12 is received within the maximum response waiting time (FIG. 12). If an I / O response is received within the maximum response waiting time (step S16 YES), I / O processing thread 101 proceeds to step S17, and if an I / O response is not received within the maximum response waiting time (step S16 NO), it proceeds to step S23.
[0076] Note that steps S12 and S13 may be considered to be performed simultaneously, and steps S14 and S16 may be considered to be performed simultaneously.
[0077] In step S17, I / O processing thread 101 transfers the I / O response received in step S16 to host 3. When steps S15 and S17 are completed, the I / O request processing ends.
[0078] In step S18, the cloud storage gateway 103 judges whether the counter variable value of the temporary blocking count is equal to or greater than the upper limit count (FIG. 14). If the counter variable value of the temporary blocking count is equal to or greater than the upper limit count, the cloud storage gateway 103 proceeds to step S19, and if the counter variable value of the temporary blocking count is less than the upper limit count, the cloud storage gateway 103 proceeds to step S20.
[0079] In step S19, the cloud storage gateway 103 disconnects the cloud storage 2 for which it was unable to receive an I / O response within the maximum response waiting time (FIG. 12) in step S14 from the storage system S. Specifically, the cloud storage gateway 103 deletes the cloud storage 2 from data I / O and management targets, and disconnects the connection to the storage node 1. Information corresponding to the cloud storage 2 may be erased from the cloud storage status management table 12T5 (FIG. 9).
[0080] Next, in step S20, the cloud storage gateway 103 adds 1 to the counter variable value of the temporary blocking count. Next, in step S21, the cloud storage gateway 103 transitions the state of the cloud storage 2 for which an I / O response could not be received within the maximum response waiting time (FIG. 12) in step S14 from the normal state to the temporary blocking state.
[0081] Next, in step S22, the cloud storage gateway 103 sends a first timeout response to the I / O processing thread 101. The first timeout means that an I / O response could not be received within the maximum response waiting time (FIG. 12) in step S14.
[0082] Next, in step S23, the I / O processing thread 101 receives a first timeout response from the cloud storage gateway 103.
[0083] Next, in step S24, I / O processing thread 101 moves I / O resource 121 (FIGS. 4 and 5) related to the I / O response from a queue in I / O processing thread 101 to response wait processing thread 102. As a result, I / O processing thread 101 transfers the wait process of waiting for reception of an I / O response to response wait processing thread 102.
[0084] In step S25, the response waiting processing thread 102 determines whether an I / O request having the I / O resource 121 stored therein is present in the standby resource queue table 12T2 (FIGS. 4 and 6) in the response waiting processing thread 102. If an I / O request having the I / O resource 121 stored therein is present in the standby resource queue table 12T2 (YES in step S25), the response waiting processing thread 102 proceeds to step S28. On the other hand, if an I / O request having the I / O resource 121 stored therein is not present in the standby resource queue table 12T2 (NO in step S25), the response waiting processing thread 102 proceeds to step S26.
[0085] In step S26, the response waiting processing thread 102 judges whether or not an I / O request in which the I / O resource 121 moved in step S24 is stored exists in the waiting request queue table 12T1 (FIGS. 4 and 5) in the response waiting processing thread 102. If an I / O request in which the I / O resource 121 is stored exists in the waiting request queue table 12T1 (YES in step S26), the response waiting processing thread 102 transfers the process to step S27. On the other hand, if an I / O request in which the I / O resource 121 is stored does not exist in the waiting request queue table 12T1 (NO in step S26), the response waiting processing thread 102 returns the process to step S25.
[0086] In step S27, the response waiting process thread 102 takes out the I / O resource 121 at the top of the waiting request queue table 12T1, and adds it to the end of the waiting resource queue table 12T2.
[0087] In step S28, the response waiting processing thread 102 acquires the top I / O resource 121 from the standby resource queue table 12T2. Next, in step S29, the response waiting processing thread 102 transmits a response confirmation request to the corresponding cloud storage 2 to request an I / O response using the I / O resource 121 acquired in step S28.
[0088] Next, in step S30, the cloud storage gateway 103 sends a response confirmation requesting an I / O response to the cloud storage 2 in response to the response confirmation request from the response waiting process thread 102. Next, in step S31, the cloud storage gateway 103 obtains the same I / O resource 121 as in step S28 from the waiting resource queue table 12T2, and starts waiting processing for the I / O response. The cloud storage gateway 103 repeats steps S30 and S31 at regular intervals until it receives an I / O response related to the response confirmation or until the maximum response delay recovery waiting time has elapsed.
[0089] Next, in step S32, the cloud storage gateway 103 determines whether the I / O response related to the response confirmation sent in step S30 is received within the maximum response delay recovery wait time (FIG. 12) from the cloud storage 2. If the cloud storage gateway 103 receives the I / O response related to the response confirmation within the maximum response delay recovery wait time (YES in step S32), it proceeds to step S33, and if it is not received (NO in step S32), it proceeds to step S38.
[0090] In step S33, the cloud storage gateway 103 transfers the I / O response received in step S32 to the response waiting processing thread 102. Next, in step S34, the cloud storage gateway 103 sets the rebuild request flag corresponding to the cloud storage 2 in the rebuild request flag table 12T6 (FIG. 11) to "true."
[0091] In step S35, the response waiting processing thread 102 determines whether the I / O response transferred from the cloud storage gateway 103 in step S33 is received within the maximum response delay recovery wait time. If the response waiting processing thread 102 receives the I / O response within the maximum response delay recovery wait time (step S35 YES), the process proceeds to step S36, and if the I / O response cannot be received (step S35 NO), the process proceeds to step S40.
[0092] Note that steps S29 and S30 may be regarded as being performed simultaneously, and steps S32 and S35 may be regarded as being performed simultaneously.
[0093] In step S36, the response waiting processing thread 102 transfers the I / O response received in step S35 to the host 3. Next, in step S37, the response waiting processing thread 102 deletes the I / O resource 121 related to the processing of the I / O response received in step S35 from the waiting resource queue table 12T2 (FIG. 6).
[0094] Meanwhile, in step S38, the cloud storage gateway 103 transitions the state of the cloud storage 2 for which an I / O response could not be received within the maximum response delay recovery wait time (FIG. 12) in step S32 from a provisionally blocked state to a blocked state. Next, in step S39, the cloud storage gateway 103 sends a second timeout response to the response waiting process thread 102. The second timeout refers to a state in which an I / O response could not be received within the maximum response delay recovery wait time (second timeout time) in step S32 (FIG. 12).
[0095] Next, in step S40, the response waiting processing thread 102 transfers the second timeout response received from the cloud storage gateway 103 to the host 3. Next, in step S41, the response waiting processing thread 102 deletes the I / O resource 121 related to the second timeout received in step S40 from the waiting resource queue table 12T2 (FIG. 6).
[0096] (Rebuild process according to the embodiment) 16 is a flowchart showing an example of the rebuild process. The rebuild process is realized by the periodic processing board 104 (FIG. 4) periodically executing the rebuild process program 12e (FIG. 3).
[0097] First, in step S51, the periodic processing substrate 104 checks the rebuild request flag in the rebuild request flag table 12T6 (FIG. 11). Next, in step S52, the periodic processing substrate 104 determines whether the rebuild request flag for the cloud storage 2 of each cloud storage ID has been confirmed to be "true" in step S51. The periodic processing substrate 104 moves the process to step S53 for the cloud storage 2 for which the rebuild request flag has been confirmed to be "true" in step S51 (YES in step S52). On the other hand, the periodic processing substrate 104 ends this rebuild process for the cloud storage 2 for which the rebuild request flag has been confirmed to be "false" (NO in step S52).
[0098] In step S53, the periodic processing substrate 104 executes a differential rebuild process on the cloud storage 2 for which the rebuild request flag is "true."
[0099] In this rebuild process, the periodic processing substrate 104 performs a differential rebuild in step S53, triggered by the recovery of I / O responses from the cloud storage 2's temporary blocked state in steps S32 to S34 of the I / O request process (FIG. 15). This allows the cloud storage 2 to recover redundancy in a shorter time. The periodic processing substrate 104 may also perform a full rebuild, which is a rebuild of all data contained in the cloud storage 2, triggered by the cloud storage 2's state transition to a blocked state in step S38 of the I / O request process. However, this will take even longer to recover redundancy than a differential rebuild triggered by the recovery of I / O responses from the cloud storage 2's temporary blocked state.
[0100] (Effects of the embodiment) In the above embodiment, when the I / O processing thread 101 does not receive an I / O response from the cloud storage 2 for an I / O request from the host 3 before the first timeout time has elapsed, the I / O processing thread 101 moves the I / O resources 121 to the response waiting processing thread 102. The response waiting processing thread 102 then uses the moved I / O resources 121 to send a response confirmation requesting an I / O response to the cloud storage 2, and performs waiting processing for the I / O response on behalf of the I / O processing thread 101.
[0101] Therefore, according to the embodiment, the cloud storage 2 experiencing I / O response delays is excluded from the processing targets of the I / O processing thread 101, and the response waiting processing thread 102 continues to wait for receiving an I / O response, thereby suppressing a decrease in I / O performance for the host 3.
[0102] Furthermore, in the above embodiment, if the I / O processing thread 101 does not receive an I / O response from the cloud storage 2 before the first timeout period has elapsed, the I / O processing thread 101 transitions the state of the cloud storage 2. That is, the state transitions from a normal state in which a new I / O request can be accepted to a provisionally blocked state in which a new I / O request cannot be accepted and only a response confirmation can be accepted.
[0103] Therefore, according to the embodiment, by not accepting new I / O requests from the cloud storage 2 experiencing an I / O response delay and instead concentrating on I / O responses, it is possible to further prevent a decrease in I / O performance for the host 3.
[0104] Furthermore, in the above embodiment, when the number of times that the state of the cloud storage 2 has been temporarily blocked reaches an upper limit, the cloud storage 2 is disconnected from the storage system S.
[0105] Therefore, according to the embodiment, by excluding the cloud storage 2 in which I / O response delays frequently occur from the storage system S, frequent I / O response delays can be avoided.
[0106] In addition, in the above-described embodiment, the response waiting processing thread 102 transfers the I / O response received from the cloud storage 2 to the host 3 before the second timeout time has elapsed, and releases the I / O resource 121 related to the I / O response held in the response waiting processing thread 102.
[0107] Therefore, according to the embodiment, by setting a limit on the time that the response wait processing thread 102 waits for receiving an I / O response, it is possible to prevent the I / O response from remaining in a state of waiting indefinitely.
[0108] In addition, in the above-described embodiment, if the response waiting processing thread 102 receives an I / O response from the cloud storage 2 before the second timeout time has elapsed, it transitions the state of the cloud storage 2 from the provisionally blocked state to the normal state and executes the differential rebuild process.
[0109] Therefore, according to the embodiment, when the cloud storage 2 recovers from an I / O response delay, redundancy can be quickly restored by differential rebuild.
[0110] Furthermore, in the above embodiment, if the response waiting processing thread 102 does not receive an I / O response from the cloud storage 2 before the second timeout time has elapsed, it transitions the state of the cloud storage 2. That is, it transitions from a provisionally blocked state to a blocked state in which an I / O request and a response confirmation cannot be accepted. That is, the response waiting processing thread 102 places the cloud storage 2 from which it is unable to receive an I / O response within the time limit into a blocked state so that a full rebuild can be performed.
[0111] Therefore, according to the embodiment, it is possible to restore the storage system S to a normal state earlier than the response waiting process thread 102 continuing to wait for an I / O response.
[0112] In the above embodiment, the response waiting processing thread 102 has a waiting request queue (a waiting request queue table 12T1) and a waiting resource queue (a waiting resource queue table 12T2). The response waiting processing thread 102 holds the I / O resources 121 moved from the I / O processing thread 101 in the waiting request queue, and executes waiting processing related to the I / O response using the I / O resources 121 moved from the waiting request queue to the waiting resource queue.
[0113] Therefore, according to the embodiment, when checking the response of an I / O response and waiting to receive it, the load of access to the queue holding the I / O resource 121 is distributed, the waiting process for receiving the I / O response is performed without delay, and an early recovery from an I / O response delay in the cloud storage 2 can be achieved.
[0114] Although one embodiment of the present disclosure has been described above in detail, the present disclosure is not limited to the above embodiment and can be modified in various ways without departing from the gist of the present disclosure. For example, the above embodiment has been described in detail to clearly explain the present invention, and is not necessarily limited to those having all of the configurations described. In addition, it is possible to add, delete, or replace part of the configuration of the above embodiment with other configurations.
[0115] In addition, the above-mentioned configurations, functional units, processing units, processing means, threads, etc. may be realized in part or in whole by hardware, for example, by designing them as integrated circuits. In addition, the above-mentioned configurations, functions, etc. may be realized in software by a processor interpreting and executing a program that realizes each function. Information such as the program, table, file, etc. that realizes each function can be stored in a memory, a hard disk, a recording device such as an SSD (Solid State Drive), an IC card, an SD card, a DVD, or other recording medium.
[0116] In addition, in each of the above figures, the control lines and information lines are shown as those considered necessary for the explanation, and do not necessarily show all the control lines and information lines in the actual implementation. For example, it may be considered that almost all the components are actually connected to each other.
[0117] The above-mentioned arrangement of the functions and data of the storage system S, the storage node 1, and the cloud storage 2 is merely an example. The arrangement of the functions and data can be changed to an optimal arrangement in terms of the performance of the hardware and software, processing efficiency, communication efficiency, etc. [Explanation of symbols]
[0118] 1: storage node, 2: cloud storage, 3: host, 4: management server, 11: processor, 12: memory, 12T1: waiting request queue table, 12T2: waiting resource queue table, 101: I / O processing thread, 102: response waiting processing thread, 121: I / O resource, S: storage system
Claims
1. A storage system including a cloud storage that is a cloud-based storage, and a storage node that processes an I / O request to the cloud storage, The processor of the storage node Executing an I / O processing thread that holds I / O resources including information and a buffer used in processing related to the I / O request and an I / O response transmitted from the cloud storage in response to the I / O request, and a response waiting processing thread; The processor, The I / O processing thread: Sending the I / O request to the cloud storage in response to a request from a host; performing a standby process for waiting for reception of the I / O response to the I / O request until a first timeout period has elapsed since the I / O request was transmitted to the cloud storage; When the I / O response is received from the cloud storage before the first timeout period elapses, the I / O response is transferred to the host; If the I / O response is not received from the cloud storage before the first timeout period has elapsed, the I / O resource is moved to the response waiting process thread and held therein; The response waiting process thread: Using the I / O resources moved from the I / O processing thread and held in the response waiting processing thread, a response confirmation requesting the I / O response is sent to the cloud storage, and the waiting processing is performed instead of the I / O processing thread. A storage system comprising:
2. 2. The storage system according to claim 1, The processor, When the I / O processing thread does not receive the I / O response from the cloud storage before the first timeout period has elapsed, The state of the cloud storage is shifted from a normal state in which the new I / O request can be accepted to a provisionally blocked state in which the new I / O request cannot be accepted and only the response confirmation can be accepted. A storage system comprising:
3. 3. The storage system according to claim 2, The processor, Counting the number of times the state of the cloud storage is put into the temporary blocked state; When the number of times reaches an upper limit number of times, the cloud storage is separated from the storage system. A storage system comprising:
4. 3. The storage system according to claim 2, The processor, The response waiting process thread: performing the waiting process until a second timeout period has elapsed since the response confirmation was transmitted to the cloud storage; When the I / O response is received from the cloud storage before the second timeout period elapses, forwarding the received I / O response to the host; The I / O resource related to the I / O response held in the response waiting process thread is released. A storage system comprising:
5. 5. The storage system according to claim 4, The processor, When the I / O response is received from the cloud storage by the response waiting process thread before the second timeout period elapses, transitioning the state of the cloud storage from the temporary blocked state to the normal state; Perform a differential rebuild process to restore the data in the cloud storage. A storage system comprising:
6. 5. The storage system according to claim 4, The processor, When the I / O response is not received from the cloud storage by the response waiting process thread before the second timeout time has elapsed, transitioning the state of the cloud storage from the provisionally blocked state to a blocked state in which the I / O request and the response confirmation cannot be accepted; Release the I / O resource related to the I / O response held in the response waiting process thread. A storage system comprising:
7. 2. The storage system according to claim 1, The response waiting process thread has a waiting request queue and a waiting resource queue, The processor, The response waiting process thread: retaining the I / O resources removed from the I / O processing thread in the waiting request queue; Moving the I / O resource from the standby request queue to the standby resource queue and executing the standby process related to the I / O response that uses the I / O resource. A storage system comprising:
8. 1. An I / O request processing method in a storage system, the method being executed by a storage system having a cloud storage that is a cloud-based storage and a storage node that processes an I / O request to the cloud storage, the method comprising: The processor of the storage node Executing an I / O processing thread that holds I / O resources including information and a buffer used in processing related to the I / O request and an I / O response transmitted from the cloud storage in response to the I / O request, and a response waiting processing thread; The processor, The I / O processing thread: Sending the I / O request to the cloud storage in response to a request from a host; performing a standby process for waiting for reception of the I / O response to the I / O request until a first timeout period has elapsed since the I / O request was transmitted to the cloud storage; When the I / O response is received from the cloud storage before the first timeout period elapses, the I / O response is transferred to the host; If the I / O response is not received from the cloud storage before the first timeout period has elapsed, the I / O resource is moved to the response waiting process thread and held therein; The response waiting process thread: Using the I / O resources moved from the I / O processing thread and held in the response waiting processing thread, a response confirmation requesting the I / O response is sent to the cloud storage, and the waiting processing is performed instead of the I / O processing thread. 2 is a block diagram showing a method for processing an I / O request in a storage system according to the present invention;
Citation Information
Patent Citations
Disk management method and raid storage system
JP2005276135A
Computer system, input / output controller and method for operating computer system
JP2006172326A
Information processing apparatus, input / output control program, and input / output control method
JP2016057876A
Data relay device, relay control method, and storage system
JP2023015488A
Preventing I / O request timeouts for cloud-based storage systems
US10481805B1
