Storage system containerization method, device and equipment
By configuring and deploying node identifiers in the storage system, the problems of uncontrollable main nodes and high data pressure during the containerization process of distributed systems are solved, and both containerization of storage systems and controllable main nodes are realized.
Patent Information
- Application Number
- CN202411909809.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-23
- Publication Date
- 2025-04-15
AI Technical Summary
In the prior art, distributed systems have problems such as uncontrollable master node roles and high data pressure during containerization. Especially when using kubernetes management, the container network address is uncertain, resulting in the inability to automatically perceive the formation of such raft clusters.
A storage system containerization method is provided. By responding to a node identification configuration request, a server to be configured with the node identification identification server, and a node identification is configured according to the preset node identification configuration rules, and a node identification is deployed as the main node identification to realize the storage system containerization.
This method can effectively control the main node role, reduce containerization complexity and performance consumption, ensure that the main node role is controllable, and reduce data pressure.
Smart Images

Figure CN119828973A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of server management technology, and in particular to a storage system containerization method, device and equipment. Background Art
[0002] This section is intended to provide a background or context to the embodiments of the application that are recited in the claims. The description herein is not admitted to be prior art by inclusion in this section.
[0003] Distributed systems improve the overall reliability of the system through redundancy and replication mechanisms. They are widely used due to their high reliability, scalability, resource sharing and high performance.
[0004] A distributed system has at least one node with the leader role. When the distributed system is containerized, the leader node is required to perform background tasks. For example, in raft, the leader node can be relied on to determine the only node to run background tasks. However, when using kubernetes for management, the container network address is uncertain, so there are problems such as the inability to automatically sense and form a raft cluster. Most solutions in the existing technology use external raft protocols or competitive databases. The external raft protocol method introduces great complexity. The competitive database method may cause problems such as uncontrollable master nodes and frequent database requests, which in turn causes data pressure.
[0005] Based on this, the present application urgently needs to propose a storage system containerization method, device and equipment that can solve the above-mentioned technical problems. Summary of the invention
[0006] Multiple aspects of the present application provide a storage system containerization method, device and equipment to solve the technical problems in the prior art such as uncontrollable master node roles and high server data pressure.
[0007] In one aspect of the present application, a storage system containerization method is provided, the method being applied to a storage system, the storage system comprising at least two servers, the method comprising:
[0008] In response to the node identification configuration request, a server for acquiring a node identification to be configured;
[0009] According to the preset node identification configuration rule, the node identification is configured corresponding to the server;
[0010] Deploy any of the node identifiers as a master node identifier, and a server corresponding to the master node identifier as a master server, thereby realizing containerization of the storage system.
[0011] Furthermore, the preset node mark configuration rule includes: based on the server of the node mark to be configured, obtaining the server name of the server, the server name at least including numbers; determining the last digit of the server name as the node mark of the server.
[0012] Furthermore, the method further includes: in response to a server upgrade request, obtaining a node identifier of the server; and updating the node identifier of the server according to a preset node identifier update rule, corresponding to the updated node identifier configured on the server.
[0013] Furthermore, when the node identifier of the server is updated according to the preset node identifier update rule and the node identifier of the corresponding server is updated, the method also includes: obtaining the running status of the main server; if the running status of the main server is running, stopping the running of the main server; after the node identifier of the corresponding server is updated, determining that the server corresponding to the main node identifier is the main server.
[0014] Furthermore, the preset node identification update rule includes: increasing at least one digit of the node identification of any of the servers by a preset value.
[0015] Furthermore, the method also includes: updating the node identification of the server in sequence, and determining in real time whether the updated node identification is consistent with the main node identification; if the updated node identification is consistent with the main node identification, determining that the server corresponding to the updated node identification is the main server.
[0016] Another aspect of the present application provides a storage system containerization method, which is applied to a server of the storage system, and includes:
[0017] Obtain the master node ID, and obtain its node ID through self-access according to the preset self-access cycle;
[0018] If the node identifier obtained from the self-access is consistent with the master node identifier, the background task is executed;
[0019] If the node identifier obtained through self-access is inconsistent with the master node identifier, then wait for the next self-access cycle to obtain its node identifier.
[0020] In another aspect of the present application, a storage system containerization device is provided, the device is applied to a storage system, the storage system includes at least two servers, and the device includes:
[0021] A response acquisition unit, configured to respond to a node identification configuration request and acquire a server of a node identification to be configured;
[0022] A node configuration unit, configured to configure a node identifier corresponding to the server according to a preset node identifier configuration rule;
[0023] The node deployment unit is used to deploy any of the node identifiers as a master node identifier, and the server corresponding to the master node identifier is a master server, so as to realize containerization of the storage system.
[0024] In another aspect of the present application, a storage system containerization device is provided, which is applied to a server of the storage system, and the device includes:
[0025] Acquiring an access unit to acquire a master node identifier and acquiring its node identifier by self-access according to a preset self-access cycle;
[0026] A task execution unit, configured to execute a background task if the node identifier obtained from the access is consistent with the master node identifier;
[0027] A timing unit is used to wait for the next self-access cycle to obtain its node identifier if the node identifier obtained through self-access is inconsistent with the master node identifier.
[0028] Another aspect of the present application provides an electronic device, which includes at least one processor; and a memory communicatively connected to the at least one processor; the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method as described above.
[0029] In another aspect of the present application, a computer readable medium is provided, on which computer program instructions are stored. The computer program instructions can be executed by a processor to implement the method as described above.
[0030] Another aspect of the present application provides a computer program product, including a computer program, which implements the above method when executed by a processor.
[0031] The present application proposes a storage system containerization method, device and equipment, the method comprising: in response to a node identification configuration request, obtaining a server of a node identification to be configured; configuring a node identification corresponding to the server according to a preset node identification configuration rule; deploying any of the node identifications as a master node identification, and the server corresponding to the master node identification as a master server, to realize storage system containerization. Based on the storage system containerization method described in the present application, it is possible to realize containerization of stateful nodes with master node roles, reduce containerization complexity and performance consumption, and have the beneficial effect of realizing that all master node roles are controllable. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the technical solutions in the embodiments of the present application, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0033] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:
[0034] Figure 1 A schematic diagram of a storage system containerization method according to an embodiment of the present application;
[0035] Figure 2 A schematic diagram of a storage system containerization method provided in another embodiment of the present application;
[0036] Figure 3 A schematic diagram of the structure of a storage system containerization device provided in yet another embodiment of the present application;
[0037] Figure 4 A schematic diagram of the structure of a storage system containerization device provided in yet another embodiment of the present application;
[0038] Figure 5 A schematic diagram of the structure of an electronic device suitable for implementing the solution in the embodiments of the present application;
[0039] The same or similar reference numerals in the drawings represent the same or similar components. DETAILED DESCRIPTION
[0040] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0041] In a typical configuration of the present application, the terminal and the equipment of the service network each include one or more processors (CPU), input / output interface, network interface and memory.
[0042] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0043] Computer readable media include permanent and non-permanent, removable and non-removable media, and can be implemented by any method or technology to store information. Information can be computer program instructions, data structures, modules of programs or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.
[0044] An embodiment of the present application provides a storage system containerization method, which is applied to a storage system, the storage system including at least two servers, and the method including:
[0045] In response to the node identification configuration request, a server for acquiring a node identification to be configured;
[0046] According to the preset node identification configuration rule, the node identification is configured corresponding to the server;
[0047] Deploy any of the node identifiers as a master node identifier, and a server corresponding to the master node identifier as a master server, thereby realizing containerization of the storage system.
[0048] In actual scenarios, the execution subject of the method can be a user device, or a device formed by integrating a user device and a network device through a network, or an application running on the above device. The user device includes but is not limited to various terminal devices such as computers, mobile phones, tablet computers, smart watches, and bracelets. The network device includes but is not limited to network hosts, single network servers, multiple network server sets, or cloud computing-based computer sets, which can be used to implement some processing functions when setting an alarm. Here, the cloud is composed of a large number of hosts or network servers based on cloud computing, where cloud computing is a type of distributed computing, a virtual computer composed of a group of loosely coupled computer sets.
[0049] Embodiment 1
[0050] Figure 1 The processing flow of a storage system containerization method provided in an embodiment of the present application is shown. The method is applied to a storage system, and the storage system includes at least two servers. The method includes at least the following processing steps:
[0051] Step S101: In response to a node identification configuration request, a server for obtaining a node identification to be configured;
[0052] Step S102: configuring a node identifier for the server according to a preset node identifier configuration rule;
[0053] Step S103: deploy any of the node identifiers as a master node identifier, and a server corresponding to the master node identifier as a master server, so as to realize containerization of the storage system.
[0054] The corresponding server configuration node identifier includes: configuring the node identifier of the master node in the configuration center of the storage system. Specifically, adding the node identifier of the master node in the configuration center means that the operation and maintenance personnel determine which of the existing nodes of the storage system is the master node in the configuration center (for example, when there are nodes 1, 2, and 3 at the same time, the operation and maintenance personnel configure one of nodes 1, 2, or 3 as the master node in the configuration center).
[0055] In one embodiment, the preset node mark configuration rule includes: based on the server of the node mark to be configured, obtaining the server name of the server, the server name at least including numbers; determining the last digit of the server name as the node mark of the server.
[0056] Among them, the reason for adopting the above-mentioned ID allocation rule is that: the last value of the server name needs to be used in order to prevent data sharing. If the server name is xxx-01, an ID of 1 can be assigned to this server. This ID is needed to be used internally as an identifier and also as the node identifier of the master node. For example, if xxx-01 is used as the leader identifier, the storage system also needs to allocate an ID, and if the generation rule in kubernetes management is changed and the server name is yyy-01, then the program needs to be modified. There is no such problem using id: 1. The id described in this application is the node identifier.
[0057] In one of the embodiments, the method further includes: in response to a server upgrade request, obtaining a node identifier of the server; and updating the node identifier of the server according to a preset node identifier update rule, corresponding to the updated node identifier of the server configuration.
[0058] In one of the embodiments, the node identifier of the server is updated according to a preset node identifier update rule. When the node identifier after the update is configured corresponding to the server, the method further includes: obtaining the running status of the main server; if the running status of the main server is running, stopping the running of the main server; after the node identifier after the update is configured corresponding to the server, determining that the server corresponding to the main node identifier is the main server.
[0059] In one of the implementation modes, the preset node identifier update rule includes: increasing at least one digit of the node identifier of any of the servers by a preset value.
[0060] Specifically, the statefulset mode is: assuming that the last number of the server in the original container is 1, when the statefulset mode is selected for deployment, the last number of the server in the container will be increased by 1 to 2 (correspondingly, the original 2 will become 3, 3 will become 4...); More specifically, in the statefulset mode, when starting the service, xxx-1, xxx-2, xxx-3 will be guaranteed. When the service is rolled out, xxx-3 will be stopped first, and then the new xxx-3 container will be started, and so on, until all containers are updated in the end.
[0061] In one of the embodiments, the method also includes: updating the node identifier of the server in sequence, and determining in real time whether the updated node identifier is consistent with the main node identifier; if the updated node identifier is consistent with the main node identifier, determining that the server corresponding to the updated node identifier is the main server.
[0062] Specifically, the node identifiers of the original servers are node 1, node 2, node 3, ... node n; the nodes of the server are updated starting from node 1 until the update of node n is completed; after all the nodes of the server are updated, the updated node identifier is compared with the main node identifier to determine whether the server corresponding to the updated node identifier is the main server.
[0063] Among them, the method for updating the node identification of the volume of this embodiment is: corresponding the original node identification to +1 respectively, that is, node 1 becomes node 2 after updating, node 2 becomes node 3 after updating, node 3 becomes node 4 after updating, and ... node n becomes node n+1 after updating; it should be understood that this application does not limit the method for updating the node identification, and technical personnel in this field can make a reasonable choice based on the actual application scenario.
[0064] Embodiment 2
[0065] Figure 2 The processing flow of a storage system containerization method provided in an embodiment of the present application is shown. The method is applied to a server of the storage system. The method includes at least the following processing steps:
[0066] Step S201, obtaining the master node identifier, and obtaining its node identifier through self-access according to a preset self-access cycle;
[0067] Step S202: If the node identifier obtained from the access is consistent with the master node identifier, the background task is executed;
[0068] Step S203: If the node identifier obtained through self-access is inconsistent with the master node identifier, wait for the next self-access cycle to obtain its node identifier.
[0069] In one of the implementations, the service is internally monitored, and if its node identifier is equal to the master node configured by the configuration center, a background task is started, otherwise a timed wait is performed; wherein, the background task includes each node needing to confirm whether it is the master node based on a self-access cycle, because the master node can be changed at will through the configuration of the configuration center, so each node is required to have a self-detection function, and self-access to confirm whether it is set as the master node.
[0070] Embodiment 3
[0071] Figure 3 A storage system containerization device provided in an embodiment of the present application is shown, and the device is applied to a storage system, and the storage system includes at least two servers. The device at least includes:
[0072] A response acquisition unit, configured to respond to a node identification configuration request and acquire a server of a node identification to be configured;
[0073] A node configuration unit, configured to configure a node identifier corresponding to the server according to a preset node identifier configuration rule;
[0074] The node deployment unit is used to deploy any of the node identifiers as a master node identifier, and the server corresponding to the master node identifier is a master server, so as to realize containerization of the storage system.
[0075] Embodiment 4
[0076] Figure 4 A storage system containerization device provided in an embodiment of the present application is shown, and the device is applied to a server of the storage system, and the device at least includes:
[0077] Acquiring an access unit to acquire a master node identifier and acquiring its node identifier by self-access according to a preset self-access cycle;
[0078] A task execution unit, configured to execute a background task if the node identifier obtained from the access is consistent with the master node identifier;
[0079] A timing unit is used to wait for the next self-access cycle to obtain its node identifier if the node identifier obtained through self-access is inconsistent with the master node identifier.
[0080] Embodiment 5
[0081] Based on the same inventive concept, an electronic device is also provided in an embodiment of the present application, and the method corresponding to the electronic device may be the method for storage system containerization in the aforementioned embodiment, and its principle of solving the problem is similar to that of the method. The electronic device provided in an embodiment of the present application includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the methods and / or technical solutions of the aforementioned multiple embodiments of the present application.
[0082] The electronic device may be a user device, or a device formed by integrating a user device and a network device through a network, or may be an application running on the above device. The user device includes but is not limited to various terminal devices such as computers, mobile phones, tablet computers, smart watches, and bracelets. The network device includes but is not limited to network hosts, single network servers, multiple network server sets, or cloud computing-based computer sets, which can be used to implement some processing functions when setting an alarm. Here, the cloud is composed of a large number of hosts or network servers based on cloud computing, where cloud computing is a type of distributed computing, a virtual computer composed of a group of loosely coupled computer sets.
[0083] Figure 5 The structure of an electronic device suitable for implementing the method and / or technical solution in the embodiment of the present application is shown, and the device 500 includes a central processing unit (CPU, Central Processing Unit) 501, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM, Read Only Memory) 502 or the program loaded from the storage part 508 to the random access memory (RAM, Random Access Memory) 503. In RAM503, various programs and data required for system operation are also stored. CPU 501, ROM 502 and RAM 503 are connected to each other through a bus 504. An input / output (I / O, Input / Output) interface 505 is also connected to the bus 504.
[0084] The following components are connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, a touch screen, a microphone, an infrared sensor, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), an LED display, an OLED display, etc., and a speaker, etc.; a storage section 508 including one or more computer-readable media such as a hard disk, an optical disk, a magnetic disk, a semiconductor memory, etc.; and a communication section 509 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet.
[0085] In particular, the methods and / or embodiments in the embodiments of the present application may be implemented as computer software programs. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes program code for executing the method shown in the flowchart. When the computer program is executed by the central processing unit (CPU) 501, the above functions defined in the method of the present application are executed.
[0086] Embodiment 6
[0087] Another embodiment of the present application further provides a computer-readable storage medium having computer program instructions stored thereon, wherein the computer program instructions can be executed by a processor to implement the methods and / or technical solutions of any one or more embodiments of the present application described above.
[0088] Specifically, the present embodiment can adopt any combination of one or more computer-readable media. Computer-readable media can be computer-readable signal media or computer-readable storage media. Computer-readable storage media can be, for example, but not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: electrical connections with one or more wires, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In this document, computer-readable storage media can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.
[0089] Computer readable signal media may include a data signal propagated in baseband or as part of a carrier wave, which carries a computer readable program code. Such propagated data signals may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the above. Computer readable signal media may also be any computer readable medium other than a computer readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, device, or device.
[0090] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0091] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0092] The flow chart or block diagram in the accompanying drawings shows the possible architecture, function and operation of the equipment, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated system for hardware that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0093] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0094] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or page components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0095] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0096] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0097] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform some steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program codes.
[0098] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
[0099] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in a device claim can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.
Claims
1. A storage system containerization method, characterized in that: The method is applied to a storage system, the storage system includes at least two servers, and the method includes: In response to the node identification configuration request, a server for acquiring a node identification to be configured; According to the preset node identification configuration rule, the node identification is configured corresponding to the server; Deploy any of the node identifiers as a master node identifier, and a server corresponding to the master node identifier as a master server, thereby realizing containerization of the storage system.
2. The storage system containerization method according to claim 1, characterized in that: The preset node flag configuration rules include: Based on the server identified by the node to be configured, obtaining a server name of the server, wherein the server name includes at least a number; The last digit of the server name is determined to be the node identifier of the server.
3. The storage system containerization method according to claim 2, characterized in that: The method further comprises: In response to the server upgrade request, obtaining a node identifier of the server; According to the preset node identification update rule, the node identification of the server is updated, and the node identification after the update is configured corresponding to the server.
4. The storage system containerization method according to claim 3, characterized in that: According to a preset node identification update rule, the node identification of the server is updated, and when the updated node identification is configured corresponding to the server, the method further includes: Obtaining the running status of the main server; If the running state of the main server is running, stop running the main server; After the updated node identifier is configured corresponding to the server, the server corresponding to the master node identifier is determined to be the master server.
5. The storage system containerization method according to claim 4, characterized in that: The preset node identification update rule includes: increasing at least one digit of the node identification of any of the servers by a preset value.
6. The storage system containerization method according to claim 5, characterized in that: The method further comprises: Update the node ID of the server in sequence, and determine in real time whether the updated node ID is consistent with the main node ID; If the updated node identifier is consistent with the master node identifier, the server corresponding to the updated node identifier is determined to be the master server.
7. A storage system containerization method, characterized in that: The method is applied to a server of a storage system, and the method comprises: Obtain the master node ID, and obtain its node ID through self-access according to the preset self-access cycle; If the node identifier obtained from the self-access is consistent with the master node identifier, the background task is executed; If the node identifier obtained through self-access is inconsistent with the master node identifier, then wait for the next self-access cycle to obtain its node identifier.
8. A storage system containerization device, characterized in that: The device is applied to a storage system, the storage system includes at least two servers, and the device includes: A response acquisition unit, configured to respond to a node identification configuration request and acquire a server of a node identification to be configured; A node configuration unit, configured to configure a node identifier corresponding to the server according to a preset node identifier configuration rule; The node deployment unit is used to deploy any of the node identifiers as a master node identifier, and the server corresponding to the master node identifier is a master server, so as to realize containerization of the storage system.
9. A storage system containerization device, characterized in that: The device is applied to a server of a storage system, and comprises: Acquiring an access unit to acquire a master node identifier and acquiring its node identifier by self-access according to a preset self-access cycle; A task execution unit, configured to execute a background task if the node identifier obtained from the access is consistent with the master node identifier; A timing unit is used to wait for the next self-access cycle to obtain its node identifier if the node identifier obtained through self-access is inconsistent with the master node identifier.
10. An electronic device, comprising: at least one processor; as well as A memory communicatively connected to the at least one processor; characterized in that The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 9.
11. A computer readable medium having computer program instructions stored thereon, characterized in that: The computer program instructions are executable by a processor to implement the method according to any one of claims 1 to 9.
12. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.