A method, device, system and medium for identifying RDMA type nodes

By identifying RDMA type nodes, the problem of large communication resources occupied between nodes in the storage system is solved, the effects of high bandwidth, low latency and low resource utilization are achieved, ensuring normal connections between nodes and efficient operation of the cluster system.

CN115080497BActive Publication Date: 2024-10-15INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210687995.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-17
Publication Date
2024-10-15
Estimated Expiration
2042-06-17

AI Technical Summary

Technical Problem

Inter-node communication in existing storage systems occupies a large amount of CPU resources, making it difficult to meet efficient and scalable network requirements, and RDMA type nodes need to be identified to achieve high-bandwidth, low-latency communication connections.

Method used

By obtaining the port type of the logged-in device, determine whether it is an RDMA port type, and further determine the manufacturer and cluster ownership, record the node information to notify the cluster, ensure that the node can join the cluster normally, and realize RDMA communication connection.

Benefits of technology

It realizes storage system communication with high bandwidth, low latency and low resource utilization, ensures normal identification and connection between nodes, and promotes efficient work of the storage system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115080497B_ABST
    Figure CN115080497B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, device, system and computer-readable storage medium for identifying RDMA type nodes, which are applied to the field of computer technology. The method comprises: obtaining a port type of a login device; judging whether the port type is an RDMA port type, and if so, judging whether the manufacturer corresponding to the login device is a preset manufacturer; if so, judging whether the login device and a local node belong to the same cluster; if so, recording the node information of the login device, and notifying the cluster that the login device is a node; the RDMA type node can be identified during use, so as to establish a basis for the subsequent use of the RDMA mode to realize the communication connection of the storage system, which is conducive to achieving the effects of high bandwidth, low latency and low resource utilization.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method, device, system and computer-readable storage medium for identifying RDMA type nodes. Background Art

[0002] In simple terms, a storage cluster system is a system where multiple devices work together to provide storage services. Each device in the storage system is a storage node. There are communication links between nodes. Based on a distributed consistency algorithm, the BOSS (master) node is elected and concurrent events of each node are notified to each node in the same order, achieving multi-node information synchronization. Failure of any node in the cluster will not damage the cluster information, and the BOSS node will be reselected.

[0003] Currently, the communication between nodes and between storage systems and hosts is mostly achieved using NTB (Non-Transparent Bridge) cards or FC (Fabric Channel) cards. However, this traditional connection method takes up a lot of CPU (Central Processing Unit / Processor) resources and requires additional data processing, making it increasingly difficult to meet the current demand for faster, more efficient and scalable networks.

[0004] RDMA (Remote Direct Memory Access) was created to solve the latency of server-side data processing during network transmission. It allows direct access from the memory of one host or storage server to the memory of another host or storage server without using the CPU, freeing up the CPU to perform its work, such as running applications and processing large amounts of data. This increases bandwidth and reduces latency, jitter, and CPU consumption. Therefore, using RDMA for interconnection in storage networking is conducive to achieving high bandwidth, low latency, and low resource utilization.

[0005] At present, in order to realize the communication connection between storage nodes and between storage and host based on RDMA, each node needs to discover and identify the RDMA type peer node to ensure that the node can join the cluster normally. Therefore, how to identify the RDMA type node becomes a problem that technicians in this field need to solve. Summary of the invention

[0006] The purpose of the embodiments of the present invention is to provide a method, device, system and computer-readable storage medium for identifying RDMA type nodes, which can identify RDMA type nodes during use, establish a basis for the subsequent use of RDMA to achieve communication connection of the storage system, and facilitate achieving the effects of high bandwidth, low latency and low resource utilization.

[0007] To solve the above technical problems, an embodiment of the present invention provides a method for identifying an RDMA type node, including:

[0008] Get the port type of the login device;

[0009] Determine whether the port type is an RDMA port type. If it is an RDMA port type, determine whether the manufacturer corresponding to the login device is a preset manufacturer. If it is a preset manufacturer, determine whether the login device and the local node belong to the same cluster. If they belong to the same cluster, record the node information of the login device and notify the cluster that the login device is a node.

[0010] Optionally, the determining whether the manufacturer corresponding to the login device is a preset manufacturer includes:

[0011] Get the NVME qualified name of the login device;

[0012] Matching the NVME qualified name with a preset identification name;

[0013] If a match is found, the node information returned by the login device is obtained;

[0014] Based on the node information, it is determined whether the manufacturer corresponding to the login device is a preset manufacturer.

[0015] Optionally, judging whether the manufacturer corresponding to the login device is a preset manufacturer based on the node information includes:

[0016] Acquire a manufacturer identification code and a product identification code based on the node information;

[0017] It is determined whether the manufacturer corresponding to the login device is a preset manufacturer according to the manufacturer identification code and the product identification code.

[0018] Optionally, determining whether the login device and the local node belong to the same cluster includes:

[0019] Acquire a cluster identification code based on the node information;

[0020] It is determined based on the cluster identification code whether the login device and the local node belong to the same cluster.

[0021] Optionally, the node information also includes a node identification code.

[0022] Optionally, before obtaining the port type of the login device, the method further includes:

[0023] When a device login event is detected, the discovery process of the test phase is started.

[0024] Optionally, also include:

[0025] When the port type is not an RDMA port type, starting a discovery process in the backend phase;

[0026] Or when the NVME qualified name does not match the preset identification name, starting the discovery process of the backend stage;

[0027] Or when the login device and the local node do not belong to the same cluster, the discovery process of the backend stage is started.

[0028] An embodiment of the present invention further provides a device for identifying an RDMA type node, including:

[0029] The acquisition module is used to obtain the port type of the login device;

[0030] A first judgment module is used to judge whether the port type is an RDMA port type, and if it is an RDMA port type, triggering a second judgment module;

[0031] The second judgment module is used to judge whether the manufacturer corresponding to the login device is a preset manufacturer, and if it is a preset manufacturer, triggering the third judgment module;

[0032] The third judgment module is used to judge whether the login device and the local node belong to the same cluster, and if they belong to the same cluster, trigger the recording module;

[0033] The recording module is used to record the node information of the login device and notify the cluster that the login device is a node.

[0034] Optionally, the second judgment module includes:

[0035] A first acquisition unit is used to acquire the NVME qualified name of the login device;

[0036] A matching unit, used for matching the NVME qualified name with a preset identification name;

[0037] A second acquisition unit, configured to acquire the node information returned by the login device in the case of a match;

[0038] The first judgment unit is used to judge whether the manufacturer corresponding to the login device is a preset manufacturer based on the node information.

[0039] Optionally, the judging unit includes:

[0040] An acquisition subunit, used to acquire a manufacturer identification code and a product identification code based on the node information;

[0041] The judging subunit is used to judge whether the manufacturer corresponding to the login device is a preset manufacturer according to the manufacturer identification code and the product identification code.

[0042] Optionally, the third judgment module includes:

[0043] A third acquisition unit, configured to acquire a cluster identification code based on the node information;

[0044] The second judgment unit is used to judge whether the login device and the local node belong to the same cluster based on the cluster identification code.

[0045] Optionally, the node information also includes a node identification code.

[0046] Optionally, also include:

[0047] The detection module is used to start the discovery process of the test phase when a device login event is detected. The embodiment of the present invention also provides a system for identifying RDMA type nodes, including:

[0048] Memory for storing computer programs;

[0049] A processor is used to implement the steps of the method for identifying RDMA type nodes as described above when executing the computer program.

[0050] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for identifying RDMA type nodes as described above are implemented.

[0051] An embodiment of the present invention provides a method, device, system and computer-readable storage medium for identifying RDMA type nodes. The method includes: obtaining a port type of a login device; determining whether the port type is an RDMA port type; if it is an RDMA port type, determining whether the manufacturer corresponding to the login device is a preset manufacturer; if it is a preset manufacturer, determining whether the login device and the local node belong to the same cluster; if they belong to the same cluster, recording the node information of the login device and notifying the cluster that the login device is a node.

[0052] It can be seen that the embodiment of the present invention obtains the port type of the login device, and when it is determined that the port type is the RDMA port type, further determines whether the manufacturer corresponding to the login device is the preset manufacturer, and when it is the preset manufacturer, further determines whether the login device and the local node belong to the same cluster, and when they belong to the same cluster, records the node information of the login device, and notifies the cluster that the login device is a node, so that the node can join the cluster normally, thereby establishing a foundation for the subsequent use of RDMA to realize the communication connection of the storage system, which is conducive to achieving the effects of high bandwidth, low latency and low resource utilization. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the prior art and the drawings required for use in the embodiments are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0054] Figure 1 A flowchart of a method for identifying an RDMA type node provided by an embodiment of the present invention;

[0055] Figure 2 A flowchart of a method for identifying an RDMA type node provided by an embodiment of the present invention;

[0056] Figure 3 A schematic diagram of the structure of a device for identifying RDMA type nodes provided by an embodiment of the present invention;

[0057] Figure 4 A schematic diagram of the structure of a system for identifying RDMA type nodes provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0058] The embodiments of the present invention provide a method, device, system and computer-readable storage medium for identifying RDMA type nodes. During use, RDMA type nodes can be identified, thereby establishing a basis for the subsequent use of RDMA to implement communication connections of storage systems, which is conducive to achieving the effects of high bandwidth, low latency and low resource utilization.

[0059] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0060] In a storage system composed of an RDMA network (storage nodes and storage and hosts are connected through RDMA), each node needs to discover and identify the RDMA type of the opposite node to ensure that the node can join the cluster normally, and establish a foundation for the subsequent communication connection of the storage system through RDMA. Backend device discovery mainly includes three stages: 1. Test stage, which is mainly to discover the opposite node or the initial discovery of the backend heterogeneous storage device. 2. Backend stage, in this stage, general protocol instructions are issued to identify the general type information of the backend device, and the device type is initially identified as a disk, chassis or heterogeneous storage. 3. Lu stage, in this stage, different protocol instruction sequences are issued to the disk and chassis respectively according to the identification results of the backend stage, and finally all detailed information of the device is obtained. In the entire discovery process, the driver module scans for device connections and reports the login open event to the upper module. The upper module processes the event and starts the internal discover process. According to the type of reported port, different protocol (SCSI, NVME) object discovery instruction sequences are used to issue a series of standard protocol instructions to the back-end device. By parsing the instruction return, the basic information and detailed information of the login device are obtained, and the specific device introduced into a storage system is matched and identified to generate a device object, thereby completing the discover process. The device object can be a peer node, a disk, a chassis, heterogeneous storage, etc.

[0061] Regarding how to identify RDMA type nodes, the embodiment of the present invention proposes a method for identifying RDMA type nodes. For details, please refer to Figure 1 , Figure 1 A flowchart of a method for identifying an RDMA type node provided by an embodiment of the present invention. The method for identifying an RDMA type node includes:

[0062] S110: Obtain the port type of the login device;

[0063] Specifically, in the embodiment of the present invention, the port type of the logged-in device can be obtained when there is a device login. It should be noted that, since for RDMA type nodes, the node discovery process in the test phase is mainly followed, in actual applications, when a device login event is detected, the discovery process in the test phase can be started, so as to obtain the port type of the logged-in device in the test phase.

[0064] In addition, in actual applications, the driver module in the back-end device discovery process can be used to scan devices, and when a device connection is detected, the driver module will report a login open (device login) event to the upper-level module. When the upper-level module detects a device login event, it will start the discovery process in the internal test phase to obtain the port type of the login device.

[0065] S120: Determine whether the port type is an RDMA port type. If it is an RDMA port type, proceed to S130;

[0066] Specifically, since the purpose of the embodiment of the present invention is to identify RDMA type nodes, after obtaining the port type, it is possible to further determine whether the port type is an RDMA port type. When the port type of the login device is an RDMA port type, the next step of node identification is performed on the login device. That is, only when the port type is an RDMA port type can the RDMA type node be identified, and the next step is performed.

[0067] S130: Determine whether the manufacturer corresponding to the login device is a preset manufacturer. If it is a preset manufacturer, proceed to S140;

[0068] Specifically, when it is determined that the port type of the login device is the RDMA port type, it is further determined whether the manufacturer corresponding to the login device is the preset manufacturer. The preset manufacturer can be set according to actual conditions. Since only nodes belonging to the same manufacturer can form a cluster, it is necessary to determine whether the manufacturer of the login device is the preset manufacturer, and proceed to the next step if it is the preset manufacturer.

[0069] S140: Determine whether the login device and the local node belong to the same cluster. If they do, proceed to S150;

[0070] It can be understood that since the login node can only join the corresponding cluster normally if the login node and the local node belong to the same cluster, when it is determined that the manufacturer of the login device is the preset manufacturer, it can be further determined whether the login device and the local node belong to the same cluster, and the next step can be performed if the login device and the local node belong to the same cluster.

[0071] S150: Record the node information of the login device, and notify the cluster that the login device is a node.

[0072] It should be noted that, when it is determined that the login device and the local node belong to the same cluster, the node information (or device information) of the login device is recorded, and the cluster to which the local node belongs is notified that the login device is a node. Specifically, the login device can be registered with the cluster as a node so that the login device can join the cluster normally. Among them, when recording the node information of the login device, the node type, node ID, cluster ID and other information of the login device can be specifically recorded. The specific information to be recorded can be determined according to actual needs. The embodiments of the present invention do not make special limitations, and it is sufficient to achieve the purpose of the present invention.

[0073] From the above, it can be seen that the method for identifying RDMA type nodes provided by the embodiment of the present invention can ensure that the nodes in the storage system of RDMAover NVME networking can discover and identify each other, ensure the establishment of the cluster system, and ensure the application of RDMA technology in the storage system, which is conducive to promoting faster and more efficient operation of the storage system.

[0074] Based on the above embodiment, the embodiment of the present invention describes in detail the method for identifying RDMA type nodes. Further, the process of determining whether the manufacturer corresponding to the login device is the preset manufacturer in the above S130 may specifically include:

[0075] Get the NVME qualified name of the login device;

[0076] Match the NVME qualified name with the preset identification name;

[0077] If a match is found, obtain the node information returned by the login device;

[0078] Based on the node information, determine whether the manufacturer corresponding to the login device is the preset manufacturer.

[0079] It should be noted that in actual applications, the NVME qualified name (also known as SUBNQN) of the login device can be obtained, where SUBNQN (NVM Subsystem NVMe Qualified Name) is the NVME qualified name of the NVM subsystem, and a preset identification name can be pre-stored, and the NVME qualified name of the login device is matched with the preset identification name. When the NVME qualified name of the login device matches the preset identification name successfully, an identification (identifier) ​​instruction can be sent to the login device. After receiving the identification instruction, the login device will return node information, and further determine whether the manufacturer corresponding to the login device is the preset manufacturer based on the node information returned by the login device. Among them, the data structure of the node information returned by the login device after receiving the identification instruction is shown in Table 1, and the node information can specifically include the manufacturer identification code, product identification code, cluster identification code, node identification code, etc.

[0080] Table 1

[0081]

[0082] Furthermore, the process of determining whether the manufacturer corresponding to the login device is the preset manufacturer based on the node information may specifically include:

[0083] Obtaining a manufacturer identification code and a product identification code based on the node information;

[0084] Determine whether the manufacturer corresponding to the login device is the preset manufacturer based on the manufacturer identification code and the product identification code.

[0085] It should be noted that in this actual application, preset manufacturer information can be pre-stored, and the manufacturer identification code (also known as vendor id) and product identification code (product id) can be obtained by parsing the node information, and then the manufacturer identification code and product identification code can be analyzed to further determine whether the manufacturer of the login device is the preset manufacturer.

[0086] Furthermore, the process of determining whether the login device and the local node belong to the same cluster may specifically include:

[0087] Obtaining a cluster identification code based on node information;

[0088] Determine whether the login device and the local node belong to the same cluster based on the cluster identification code.

[0089] Specifically, in the embodiment of the present invention, the cluster identification code can be obtained by parsing the node information. The cluster identification code is the cluster identification code (cluster uid) of the cluster to which the login device belongs. Then, based on the cluster identification code, it can be further determined whether the login device and the local node belong to the same cluster. When it is determined that the login device and the local node belong to the same cluster, the node information (or device information) of the login device can be further updated, and the cluster to which the local node belongs can be notified that the login device is a node. Specifically, the login device can be registered with the cluster as a node so that the login device can join the cluster normally. When it is determined that the login device and the local node do not belong to the same cluster, the backend discovery process can be started.

[0090] In addition, the node information includes not only the manufacturer identification code, product identification code and cluster identification code, but also the node identification code (node ​​uid). It should be noted that the NVME (Non Volatile Memory Express) protocol stipulates that NVMeQualified Names (NQN) is used as the unique identification of the NVME protocol device (such as a hard disk, peer node, chassis), which is used for the identification and authentication of the host or NVM subsystem. Therefore, for storage systems using NVME over RDMA networks, NQN can be used as the unique identification ID of the peer node.

[0091] Furthermore, the method may also include:

[0092] If the port type is not an RDMA port type, start the discovery process in the backend phase;

[0093] Or when the NVME qualified name does not match the preset identification name, the discovery process of the backend stage is started;

[0094] Or, if the login device and the local node do not belong to the same cluster, start the discovery process in the backend phase.

[0095] It should be noted that if Figure 3 As shown, when it is determined that the port type of the login device is not an RDMA port type, the discovery process of the backend phase can be further started. When it is determined that the port type of the login device is an RDMA port type, the SUBNQN and the preset identifier qualifier name of the login device are obtained. When the SUBNQN of the login device and the preset identifier qualifier name are inconsistent, the Test discovery process is terminated and the discovery process of the backend phase is started. When the SUBNQN of the login device and the preset identifier qualifier name are consistent, it is further determined whether the manufacturer of the login device is the preset manufacturer, and when the manufacturer of the login device is not the preset manufacturer, the Test discovery process is terminated and the discovery process of the backend phase is started. When the manufacturer of the login device is the preset manufacturer, the cluster uid (cluster identification code) and the node uid node identification code are further obtained, and it is further determined whether the cluster to which the login device belongs is the same cluster as the cluster to which the local node belongs. If they are the same cluster, it is determined that the login device is a node that can normally join the cluster, and the information of the login device is updated. When it is determined that the cluster to which the login device belongs is not the same cluster as the cluster to which the local node belongs, the discovery process of the backend phase is started.

[0096] It can be seen that the embodiment of the present invention obtains the port type of the login device, and when it is determined that the port type is the RDMA port type, further determines whether the manufacturer corresponding to the login device is the preset manufacturer, and when it is the preset manufacturer, further determines whether the login device and the local node belong to the same cluster, and when they belong to the same cluster, records the node information of the login device, and notifies the cluster that the login device is a node, so that the node can join the cluster normally, thereby establishing a foundation for the subsequent use of RDMA to realize the communication connection of the storage system, which is conducive to achieving the effects of high bandwidth, low latency and low resource utilization.

[0097] The embodiment of the present invention also provides a corresponding device for identifying RDMA type nodes, which further makes the method more practical. Among them, the device can be described from the perspective of functional modules and hardware. The following is an introduction to the device for identifying RDMA type nodes provided by the embodiment of the present invention. The device for identifying RDMA type nodes described below and the method for identifying RDMA type nodes described above can be referred to each other.

[0098] From the perspective of functional modules, please refer to Figure 3 , Figure 3 An embodiment of the present invention also provides a device for identifying an RDMA type node. The device includes:

[0099] An acquisition module 31 is used to acquire the port type of the login device;

[0100] A first judgment module 32 is used to judge whether the port type is an RDMA port type, and if it is an RDMA port type, a second judgment module 33 is triggered;

[0101] The second judgment module 33 is used to judge whether the manufacturer corresponding to the login device is a preset manufacturer. If it is a preset manufacturer, the third judgment module 34 is triggered;

[0102] The third judgment module 34 is used to judge whether the login device and the local node belong to the same cluster. If they belong to the same cluster, the recording module 35 is triggered;

[0103] The recording module 35 is used to record the node information of the login device and notify the cluster that the login device is a node.

[0104] It should be noted that the device for identifying RDMA type nodes provided in the embodiment of the present invention obtains the port type of the login device through the acquisition module 31. Specifically, when a device login event is detected, the discovery process of the test phase can be started to obtain the port type of the login device, and the first judgment module 32 is triggered after the port information is obtained. The first judgment module 32 is used to determine whether the port type of the login device is an RDMA port type, and the second judgment module 33 is triggered if it is an RDMA port type. The second judgment module 33 is used to further determine whether the manufacturer of the login device is a preset manufacturer. If it is a preset manufacturer, the third judgment module 34 is triggered. The third judgment module 34 is used to further determine whether the cluster to which the login device belongs and the cluster to which the local node belongs are the same cluster. If they are the same cluster, the recording module 35 is triggered, and the node information of the login device is recorded through the recording module 35, and the cluster is notified that the login device is a node so that the login device can join the cluster normally.

[0105] Furthermore, the second determination module 33 in the embodiment of the present invention may specifically include:

[0106] A first acquisition unit is used to acquire an NVME qualified name of a login device;

[0107] A matching unit, used for matching an NVME qualified name with a preset identification name;

[0108] A second acquisition unit, used for acquiring the node information returned by the login device in the case of a match;

[0109] The first judgment unit is used to judge whether the manufacturer corresponding to the login device is a preset manufacturer based on the node information.

[0110] Furthermore, the judgment unit in the embodiment of the present invention may specifically include:

[0111] An acquisition subunit, used to acquire a manufacturer identification code and a product identification code based on the node information;

[0112] The judging subunit is used to judge whether the manufacturer corresponding to the login device is a preset manufacturer according to the manufacturer identification code and the product identification code.

[0113] Furthermore, the third determination module 34 in the embodiment of the present invention may specifically include:

[0114] A third acquisition unit, configured to acquire a cluster identification code based on the node information;

[0115] The second judgment unit is used to judge whether the login device and the local node belong to the same cluster based on the cluster identification code.

[0116] Furthermore, the node information may also include a node identification code.

[0117] Furthermore, the device may also include:

[0118] The detection module is used to start the discovery process in the test phase when a device login event is detected.

[0119] It should be noted that the device for identifying RDMA type nodes provided in the embodiment of the present invention has the same beneficial effects as the method for identifying RDMA type nodes provided in the above embodiment, and for the specific introduction of the method for identifying RDMA type nodes involved in the embodiment of the present invention, please refer to the above embodiment, and the present invention will not be repeated here.

[0120] The device for identifying RDMA type nodes mentioned above is described from the perspective of functional modules. Furthermore, the present application also provides a system for identifying RDMA type nodes, which is described from the perspective of hardware. Figure 4 A schematic diagram of a system for identifying RDMA type nodes is shown below. The system includes:

[0121] A memory 40, for storing computer programs;

[0122] The processor 41 is configured to implement the steps of the above-mentioned method for identifying RDMA type nodes when executing a computer program.

[0123] For example, the processor in the embodiment of the present invention can be specifically used to obtain the port type of the login device; determine whether the port type is an RDMA port type, if it is an RDMA port type, determine whether the manufacturer corresponding to the login device is a preset manufacturer, if it is a preset manufacturer, determine whether the login device and the local node belong to the same cluster, if they belong to the same cluster, record the node information of the login device, and notify the cluster that the login device is a node.

[0124] It should be noted that the electronic device provided in the embodiment of the present invention has the same beneficial effects as the method for identifying RDMA type nodes provided in the above embodiment, and for the specific introduction of the system method for identifying RDMA type nodes involved in the embodiment of the present invention, please refer to the above embodiment, and the present invention will not be repeated here.

[0125] In addition, in actual applications, the processor 41 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the processor 41 may also be a controller, a microcontroller, a microprocessor or other data processing chip. The processor 51 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 41 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 41 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 51 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0126] The memory 40 may include one or more computer-readable storage media, which may be non-transitory. The memory 40 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices and flash storage devices. In some embodiments, the memory 40 may be an internal storage unit of an electronic device, such as a hard disk of a server. In other embodiments, the memory 40 may also be an external storage device of an electronic device, such as a plug-in hard disk equipped on a server, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), etc. Further, the memory 40 may also include both an internal storage unit of an electronic device and an external storage device. The memory 40 may not only be used to store application software and various types of data installed in the electronic device, such as: the code of the program in the process of executing the method for identifying RDMA type nodes, etc., but also be used to temporarily store data that has been output or is to be output. In this embodiment, the memory 40 is at least used to store the following computer program 401, wherein, after the computer program is loaded and executed by the processor 41, the relevant steps of the method for identifying RDMA type nodes disclosed in any of the aforementioned embodiments can be implemented. In addition, the resources stored in the memory 40 may also include an operating system 402 and data 403, and the storage method may be temporary storage or permanent storage. The operating system 402 may include Windows, Unix, Linux, etc. The data 403 may include, but is not limited to, data corresponding to the fault repair results of the software application platform.

[0127] In some embodiments, the electronic device may further include a display screen 42, an input / output interface 43, a communication interface 44 or a network interface, a power supply 45 and a communication bus 46. Among them, the display screen 42 and the input / output interface 43 such as a keyboard belong to the user interface, and the optional user interface may also include a standard wired interface, a wireless interface, etc. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode) touch device, etc. The display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device and to display a visual user interface. The communication interface 44 may optionally include a wired interface and / or a wireless interface, such as a WI-FI interface, a Bluetooth interface, etc., which is generally used to establish a communication connection between the electronic device and other electronic devices. The communication bus 46 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0128] Those skilled in the art will understand that Figure 4 The structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than those shown in the figure, for example, it may also include a sensor 47 for realizing various functions.

[0129] Based on the above embodiment, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above method for identifying RDMA type nodes are implemented.

[0130] The computer-readable storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0131] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0132] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

[0133] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0134] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0135] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for identifying an RDMA type node, characterized in that: include: Get the port type of the login device; Determine whether the port type is an RDMA port type. If it is an RDMA port type, determine whether the manufacturer corresponding to the login device is a preset manufacturer. If it is a preset manufacturer, determine whether the login device and the local node belong to the same cluster. If they belong to the same cluster, record the node information of the login device and notify the cluster that the login device is a node. The determining whether the manufacturer corresponding to the login device is a preset manufacturer includes: Get the NVME qualified name of the login device; Matching the NVME qualified name with a preset identification name; If a match is found, the node information returned by the login device is obtained; Determining whether the manufacturer corresponding to the login device is a preset manufacturer based on the node information; The determining, based on the node information, whether the manufacturer corresponding to the login device is a preset manufacturer includes: Acquire a manufacturer identification code and a product identification code based on the node information; Determining whether the manufacturer corresponding to the login device is a preset manufacturer according to the manufacturer identification code and the product identification code; The determining whether the login device and the local node belong to the same cluster includes: Acquire a cluster identification code based on the node information; It is determined based on the cluster identification code whether the login device and the local node belong to the same cluster.

2. The method for identifying RDMA type nodes according to claim 1, characterized in that: The node information also includes a node identification code.

3. The method for identifying RDMA type nodes according to claim 1, characterized in that: Before obtaining the port type of the login device, the method further includes: When a device login event is detected, the discovery process of the test phase is started.

4. The method for identifying RDMA type nodes according to claim 1, characterized in that: Also includes: When the port type is not an RDMA port type, starting a discovery process in the backend phase; Or when the NVME qualified name does not match the preset identification name, starting the discovery process of the backend stage; Or when the login device and the local node do not belong to the same cluster, the discovery process of the backend stage is started.

5. A device for identifying RDMA type nodes, characterized in that: include: The acquisition module is used to obtain the port type of the login device; A first judgment module is used to judge whether the port type is an RDMA port type, and if it is an RDMA port type, triggering a second judgment module; The second judgment module is used to judge whether the manufacturer corresponding to the login device is a preset manufacturer, and if it is a preset manufacturer, triggering the third judgment module; The third judgment module is used to judge whether the login device and the local node belong to the same cluster, and if they belong to the same cluster, trigger the recording module; The recording module is used to record the node information of the login device and notify the cluster that the login device is a node; The second judgment module specifically includes: A first acquisition unit is used to acquire an NVME qualified name of a login device; A matching unit, used for matching an NVME qualified name with a preset identification name; A second acquisition unit, used for acquiring the node information returned by the login device in the case of a match; A first judgment unit, used to judge whether the manufacturer corresponding to the login device is a preset manufacturer based on the node information; The first judgment unit specifically includes: An acquisition subunit, used to acquire a manufacturer identification code and a product identification code based on the node information; A judgment subunit, used to judge whether the manufacturer corresponding to the login device is a preset manufacturer according to the manufacturer identification code and the product identification code; The third judgment module specifically includes: A third acquisition unit, configured to acquire a cluster identification code based on the node information; The second judgment unit is used to judge whether the login device and the local node belong to the same cluster based on the cluster identification code.

6. A system for identifying RDMA type nodes, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the method for identifying an RDMA type node as claimed in any one of claims 1 to 4 when executing the computer program.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for identifying an RDMA type node according to any one of claims 1 to 4 are implemented.