CN107707620A - Handle the method and device of I/O request - Google Patents

Handle the method and device of I/O request Download PDF

Info

Publication number
CN107707620A
CN107707620A CN201710761359.4A CN201710761359A CN107707620A CN 107707620 A CN107707620 A CN 107707620A CN 201710761359 A CN201710761359 A CN 201710761359A CN 107707620 A CN107707620 A CN 107707620A
Authority
CN
China
Prior art keywords
node
request
components
target
service sub
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710761359.4A
Other languages
Chinese (zh)
Other versions
CN107707620B (en
Inventor
蒋立新
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Cloud Computing Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201710761359.4A priority Critical patent/CN107707620B/en
Publication of CN107707620A publication Critical patent/CN107707620A/en
Application granted granted Critical
Publication of CN107707620B publication Critical patent/CN107707620B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/1008Server selection for load balancing based on parameters of servers, e.g. available memory or workload
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)

Abstract

This application discloses a kind of method and device for handling I/O request, belong to computer memory technical field.Methods described includes:When the service sub-components that the communications subcomponent in first node is determined in first node currently upgrade, section point is selected in the buddy group where communications subcomponent from first node in the first node, and target I/O request is sent into the communications subcomponent into section point, target I/O request is sent to server by the service sub-components in the communications subcomponent and section point in section point.Namely, in this application, because the node in buddy group can be communicated between each other, therefore, when the communications subcomponent in first node currently upgrades, can as other nodes in the buddy group where first node on behalf of processing target I/O request, with avoid due to service sub-components upgrades when the function that calls can not replace and cause the target I/O request handled interruption with hot patch.

Description

Handle the method and device of I/O request
Technical field
The application is related to computer memory technical field, more particularly to a kind of processing input and output (Input/Output, IO) the method and device of request.
Background technology
At present, handling the system of I/O request mainly includes operation system and storage system, wherein, operation system includes business Cluster, storage system include client cluster (client) and server (server), and business cluster and client cluster are It is made up of multiple nodes (node), and each node includes based on the virtual of small computer system interface in client cluster Control (Virtual Small Computer System Interface Control, VSC) component and virtual block storage system (Virtual Block System, VBS) component.
If the agreement of current transmission I/O request is small computer system interface (Small Computer System Interface, SCSI) agreement, when the node in business cluster initiates I/O request, the node in the business cluster please by the IO Ask to send to the VSC components of node corresponding to client cluster, VSC components and send the I/O request when receiving the I/O request To VBS components, the I/O request is sent to server by VBS components, so that server carries out the reading of data according to the I/O request Or write.If the agreement of current transmission I/O request is network small computer system interface (Internet Small Computer System Interface, iSCSI) agreement, when the node in business cluster initiates I/O request, the services sets Node in group sends the I/O request to the VBS components of node corresponding to client cluster, is sent out the I/O request by VBS components Server is delivered to, so that server carries out reading or writing for data according to the I/O request.
In the system of above-mentioned processing I/O request, when the node in client cluster needs to be upgraded, in order to avoid Because the I/O request that the upgrading of the node causes the node handling is interrupted, in the process of node upgrading, if receiving The I/O request that node in business cluster is sent, the function called in current Upgrade process is replaced using hot patch, due to Hot patch allows the node to handle I/O request during upgrading, and therefore, the node can continue with hot patch progress Upgrading, while handle the I/O request.
But in the node Upgrade process in client cluster, not all function can with hot patch come Replace, such as, it is responsible for handling the function called during the component upgrade of I/O request in VBS components, if therefore in current Upgrade process The function called can not be replaced using hot patch, will still result in the I/O request now handled and interrupt.
The content of the invention
If can not be replaced to solve the function called in current Upgrade process in correlation technique using hot patch, The problem of I/O request now handled is interrupted is will still result in, this application provides a kind of method and dress for handling I/O request Put.The technical scheme is as follows:
First aspect, there is provided a kind of method for handling I/O request, client cluster include multiple buddy groups, each partner Include at least two nodes with organizing, the node in the buddy group allows to be communicated between each other, in the client cluster The VBS components of any node include communications subcomponent and service sub-components, the communications subcomponent is used to manage in buddy group Communication between node, the service sub-components are the responsible sub-component for handling I/O request, methods described bag in the VBS components Include:
The target I/O request from business cluster interior joint is being received, and the communications subcomponent in first node determines institute When stating the service sub-components in first node and currently upgrading, the second section is selected from the buddy group where the first node Point, the first node are any node in the client cluster;
Communications subcomponent in the first node sends target I/O request to the communication subgroup in the section point Part, the target I/O request is sent to the service subgroup in the section point by the communications subcomponent in the section point Part, so that the service sub-components in the section point send the target I/O request to server.
In this application, when the service sub-components in first node currently upgrade, the communicator in first node Other nodes of buddy group are on behalf of processing where target I/O request can be forwarded to component the first node, so as to avoid The interruption of the target I/O request.
Alternatively, the target I/O request is the I/O request transmitted in scsi protocol, and the first node also includes base In the VSC components of small computer system interface;
It is described to receive the target I/O request from business cluster interior joint, and the communications subcomponent in first node is true Service sub-components in the fixed first node are currently upgrading, including:
VSC components in the first node receive the target I/O request that the node in the business cluster is sent;
When the VSC components in the first node determine that itself does not upgrade, judge whether to have been received by described first The upgrade notification that service sub-components in node are sent, the upgrade notification are used to indicate the service subgroup in the first node Part upgrades;
When the VSC components in the first node have been received by the upgrade notification, determine in the first node Service sub-components are currently upgrading;
VSC components in the first node send the target I/O request to the communication subgroup in the first node Part;
When communications subcomponent in the first node receives the target I/O request, determine in the first node Service sub-components are currently upgrading.
It is by the VSC components in first node now when target I/O request is the I/O request transmitted in scsi protocol The target I/O request that node in reception business cluster is sent, asked to ensure that first node can smoothly handle target IO Ask, the VSC components in first node need to first determine that the service sub-components in first node are worked as on the premise of itself does not upgrade It is preceding whether to upgrade.
Alternatively, the upgrade notification that the service sub-components that judge whether to have been received by the first node are sent it Afterwards, in addition to:
When the VSC components in the first node do not receive the upgrade notification, determine in the first node Service sub-components are currently without upgrading;
VSC components in the first node send the target I/O request to the service subgroup in the first node Part;
When the service sub-components in the first node receive the target I/O request, the target I/O request is sent out Deliver to server.
Further, when the VSC components in first node determine service sub-components in first node currently without upgrading When, directly it can handle the target I/O request by the service sub-components of the first node.
Alternatively, the VSC components in the first node receive the target that the node in the business cluster is sent After I/O request, in addition to:
When the VSC components in the first node determine that itself currently upgrades, the target I/O request is cached;
When the VSC components in the first node determine that itself upgrading is completed, execution judges whether to have been received by described The operation for the upgrade notification that service sub-components in first node are sent.
Because the probability for upgrading VSC components is smaller, and the time upgraded needed for VSC components is shorter, therefore, works as first node In VSC components when itself currently upgrading, can temporarily interrupt the target I/O request, the VSC groups in the first node When part upgrading is completed, the target I/O request is handled again.
Alternatively, the target I/O request is to be transmitted in network small computer system interface iSCSI agreement I/O request;
It is described to receive the target I/O request from business cluster interior joint, and the communications subcomponent in first node is true Service sub-components in the fixed first node are currently upgrading, including:
Communications subcomponent in the first node receives the target IO that the node in the business cluster is sent please Ask;
Communications subcomponent in the first node judges whether to have been received by the service sub-components in the first node The upgrade notification of transmission, the upgrade notification are used to indicate that the service sub-components in the first node upgrade;
When the communications subcomponent in the first node has been received by the upgrade notification, determine in the first node Service sub-components currently upgrading.
It is by the communicator in first node now when target I/O request is the I/O request transmitted in the iscsi protocol Component receives the target I/O request that the node in business cluster is sent, in order to ensure that first node can smoothly handle target IO Ask, the communications subcomponent in first node need to first determine service in first node on the premise of itself does not upgrade Whether component is currently upgrading.
Alternatively, the upgrade notification that the service sub-components that judge whether to have been received by the first node are sent it Afterwards, in addition to:
When the communications subcomponent in the first node does not receive the upgrade notification, determine in the first node Service sub-components currently without upgrading;
Communications subcomponent in the first node sends the target I/O request to the service in the first node Sub-component;
When the service sub-components in the first node receive the target I/O request, the target I/O request is sent out Deliver to server.
Further, when the communications subcomponent in first node determines service sub-components in first node currently without liter During level, directly the target I/O request can be handled by the service sub-components of the first node.
Alternatively, section point is selected in the buddy group from where the first node, including:
For other nodes in the buddy group where the first node in addition to the first node, the first segment Communications subcomponent in point is defined as the section point by the minimum node of I/O request pressure is handled in other described nodes;Or Person,
For other nodes in buddy group where the first node in addition to the first node, the first node In communications subcomponent according to the corresponding relation between the priority and node of storage, will highest priority in other described nodes Node be defined as the section point.
In order to mitigate the pressure of each node processing I/O request in client cluster, the communications subcomponent in first node can To select section point from the buddy group where the first node according to the method described above.
Second aspect, there is provided a kind of device for handling I/O request, the device of the processing I/O request are above-mentioned with realizing The function of the method behavior of I/O request is handled in first aspect.The device of the processing I/O request includes at least one module, should At least one module is used for the method for realizing the processing I/O request that above-mentioned first aspect is provided.
The third aspect, there is provided a kind of device for handling I/O request, the structure of the device of the processing I/O request include Processor and memory, the memory are used to store what the above-mentioned first aspect of device execution for supporting processing I/O request was provided The program of the method for I/O request is handled, and the method institute of the processing I/O request provided for realizing above-mentioned first aspect is provided The data being related to.The processor is configurable for performing the program stored in the memory.The behaviour of the storage device Communication bus can also be included by making device, and the communication bus is used to establish connection between the processor and memory.
Fourth aspect, there is provided a kind of computer-readable recording medium, be stored with the computer-readable recording medium Instruction, when run on a computer so that the method that computer performs the processing I/O request described in above-mentioned first aspect.
5th aspect, there is provided a kind of computer program product for including instruction, when run on a computer so that The method that computer performs the processing I/O request described in above-mentioned first aspect.
In technique effect and first aspect that above-mentioned second aspect, the third aspect, fourth aspect and the 5th aspect are obtained The technique effect that corresponding technological means obtains is approximate, repeats no more herein.
The beneficial effect brought of technical scheme that the application provides is:
In this application, when the communications subcomponent in first node determines that service sub-components in first node are current During upgrading, section point is selected in the buddy group where communications subcomponent from first node in the first node, and by target I/O request sends the communications subcomponent into section point, by the communications subcomponent in section point by target I/O request send to Service sub-components in section point, so that the service sub-components in section point send target I/O request to server. I.e., in this application, because the node in buddy group can be communicated between each other, therefore, when the communication in first node When sub-component currently upgrades, it can be asked as other nodes in the buddy group where first node on behalf of processing target IO Ask, with avoid due to first service sub-component upgrades when the function that calls can not be replaced with hot patch and cause the mesh handled I/O request is marked to interrupt.
Brief description of the drawings
Figure 1A is a kind of system schematic for handling I/O request provided in an embodiment of the present invention;
Figure 1B is a kind of path schematic diagram of I/O request provided in an embodiment of the present invention;
Fig. 2 is a kind of structural representation of computer equipment provided in an embodiment of the present invention;
Fig. 3 is a kind of method flow diagram for handling I/O request provided in an embodiment of the present invention;
Fig. 4 is the method flow diagram of another processing I/O request provided in an embodiment of the present invention;
Fig. 5 is the method flow diagram of another processing I/O request provided in an embodiment of the present invention;
Fig. 6 A are a kind of device block diagrams for handling I/O request provided in an embodiment of the present invention;
Fig. 6 B are the device block diagrams of another processing I/O request provided in an embodiment of the present invention;
Fig. 6 C are the device block diagrams of another processing I/O request provided in an embodiment of the present invention.
Embodiment
To make the purpose, technical scheme and advantage of the application clearer, below in conjunction with accompanying drawing to the application embodiment party Formula is described in further detail.
Before explanation is explained in detail to the method for processing I/O request provided in an embodiment of the present invention, first to the present invention The system for the processing I/O request that embodiment is related to is introduced.
As shown in Figure 1A, the system 100 of the processing I/O request includes operation system 101 and storage system 102, wherein business System 101 includes business cluster 1011, and storage system 102 includes client cluster 1021 and server 1022.Wherein, services sets Group 1011 and client cluster 1021 are made up of multiple nodes.
Wherein, the node in business cluster is communicated with client cluster interior joint by wired or wireless way, visitor Communicated between family end cluster interior joint and server and by wired or wireless way.
In addition, as shown in Figure 1A, client cluster includes multiple buddy groups, each buddy group includes at least two sections Point, the node in buddy group allow to be communicated between each other, and the VBS components of any node in client cluster include it is logical Believe sub-component and service sub-components.Wherein, communications subcomponent is used to manage the communication between buddy group interior nodes, service sub-components To be responsible for the sub-component of processing I/O request in VBS components.That is, in the system of the processing I/O request shown in Figure 1A, buddy group Interior node can be communicated between each other, and in order to subsequently be easy to illustrate, any node in client cluster is referred to as into One node.In practical application, communications subcomponent can be labeled as to VBS-COMM, service sub-components are labeled as VBS-Service.
When some node in business cluster 1011 initiates I/O request, the I/O request is sent out according to predetermined path Node corresponding to client cluster 1021 is delivered to, node sends the I/O request to service as corresponding to client cluster 1021 Device.Wherein, the process that the node as corresponding to client cluster 1021 sends the I/O request to server will be real in following methods Apply in example and illustrate, do not elaborate first herein.In order to subsequently be easy to illustrate, by I/O request from business cluster transmission to service The process of device is referred to as the path of the I/O request.
It should be noted that the node in client cluster can be with the node deployment in business cluster in same object Physically, can be deployed on different physical entities.Node deployment in the node in client cluster and business cluster When on same physical entity, the agreement for transmitting I/O request is SCSI protocol.When the node and services sets in client cluster For node deployment in group when on different physical entities, the agreement for transmitting I/O request is iSCSI protocol.
It is further to note that for each node includes in client cluster VSC components and VBS components, the VSC Component is the component of kernel state, and the VBS components are the component of User space.Wherein, when kernel state and User space refer to program operation Right, namely operating in the program of kernel state must rely on operating system to help to complete, and operate in the journey of User space Sequence can not then access operating system nucleus data structure and program.
Therefore, when transmitting I/O request in different agreements, the path of the I/O request is also different.Specifically, such as Figure 1B It is shown, for the I/O request of SCSI protocol transmission, due in the node in client cluster in SCSI protocol and business cluster Node deployment is on same physical entity, therefore the I/O request that business cluster interior joint is sent must first go through kernel state VSC components, the VBS components of User space could be passed through.That is, now the path of the I/O request is:Node in business cluster → In client cluster in VSC components → client cluster of corresponding node corresponding node VBS components → server.
For the I/O request of iSCSI protocol transmission, due to the node in client cluster in iSCSI protocol and business cluster In node deployment on different physical entities, therefore, the I/O request needs not move through the VSC components of kernel state, Ke Yizhi Connected the VBS components of User space.That is, now, the path of the I/O request is:Node → client cluster in business cluster In corresponding node VBS components → server.
It is worth noting that, when server receives I/O request, server carried out according to the I/O request readings of data/ Write, generate IO return informations corresponding with the I/O request, and the path backtracking by the IO return informations according to the I/O request Node into the business cluster for initiating the I/O request.That is, IO return informations from server transport to business cluster in section The path of point is identical with path of the I/O request from the node-node transmission in business cluster to server, herein no longer specifically It is bright.
In addition, the node in node and client in business cluster can be deployed in object entity, the physics Entity can be any computer equipment, such as, computer, tablet personal computer and notebook etc..
Fig. 2 is a kind of structural representation of computer equipment provided in an embodiment of the present invention.Industry shown in Figure 1A and Figure 1B The node in node and client cluster in business cluster can be deployed in the computer equipment shown in Fig. 2.Referring to Fig. 2, The computer equipment includes at least one processor 201, communication bus 202, memory 203 and at least one communication interface 204。
Processor 201 can be a general central processor (Central Processing Unit, CPU), microprocessor Device, ASIC (application-specific integrated circuit, ASIC), or one or more The individual integrated circuit for being used to control application scheme program to perform.
Communication bus 202 may include a path, and information is transmitted between said modules.
Memory 203 can be read-only storage (read-only memory, ROM) or can store static information and instruction Other types of static storage device, random access memory (random access memory, RAM)) or can store Information and the other types of dynamic memory or EEPROM of instruction (Electrically Erasable Programmable Read-Only Memory, EEPROM), read-only optical disc (Compact Disc Read-Only Memory, CD-ROM) or other optical disc storages, laser disc storage (including compression laser disc, laser disc, light Dish, Digital Versatile Disc, Blu-ray Disc etc.), magnetic disk storage medium or other magnetic storage apparatus or can be used in carrying or Storage with instruction or data structure form desired program code and can by any other medium of computer access, but Not limited to this.Memory 203 can be individually present, and be connected by communication bus 202 with processor 201.Memory 203 It can be integrated with processor 201.
Communication interface 204, using a kind of device of any transceiver, for miscellaneous equipment or communication, such as Ethernet, wireless access network (RAN), WLAN (Wireless Local Area Networks, WLAN) etc..
In the specific implementation, as a kind of embodiment, processor 201 can include one or more CPU.
In the specific implementation, as a kind of embodiment, computer equipment can include multiple processors.In these processors Each can be monokaryon (single-CPU) processor or multinuclear (multi-CPU) processor.This In processor can refer to one or more equipment, circuit, and/or the place for processing data (such as computer program instructions) Manage core.
In the specific implementation, as a kind of embodiment, computer equipment can also include output equipment and input equipment.It is defeated Go out equipment and processor 201 communicates, display information can be carried out in many ways.For example, output equipment can be liquid crystal display (liquid crystal display, LCD), Light-Emitting Diode (light emitting diode, LED) display device are cloudy Extreme ray pipe (cathode ray tube, CRT) display device, or projecting apparatus (projector) etc..Input equipment and processor 201 communications, can receive the input of user in many ways.For example, input equipment can be mouse, keyboard, touch panel device Or sensing equipment etc..
Above-mentioned computer equipment can be an a general purpose computing device either dedicated computing machine equipment.Having During body is realized, computer equipment can be desktop computer, portable computer, the webserver, palm PC (Personal Digital Assistant, PDA), cell phone, tablet personal computer, wireless terminal device, communication equipment or embedded device. The unlimited type for determining computer equipment of the embodiment of the present invention.
Wherein, memory 203 is used to store the program code for performing application scheme, and is held by processor 201 to control OK.Processor 201 is used to perform the program code stored in memory 203.It can include in program code one or more soft Part module (such as:Characteristic extraction engine, eigentransformation engine, Similarity Measure engine, similarity iteration alignment engine and user Showing interface module etc.).The node in client cluster shown in Figure 1A and Figure 1B can pass through processor 201 and storage One or more of program code in device 203 software module handles I/O request.
Next the method for processing I/O request provided in an embodiment of the present invention is explained, as shown in figure 3, this hair Bright embodiment provides a kind of method for handling I/O request, the system that this method is applied to the processing I/O request shown in Figure 1A, tool Body, this method includes following two steps:
Step 301:Receiving the target I/O request from business cluster interior joint, and the communication subgroup in first node When part determines that the service sub-components in the first node currently upgrade, is selected from the buddy group where the first node Two nodes, the first node are any node in the client cluster.
In embodiments of the present invention, because the node in buddy group can communicate between each other, therefore, when in first node The communications subcomponent service sub-components that determine in first node when currently upgrading, can be from the partner where first node With section point is selected in group, to be realized by following step 302 by the section point on behalf of processing target I/O request.
Wherein, the implementation of the communications subcomponent selection section point in first node will be detailed in the following embodiments Introduce, do not illustrate first herein.
Step 302:Communications subcomponent in the first node sends target I/O request the communication into the section point Sub-component, the target I/O request is sent to the service subgroup into the section point by the communications subcomponent in the section point Part, so that the service sub-components in the section point send the target I/O request to server.
By step 302, the communications subcomponent in first node can send target I/O request to section point, by Two nodes are on behalf of the target I/O request is handled, to avoid the target I/O request from interrupting.
In this application, when the communications subcomponent in first node determines that service sub-components in first node are current During upgrading, section point is selected in the buddy group where communications subcomponent from first node in the first node, and by target I/O request sends the communications subcomponent into section point, by the communications subcomponent in section point by target I/O request send to Service sub-components in section point, so that the service sub-components in section point send target I/O request to server. I.e., in this application, because the node in buddy group can be communicated between each other, therefore, when the communication in first node When sub-component currently upgrades, it can be asked as other nodes in the buddy group where first node on behalf of processing target IO Ask, with avoid due to first service sub-component upgrades when the function that calls can not be replaced with hot patch and cause the mesh handled I/O request is marked to interrupt.
It should be noted that because the agreement for transmitting I/O request can be SCSI protocol, or iSCSI protocol, and And the path that I/O request is transmitted in both agreements is different, therefore, the method for processing I/O request provided in an embodiment of the present invention Include the content of two aspects, first, the process of I/O request is handled in SCSI protocol, second, handling I/O request in the iscsi protocol Process.Both of these case will be explained respectively for following embodiments.
As shown in figure 4, the embodiments of the invention provide a kind of method for handling I/O request, this method is applied to shown in Figure 1A Processing I/O request system, and this method be applied to transmission I/O request agreement be SCSI protocol scene, specifically, the party Method includes following several steps:
Step 401:VSC components in first node receive the target I/O request that the node in business cluster is sent.
When the agreement for transmitting I/O request is SCSI protocol, in the node and client cluster in business cluster with the business Node deployment corresponding to node in cluster works as the node in business cluster and initiates target IO on same physical entity During request, the node in business cluster sends the target I/O request VSC components of the corresponding node into client cluster, The target I/O request of business cluster interior joint transmission is received by the VSC components of first node.
When the VSC components of first node receive the target I/O request, if itself upgrades, will be unable to continue with The target I/O request, therefore, when the VSC components of first node receive the target I/O request, need to first judge itself whether Upgrading.
Specifically, when the VSC components in first node determine that itself does not upgrade, can by following step 402 to 406 continue with the target I/O request.When the VSC components in first node determine that itself currently upgrades, Ke Yitong Following step 407 is crossed to continue with the target I/O request.
Step 402:When the VSC components in the first node determine that itself does not upgrade, judge whether to have been received by this The upgrade notification that service sub-components in first node are sent.
When the VSC components in the first node determine that itself does not upgrade, because service sub-components are to be born in VBS components The sub-component of duty processing I/O request, therefore, if the service sub-components in the first node are currently upgrading, in the first node Service sub-components can not also handle the target I/O request.Therefore, in embodiments of the present invention, as the VSC in the first node When component determines that itself does not upgrade, the VSC components of the first node also need to judge whether to have been received by the first node The upgrade notification that service sub-components are sent, in order to which whether the service sub-components determined in the first node upgrade.
Wherein, the upgrade notification is used to indicate that the service sub-components in the first node upgrade, that is, working as first segment When service sub-components in point upgrade, the service sub-components in the first node send out the VSC components into first node Send upgrade notification.In addition, when the service sub-components upgrading in first node is completed, service sub-components in the first node to VSC components in first node send upgrading end notification, to prompt the clothes in the VSC components first node in first node Business sub-component upgrading is completed.
Alternatively, because communications subcomponent is used to manage the communication between buddy group interior nodes, therefore, when in first node Service sub-components when upgrading, also the communications subcomponent into first node is sent the service sub-components in the first node Upgrade notification.Correspondingly, when the service sub-components upgrading in first node is completed, service sub-components in the first node to Communications subcomponent in first node sends upgrading end notification, to prompt the communications subcomponent first node in first node In service sub-components upgrading complete.
The upgrading that the service sub-components in the first node are sent may be had been received by due to the VSC components in first node Notice, it is also possible to do not receive the upgrade notification, the service in the first node is had been received by when the VSC components in first node During the upgrade notification that sub-component is sent, it can continue to handle by 403 to 405 pairs of target I/O requests of following step, when When VSC components in first node do not receive the upgrade notification, the target I/O request can be continued by following step 406 Handled.
Step 403:When the liter that the service sub-components that the VSC components in first node are had been received by the first node are sent During level notice, determine that the service sub-components in the first node are currently upgrading, the VSC components in the first node are by the mesh Mark I/O request sends the communications subcomponent into the first node, and the communications subcomponent in the first node receives target IO During request, determine that the service sub-components in the first node are currently upgrading.
When the service sub-components that the VSC components in first node are determined in the first node currently upgrade, show The first node will be unable to handle the target I/O request, can be by the first segment now in order to avoid the target I/O request is interrupted Other node processings target I/O request in buddy group where point.Due to the partner where the first node and the first node With other node deployments in group on different physical entities, therefore, first node if necessary to where the first node Buddy group in other nodes communicated, need to be communicated by the component of the User space in node, namely need to be passed through One node and communicated with the communications subcomponent in other nodes in the buddy group where the first node.
Therefore, when the service sub-components that the VSC components in first node are determined in the first node currently upgrade, The target I/O request is sent the communications subcomponent into the first node by the VSC components in the first node, by the first segment Other nodes where the target I/O request is forwarded to the first node by the communications subcomponent in point in buddy group are on behalf of processing. Specifically, the communications subcomponent in first node can realize the process by following step 404 to step 405.
Step 404:Communications subcomponent in first node determines that the service sub-components in the first node are current During upgrading, section point is selected from the buddy group where the first node.
Specifically, the communications subcomponent in first node can realize step 404 by following two kinds of possible modes.
The first possible mode, for other sections in the buddy group where the first node in addition to the first node Point, the communications subcomponent in the first node will be handled in other nodes the minimum node of I/O request pressure be defined as this second Node.
That is, the processing I/O request pressure of other nodes is stored with communications subcomponent in first node, in order to carry The target I/O request can be forwarded to other sections by the speed of the high disposal target I/O request, the communications subcomponent in first node The minimum node of I/O request pressure is handled in point on behalf of processing, namely is forwarded to section point on behalf of processing.
Wherein, the processing I/O request pressure of node is used for the size for characterizing the node processing I/O request ability, processing IO Ask pressure related to the size of the disk space of the physical entity of the node deployment.That is, the physical entity of the node deployment Disk space it is bigger, the processing I/O request pressure of the node is smaller, and the disk space of the physical entity of the node deployment is smaller, The processing I/O request pressure of the node is bigger.
Second of possible mode, for other sections in buddy group where the first node in addition to the first node Point, the communications subcomponent in the first node is according to the corresponding relation between the priority and node of storage, by other nodes The node of middle highest priority is defined as the section point.
That is, each node in buddy group where the first node is stored in communications subcomponent in first node Priority, for example, there are four nodes in buddy group where first node, it is respectively labeled as A, B, C and D, it is excellent corresponding to node A First level is 1, priority corresponding to node B is 2, and priority corresponding to node C is 3, and priority corresponding to node D is D.Assuming that the One node is node A, and due to node B, node C and node D interior joints D highest priority, therefore first node can incite somebody to action Node D is defined as section point.
It is worth noting that, when the communications subcomponent in first node determines the second section according to the possible mode of above two After point, if section point is currently just handling other I/O requests, the section point can not be on behalf of the processing target I/O request, this When, first node need to also be in other nodes in the buddy group where the first node in addition to first node and section point again Determine section point.Wherein, first node redefines the implementation of section point and may be referred to the possible side of above two Formula, no longer elaborate herein.
For example, the node D of highest priority is defined as section point by first node, if node D is presently processing it His I/O request, first node then reselect the node of a highest priority from node C and node B, namely again will section Point C is defined as section point.
In order that the communications subcomponent in first node is grasped other nodes in the buddy group of first node place and worked as in time It is preceding whether to handle I/O request, for any buddy group in client cluster, when some node in the buddy group I/O request is handled, other nodes into the buddy group are sent prompt message, the prompting by the communications subcomponent of some node Information is used to indicate that some node is presently processing I/O request, when other nodes in the buddy group receive prompting letter During breath, determine that some node is presently processing I/O request.That is, for any node in the buddy group, the node Communications subcomponent grasps the dynamic of other node processing I/O requests buddy group Nei in real time.
In addition, except the possible mode of both the above, first node can also determine the second section by other possible modes Point, such as, first node can select a node as section point, this hair from the buddy group where first node at random Bright embodiment is not specifically limited herein.
Step 405:Communications subcomponent in the first node sends target I/O request the communication into the section point Sub-component, the target I/O request is sent to the service subgroup into the section point by the communications subcomponent in the section point Part, so that the service sub-components in the section point send the target I/O request to server.
It is deployed on different physical entities, therefore, first node and section point due to first node and section point It need to be communicated by respective communications subcomponent.That is, the communications subcomponent of section point, which will receive, is connected to first node Communications subcomponent send target I/O request.Because the actual treatment target I/O request is the service subgroup in section point The target I/O request need to be sent the service sub-components into section point by part, therefore, the communications subcomponent in section point, when When service sub-components in section point receive the target I/O request, the information carried in the target I/O request is known Not, in order to the target I/O request is sent to corresponding server.
Step 406:When the VSC components in the first node do not receive the upgrade notification, determine in the first node Service sub-components currently without upgrading, the VSC components in the first node send the target I/O request to the first node In service sub-components, when the service sub-components in the first node receive the target I/O request, by the target I/O request Send to server.
When the VSC components in the first node do not receive the upgrade notification, show the service subgroup in first node Part is currently without upgrading, now without the target I/O request is forwarded into section point on behalf of processing, that is, now by first segment Service sub-components in point directly handle the target I/O request.
Significantly, since the service sub-components in VSC components and first node in first segment belong to same Component in node, therefore without being communicated by the communications subcomponent of User space, that is, the VSC components in first node are straight Connect and the target I/O request is sent into the service sub-components into the first node, by the service sub-components in the first node to this Target I/O request is handled.Wherein, the service sub-components in first node are handled the target I/O request mode and The mode that service sub-components in step 405 in section point are handled the target I/O request is identical, no longer detailed herein Illustrate.
Above step 402 to step 406 is to target IO when the VSC components in the first node determine that itself does not upgrade The processing procedure of request, when the VSC components in the first node determine that itself currently upgrades, following step can be passed through 407 pairs of target I/O requests are handled.
Step 407:When the VSC components in the first node determine that itself currently upgrades, caching target IO please Ask, when the VSC components in the first node determine that itself upgrading is completed, execution judges whether to have been received by the first node Service sub-components send upgrade notification operation.
It should be noted that for the VSC components of the node in client cluster, the major functions of the VSC components be to Upper layer application provides virtual logical unit number (Logical Unit Number, LUN) management, therefore in client cluster Different nodes, the VSC components are identical component, namely VSC components are fixation kit.And client cluster interior joint is rising It is relatively low to the probability of fixation kit namely VSC component upgrades during level, such as, may during 1000 times upgrade the node The only 1 time VSC component for needing to upgrade the node.Also, relative to the service sub-components of upgrade node, the VSC of upgrade node Time needed for component is shorter.
Therefore, can be temporary by step 407 when the VSC components in the first node determine that itself currently upgrades When interrupt the target I/O request, the VSC components in the first node determine itself upgrading complete when, handle target IO again Request, that is, when the VSC components in the first node determine that itself upgrading is completed, according to above-mentioned steps 402 to step 406 Handle the target I/O request.
In embodiments of the present invention, when the service sub-components that the communications subcomponent in first node is determined in first node are worked as It is preceding to select section point in the buddy group where communications subcomponent from first node in the first node when upgrading, and Target I/O request is sent into the communications subcomponent into section point, by the communications subcomponent in section point by target I/O request Send to the service sub-components in section point, so that the service sub-components in section point send target I/O request to service Device.That is, because the node in buddy group can be communicated between each other, therefore, when the communications subcomponent in first node , can be as other nodes in the buddy group where first node on behalf of processing target I/O request, to keep away when currently upgrading Exempt to ask because the function called when first service sub-component upgrades can not replace and cause the target IO handled with hot patch Ask interruption.
As shown in figure 5, the embodiments of the invention provide the method for another processing I/O request, this method is applied to Figure 1A institutes The system for the processing I/O request shown, and the agreement that this method is applied to transmit I/O request is the scene of iSCSI protocol, specifically, This method includes following several steps:
Step 501:Communications subcomponent in first node receives the target I/O request that the node in business cluster is sent.
When the agreement for transmitting I/O request is iSCSI protocol, in the node and client cluster in business cluster with the industry Node deployment is on different physical entities corresponding to the node being engaged in cluster, therefore node and client collection in business cluster Node in group need to be communicated by the communications subcomponent of respective User space.That is, when the node in business cluster is initiated During target I/O request, the node in business cluster sends the target I/O request communication of the corresponding node into client cluster Sub-component, namely the target I/O request sent by the communications subcomponent reception business cluster interior joint of first node.
When the communications subcomponent of first node receives the target I/O request, can by following step 502 to 506 come Continue with the target I/O request.
Step 502:Communications subcomponent in the first node judges whether to have been received by service in the first node The upgrade notification that component is sent.
Due to the sub-component that service sub-components are responsible processing I/O request in VBS components, therefore, if in the first node Service sub-components are currently upgrading, and the service sub-components in the first node can not also handle the target I/O request.Therefore, exist In the embodiment of the present invention, the communications subcomponent of the first node need to judge whether to have been received by the service subgroup in the first node The upgrade notification that part is sent, in order to which whether the service sub-components determined in the first node upgrade.
Wherein, the upgrade notification is used to indicate that the service sub-components in the first node upgrade, that is, working as first segment When service sub-components in point upgrade, service sub-components in the first node are by the communications subcomponent into first node Send upgrade notification.In addition, when the service sub-components upgrading in first node is completed, the service sub-components in the first node Communications subcomponent into first node sends upgrading end notification, to prompt the communications subcomponent first segment in first node Service sub-components upgrading in point is completed.
It may have been received by what the service sub-components in the first node were sent due to the communications subcomponent in first node Upgrade notification, it is also possible to the upgrade notification is not received, when the communications subcomponent in first node has been received by the first node In service sub-components send upgrade notification when, can be continued by 503 to 505 pairs of target I/O requests of following step Processing, can be by following step 506 to the target when the communications subcomponent in first node does not receive the upgrade notification I/O request continues to handle.
Step 503:When the service sub-components that the communications subcomponent in first node is had been received by the first node are sent Upgrade notification when, determine that the service sub-components in the first node are currently upgrading.
When the service sub-components that the communications subcomponent in first node is determined in the first node currently upgrade, table The bright first node will be unable to handle the target I/O request, now in order to avoid the target I/O request interrupt, can by this first Other node processings target I/O request in buddy group where node.Specifically, the communications subcomponent in first node can To realize the process by following step 504 to step 505.
Step 504:Communications subcomponent in first node determines that the service sub-components in the first node are current During upgrading, section point is selected from the buddy group where the first node.
Wherein, the implementation of step 504 is identical with the implementation of the step 404 in embodiment illustrated in fig. 4, herein not Elaborate again.
Step 505:Communications subcomponent in the first node sends target I/O request the communication into the section point Sub-component, the target I/O request is sent to the service subgroup into the section point by the communications subcomponent in the section point Part, so that the service sub-components in the section point send the target I/O request to server.
Wherein, the implementation of step 503 is identical with the implementation of the step 405 in embodiment illustrated in fig. 4, herein not Elaborate again.
Step 506:When the communications subcomponent in the first node does not receive the upgrade notification, the first node is determined In service sub-components currently without upgrading, communications subcomponent in the first node by the target I/O request send to this first Service sub-components in node, when the service sub-components in the first node receive the target I/O request, by target IO Request is sent to server.
When the communications subcomponent in the first node does not receive the upgrade notification, show service in first node Component is currently without upgrading, now without the target I/O request is forwarded into section point on behalf of processing, that is, now by first Service sub-components in node directly handle the target I/O request.
Wherein, in the service sub-components in first node are handled the target I/O request mode and step 505 The mode that service sub-components in two nodes are handled the target I/O request is identical, no longer elaborates herein.
Above step 502 to step 506 is to mesh when the communications subcomponent in the first node determines that itself does not upgrade The processing procedure of I/O request is marked, when the communications subcomponent in the first node determines that itself currently upgrades, can be passed through Following step 507 is handled the target I/O request.
It is worth noting that, when the communications subcomponent in the first node currently upgrades itself, first node Communications subcomponent will no longer receive I/O request, when the communications subcomponent in the first node itself, which upgrades, to be completed, the first segment The communications subcomponent of point just continues to I/O request, and performs operation of the above-mentioned steps 501 to step 506.
In embodiments of the present invention, when the service sub-components that the communications subcomponent in first node is determined in first node are worked as It is preceding to select section point in the buddy group where communications subcomponent from first node in the first node when upgrading, and Target I/O request is sent into the communications subcomponent into section point, by the communications subcomponent in section point by target I/O request Send to the service sub-components in section point, so that the service sub-components in section point send target I/O request to service Device.That is, because the node in buddy group can be communicated between each other, therefore, when the communications subcomponent in first node , can be as other nodes in the buddy group where first node on behalf of processing target I/O request, to keep away when currently upgrading Exempt to ask because the function called when first service sub-component upgrades can not replace and cause the target IO handled with hot patch Ask interruption.
In embodiments of the present invention, the method except providing the processing I/O request described in above-described embodiment, additionally provides place The device of I/O request is managed, ensuing embodiment is used to carry out in detail the device of processing I/O request provided in an embodiment of the present invention Explanation.
Referring to Fig. 6 A, the embodiments of the invention provide a kind of device 600 for handling I/O request, the device 600 is applied to figure The system of processing I/O request shown in 1A, as shown in Figure 6A, the device 600 include the communications subcomponent 601 in first node:
Communications subcomponent 601 in first node, walked for performing in step 404 or Fig. 5 embodiments in Fig. 4 embodiments Rapid 504.
Communications subcomponent 601 in the first node, it is additionally operable to perform the step 405 or Fig. 5 embodiments in Fig. 4 embodiments Middle step 505.
Alternatively, the VSC components 602 in first node are also included referring to Fig. 6 B, the device:
VSC components 602 in the first node, for performing the step 401 in Fig. 4 embodiments;
VSC components 602 in the first node, it is additionally operable to perform the step 402 in Fig. 4 embodiments;
VSC components 602 in the first node, it is additionally operable to perform the step 403 in Fig. 4 embodiments.
Alternatively, the service sub-components 603 in first node are also included referring to Fig. 6 C, the device:
The service sub-components 603 in VSC components 602 and the first node in the first node, it is additionally operable to perform Fig. 4 realities Apply the step 406 in example.
Alternatively, the VSC components in the first node, it is additionally operable to perform the step 407 in Fig. 4 embodiments.
Alternatively, the communications subcomponent 601 in the first node, it is additionally operable to perform the step 501 in Fig. 5 embodiments;
Communications subcomponent 601 in the first node, it is additionally operable to perform the step 502 in Fig. 5 embodiments.
Communications subcomponent 601 in the first node, it is additionally operable to perform the step 503 in Fig. 5 embodiments.
Alternatively, the communications subcomponent 601 in the first node and the service sub-components 603 in the first node, are also used In performing the step 506 in Fig. 5 embodiments.
Alternatively, the communications subcomponent 601 in the first node is specifically used for:
For other nodes in the buddy group where the first node in addition to the first node, by other nodes The minimum node of processing I/O request pressure is defined as the section point;Or
For other nodes in buddy group where the first node in addition to the first node, according to the priority of storage Corresponding relation between node, the node of highest priority in other nodes is defined as the section point.
In embodiments of the present invention, when the service sub-components that the communications subcomponent in first node is determined in first node are worked as It is preceding to select section point in the buddy group where communications subcomponent from first node in the first node when upgrading, and Target I/O request is sent into the communications subcomponent into section point, by the communications subcomponent in section point by target I/O request Send to the service sub-components in section point, so that the service sub-components in section point send target I/O request to service Device.That is, because the node in buddy group can be communicated between each other, therefore, when the communications subcomponent in first node , can be as other nodes in the buddy group where first node on behalf of processing target I/O request, to keep away when currently upgrading Exempt to ask because the function called when first service sub-component upgrades can not replace and cause the target IO handled with hot patch Ask interruption.
It should be noted that:Above-described embodiment provide processing I/O request device when handling I/O request, only more than The division progress of each functional module is stated for example, in practical application, can be as needed and by above-mentioned function distribution by difference Functional module complete, i.e., the internal structure of equipment is divided into different functional modules, with complete it is described above whole or Person's partial function.In addition, the device of the I/O request for the processing that above-described embodiment provides and the embodiment of the method for the I/O request of processing Belong to same design, its specific implementation process refers to embodiment of the method, repeats no more here.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or its any combination real It is existing.When implemented in software, can realize in the form of a computer program product whole or in part.The computer program Product includes one or more computer instructions.It is all or part of when loading on computers and performing the computer instruction Ground is produced according to the flow or function described in the embodiment of the present invention.The computer can be all-purpose computer, special-purpose computer, Computer network or other programmable devices.The computer instruction can store in a computer-readable storage medium, or Person is transmitted from a computer-readable recording medium to another computer-readable recording medium, for example, the computer instruction Can from a web-site, computer, server or data center by it is wired (such as:Coaxial cable, optical fiber, data are used Family line (Digital Subscriber Line, DSL)) or wireless (such as:Infrared, wireless, microwave etc.) mode is to another net Website, computer, server or data center are transmitted.The computer-readable recording medium can be that computer can Any usable medium of access is either comprising data storages such as the integrated server of one or more usable mediums, data centers Equipment.The usable medium can be magnetic medium (such as:Floppy disk, hard disk, tape), optical medium (such as:Digital versatile disc (Digital Versatile Disc, DVD)) or semiconductor medium (such as:Solid state hard disc (Solid State Disk, SSD)) etc..
One of ordinary skill in the art will appreciate that hardware can be passed through by realizing all or part of step of above-described embodiment To complete, by program the hardware of correlation can also be instructed to complete, described program can be stored in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only storage, disk or CD etc..
The embodiment described above provided for the application, it is all in spirit herein and original not to limit the application Within then, any modification, equivalent substitution and improvements made etc., it should be included within the protection domain of the application.

Claims (14)

  1. A kind of 1. method for handling input and output I/O request, it is characterised in that client cluster includes multiple buddy groups, each Buddy group includes at least two nodes, and the node in the buddy group allows to be communicated between each other, the client cluster In the virtual block storage system VBS components of any node include communications subcomponent and service sub-components, the communications subcomponent For managing the communication between buddy group interior nodes, the service sub-components are to be responsible for processing I/O request in the VBS components Sub-component, methods described include:
    The target I/O request from business cluster interior joint is being received, and the communications subcomponent in first node determines described When service sub-components in one node currently upgrade, section point is selected from the buddy group where the first node, The first node is any node in the client cluster;
    Communications subcomponent in the first node sends target I/O request to the communications subcomponent in the section point, by Communications subcomponent in the section point sends the target I/O request to the service sub-components in the section point, with The service sub-components in the section point are made to send the target I/O request to server.
  2. 2. the method as described in claim 1, it is characterised in that the target I/O request is in small computer system interface The I/O request transmitted in SCSI protocol, the first node also include the virtual controlling VSC based on small computer system interface Component;
    It is described to receive the target I/O request from business cluster interior joint, and the communications subcomponent in first node determines institute The service sub-components in first node are stated currently to upgrade, including:
    VSC components in the first node receive the target I/O request that the node in the business cluster is sent;
    When the VSC components in the first node determine that itself does not upgrade, judge whether to have been received by the first node In the upgrade notification that sends of service sub-components, the upgrade notification is used to indicate service sub-components in the first node just Upgrading;
    When the VSC components in the first node have been received by the upgrade notification, the service in the first node is determined Sub-component is currently upgrading;
    VSC components in the first node send the target I/O request to the communications subcomponent in the first node;
    When communications subcomponent in the first node receives the target I/O request, the service in the first node is determined Sub-component is currently upgrading.
  3. 3. method as claimed in claim 2, it is characterised in that described to judge whether to have been received by the clothes in the first node It is engaged in after the upgrade notification that sub-component is sent, in addition to:
    When the VSC components in the first node do not receive the upgrade notification, the service in the first node is determined Sub-component is currently without upgrading;
    VSC components in the first node send the target I/O request to the service sub-components in the first node;
    When the service sub-components in the first node receive the target I/O request, by the target I/O request send to Server.
  4. 4. method as claimed in claim 2 or claim 3, it is characterised in that the VSC components in the first node receive the business After the target I/O request that node in cluster is sent, in addition to:
    When the VSC components in the first node determine that itself currently upgrades, the target I/O request is cached;
    When the VSC components in the first node determine that itself upgrading is completed, execution judges whether to have been received by described first The operation for the upgrade notification that service sub-components in node are sent.
  5. 5. the method as described in claim 1, it is characterised in that the target I/O request is in network minicom The I/O request transmitted in system interface iSCSI protocol;
    It is described to receive the target I/O request from business cluster interior joint, and the communications subcomponent in first node determines institute The service sub-components in first node are stated currently to upgrade, including:
    Communications subcomponent in the first node receives the target I/O request that the node in the business cluster is sent;
    The service sub-components that communications subcomponent in the first node judges whether to have been received by the first node are sent Upgrade notification, the upgrade notification be used for indicate that the service sub-components in the first node upgrade;
    When the communications subcomponent in the first node has been received by the upgrade notification, the clothes in the first node are determined Business sub-component is currently upgrading.
  6. 6. method as claimed in claim 5, it is characterised in that described to judge whether to have been received by the clothes in the first node It is engaged in after the upgrade notification that sub-component is sent, in addition to:
    When the communications subcomponent in the first node does not receive the upgrade notification, the clothes in the first node are determined Sub-component be engaged in currently without upgrading;
    Communications subcomponent in the first node sends the target I/O request to the service subgroup in the first node Part;
    When the service sub-components in the first node receive the target I/O request, by the target I/O request send to Server.
  7. 7. the method as described in claim 1 to 6 is any, it is characterised in that the buddy group from where the first node Middle selection section point, including:
    For other nodes in the buddy group where the first node in addition to the first node, in the first node Communications subcomponent be defined as the section point by the minimum node of I/O request pressure is handled in other described nodes;Or
    For other nodes in buddy group where the first node in addition to the first node, in the first node Communications subcomponent is according to the corresponding relation between the priority and node of storage, by highest priority node in other described nodes It is defined as the section point.
  8. 8. a kind of device for handling input and output I/O request, it is characterised in that client cluster includes multiple buddy groups, each Buddy group includes at least two nodes, and the node in the buddy group allows to be communicated between each other, the client cluster In the virtual block storage system VBS components of any node include communications subcomponent and service sub-components, the communications subcomponent For managing the communication between buddy group interior nodes, the service sub-components are to be responsible for processing I/O request in the VBS components Sub-component, described device include the communications subcomponent in first node:
    Communications subcomponent in the first node, for it is determined that the service sub-components in the first node are currently rising During level, section point is selected from the buddy group where the first node, the first node is in the client cluster Any node;
    Communications subcomponent in the first node, be additionally operable to by the target I/O request of the node in services sets group send to Communications subcomponent in the section point, by the communications subcomponent in the section point by the target I/O request send to Service sub-components in the section point, so that the service sub-components in the section point send the target I/O request To server.
  9. 9. device as claimed in claim 8, it is characterised in that the target I/O request is in small computer system interface The I/O request transmitted in SCSI protocol, the first node also include the virtual controlling VSC based on small computer system interface Component;
    Described device also includes the VSC components in first node:
    VSC components in the first node, for receiving the target I/O request of the transmission of the node in the business cluster;
    VSC components in the first node, it is additionally operable to when it is determined that itself does not upgrade, judges whether to have been received by described The upgrade notification that service sub-components in one node are sent, service that the upgrade notification is used to indicate in the first node Component upgrades;
    VSC components in the first node, it is additionally operable to, when having been received by the upgrade notification, determine in the first node Service sub-components currently upgrading;
    VSC components in the first node, it is additionally operable to send the target I/O request to the communication in the first node Sub-component;
    Communications subcomponent in the first node, when being additionally operable to receive the target I/O request, determine the first node In service sub-components currently upgrading.
  10. 10. device as claimed in claim 9, it is characterised in that described device also includes the service sub-components in first node:
    VSC components in the first node, it is additionally operable to, when not receiving the upgrade notification, determine in the first node Service sub-components currently without upgrading;
    VSC components in the first node, it is additionally operable to send the target I/O request to the service in the first node Sub-component;
    Service sub-components in the first node, for when receiving the target I/O request, by the target I/O request Send to server.
  11. 11. the device as described in claim 9 or 10, it is characterised in that:
    VSC components in the first node, it is additionally operable to when it is determined that itself currently upgrades, caching the target IO please Ask;
    VSC components in the first node, it is additionally operable to when it is determined that itself upgrading is completed, execution judges whether to have been received by institute State the operation for the upgrade notification that the service sub-components in first node are sent.
  12. 12. device as claimed in claim 8, it is characterised in that the target I/O request is in network small-sized calculating The I/O request transmitted in machine system interface iSCSI protocol;
    Communications subcomponent in the first node, it is additionally operable to receive the target IO that the node in the business cluster is sent Request;
    Communications subcomponent in the first node, it is additionally operable to judge whether to have been received by the service subgroup in the first node The upgrade notification that part is sent, the upgrade notification are used to indicate that the service sub-components in the first node upgrade;
    Communications subcomponent in the first node, it is additionally operable to, when having been received by the upgrade notification, determine the first segment Service sub-components in point are currently upgrading.
  13. 13. device as claimed in claim 12, it is characterised in that described device also includes the service subgroup in first node Part:
    Communications subcomponent in the first node, it is additionally operable to, when not receiving the upgrade notification, determine the first segment Service sub-components in point are currently without upgrading;
    Communications subcomponent in the first node, it is additionally operable to send the target I/O request to the clothes in the first node Business sub-component;
    Service sub-components in the first node, for when receiving the target I/O request, by the target I/O request Send to server.
  14. 14. the device as described in claim 8 to 13 is any, it is characterised in that the communications subcomponent tool in the first node Body is used for:
    , will other described nodes for other nodes in the buddy group where the first node in addition to the first node The minimum node of middle processing I/O request pressure is defined as the section point;Or
    For other nodes in buddy group where the first node in addition to the first node, according to the priority of storage Corresponding relation between node, the node of highest priority in other described nodes is defined as the section point.
CN201710761359.4A 2017-08-30 2017-08-30 Method and device for processing IO (input/output) request Active CN107707620B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710761359.4A CN107707620B (en) 2017-08-30 2017-08-30 Method and device for processing IO (input/output) request

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710761359.4A CN107707620B (en) 2017-08-30 2017-08-30 Method and device for processing IO (input/output) request

Publications (2)

Publication Number Publication Date
CN107707620A true CN107707620A (en) 2018-02-16
CN107707620B CN107707620B (en) 2020-09-11

Family

ID=61169985

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710761359.4A Active CN107707620B (en) 2017-08-30 2017-08-30 Method and device for processing IO (input/output) request

Country Status (1)

Country Link
CN (1) CN107707620B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110673799A (en) * 2019-09-26 2020-01-10 苏州浪潮智能科技有限公司 Cluster partnership establishment method, system, equipment and computer medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105511805A (en) * 2015-11-26 2016-04-20 深圳市中博科创信息技术有限公司 Data processing method and device for cluster file system
US20160188415A1 (en) * 2014-12-31 2016-06-30 Netapp. Inc. Methods and systems for clone management
CN106357813A (en) * 2016-11-02 2017-01-25 龙存科技(北京)股份有限公司 Task rescheduling method applied in shared-file system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160188415A1 (en) * 2014-12-31 2016-06-30 Netapp. Inc. Methods and systems for clone management
CN105511805A (en) * 2015-11-26 2016-04-20 深圳市中博科创信息技术有限公司 Data processing method and device for cluster file system
CN106357813A (en) * 2016-11-02 2017-01-25 龙存科技(北京)股份有限公司 Task rescheduling method applied in shared-file system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
XIAOMING GAO等: "Supporting Cloud Computing with the Virtual Block Store System", 《2009 FIFTH IEEE INTERNATIONAL CONFERENCE ON E-SCIENCE》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110673799A (en) * 2019-09-26 2020-01-10 苏州浪潮智能科技有限公司 Cluster partnership establishment method, system, equipment and computer medium
CN110673799B (en) * 2019-09-26 2023-01-10 苏州浪潮智能科技有限公司 Cluster partnership establishment method, system, equipment and computer medium

Also Published As

Publication number Publication date
CN107707620B (en) 2020-09-11

Similar Documents

Publication Publication Date Title
CN104008064A (en) Method and system for multi-level memory compression
US11797494B2 (en) Snapshot management in distributed file systems
CN108011949B (en) Method and apparatus for acquiring data
CN112130748A (en) Data access method, network card and server
US9335862B1 (en) Virtual multi-device navigation in surface computing system
JP2021513179A (en) Blockchain-based consent management system and method
CN110502256A (en) A kind of method for upgrading software, terminal and storage medium
CN102761579A (en) Method and system utilizing storage area network for data transmission
CN113568860A (en) Deep learning-based topology mapping method, apparatus, medium, and program product
US20150381629A1 (en) Crowd Sourced Access Approvals
US20230069079A1 (en) Statistical K-means Clustering
CN110119386A (en) Data processing method, data processing equipment, medium and calculating equipment
US20220038487A1 (en) Method and system for a security assessment of physical assets using physical asset state information
CN107707620A (en) Handle the method and device of I/O request
CN113778270A (en) Method and device for dragging icon
WO2021012554A1 (en) Method and apparatus for updating data field in block chain, medium, and electronic device
US9449036B2 (en) Handling an increase in transactional data without requiring relocation of preexisting data between shards
US11941445B2 (en) RLC channel management for low memory 5G devices
CN111988195B (en) Response scheme determination method, device, equipment and medium for packet test
EP3759603B1 (en) In-line event handlers across domains
US8219668B2 (en) Resource property aggregation in a multi-provider system
JP2024506131A (en) Virtual machine memory sharing methods and devices
CN114416871A (en) Data processing method, device, equipment, system and medium based on block chain
KR102064466B1 (en) Method for allocationing virtual desktop in virtualization system and virtualization system thereof
CN116113962A (en) Tensor comparison across a distributed machine learning environment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220211

Address after: 550025 Huawei cloud data center, jiaoxinggong Road, Qianzhong Avenue, Gui'an New District, Guiyang City, Guizhou Province

Patentee after: Huawei Cloud Computing Technology Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.