Multi-storage pool cluster online upgrading method and device, electronic equipment and storage medium

By determining the number of concurrent upgrades and optimizing the upgrade sequence based on cluster information, online upgrades are performed for multi-storage pool clusters, which solves the problems of long upgrade time and high MON service pressure, and achieves efficient and stable cluster upgrades.

CN118642816APending Publication Date: 2024-09-13ZHENGZHOU INSPUR DATA TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410841430.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-09-13

AI Technical Summary

Technical Problem

When a multi-storage pool cluster is upgraded online, the upgrade time is proportional to the number of cluster nodes, which consumes a lot of energy and time for maintenance personnel. In addition, concurrent upgrades put great pressure on the MON service and may affect cluster performance and stability.

Method used

Determine the number of concurrent upgrades based on the basic information of the storage pool to be upgraded in the cluster, and perform concurrent online upgrades for the target storage pool to ensure that only one node in a single storage pool is being upgraded. By limiting the number of concurrent upgrades and optimizing the upgrade sequence, avoid exceeding MON Service performance threshold.

Benefits of technology

It effectively shortens the upgrade time, ensures normal business operation, optimizes the impact of the upgrade process on the cluster, and ensures upgrade efficiency and stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118642816A
    Figure CN118642816A
Patent Text Reader

Abstract

The invention provides a multi-storage pool cluster online upgrading method and device, electronic equipment and a storage medium. The method comprises the following steps: determining a concurrent upgrading quantity according to basic information of a to-be-upgraded storage pool in a cluster; the basic information comprises cluster performance information, mon performance occupation information when each to-be-upgraded storage pool is upgraded, and capacity occupation information corresponding to each to-be-upgraded storage pool in a cluster; determining a target to-be-upgraded storage pool according to the number of the to-be-upgraded storage pools, the concurrent upgrading number and the basic information; performing concurrent online upgrading on the target to-be-upgraded storage pool; wherein only one node in the single storage pool executes upgrading at the same time. According to the method, by limiting the number of concurrent upgrading, normal operation of the service is guaranteed while the upgrading efficiency is guaranteed, and by determining the target storage pool to be upgraded, the upgrading sequence of the storage pool to be upgraded is optimized, and the influence of the upgrading process on the cluster is optimized.
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, electronic device and readable storage medium for online upgrading of a multi-storage pool cluster. Background Art

[0002] With the continuous advancement of science and technology, the data generated in various fields has increased exponentially, and the requirements for data processing capabilities have continued to increase. Building large-scale clusters for data collection, storage, calculation and distribution has become an industry consensus.

[0003] Large-scale clusters have a large number of nodes. To meet the needs of different businesses and applications within the same unit, different businesses are usually divided into different storage pools to meet business performance, reliability and capacity requirements. Clusters need to be upgraded according to the functions, performance and exception handling requirements of the use process. The commonly used online upgrade function is to upgrade the storage software version without affecting the cluster's business, so as to realize the launch of new functions and new requirements or fix known problems.

[0004] When upgrading a cluster with multiple storage pools online, if only one node in one storage pool is upgraded at a time, the overall upgrade time will be proportional to the number of cluster nodes. The larger the node scale, the longer the upgrade time will be, which will consume a lot of energy and time of maintenance personnel. If multiple storage pools are upgraded concurrently, the pressure on the MON service will be high. If the processing capacity of the MON service is exceeded, the performance and stability of the entire cluster will be affected. Summary of the invention

[0005] In view of the above problems, embodiments of the present invention are proposed to provide a method, device, electronic device and storage medium for online upgrading of a multi-storage pool cluster that overcomes the above problems or at least partially solves the above problems.

[0006] In a first aspect, an embodiment of the present application discloses a method for online upgrading a multi-storage pool cluster, the method comprising:

[0007] Determine the number of concurrent upgrades based on basic information of the storage pools to be upgraded in the cluster; the basic information includes: cluster performance information, mon performance occupancy information when each storage pool to be upgraded is upgraded, and capacity occupancy information corresponding to each storage pool to be upgraded in the cluster;

[0008] Determine a target storage pool to be upgraded according to the number of the storage pools to be upgraded, the number of concurrent upgrades, and the basic information;

[0009] The target storage pool to be upgraded is upgraded online concurrently; wherein, at the same time, only one node in a single storage pool is upgraded.

[0010] In a second aspect, an embodiment of the present application discloses a multi-storage pool cluster online upgrade device, the device comprising:

[0011] The first determination module is used to determine the number of concurrent upgrades based on basic information of the storage pools to be upgraded in the cluster; the basic information includes: cluster performance information, mon performance occupancy information when each storage pool to be upgraded is upgraded, and capacity occupancy information corresponding to each storage pool to be upgraded in the cluster;

[0012] A second determination module, configured to determine a target storage pool to be upgraded according to the number of the storage pools to be upgraded, the number of concurrent upgrades, and the basic information;

[0013] The upgrade module is used to perform concurrent online upgrades on the target storage pool to be upgraded; wherein, at the same time, only one node in a single storage pool performs the upgrade.

[0014] In a third aspect, an embodiment of the present application further discloses an electronic device, comprising a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.

[0015] In a fourth aspect, an embodiment of the present application further discloses a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0016] In a fifth aspect, an embodiment of the present application further discloses a computer program product, including a computer program or instructions, which, when executed by a processor, implement the steps of the method described in the first aspect.

[0017] In an embodiment of the present application, the number of concurrent upgrades is determined according to the basic information of the storage pools to be upgraded in the cluster; the basic information includes: cluster performance information, mon performance occupancy information when each storage pool to be upgraded is upgraded, and capacity occupancy information corresponding to each storage pool to be upgraded in the cluster; according to the number of storage pools to be upgraded, the number of concurrent upgrades, and the basic information, the target storage pool to be upgraded is determined; the target storage pool to be upgraded is concurrently upgraded online; wherein, at the same time, only one node in a single storage pool performs the upgrade. The method of the present application first determines the number of concurrent upgrades according to the basic information of the storage pools to be upgraded in the cluster to avoid excessive concurrent upgrades, resulting in the upgrade exceeding the MON service performance threshold. After determining the number of concurrent upgrades, the target storage pool to be upgraded is further determined from the storage pools to be upgraded according to a preset strategy, thereby concurrently upgrading the target storage pools to be upgraded of the number of concurrent upgrades, and only one node in a storage pool is upgraded at the same time. The method of the present application limits the number of concurrent upgrades, while ensuring the upgrade efficiency, it ensures the normal operation of the business, and through the determination of the target storage pool to be upgraded, optimizes the upgrade order of the storage pools to be upgraded, and optimizes the impact of the upgrade process on the cluster. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 It is a flowchart of the steps of a multi-storage pool cluster online upgrade method provided by an embodiment of the present invention;

[0019] Figure 2 It is a flowchart of the steps of another method for online upgrading a multi-storage pool cluster provided by an embodiment of the present invention;

[0020] Figure 3 It is a state diagram of an upgrade process of a storage pool to be upgraded provided by an embodiment of the present invention;

[0021] Figure 4 This is a third multi-storage pool cluster online upgrade flow chart provided by an embodiment of the present invention;

[0022] Figure 5 It is a block diagram of a multi-storage pool cluster online upgrade device provided by an embodiment of the present invention;

[0023] Figure 6 An electronic device provided by an embodiment of the present invention;

[0024] Figure 7 This is another electronic device provided by the present invention. DETAILED DESCRIPTION

[0025] The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to enable the scope of the present invention to be fully communicated to those skilled in the art.

[0026] The concepts and background involved in this application are explained below.

[0027] Cluster: A group of devices built using multiple devices that can be managed and used in a unified manner.

[0028] Cluster management software: software used to monitor, manage or maintain the device status and system resources of the entire cluster.

[0029] Storage node: refers to a hardware device equipped with CPU, memory, RAID card, hard disk and other components that can be used to build a storage cluster. It can be a server or other dedicated equipment.

[0030] Storage pool: refers to a logical concept composed of storage nodes of the same type. Data reading and writing are based on the storage pool.

[0031] Fault domain: refers to the smallest unit that does not affect business operations when a component or device on the device is abnormal.

[0032] Storage Management Service (MON): A service within each storage cluster that manages and maintains the distribution and status of data and metadata.

[0033] Online upgrade: refers to the process of upgrading the storage software version without affecting the normal use of the services carried by the cluster.

[0034] refer to Figure 1 , which shows a flowchart of the steps of the multi-storage pool cluster online upgrade method provided by an embodiment of the present application, the method comprising:

[0035] Step 101, determining the number of concurrent upgrades according to basic information of storage pools to be upgraded in the cluster; the basic information includes: cluster performance information, mon performance occupancy information of each storage pool to be upgraded during upgrade, and capacity occupancy information corresponding to each storage pool to be upgraded in the cluster.

[0036] In the embodiment of the present invention, the cluster can be divided into multiple storage pools, each of which can include at least one storage node. When the cluster is upgraded online, each storage pool is upgraded in parallel, and a single storage pool is upgraded in series.

[0037] The appropriate number of concurrent upgrades can ensure the efficiency of cluster upgrades while keeping the upgrade process unaffected. Therefore, the number of concurrent upgrades can be determined based on the basic information of the storage pools to be upgraded in the cluster. The basic information includes: cluster performance information, mon performance occupancy information when each storage pool to be upgraded is upgraded, and capacity occupancy information corresponding to each storage pool to be upgraded in the cluster. The cluster performance information can be used to characterize the current performance occupancy of the cluster itself. The mon performance occupancy information when each storage pool to be upgraded is used to characterize the mon performance occupied by the storage pool to be upgraded during the upgrade, that is, the occupied mon processing capacity. The capacity occupancy information corresponding to each storage pool to be upgraded in the cluster can be used to characterize the current used capacity of the storage pool to be upgraded. For example, according to the mon performance occupied by the storage pool to be upgraded during the upgrade, it can be determined that when N storage pools to be upgraded are upgraded online concurrently, the mon performance occupied can be determined to determine whether the mon service capacity has been exceeded, and then the value of N can be adjusted to ensure the normal mon service during the upgrade process. The number of concurrent upgrades can be determined based on the above basic information to avoid the number of concurrent upgrades being too large in a single time, which affects the upgrade process.

[0038] Step 102: Determine a target storage pool to be upgraded according to the number of the storage pools to be upgraded, the number of concurrent upgrades, and the basic information.

[0039] In the embodiment of the present invention, the target storage pool to be upgraded is a storage pool to be upgraded first selected from all storage pools to be upgraded based on the number of concurrent upgrades. During the upgrade, the upgrade order can be optimized by determining the target storage pool to be upgraded, thereby improving the upgrade efficiency.

[0040] Specifically, the target storage pool to be upgraded can be determined based on the number of storage pools to be upgraded, the number of concurrent upgrades, and basic information. Since only one node in a single storage pool to be upgraded is upgraded at the same time during each upgrade, the number of concurrent upgrades should be less than or equal to the number of storage pools to be upgraded. Furthermore, the target storage pool to be upgraded can be determined by further referring to the basic information. For example, the capacity occupancy information corresponding to the storage pool to be upgraded can be obtained based on the basic information. Then, when determining the target storage pool to be upgraded, the storage capacity occupancy information corresponding to each storage pool can be considered at the same time. For any storage pool to be upgraded, the storage capacity occupancy information can determine the current used capacity occupancy. If the used capacity occupancy is small, it indicates that the amount of data stored on the storage pool with the upgrade is small. In one scenario, if the user wants to perform a simple verification for a certain business, then when selecting the storage pool to be upgraded, the storage pool to be upgraded with less used capacity occupancy can be selected to quickly complete the upgrade verification while minimizing the impact on the cluster.

[0041] The solution of the present application can determine the target storage pool to be upgraded based on actual needs. For new features, new functions or problem repairs, the minimum granularity verification requirements can be met by changing the selection strategy of the target storage pool to be upgraded.

[0042] Step 103, performing a concurrent online upgrade on the target storage pool to be upgraded; wherein, at the same time, only one node in a single storage pool performs an upgrade.

[0043] In an embodiment of the present invention, after the target storage pool to be upgraded is determined, the target storage pool to be upgraded can be upgraded in parallel, wherein only one node in a single storage pool performs the upgrade at the same time, so as to further improve the business performance and stability during the upgrade without significantly reducing the upgrade efficiency.

[0044] In summary, in an embodiment of the present application, the number of concurrent upgrades is determined based on the basic information of the storage pools to be upgraded in the cluster; the basic information includes: cluster performance information, mon performance occupancy information of each storage pool to be upgraded during the upgrade, and capacity occupancy information corresponding to each storage pool to be upgraded in the cluster; based on the number of storage pools to be upgraded, the number of concurrent upgrades, and the basic information, the target storage pool to be upgraded is determined; the target storage pool to be upgraded is concurrently upgraded online; wherein, at the same time, only one node in a single storage pool performs the upgrade. The method of the present application first determines the number of concurrent upgrades based on the basic information of the storage pool to be upgraded in the cluster to avoid excessive concurrent upgrades, which causes the upgrade to exceed the MON service performance threshold. After determining the number of concurrent upgrades, the target storage pool to be upgraded is further determined from the storage pool to be upgraded according to a preset strategy, so as to concurrently upgrade the target storage pool to be upgraded with the number of concurrent upgrades, and only one node in a storage pool is upgraded at the same time. The method of the present application ensures the normal operation of the business while ensuring the upgrade efficiency by limiting the number of concurrent upgrades, and optimizes the upgrade order of the storage pool to be upgraded by determining the target storage pool to be upgraded, and optimizes the impact of the upgrade process on the cluster.

[0045] refer to Figure 2 , which shows a flowchart of the steps of another multi-storage pool cluster online upgrade method provided by an embodiment of the present application, the method comprising:

[0046] Step 201, determine the number of concurrent upgrades based on basic information of storage pools to be upgraded in the cluster; the basic information includes: cluster performance information, mon performance occupancy information when each storage pool to be upgraded is upgraded, and capacity occupancy information corresponding to each storage pool to be upgraded in the cluster.

[0047] This step may refer to step 101 and will not be described in detail here.

[0048] Optionally, the initial value of the concurrent upgrade quantity is equal to the quantity of storage pools to be upgraded, and step 201 includes:

[0049] Sub-step 2011, when the current performance occupancy value of the cluster exceeds the first threshold, determining a first correction value according to a numerical interval where the value of the performance occupancy value exceeds the first threshold;

[0050] Sub-step 2012: Determine the value obtained by subtracting the first correction value from the initial value of the concurrent upgrade quantity as the first concurrent upgrade quantity.

[0051] In the embodiment of the present application, for sub-step 2011 and sub-step 2012, when determining the number of concurrent upgrades, it can be determined based on cluster performance information.

[0052] Specifically, the first threshold value can be used to characterize the performance threshold value of the cluster. For example, the first threshold value can be determined as 80%. If the current performance occupancy value of the cluster exceeds 80%, it indicates that the initial value of the number of concurrent upgrades needs to be revised to avoid the concurrent upgrade process affecting the service performance. For example, if the current performance occupancy value of the cluster is 85%, and the value exceeding the first threshold value is 5%, then the first correction value can be determined according to the preset value interval. For example, if the value exceeding the first threshold value is between 0-5%, then the first correction value is 1, if the value exceeding the first threshold value is between 5%-10% (excluding 5%), then the first correction value is 2, if the value exceeding the first threshold value is between 10%-15% (excluding 10%), then the first correction value is 3, and so on. Then, if the current performance occupancy value of the cluster is 85%, the corresponding first correction value is 1, that is, the number of concurrent upgrades should be subtracted by 1 from the initial value. If the initial value of the number of concurrent upgrades is 4, then the revised first number of concurrent upgrades should be 3. By considering the cluster performance threshold value, it is avoided that when the current performance occupancy value of the cluster exceeds the first threshold value, the number of concurrent upgrades is too high, which affects the normal service of the cluster. Among them, the determination of the first threshold, the numerical range, and the first correction value can be set according to actual needs, and the embodiments of the present application are not limited here.

[0053] Sub-step 2013: if the accumulated value of the mon performance occupancy during the upgrade of each storage pool to be upgraded exceeds the second threshold, determine a second correction value; the second correction value is the value obtained by subtracting the second correction value from the initial value of the concurrent upgrade quantity, so that the accumulated value of the mon performance occupancy during the upgrade of each storage pool to be upgraded is less than or equal to the second threshold;

[0054] Sub-step 2014: Determine the value obtained by subtracting the second correction value from the initial value of the concurrent upgrade quantity as the second concurrent upgrade quantity.

[0055] In the embodiment of the present application, for sub-steps 2013 and 2014, when determining the number of concurrent upgrades, it can be determined based on the mon performance occupancy information when each storage pool to be upgraded is upgraded.

[0056] Specifically, the second threshold can be used to characterize the mon performance occupancy threshold. For example, the second threshold can be determined as 80%. If the mon performance occupancy threshold exceeds 80%, it indicates that the initial value of the concurrent upgrade number needs to be corrected to avoid mon service abnormalities. For example, if a single storage pool to be upgraded occupies a processing capacity ratio x when upgrading, if the number of concurrent upgrades *x>80%, it indicates that the current number of concurrent upgrades is too large. If concurrent upgrades are performed simultaneously according to the current number of concurrent upgrades, it may result in exceeding the mon service capacity, and the performance and stability of the entire cluster will be affected. Therefore, it is necessary to reduce the number of concurrent upgrades based on the current number of concurrent upgrades. The second correction value indicates the number that needs to be reduced, that is, when the number of concurrent upgrades is subtracted from the second correction value, the number of concurrent upgrades obtained can make the cumulative value of the mon performance occupancy when each storage pool to be upgraded is upgraded less than or equal to the value of the second threshold. For example, for four storage pools to be upgraded, if the proportion of mon processing capacity occupied during the upgrade of a single storage pool to be upgraded is 21%, then if the four storage pools to be upgraded are upgraded in parallel, the proportion of processing capacity occupied is 84%. Since 84% exceeds the second threshold of 80%, the second correction value can be determined to be 1, that is, the value 3 obtained by subtracting the second correction value 1 from the initial value of the concurrent upgrade number 4 can be determined as the second concurrent upgrade number. If it is the second concurrent upgrade number, the proportion of processing capacity occupied is 63%, which satisfies the requirement that the cumulative value of performance occupation is less than the value of the second threshold, that is, the corrected second concurrent number can ensure the performance reliability and stability of the entire cluster during the upgrade process.

[0057] Sub-step 2015, determining the number of storage pools to be upgraded whose capacity usage exceeds a third threshold among the storage pools to be upgraded;

[0058] Sub-step 2016: The value obtained by subtracting the number of storage pools to be upgraded whose capacity occupancy exceeds a third threshold from the initial value of the concurrent upgrade number is used as the third concurrent upgrade number.

[0059] In the embodiment of the present application, for sub-steps 2015 and 2016, when determining the number of concurrent upgrades, it can be determined based on the capacity occupancy information in the storage pool.

[0060] Specifically, the third threshold can be used to characterize the predicted occupied capacity of the storage pool. For example, the third threshold can be determined as 80%. If the current capacity occupancy value of the storage pool to be upgraded exceeds 80%, it indicates that the initial value of the number of concurrent upgrades needs to be revised to avoid the concurrent upgrade process affecting business performance. For example, if there is a storage pool to be upgraded whose current performance occupancy value exceeds 80%, then the number of concurrent upgrades is reduced by 1 based on the initial value. For example, if the number of storage pools to be upgraded is 4, and the number of storage pools to be upgraded whose capacity occupancy exceeds the third threshold is 2, then the third concurrent upgrade number is 4 minus 2, which is 2. The present application takes into account the occupied capacity of each storage pool to be upgraded to avoid excessive concurrent upgrades and affecting the normal business of the cluster. Among them, the third threshold can be set according to actual needs, and the embodiments of the present application are not limited here.

[0061] Sub-step 2017: determining a final concurrent upgrade quantity according to the first concurrent upgrade quantity, the second concurrent upgrade quantity, and the third concurrent upgrade quantity.

[0062] In an embodiment of the present application, when determining the number of concurrent upgrades, it can be determined according to the above-mentioned basic information respectively. When determining, the values ​​obtained after the above-mentioned strategies are determined can be fully referred to. For example, the minimum value among the first concurrent upgrade number, the second concurrent upgrade number and the third concurrent upgrade number can be selected as the final number of concurrent upgrades, or the three concurrent upgrade numbers determined above can be comprehensively combined to comprehensively determine the final number of concurrent upgrades by weighting each method. While ensuring the upgrade efficiency, the normal business operation of the cluster can be taken into account. In addition, the number of concurrent upgrades can also be directly specified based on actual conditions, and the embodiment of the present application does not limit this.

[0063] Optionally, sub-step 2017 includes:

[0064] Sub-step 20171: if the first concurrent upgrade quantity, the second concurrent upgrade quantity, and the third concurrent upgrade quantity are all values ​​greater than zero, selecting the minimum value among the first concurrent upgrade quantity, the second concurrent upgrade quantity, and the third concurrent upgrade quantity as the final concurrent upgrade quantity;

[0065] Sub-step 20172: If any value of the first concurrent upgrade number, the second concurrent upgrade number, and the third concurrent upgrade number is zero, determine that the concurrent upgrade number is 1.

[0066] In the embodiment of the present application, for sub-steps 20171 and 20172, if the first concurrent upgrade number, the second concurrent upgrade number, and the third concurrent upgrade number are all values ​​greater than zero, the minimum value among the first concurrent upgrade number, the second concurrent upgrade number, and the third concurrent upgrade number is selected as the final concurrent upgrade number; if any value among the first concurrent upgrade number, the second concurrent upgrade number, and the third concurrent upgrade number is zero, the concurrent upgrade number is determined to be 1. That is, it is ensured that at least one storage pool to be upgraded is upgraded normally.

[0067] Step 202: Determine a target storage pool to be upgraded according to the number of the storage pools to be upgraded, the number of concurrent upgrades, and the basic information.

[0068] Optionally, step 202 includes:

[0069] Sub-step 2021: if the number of the storage pools to be upgraded is less than or equal to the concurrent upgrade number, all the storage pools to be upgraded are determined as target storage pools to be upgraded;

[0070] Sub-step 2022: If the number of the storage pools to be upgraded is greater than the number of concurrent upgrades, determine the target storage pool to be upgraded according to the basic information.

[0071] In the embodiment of the present invention, for sub-steps 2021 and 2022, if the number of the storage pools to be upgraded is less than or equal to the number of concurrent upgrades, it indicates that all the storage pools to be upgraded can be upgraded in parallel, and the parallel upgrade will not affect other services of the cluster. If the number of the storage pools to be upgraded is greater than the number of concurrent upgrades, it is necessary to select the target storage pool to be upgraded for upgrading according to a preset strategy to ensure the upgrade efficiency and reduce the impact of the upgrade on the cluster.

[0072] Optionally, the basic information further includes: the number of non-upgraded nodes in each storage pool to be upgraded and performance requirement information of each storage pool to be upgraded; sub-step 2022 includes:

[0073] Sub-step 20221, sorting the numbers of non-upgraded nodes in each of the storage pools to be upgraded, and preferentially selecting the storage pool to be upgraded with a large number of non-upgraded nodes as the target storage pool to be upgraded.

[0074] In the embodiment of the present application, when determining the target storage pool to be upgraded, the storage pool to be upgraded may be sorted according to the number of non-upgraded nodes in the storage pool to be upgraded, and the storage pool to be upgraded with a large number of non-upgraded nodes may be preferentially selected as the target storage pool to be upgraded. Figure 3 , Figure 3This is a state diagram of the upgrade process of a storage pool to be upgraded provided by an embodiment of the present application. For example, if there are 4 storage pools to be upgraded and the number of concurrent upgrades is 3, there are 36 remaining nodes in storage pool A to be upgraded, 30 remaining nodes in storage pool B to be upgraded, 20 remaining nodes in storage pool C to be upgraded, and 10 remaining nodes in storage pool D to be upgraded. According to the above strategy, the target storage pools to be upgraded are determined to be pool A, pool B, and pool C. If the upgrade time of each node in the storage pool to be upgraded is consistent, then after all nodes in pool C are upgraded, pool D can be included in the scope of the target storage pool to be upgraded for upgrading. Pool D is upgraded at the same time as the remaining 6 nodes in pool A, that is, the total upgrade time of the four storage pools to be upgraded is actually the time taken to upgrade 36 nodes in storage pool A to be upgraded. If the target storage pools to be upgraded are determined to be pools B, C, and D, and after pool D upgrades 10 nodes, pool A is included in the target storage pools to be upgraded for upgrading. Then, the time to complete the upgrade of the four storage pools to be upgraded is the sum of the time to upgrade the 10 nodes of pool D and the time to upgrade the 36 nodes of pool A. It can be seen that the application's method of preferentially selecting the storage pool to be upgraded with a large number of non-upgraded nodes as the target storage pool to be upgraded can effectively save the total upgrade time and improve the upgrade efficiency.

[0075] Sub-step 20222, sorting the storage pools to be upgraded according to their used capacities, and preferentially selecting the storage pool to be upgraded with the least used capacity as the target storage pool to be upgraded;

[0076] Sub-step 20223: sorting the storage pools to be upgraded according to their performance requirements, and preferentially selecting the storage pool to be upgraded with a low performance requirement as the target storage pool to be upgraded.

[0077] In the embodiment of the present application, for sub-step 20222 and sub-step 20223, the method of selecting the target storage pool to be upgraded can also be to sort according to the used capacity of each storage pool to be upgraded, and give priority to selecting the storage pool to be upgraded with less used capacity as the target storage pool to be upgraded, or to sort according to the performance requirements of each storage pool to be upgraded, and give priority to selecting the storage pool to be upgraded with low performance requirements as the target storage pool to be upgraded. In different business scenarios, the upgrade requirements for storage pools are different. For example, when performing functional verification, in order to quickly perform verification, a storage pool to be upgraded with less used capacity can be selected as the target storage pool to be upgraded to reduce the impact of the upgrade process on the cluster, or a storage pool to be upgraded with low performance requirements can be selected as the target storage pool to be upgraded to reduce the impact of the upgrade process on normal business.

[0078] The method of the present application can select different strategies to determine the target storage pool to be upgraded according to actual needs when upgrading a multi-storage pool cluster, and meet the upgrade requirements in different scenarios by optimizing the upgrade order of the storage pool to be upgraded.

[0079] Optionally, sub-step 2022 includes:

[0080] Sub-step 20224: In response to the selection operation on the storage pool to be upgraded, the selected storage pool to be upgraded is used as the target storage pool to be upgraded.

[0081] In the embodiment of the present application, the upgrade scope can also be controlled independently, that is, the user can select the target storage pool to be upgraded by interacting with the upgrade management program, and independently choose to upgrade or not upgrade a storage pool, making the upgrade management of the storage pool more flexible and easy.

[0082] Step 203: Record the upgrade process of the target storage pool to be upgraded, and mark the upgrade completion status and upgrade in progress status of the target storage pool to be upgraded.

[0083] Step 204, checking whether there is any storage pool to be upgraded that has not started upgrading in the cluster by using the mark;

[0084] Step 205: If there are storage pools to be upgraded that have not started upgrading, a target storage pool to be upgraded is determined from the storage pools to be upgraded that have not started upgrading, and the upgrading operation is continued until all storage pools to be upgraded are upgraded.

[0085] In the embodiment of the present invention, for steps 203 to 205, during the upgrade process, if all nodes in a storage pool have been upgraded, the storage pool upgrade status is set to upgraded. At this time, check whether there are any storage pools that have not been upgraded. If so, select a new storage pool to be upgraded according to the target storage pool selection strategy to be upgraded and include it in the concurrent upgrade scope. If no storage pool has been upgraded, continue to wait until all nodes in a storage pool have been upgraded. When all non-upgraded storage pools enter the upgrading state, continue to wait until all nodes in the storage pool have been upgraded, and the overall upgrade is completed.

[0086] refer to Figure 4 , Figure 4 The third multi-storage pool cluster online upgrade flow chart provided in the embodiment of the present application is shown, including:

[0087] Start upgrading and obtain basic information, where the basic information may include: basic information of storage pools, including the number of storage pools and the number of nodes in the pool; storage pool upgrade information, including upgrade status (completed upgrade, incomplete upgrade, not upgraded), number of incomplete nodes in the pool, and node list; storage pool capacity information, including maximum capacity and used capacity; storage pool performance information, including current performance, average performance in the past week, average performance in January, etc. Filter the upgraded storage pools based on the basic information obtained to provide a basis for setting the concurrency number and automatic storage pool selection strategy in the next step. Specifically, set the concurrency number m. Filter out the upgraded storage pools. The value of m cannot exceed the number of storage pools that have not been upgraded (assuming it is N). The concurrency number needs to take into account the amount of data in the cluster, that is, the used capacity, current performance, and MON service processing capacity of each storage pool. Determine the subsequent strategy based on the set concurrency number: If the concurrency number m is equal to the number of storage pools that have not been upgraded N. Then the storage pools that have not been upgraded are upgraded concurrently. If the concurrency number m is less than the number of storage pools that have not been upgraded N. Then a) Manually select the storage pool to be upgraded. Manually select m storage pools from N storage pools that have not been upgraded as the storage pools to be upgraded. b) Automatically select m storage pools to be upgraded according to the policy. The policies are:

[0088] 1) Sort by the number of remaining nodes that have not been upgraded in the pool, and give priority to upgrading the storage pool with more remaining nodes. Default policy. 2) Sort by the used capacity of the pool, and give priority to upgrading the storage pool with less used capacity. 3) Sort by the performance of the pool, and give priority to upgrading the storage pool with lower performance requirements. According to the above policies, the storage pool to be upgraded can be determined, and concurrent upgrades can be performed, and the upgrade status of the storage pool can be continuously monitored: if all nodes in a storage pool have been upgraded, the storage pool upgrade status is set to upgraded completed. At this time, check whether there are any storage pools that have not been upgraded (because m<=M). If so, select a new storage pool to be included in the concurrent upgrade scope according to the default storage pool selection policy. If no storage pool has been upgraded, continue to wait until all nodes in a storage pool have been upgraded. When all storage pools that have not been upgraded enter the upgrading state, continue to wait until all nodes in all storage pools have been upgraded, and the overall upgrade is complete.

[0089] The method of this application can independently determine the number of concurrency, and the concurrency is more controllable. Based on the consideration of MON service pressure, the impact of concurrent upgrades on business and cluster stability in multi-pool scenarios is reduced; the storage pool for concurrent upgrades can be manually specified, or the storage pool can be selected according to the provided strategy. In extreme cases, it can be compatible with single pool upgrades, or all pools can be upgraded concurrently to meet the needs of various upgrade scenarios, making the storage pool for concurrent upgrades more controllable; when a storage pool upgrade is completed, the storage pool with a large number of remaining nodes is given priority, which can save the overall upgrade time and make the concurrency maintenance strategy more reasonable.

[0090] In summary, in an embodiment of the present application, the number of concurrent upgrades is determined based on the basic information of the storage pools to be upgraded in the cluster; the basic information includes: cluster performance information, mon performance occupancy information of each storage pool to be upgraded during the upgrade, and capacity occupancy information corresponding to each storage pool to be upgraded in the cluster; based on the number of storage pools to be upgraded, the number of concurrent upgrades, and the basic information, the target storage pool to be upgraded is determined; the target storage pool to be upgraded is concurrently upgraded online; wherein, at the same time, only one node in a single storage pool performs the upgrade. The method of the present application first determines the number of concurrent upgrades based on the basic information of the storage pool to be upgraded in the cluster to avoid excessive concurrent upgrades, which causes the upgrade to exceed the MON service performance threshold. After determining the number of concurrent upgrades, the target storage pool to be upgraded is further determined from the storage pool to be upgraded according to a preset strategy, so as to concurrently upgrade the target storage pool to be upgraded with the number of concurrent upgrades, and only one node in a storage pool is upgraded at the same time. The method of the present application ensures the normal operation of the business while ensuring the upgrade efficiency by limiting the number of concurrent upgrades, and optimizes the upgrade order of the storage pool to be upgraded by determining the target storage pool to be upgraded, and optimizes the impact of the upgrade process on the cluster.

[0091] refer to Figure 5 , which shows a multi-storage pool cluster online upgrade device 30 provided in an embodiment of the present application, the device comprising:

[0092] The first determination module 30 is used to determine the number of concurrent upgrades according to the basic information of the storage pools to be upgraded in the cluster; the basic information includes: cluster performance information, mon performance occupancy information when each storage pool to be upgraded is upgraded, and capacity occupancy information corresponding to each storage pool to be upgraded in the cluster;

[0093] A second determination module 301 is used to determine a target storage pool to be upgraded according to the number of the storage pools to be upgraded, the number of concurrent upgrades and the basic information;

[0094] The upgrade module 302 is used to perform concurrent online upgrades on the target storage pool to be upgraded; wherein, at the same time, only one node in a single storage pool performs an upgrade.

[0095] Optionally, the second determining module includes:

[0096] A first submodule is configured to determine all the storage pools to be upgraded as target storage pools to be upgraded if the number of the storage pools to be upgraded is less than or equal to the number of concurrent upgrades;

[0097] The second submodule is configured to determine a target storage pool to be upgraded according to the basic information if the number of the storage pools to be upgraded is greater than the number of concurrent upgrades.

[0098] Optionally, the basic information further includes: the number of non-upgraded nodes in each storage pool to be upgraded and performance requirement information of each storage pool to be upgraded; the second submodule includes:

[0099] A first determining unit is used to sort the number of non-upgraded nodes in each storage pool to be upgraded, and preferentially select a storage pool to be upgraded with a large number of non-upgraded nodes as the target storage pool to be upgraded;

[0100] Alternatively, the second determining unit is configured to sort the storage pools to be upgraded according to their used capacities, and preferentially select the storage pool to be upgraded with the least used capacity as the target storage pool to be upgraded;

[0101] Alternatively, the third determining unit is configured to sort the storage pools to be upgraded according to their performance requirements, and preferentially select a storage pool to be upgraded with a low performance requirement as the target storage pool to be upgraded.

[0102] Optionally, the initial value of the concurrent upgrade quantity is equal to the quantity of storage pools to be upgraded, and the first determination module includes:

[0103] The third submodule is used to determine the first correction value according to the numerical interval where the value of the performance occupancy value exceeds the first threshold value when the current performance occupancy value of the cluster exceeds the first threshold value;

[0104] A first determining submodule, configured to determine a value obtained by subtracting the first correction value from the initial value of the concurrent upgrade quantity as a first concurrent upgrade quantity;

[0105] The fourth submodule is used to determine a second correction value if the cumulative value of the mon performance occupancy when each storage pool to be upgraded is upgraded exceeds a second threshold; the second correction value is the value that makes the cumulative value of the mon performance occupancy when each storage pool to be upgraded is less than or equal to the second threshold after deducting the second correction value from the initial value of the concurrent upgrade number;

[0106] A second determining submodule, configured to determine a value obtained by subtracting the second correction value from the initial value of the concurrent upgrade quantity as a second concurrent upgrade quantity;

[0107] A fifth submodule is used to determine the number of storage pools to be upgraded whose capacity usage exceeds a third threshold in the storage pools to be upgraded;

[0108] A third determination submodule, configured to obtain a value obtained by subtracting the number of storage pools to be upgraded whose capacity occupancy exceeds a third threshold from the initial value of the concurrent upgrade number, as a third concurrent upgrade number;

[0109] The fourth determining submodule is used to determine a final concurrent upgrade number according to the first concurrent upgrade number, the second concurrent upgrade number and the third concurrent upgrade number.

[0110] Optionally, the fourth determining submodule includes:

[0111] a first selection unit, configured to select a minimum value among the first concurrent upgrade number, the second concurrent upgrade number and the third concurrent upgrade number as a final concurrent upgrade number if the first concurrent upgrade number, the second concurrent upgrade number and the third concurrent upgrade number are all values ​​greater than zero;

[0112] The second selection unit is configured to determine that the concurrent upgrade number is 1 if any value of the first concurrent upgrade number, the second concurrent upgrade number, and the third concurrent upgrade number is zero.

[0113] Optionally, the upgrade module includes:

[0114] A recording submodule, used for recording the upgrade process of the target storage pool to be upgraded, and marking the upgrade completion status and upgrade in progress status of the target storage pool to be upgraded;

[0115] A checking submodule, used for checking whether there is any storage pool to be upgraded in the cluster that has not started upgrading by using the mark;

[0116] The upgrade submodule is used to determine a target storage pool to be upgraded from the storage pools to be upgraded that have not started upgrading, and continue to perform the upgrade operation until all storage pools to be upgraded are upgraded.

[0117] Optionally, the second submodule includes:

[0118] The autonomous selection unit is used to respond to the selection operation of the storage pool to be upgraded and use the selected storage pool to be upgraded as the target storage pool to be upgraded.

[0119] In summary, in an embodiment of the present application, the number of concurrent upgrades is determined based on the basic information of the storage pools to be upgraded in the cluster; the basic information includes: cluster performance information, mon performance occupancy information of each storage pool to be upgraded during the upgrade, and capacity occupancy information corresponding to each storage pool to be upgraded in the cluster; based on the number of storage pools to be upgraded, the number of concurrent upgrades, and the basic information, the target storage pool to be upgraded is determined; the target storage pool to be upgraded is concurrently upgraded online; wherein, at the same time, only one node in a single storage pool performs the upgrade. The method of the present application first determines the number of concurrent upgrades based on the basic information of the storage pool to be upgraded in the cluster to avoid excessive concurrent upgrades, which causes the upgrade to exceed the MON service performance threshold. After determining the number of concurrent upgrades, the target storage pool to be upgraded is further determined from the storage pool to be upgraded according to a preset strategy, so as to concurrently upgrade the target storage pool to be upgraded with the number of concurrent upgrades, and only one node in a storage pool is upgraded at the same time. The method of the present application ensures the normal operation of the business while ensuring the upgrade efficiency by limiting the number of concurrent upgrades, and optimizes the upgrade order of the storage pool to be upgraded by determining the target storage pool to be upgraded, and optimizes the impact of the upgrade process on the cluster.

[0120] Figure 6 A block diagram of an electronic device 600 is shown according to an exemplary embodiment. For example, the electronic device 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0121] Reference Figure 6 , the electronic device 600 may include one or more of the following components: a processing component 602 , a memory 604 , a power component 606 , a multimedia component 608 , an audio component 610 , an input / output (I / O) interface 612 , a sensor component 614 , and a communication component 616 .

[0122] The processing component 602 generally controls the overall operation of the electronic device 600, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 602 may include one or more modules to facilitate the interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate the interaction between the multimedia component 608 and the processing component 602.

[0123] The memory 604 is used to store various types of data to support the operation of the electronic device 600. Examples of such data include instructions for any application or method operating on the electronic device 600, contact data, phone book data, messages, pictures, multimedia, etc. The memory 604 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0124] The power supply component 606 provides power to the various components of the electronic device 600. The power supply component 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 600.

[0125] The multimedia component 608 includes a screen that provides an output interface between the electronic device 600 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front camera and / or a rear camera. When the electronic device 600 is in an operating mode, such as a shooting mode or a multimedia mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0126] The audio component 610 is used to output and / or input audio signals. For example, the audio component 610 includes a microphone (MIC), and when the electronic device 600 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is used to receive an external audio signal. The received audio signal can be further stored in the memory 604 or sent via the communication component 616. In some embodiments, the audio component 610 also includes a speaker for outputting audio signals.

[0127] I / O interface 612 provides an interface between processing component 602 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0128] The sensor assembly 614 includes one or more sensors for providing various aspects of status assessment for the electronic device 600. For example, the sensor assembly 614 can detect the open / closed state of the electronic device 600, the relative positioning of the components, such as the display and keypad of the electronic device 600, and the sensor assembly 614 can also detect the position change of the electronic device 600 or a component of the electronic device 600, the presence or absence of contact between the user and the electronic device 600, the orientation or acceleration / deceleration of the electronic device 600, and the temperature change of the electronic device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 614 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0129] The communication component 616 is used to facilitate wired or wireless communication between the electronic device 600 and other devices. The electronic device 600 can access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G or 5G), or a combination thereof. In an exemplary embodiment, the communication component 616 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0130] In an exemplary embodiment, the electronic device 600 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to implement a multi-storage pool cluster online upgrade method provided in an embodiment of the present application.

[0131] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 604 including instructions, and the instructions can be executed by a processor 620 of an electronic device 600 to perform the above method. For example, the non-transitory storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0132] Figure 7A block diagram of an electronic device 700 is shown according to an exemplary embodiment. For example, the electronic device 700 can be provided as a server. Figure 7 The electronic device 700 includes a processing component 722, which further includes one or more processors, and a memory resource represented by a memory 732, for storing instructions that can be executed by the processing component 722, such as an application. The application stored in the memory 732 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 722 is configured to execute instructions to perform a multi-storage pool cluster online upgrade method provided in an embodiment of the present application.

[0133] The electronic device 700 may also include a power supply component 726 configured to perform power management of the electronic device 700, a wired or wireless network interface 750 configured to connect the electronic device 700 to a network, and an input / output (I / O) interface 758. The electronic device 700 may operate based on an operating system stored in the memory 732, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™ or the like.

[0134] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the application disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0135] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A multi-storage pool cluster online upgrade method, characterized in that: The method comprises: Determine the number of concurrent upgrades based on basic information of the storage pools to be upgraded in the cluster; the basic information includes: cluster performance information, mon performance occupancy information when each storage pool to be upgraded is upgraded, and capacity occupancy information corresponding to each storage pool to be upgraded in the cluster; Determine a target storage pool to be upgraded according to the number of the storage pools to be upgraded, the number of concurrent upgrades, and the basic information; The target storage pool to be upgraded is upgraded online concurrently; wherein, at the same time, only one node in a single storage pool is upgraded.

2. The method according to claim 1, characterized in that The step of determining a target storage pool to be upgraded according to the number of the storage pools to be upgraded, the number of concurrent upgrades, and the basic information includes: If the number of the storage pools to be upgraded is less than or equal to the concurrent upgrade number, all the storage pools to be upgraded are determined as target storage pools to be upgraded; If the number of the storage pools to be upgraded is greater than the concurrent upgrade number, a target storage pool to be upgraded is determined according to the basic information.

3. The method according to claim 2, characterized in that The basic information also includes: the number of unupgraded nodes in each storage pool to be upgraded and the performance requirement information of each storage pool to be upgraded; if the number of the storage pools to be upgraded is greater than the number of concurrent upgrades, determining the target storage pool to be upgraded according to the basic information includes: Sorting the number of non-upgraded nodes in each of the storage pools to be upgraded, and preferentially selecting a storage pool to be upgraded with a large number of non-upgraded nodes as the target storage pool to be upgraded; Alternatively, the storage pools to be upgraded are sorted according to their used capacities, and a storage pool to be upgraded with a smaller used capacity is preferentially selected as the target storage pool to be upgraded; Alternatively, the storage pools to be upgraded are sorted according to their performance requirements, and a storage pool to be upgraded with a low performance requirement is preferentially selected as the target storage pool to be upgraded.

4. The method according to claim 1, characterized in that: The initial value of the number of concurrent upgrades is equal to the number of storage pools to be upgraded, and the determining the number of concurrent upgrades according to basic information of the storage pools to be upgraded in the cluster includes: When the current performance occupancy value of the cluster exceeds the first threshold, determining the first correction value according to the numerical interval of the value at which the performance occupancy value exceeds the first threshold; The value obtained by subtracting the first correction value from the initial value of the concurrent upgrade quantity is determined as the first concurrent upgrade quantity; If the accumulated value of the mon performance occupancy during the upgrade of each storage pool to be upgraded exceeds the second threshold, a second correction value is determined; the second correction value is the value that makes the accumulated value of the mon performance occupancy during the upgrade of each storage pool to be upgraded less than or equal to the second threshold after subtracting the second correction value from the initial value of the concurrent upgrade quantity; The value obtained by subtracting the second correction value from the initial value of the concurrent upgrade quantity is determined as the second concurrent upgrade quantity; Determine the number of storage pools to be upgraded whose capacity usage exceeds a third threshold among the storage pools to be upgraded; The value obtained by subtracting the number of storage pools to be upgraded whose capacity occupancy exceeds the third threshold from the initial value of the concurrent upgrade number is used as the third concurrent upgrade number; A final concurrent upgrade quantity is determined according to the first concurrent upgrade quantity, the second concurrent upgrade quantity, and the third concurrent upgrade quantity.

5. The method according to claim 4, characterized in that The determining a final concurrent upgrade quantity according to the first concurrent upgrade quantity, the second concurrent upgrade quantity, and the third concurrent upgrade quantity includes: If the first concurrent upgrade number, the second concurrent upgrade number, and the third concurrent upgrade number are all values ​​greater than zero, selecting the minimum value among the first concurrent upgrade number, the second concurrent upgrade number, and the third concurrent upgrade number as the final concurrent upgrade number; If any value of the first concurrent upgrade number, the second concurrent upgrade number, and the third concurrent upgrade number is zero, the concurrent upgrade number is determined to be 1.

6. The method according to claim 1, characterized in that The concurrent online upgrade of the target storage pool to be upgraded includes: Recording the upgrade process of the target storage pool to be upgraded, and marking the upgrade completion status and upgrade in progress status of the target storage pool to be upgraded; By using the mark, checking whether there is any storage pool to be upgraded in the cluster that has not started upgrading; If there are storage pools to be upgraded that have not started upgrading, a target storage pool to be upgraded is determined from the storage pools to be upgraded that have not started upgrading, and the upgrading operation is continued until all storage pools to be upgraded are upgraded.

7. The method according to claim 2, characterized in that: If the number of the storage pools to be upgraded is greater than the number of concurrent upgrades, determining a target storage pool to be upgraded according to the basic information includes: In response to the selection operation on the storage pool to be upgraded, the selected storage pool to be upgraded is used as the target storage pool to be upgraded.

8. A multi-storage pool cluster online upgrade device, characterized in that: The device comprises: The first determination module is used to determine the number of concurrent upgrades based on basic information of the storage pools to be upgraded in the cluster; the basic information includes: cluster performance information, mon performance occupancy information when each storage pool to be upgraded is upgraded, and capacity occupancy information corresponding to each storage pool to be upgraded in the cluster; A second determination module, configured to determine a target storage pool to be upgraded according to the number of the storage pools to be upgraded, the number of concurrent upgrades, and the basic information; The upgrade module is used to perform concurrent online upgrades on the target storage pool to be upgraded; wherein, at the same time, only one node in a single storage pool performs the upgrade.

9. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Upgrading method and device of distributed storage system, storage medium and electronic equipment

    CN120523406A

  • Distributed storage system online upgrading method and device and storage medium

    CN122450740A