Data processing method, electronic device, storage medium and product

By detecting prohibiting receiving server data requests, determining the identification of storage system nodes and target volumes, comparing and sending detection results, the data consistency and integrity problems in the storage system are solved, ensuring that the data is properly saved after processing is completed.

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

Patent Information

Application Number
CN202411154473.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-21
Publication Date
2024-11-15
Estimated Expiration
2044-08-21

AI Technical Summary

Technical Problem

During asynchronous replication or switch cache operations during storage system startup cycles, reading and writing data to target volumes can cause data consistency and integrity issues.

Method used

By detecting the situation where receiving server data requests are prohibited, the online storage system node is determined, the identification and counting unit of the target volume is obtained, the identification is compared, the target sequence stored in the ring buffer is determined, and the detection results are sent to the target when the preset conditions are met Page to prevent the server from continuing to read and write data, ensuring data consistency and integrity.

Benefits of technology

By perceiving the business data processing on the target volume, we ensure that the data undergoes subsequent operations after processing is completed, protect the integrity of the data, avoid other data from affecting the current operation results, and ensure data consistency and integrity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118672632B_ABST
    Figure CN118672632B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention provides a data processing method, electronic device, storage medium and product, which relate to the field of computer technology. The method includes: when the current operation triggers the prohibition of receiving server data requests, determining the online first storage system node, obtaining the first identifier of the first target volume in the first storage system node, the first storage policy of the first identifier in the ring buffer, and the first association relationship between the first identifier and the first counting unit in the volume business data counter, obtaining the second identifier of the second target volume carried by the current operation, comparing the second identifier with the first identifier, determining the second storage policy of the second identifier and the corresponding second counting unit according to the comparison result, determining the target order of the second identifier call through the second storage policy, detecting the count value on the second counting unit according to the target order, and sending the detection result to the target page after the count value meets the preset condition. This embodiment ensures the consistency and integrity of data acquisition.
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 data processing method, electronic equipment, storage medium and product. Background Art

[0002] Storage systems sometimes start some special functions or perform some special operations, such as starting periodic asynchronous replication or switching cache operations. Periodic asynchronous replication refers to the periodic asynchronous replication of data from one storage location to another storage location, usually a remote backup site. This replication method does not require real-time synchronization between the source and the target, so data can be backed up without affecting the performance of the source system. When periodic asynchronous replication is started, it usually starts a change volume snapshot, that is, creating a snapshot of the volume in the storage system to record the state of the volume at a specific point in time. When starting a change volume snapshot, the storage system freezes the state of the volume, creates a static copy, and then allows the volume to continue normal read and write operations. Switching cache operations involves enabling or disabling the cache function in the storage system. Cache is a temporary storage area in the storage system used to increase the speed of data access. When cache is enabled, frequently accessed data is stored in the cache for fast access. When cache is disabled, data access is performed directly from slower persistent storage media.

[0003] When starting periodic asynchronous replication or switching cache operations, the server is still reading and writing data to the target volume of the storage system and cannot perceive the business data processing status on the target volume, which may affect the consistency and integrity of the acquired data. Summary of the invention

[0004] The embodiments of the present invention provide a firmware upgrade method, an electronic device, a storage medium and a product, which solve the problem that when the current storage system starts a special function or performs a special operation, the data on the storage system may be damaged because the server is still reading and writing data on the target volume of the storage system. The specific technical solution is as follows:

[0005] A first aspect of an embodiment of the present invention provides a data processing method, the method comprising:

[0006] In the case where it is detected that the current operation triggers prohibition of receiving the server data request, determining a first storage system node that is online;

[0007] Acquire a first identifier of a first target volume in the first storage system node, a first storage policy of the first identifier in a ring buffer, and a first association relationship between the first identifier and a first counting unit in a volume service data counter;

[0008] Obtain a second identifier of a second target volume carried in the current operation;

[0009] Compare the second identifier with the first identifier, determine a second storage strategy for the second identifier in the ring buffer from the first storage strategy according to the comparison result, and determine a second counting unit corresponding to the second identifier from the first association relationship;

[0010] Determining a target order for storing the second identifiers in a preset ring buffer by using the second storage strategy, and detecting the count values ​​on the second counting units according to the target order;

[0011] After determining that the count value meets the preset conditions, the detection result is sent to the target page.

[0012] Optionally, in the case where it is detected that the current operation triggers prohibition of receiving the server data request, determining the first online storage system node includes:

[0013] In the case where it is detected that the current operation triggers prohibition of receiving server data requests, obtaining an online status type of a target storage system node in the storage system from the target cluster, wherein the online status type includes online and offline;

[0014] The binary value on the first target bit in the preset target bitmap and the first online storage system node are determined by the online status type, wherein one first target bit records the online status type of one first storage system node.

[0015] Optionally, determining the binary value of the first target bit in the preset target bitmap and the first online storage system node according to the online status type includes:

[0016] When it is determined that the online state type of the target storage system node is online, the binary value of the first target bit corresponding to the target storage system node in the preset target bitmap is set to 1, and the target storage system node is determined as the first online storage system node;

[0017] When it is determined that the online state type of the target storage system node is offline, the binary value of the first target bit corresponding to the target storage system node in the preset target bitmap is set to 0.

[0018] Optionally, before determining the binary value of the first target bit in the preset target bitmap according to the online status type, the method further includes:

[0019] Determine a first number of second storage system nodes that are allowed to be set in the storage system, and a second number of third storage system nodes that are actually set;

[0020] According to the first quantity, a target bitmap is set in which a first number of second target bits are present, and according to the second quantity, a second number of first target bits are selected from the second target bits;

[0021] A first target bit is pre-allocated to each third storage system node in the target bitmap, wherein the third storage system nodes include online first storage system nodes.

[0022] Optionally, after determining the binary value of the first target bit in the preset target bitmap according to the online status type, the method further includes:

[0023] Supplementing a binary value of 0 to a third target bit in the preset target bitmap where no binary value is set;

[0024] Acquire a first target binary string of the preset target bitmap according to the supplemented result;

[0025] The first target binary string is bitwise inverted to obtain a second target binary string.

[0026] Optionally, after determining that the count value satisfies a preset condition, sending the detection result to the target page includes:

[0027] After determining that the count value satisfies a preset condition, setting the binary value of the first target bit in the second target binary string to 1 to generate a third target binary string;

[0028] When it is detected that the binary values ​​in the third target binary string are all 1, it is determined that the business data processing on the second target volume is completed, and the detection result carrying the third target binary string is sent to the target page.

[0029] Optionally, after obtaining the first identifier of the first target volume in the first storage system node, the method further includes:

[0030] Obtaining a target number of cores in a multi-core processor in a first storage system node and a third identifier of each core;

[0031] The multi-core processor cores that are allocated to each first target volume and are allowed to process business data are determined through the third identifier, the first identifier and the target quantity.

[0032] Optionally, determining the multi-core processor core that is allocated to each first target volume and is allowed to process business data by using the third identifier, the first identifier and the target quantity includes:

[0033] Extracting a first value from the third identifier, and extracting a second value from the first identifier;

[0034] obtaining the second value and a target modulus value of the target quantity, and comparing the target modulus value with the first value;

[0035] By comparing the results, the multi-core processor cores allocated to each first target volume and allowed to process the business data are determined.

[0036] Optionally, after determining the multi-core processor cores that are allocated to each first target volume and are allowed to process business data by using the third identifier, the first identifier and the target quantity, the method further includes:

[0037] Setting a ring buffer for each core of the multi-core processor and establishing a first binding relationship;

[0038] A first storage strategy for storing a first identifier of a first target volume corresponding to the core in a ring buffer is determined through the first binding relationship.

[0039] Optionally, after obtaining the first identifier of the first target volume in the first storage system node, the method further includes:

[0040] Setting a volume service data counter for each core of the multi-core processor;

[0041] Setting a first counting unit for each first target volume in the volume service data counter and establishing a second binding relationship;

[0042] A first association relationship between the first identifier and the first counting unit in the volume business data counter is established through the second binding relationship.

[0043] Optionally, comparing the second identifier with the first identifier, determining a second storage strategy for the second identifier in the ring buffer from the first storage strategy according to the comparison result, and determining a second counting unit corresponding to the second identifier from the first association relationship includes:

[0044] comparing the second identifier and the first identifier;

[0045] If there is a fourth identifier in the first identifier that is consistent with the second identifier, determining the first storage strategy of the fourth identifier in the ring buffer as the second storage strategy of the second identifier in the ring buffer;

[0046] A first counting unit having a first association relationship with the fourth identifier is determined as a second counting unit corresponding to the second identifier.

[0047] Optionally, after determining that the count value satisfies a preset condition, sending the detection result to the target page includes:

[0048] When it is determined that the count values ​​of the second counting units are all 0, sending the detection result to the target page;

[0049] When it is determined that the current operation is completed, the prohibition of receiving the server data request is lifted.

[0050] A second aspect of an embodiment of the present invention provides a data processing device, the device comprising:

[0051] A first determination module, configured to determine a first online storage system node when it is detected that a current operation triggers prohibition of receiving a server data request;

[0052] A first acquisition module is used to acquire a first identifier of a first target volume in the first storage system node, a first storage policy of the first identifier in a ring buffer, and a first association relationship between the first identifier and a first counting unit in a volume service data counter;

[0053] A second acquisition module, used to acquire a second identifier of a second target volume carried in the current operation;

[0054] A second determination module is used to compare the second identifier with the first identifier, determine a second storage strategy for the second identifier in the ring buffer from the first storage strategy according to the comparison result, and determine a second counting unit corresponding to the second identifier from the first association relationship;

[0055] A first detection module, configured to determine a target order for storing the second identifiers in a preset ring buffer by using the second storage strategy, and to detect the count values ​​on the second counting units according to the target order;

[0056] The first sending module is used to send the detection result to the target page after determining that the count value meets the preset condition.

[0057] A third aspect of an embodiment of the present invention provides an electronic device, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the data processing method as described in the first aspect of the embodiment of the present invention.

[0058] A fourth aspect of an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the data processing method described in the first aspect of the embodiment of the present invention are implemented.

[0059] A fifth aspect of an embodiment of the present invention provides a computer program product, comprising a computer program / instructions, which, when executed by a processor, implement the steps of the data processing method as described in the first aspect of the embodiment of the present invention.

[0060] A data processing method provided by an embodiment of the present invention determines an online first storage system node when it is detected that a current operation triggers a prohibition on receiving a server data request, and prevents the server from continuing to read and write data to a target volume of the storage system by triggering a prohibition on receiving a server data request, thereby ensuring the consistency of data obtained by the current operation, obtaining a first identifier of the first target volume in the first storage system node, a first storage policy of the first identifier in a ring buffer, and a first association relationship between the first identifier and a first counting unit in a volume business data counter; obtaining a second identifier of the second target volume carried by the current operation; comparing the second identifier with the first identifier, and determining a second storage policy of the second identifier in the ring buffer from the first storage policy according to the comparison result, and determining a second storage policy of the second identifier from the first association relationship. A second counting unit corresponding to the second identifier is determined; a target order for storing the second identifier in a preset ring buffer is determined by a second storage strategy, and the count value on the second counting unit is detected according to the target order; after determining that the count value satisfies the preset condition, the detection result is sent to the target page. By obtaining the processing status of the business data in the target volume, the integrity of the data obtained by the current operation can be ensured. In the embodiment of the present invention, by triggering the prohibition of receiving server data requests, the influence of other data on the results of the current operation is avoided, and the consistency of the data is ensured. By sensing the business processing status on the target volume, it can be determined that the subsequent operation is not performed until the business data on the target volume are processed. This helps to protect the integrity of the data and ensure that all data are correctly processed and saved. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art are briefly introduced below.

[0062] Figure 1 is a flowchart of a data processing method according to an embodiment of the present invention;

[0063] Figure 2 yes Figure 1 The flowchart of step 101 in a data processing method shown in one embodiment of the present invention;

[0064] Figure 3 yes Figure 1 A schematic diagram of the relationship between a target bitmap and a storage node in a data processing method shown in one embodiment of the present invention;

[0065] Figure 4 yes Figure 1 A schematic diagram of allocation of a first target volume on a multi-core processor core in a data processing method shown in an embodiment of the present invention;

[0066] Figure 5 yes Figure 1A schematic diagram of setting a ring buffer in a data processing method shown in one embodiment of the present invention;

[0067] Figure 6 yes Figure 1 A schematic diagram of setting a volume service data counter in a data processing method shown in an embodiment of the present invention;

[0068] Figure 7 is a structural block diagram of a data processing device provided by an embodiment of the present invention;

[0069] Figure 8 It is a schematic diagram of an electronic device shown in an embodiment of the present invention. DETAILED DESCRIPTION

[0070] To make the purpose, technical scheme and advantages of the embodiments of the present invention clearer, the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. However, it will be appreciated by those skilled in the art that in the embodiments of the present invention, many technical details are proposed in order to enable the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical scheme claimed in the present application can be implemented. The division of the following embodiments is for the convenience of description, and should not constitute any limitation on the specific implementation of the present invention. The various embodiments can be combined and referenced with each other without contradiction.

[0071] Reference Figure 1 , shows a flow chart of steps of a data processing method provided by an embodiment of the present invention, the method may include:

[0072] Step 101: Determine a first online storage system node when it is detected that the current operation triggers prohibition of receiving a server data request.

[0073] In the embodiment of the present invention, the current operation is an operation that will affect the data on the disk of the storage system, and may also be an operation that requires prohibiting the server from reading and writing data to the target volume, such as "starting to change the volume snapshot" or "turning on and off the cache". However, some operations do not need to trigger the prohibition of receiving the server data request, so a special operation list that will trigger the prohibition of receiving the server data request can be pre-set, and then each time a new operation is obtained, the new operation will be searched in the special operation list, and if the new operation is found in the special operation list, it will trigger the prohibition of receiving the server data request. The specific steps include:

[0074] Predetermine the target operations that will affect the data in the storage system and generate a list of special operations;

[0075] For each target operation in the special operation list, a trigger is set to prohibit receiving server data requests;

[0076] When receiving the current operation, the current operation is retrieved in the special operation list;

[0077] If there is a target operation that is consistent with the current operation in the special operation list, it is determined that the current operation triggers the prohibition of receiving server data requests.

[0078] This setting can accurately trigger the prohibition of receiving server data requests, avoiding the impact of server-sent data on current operations.

[0079] It should be noted that after determining that the prohibition of receiving server data requests is triggered, the storage node that can perform the current operation will be determined. Usually, multiple storage nodes will be set up in the storage system, but not every storage node can be used. It depends on the online status of the storage node. Only online storage nodes can perform operations. The online status of the storage node is stored in the target cluster, so in the embodiment of the present invention, the online status type of the storage system node in the storage system is obtained from the target cluster. The online status type includes "online" and "offline". According to the obtained online status type, the system will determine the binary value of the corresponding bit in the preset target bitmap. Further, step 101, as Figure 2 As shown:

[0080] Step 1011, when it is detected that the current operation triggers prohibition of receiving server data requests, the online status type of the storage system node in the storage system is obtained from the target cluster, and the online status type includes online and offline.

[0081] Step 1012: determine the binary value of the first target bit in the preset target bitmap and the online first storage system node according to the online status type, wherein one first target bit records the online status type of one first storage system node.

[0082] The above settings allow the system to efficiently manage and monitor the online status of a large number of storage system nodes. The use of bitmaps makes the storage and update of status very fast, and also facilitates batch operations and status checks. For example, you can quickly determine which nodes are online and which nodes are not online through simple bit operations, which is very helpful for system maintenance and troubleshooting.

[0083] It can be seen that in the embodiment of the present invention, a target bitmap is set, and the online status of the storage node is represented by the bits in the target bitmap. When setting the target bitmap, it is necessary to first determine the maximum number of second storage system nodes allowed to be set in the storage system. This may be based on hardware limitations, software design or other system requirements. The number of bits of the target bitmap to be set is determined based on this maximum number. In actual settings, it may not be set according to the maximum number, so it is also necessary to determine the number of third storage system nodes actually set. This may be related to the current system configuration, user needs or resource allocation. The first target bit that actually needs to be used in the target bitmap is determined by this number, and then a first target bit is allocated to each third storage system node that is actually set. The third storage system nodes that are actually set may include online storage system nodes and offline storage system nodes. The specific steps include:

[0084] Determine a first number of second storage system nodes that are allowed to be set in the storage system, and a second number of third storage system nodes that are actually set;

[0085] Setting a target bitmap having a first number of second target bits according to the first number, and selecting a second number of first target bits from the second target bits according to the second number;

[0086] A first target bit is pre-allocated to each third storage system node in the target bitmap, wherein the third storage system nodes include online first storage system nodes.

[0087] It should be noted that, in the embodiment of the present invention, the online status type of the target storage node is represented by the binary value on the first target bit in the target bitmap, so when it is determined that the target storage system node is online, the binary value corresponding to the first target bit is set to 1, and when it is determined that the target storage system node is not online, the binary value corresponding to the first target bit is set to 0. The specific steps include:

[0088] When it is determined that the online state type of the target storage system node is online, the binary value of the first target bit corresponding to the target storage system node in the preset target bitmap is set to 1, and the target storage system node is determined as the first online storage system node;

[0089] When it is determined that the online state type of the target storage system node is offline, the binary value of the first target bit corresponding to the target storage system node in the preset target bitmap is set to 0.

[0090] In the embodiment of the present invention, the processing status of the business data on the storage node will be fed back through the value of the target bitmap, so the third target bit on the target bitmap that is not associated with the storage node is supplemented with a binary value of 0. After the supplement is completed, a binary string about the target bitmap can be obtained. In order to facilitate the subsequent calculation results, the binary string will be bitwise inverted at this time. The specific steps include:

[0091] Supplementing a binary value of 0 to a third target bit in a preset target bitmap where no binary value is set;

[0092] Acquire a first target binary string of a preset target bitmap according to the supplemented result;

[0093] The first binary string is bitwise inverted to obtain a second target binary string.

[0094] For example, take an 8-bit bitmap as an example. Figure 3 As shown, the first number of second storage system nodes allowed to be set in the storage system is 8, so the set target bitmap is an 8-bit bitmap, which includes storage system node 1 and storage system node 2, and storage system node 1 corresponds to bitmap Bit 0, and storage system node 2 corresponds to bitmap Bit 1. If storage system node 1 is online, bitmap Bit 0 is set to 1, and if storage system node 2 is online, bitmap Bit 1 is set to 1. If two storage nodes are online at the same time, and the bits without associated storage nodes are filled with binary values, the first target binary string obtained at this time is 0b 0000 0011, where 0b indicates that this string is a binary string, and then the target bitmap is inverted, and the result is 0b 1111 1100.

[0095] Step 102: Obtain a first identifier of a first target volume in a first storage system node, a first storage policy of the first identifier in a ring buffer, and a first association relationship between the first identifier and a first counting unit in a volume service data counter.

[0096] In the embodiment of the present invention, the first storage system node includes a first target volume, a ring buffer and a business data counter. In addition, after the embodiment of the present invention sets a target bitmap to record the online status of the target storage node in the storage system, it is necessary to initiate a status detection on the online first storage node, mainly to detect whether there is business data being processed on the volume of the first storage node, and this detection must be performed on each first storage node.

[0097] The business data of the volume of the storage node is allocated to different cores of the multi-core processor for processing, and the corresponding volume of the storage node is also allocated to different cores of the multi-core processor. In the embodiment of the present invention, different ring buffers and volume business data counters are set for different cores, wherein the ring buffer is used to store the identifier of the volume allocated to the core, and the volume business data counter is set for each volume. However, the volume business data counter corresponding to each core usually only records the count of the business data of the volume allocated to the corresponding core.

[0098] In addition, the current operation carries the identifier of the volume to be detected when it is executed. If there is more than one identifier of the volume to be detected, the identifiers of the volumes to be detected need to be stored in a ring buffer, and then the identifiers of the volumes to be detected are retrieved from the ring buffer in sequence for processing. Therefore, in the embodiment of the present invention, when detecting the business data on the volume, the data to be obtained include the first identifier of the first target volume, the first storage strategy of the first identifier in the ring buffer, and the first association relationship between the first identifier and the first counting unit in the volume business data counter.

[0099] It should be noted that in order to determine the first storage strategy of the first identifier in the ring buffer, it is necessary to first allocate cores for the first target volume in the multi-core processor. The number of cores of the multi-core processor is fixed, but the number of first target volumes is not fixed, so an allocation rule is set to determine the cores allocated to the first target volume according to the target number of cores in the multi-core processor and the third identifier of each core. The specific steps include:

[0100] Obtaining a target number of cores in a multi-core processor in a first storage system node and a third identifier of each core;

[0101] The multi-core processor cores that are allocated to each first target volume and are allowed to process business data are determined through the third identifier, the first identifier and the target quantity.

[0102] Because when setting the core identifier and the identifier of the first target volume, both include numerical serial numbers. For example, the third identifier of the core of a multi-core processor with 4 cores is core 0, core 1, core 2, core 3, and the first identifiers of 8 first target volumes are volume 0, volume 1, volume 2, volume 3, volume 4, volume 5, volume 6, and volume 7. The numerical part can be extracted from it to calculate and determine the allocation position. The specific allocation process is to extract the first numerical value from the third identifier of the core, extract the second numerical value from the first identifier of the first target volume, and then calculate the modulus of the second numerical value and the target number, and compare the modulus with the first numerical value. If they are consistent, it is determined that the core corresponding to the consistent first numerical value is the core to which the first target volume is allocated. The specific steps include:

[0103] Extracting a first value from the third identifier, and extracting a second value from the first identifier;

[0104] obtaining the second value and a target modulus value of the target quantity, and comparing the target modulus value with the first value;

[0105] By comparing the results, the multi-core processor cores allocated to each first target volume and allowed to process the business data are determined.

[0106] The present invention uses 4 cores and 8 volumes as an example to illustrate the above allocation process (in fact, the number of processor cores is much larger, and the present invention does not make a specific limitation here). Figure 4 As shown, the four cores are identified as core 0, core 1, core 2, and core 3, and the eight volumes are identified as volume 0, volume 1, volume 2, volume 3, volume 4, volume 5, volume 6, and volume 7. The business data of volume 0 and volume 4 are processed on core 0, the business data of volume 1 and volume 5 are processed on core 1, the business data of volume 2 and volume 6 are processed on core 2, and the business data of volume 3 and volume 7 are processed on core 3. The allocation method is volume id / 4 and the remainder (corresponding to obtaining the second value and the target modulus value of the target number) is used as the basis for which core the business data of the volume is processed on. The remainder 0 / 4 is 0, and the business data of volume 0 is processed on core 0; the remainder 1 / 4 is 1, and the business data of volume 1 is processed on core 1; the remainder 2 / 4 is 2, and the business data of volume 2 is processed on core 2; the remainder 3 / 4 is 3, and the business data of volume 3 is processed on core 3; the remainder 4 / 4 is 0, and the business data of volume 4 is processed on core 0; the remainder 5 / 4 is 1, and the business data of volume 5 is processed on core 1; the remainder 6 / 4 is 2, and the business data of volume 6 is processed on core 2; the remainder 7 / 4 is 3, and the business data of volume 7 is processed on core 3.

[0107] It should be noted that the above-mentioned values ​​are only for illustration purposes. The actual values ​​can be set according to the actual situation, and the corresponding allocation results are also adjusted according to the actual situation. That is, if the number of cores is n (n>1), the volume's business data is assigned to which core for processing based on volume id / n. If the remainder is 0, the volume's business data is assigned to core 0 for processing; if the remainder is 1, the volume's business data is assigned to core 1 for processing; if the remainder is 2, the volume's business data is assigned to core 2 for processing; if the remainder is n-1, the volume's business data is assigned to core n-1 for processing.

[0108] The above allocation method ensures that business data is evenly distributed among multiple cores, avoiding the situation where some cores are overloaded while other cores are idle. In this way, the system can more effectively utilize all available core resources and improve overall processing power and response speed.

[0109] After determining the result of the core allocation of the first target volume in the first storage node in the multi-core processor, it is necessary to continue to determine the first storage strategy of the first identifier in the ring buffer. At this time, a ring buffer will be set up in advance for each core to store the volume identifier. Because a different first target volume has been allocated to each core, the ring buffer will only store the identifier of the allocated first target volume in the same core as the ring buffer when storing the volume identifier. In order to achieve this goal, it is necessary to establish a binding relationship between the ring buffer and the core when establishing the ring buffer, and then based on the binding relationship, the first storage strategy can be set to store the first identifier of the first target volume allocated on the core into the corresponding buffer. The specific steps include:

[0110] Setting a ring buffer for each core of the multi-core processor and establishing a first binding relationship;

[0111] A first storage strategy for storing a first identifier of a first target volume corresponding to the core in a ring buffer is determined through the first binding relationship.

[0112] The embodiment of the present invention takes 4 cores as an example to illustrate the setting process of the first storage strategy. Figure 5 As shown, a ring buffer (or a ring queue) is set for each core, and then a binding relationship is established, so ring buffer 0 is bound to core 0, and ring buffer 0 is used to store the first identifier of the first target volume assigned to core 0 (including volume 0, volume 4... etc.), ring buffer 1 is bound to core 1, and ring buffer 1 is used to store the first identifier of the first target volume assigned to core 1 (including volume 1, volume 5... etc.), ring buffer 2 is bound to core 2, and ring buffer 2 is used to store the first identifier of the first target volume assigned to core 2 (including volume 2, volume 6... etc.), ring buffer 3 is bound to core 3, and ring buffer 3 is used to store the first identifier of the first target volume assigned to core 3 (including volume 3, volume 7... etc.), finally, the producer (sender) stores the volume identifier in the ring buffer, and the consumer takes the volume identifier from the ring buffer.

[0113] The setting of the above-mentioned ring buffer and the corresponding first storage strategy ensure the sequentiality and continuity of subsequent data processing, and also facilitate batch operations and status checks.

[0114] It should be noted that the first storage strategy only stipulates which first identifiers of the first target volume are allowed to be stored in each ring buffer, but not every first identifier actually needs to be stored. This depends on the second identifier of the second target volume expected to be detected in the current operation. Only after comparison can it be determined which identifiers need to be stored in the ring buffer. In addition, the ring buffer has a size limit, so when storing the identifier of the target volume, it is necessary to check the remaining space of the ring buffer at all times. If the ring buffer is full, no more data can be stored in it. At this time, the current operation needs to suspend the action of inputting data into the ring buffer.

[0115] After determining the first storage strategy for the first identifier in the ring buffer, it is necessary to continue to determine the first association relationship between the first identifier and the first counting unit in the volume business data counter. The embodiment of the present invention pre-sets a volume business data counter for each core of the multi-core processor to record the value of the business data of the first target volume on the core. A counting unit is set for each first target volume in each volume business data counter, so a first counting unit is set for each first target volume in the volume business data counter, and a second binding relationship is established. It is possible to determine the business data of the first target volume recorded in each first counting unit. The first identifier is used to identify the first target volume, so the first association relationship between the first identifier and the first counting unit in the volume business data counter can also be determined accordingly. The specific steps include:

[0116] Setting a volume service data counter for each core of the multi-core processor;

[0117] Setting a first counting unit for each first target volume in the volume service data counter and establishing a second binding relationship;

[0118] A first association relationship between the first identifier and the first counting unit in the volume business data counter is established through the second binding relationship.

[0119] The embodiment of the present invention takes 4 cores as an example to illustrate the setting process of the first association relationship. Figure 6As shown, a data structure (volume business data counter) is set for each core to record the business data processing count of the volume. Taking the volume business data counter data structure corresponding to core 0 as an example, the volume business data counter includes 8 first counting units, which are respectively identified as counting unit 0, counting unit 1, counting unit 2, counting unit 3, counting unit 4, counting unit 5, counting unit 6, and counting unit 7 for easy distinction. Among them, counting unit 0 records the business data count processed by volume 0 on core 0, counting unit 1 records the business data count processed by volume 1 on core 0, counting unit 2 records the business data count processed by volume 2 on core 0, and counting unit n records the business data count processed by volume n on core 0. Volume 0 and volume 4 are processed on core 0. The volume business data counter 0 will record the number of data of volume 0 and volume 4. Counting unit 0 records the number of business data of volume 0, and counting unit 4 records the number of business data of volume 4. The counts in counting unit 1, counting unit 2, counting unit 3, counting unit 5, counting unit 6, and counting unit 7 are 0 (here, volume 0, volume 1, volume 2, volume 3, volume 4, volume 5, volume 6, and volume 7 are used as examples); volume 1 and volume 5 are processed on core 1. The volume business data counter 1 will record the number of data of volume 1 and volume 5. Counting unit 1 records the number of business data of volume 1, and counting unit 5 records the number of business data of volume 5. Counting unit 0, counting unit 2, counting unit 3, counting unit 4, counting unit Element 6, the count in counting unit 7 is 0; volume 2, volume 6 is processed on core 2, the volume business data counter 2 will record the number of data of volume 2 and volume 6, counting unit 2 records the number of business data of volume 2, counting unit 6 records the number of business data of volume 6, counting unit 0, counting unit 1, counting unit 3, counting unit 4, counting unit 5, and the count in counting unit 7 are 0; volume 3, volume 7 is processed on core 3, the volume business data counter 3 will record the number of data of volume 3 and volume 7, counting unit 3 records the number of business data of volume 3, counting unit 7 records the number of business data of volume 7, counting unit 0, counting unit 1, counting unit 2, counting unit 4, counting unit 5, and the count in counting unit 6 are 0.

[0120] It should be noted that, in fact, the scale of volumes in the storage system is very large, not just 8, and the present invention does not make specific limitations here. The number of counting units in the volume service data counter of the volume is consistent with the number of volumes. For example, if the volume scale of the storage system is M (M is greater than 1), the scale of the first counting unit in volume service data counter 0, volume service data counter 1, volume service data counter 2, and volume service data counter 3 is also M, and each first counting unit corresponds to the service data count of a volume.

[0121] Step 103: Obtain a second identifier of a second target volume carried in the current operation.

[0122] It can be seen that there are multiple first target volumes on the first system node, but the current operation is not to detect every first target volume when it is executed, but has its own needs. Therefore, an embodiment of the present invention obtains the volume identifier carried by the current operation that is expected to be detected, and for the sake of easy distinction, it is named the second identifier of the second target volume.

[0123] Step 104 , comparing the second identifier with the first identifier, determining a second storage strategy for the second identifier in the ring buffer from the first storage strategy according to the comparison result, and determining a second counting unit corresponding to the second identifier from the first association relationship.

[0124] The embodiment of the present invention has determined the first storage strategy of the first target volume in the ring buffer of the first storage system node and the first association relationship between the first identifier and the first counting unit in the volume business data counter, and at the same time obtained the second identifier of the second target volume that needs to be detected for the current operation, and by comparing the second identifier with the first identifier, the policy that can be used by the second identifier is found from the policy of the first identifier.

[0125] During the comparison, each second identifier to be detected is traversed and searched in the first identifier. After finding the identifier that is consistent with the second identifier in the first identifier (named as the fourth identifier for easy distinction), the first storage strategy and the first association relationship corresponding to the fourth identifier are extracted. These extracted contents determine the second storage strategy of the second identifier in the ring buffer and the second counting unit corresponding to the second identifier. The specific steps include:

[0126] comparing the second identifier and the first identifier;

[0127] If there is a fourth identifier in the first identifier that is consistent with the second identifier, determining the first storage strategy of the fourth identifier in the ring buffer as the second storage strategy of the second identifier in the ring buffer;

[0128] A first counting unit having a first association relationship with the fourth identifier is determined as a second counting unit corresponding to the second identifier.

[0129] For example, assuming that the first identifiers are volume 0, volume 1, volume 2, volume 3, volume 4, volume 5, volume 6, and volume 7, and the second identifiers are volume 0 and volume 2, the first storage strategy is that ring buffer 0 can be used to store volume 0 and volume 4, ring buffer 1 can be used to store volume 1 and volume 5, ring buffer 2 can be used to store volume 2 and volume 6, and ring buffer 3 can be used to store volume 3 and volume 7, and in the first association relationship, volume 0 corresponds to counting unit 0, volume 1 corresponds to counting unit 1, volume 2 corresponds to counting unit 2, volume 3 corresponds to counting unit 3, volume 4 corresponds to counting unit 4, volume 5 corresponds to counting unit 5, volume 6 corresponds to counting unit 6, and volume 7 corresponds to counting unit 7. By comparing the first identifier and the second identifier, it is determined that the second storage strategy for the second identifier in the ring buffer is that volume 0 is stored in ring buffer 0 and volume 2 is stored in ring buffer 2, and the second counting unit corresponding to the second identifier means that volume 0 corresponds to counting unit 0 and volume 2 corresponds to counting unit 2.

[0130] The second storage strategy and the second counting unit corresponding to the second identifier are determined by comparing the identifiers, so as to facilitate the subsequent storage of the identifiers according to the determined information and locate the target volume of the business data to be queried.

[0131] Step 105 , determining a target order for storing the second identifiers in a preset ring buffer through a second storage strategy, and detecting the count values ​​on the second counting unit according to the target order.

[0132] In the embodiment of the present invention, it is stipulated that a volume can only be bound to one core during its life cycle, and its business data can only be processed on one core. Therefore, after determining that the second identifier of the second target volume to be detected is in the second storage strategy of the ring buffer, it is necessary to store it in the ring buffer according to the second storage strategy, and then process it one by one. However, different second identifiers may be stored in different ring buffers. In order to avoid calling from multiple ring buffers at the same time during the call process, resulting in multiple second identifiers appearing at the same time. The ring buffer can be sorted from large to small or from small to large according to the numerical values ​​in the identifiers of the ring buffer. Then, according to the sorting of the ring buffer, the target order of the second identifiers stored therein can be determined. At this time, the count value on the second counting unit is detected according to the target order.

[0133] For example, there are ring buffer 0, ring buffer 1, ring buffer 2, and ring buffer 3, which are arranged in order of the values ​​from small to large, as ring buffer 0>ring buffer 1>ring buffer 2>ring buffer 3. The second identifiers are volume 0 and volume 2. Volume 0 is stored in ring buffer 0, and volume 2 is stored in ring buffer 2. Therefore, the target order of the second identifier is volume 0>volume 2. When processing, the second counting unit corresponding to volume 0 is processed first, that is, counting unit 0, that is, counting unit 0 of volume business data counter 0, counting unit 0 of volume business data counter 1, counting unit 0 of volume business data counter 2, and counting unit 0 of volume business data counter 3 are all checked.

[0134] It should be noted that, in the embodiment of the present invention, it is stipulated that a volume can only be bound to one core during its life cycle, and its business data can only be processed on one core, so in the first counting unit on the volume business data counter of different cores, only the business data of the first target volume corresponding to the core can be recorded, and the business data of the first target volume that does not match the core is not recorded. The specific steps include:

[0135] Determine a target identifier and a volume service data counter of a target volume allocated to the target core;

[0136] comparing the target identifier and the first identifier;

[0137] Determine a fifth identifier corresponding to the target identifier in the first identifier through the comparison result;

[0138] Filtering from the first association relationship through the fifth identifier, determining a third counting unit of the volume business data counter corresponding to the target identifier;

[0139] The business data of the target volume on the target core is recorded by the third counting unit, wherein writing data on the target volume once corresponds to adding 1 to the count value of the third counting unit.

[0140] For example, assuming that the target identifier assigned to the target core 0 is volume 0, the first identifier is volume 0, volume 1, volume 2, volume 3, volume 4, volume 5, volume 6, and volume 7. After comparison, it is determined that the third counting unit corresponding to volume 0 is counting unit 0, and the business data on the target core 0 is recorded through counting unit 0. At this time, the counts of other first counting units, counting units 1 to 7, on the volume business data counter are all 0. Correspondingly, the volume business data counters on other cores and the counting unit 0 corresponding to volume 0 are all 0. That is, the counting unit 0 of the volume business data counter 0 has data counts, the counting unit 0 of the volume business data counter 1 is counted as 0, the counting unit 0 of the volume business data counter 2 is counted as 0, and the counting unit 0 of the volume business data counter 3 is counted as 0.

[0141] Because a volume can only be bound to one core during its life cycle, and its business data can only be processed on one core, during detection, only the value recorded in the first counting unit of the volume business data counter of a certain volume in a certain core can be detected. For example, to detect whether the business data of volume 0 has been processed, the detection task will run on core 0, core 1, core 2, and core 3 respectively, and detect whether the counts of counting unit 0 of volume business data counter 0, counting unit 0 of volume business data counter 1, counting unit 0 of volume business data counter 2, and counting unit 0 of volume business data counter 3 are 0. However, in fact, it is only necessary to detect whether counting unit 0 of volume business data counter 0 is 0.

[0142] Step 106, after determining that the count value meets the preset condition, the detection result is sent to the target page.

[0143] In the embodiment of the present invention, the preset condition is that the count values ​​are all 0, and the count value 0 indicates that the business data processing on the volume is completed, and the detection result will be sent to the target page. After the user sees this result, he will send a request to "start receiving server data" at an appropriate time (such as "start changing volume snapshot" or "switch cache" operation has been executed), and the storage system will remove the restrictions on server data processing and resume data processing. The specific steps include:

[0144] When it is determined that the count values ​​of the second counting units are all 0, sending the detection result to the target page;

[0145] When it is determined that the current operation is completed, the prohibition of receiving the server data request is lifted.

[0146] This setting can ensure the integrity of data acquisition during the current operation.

[0147] It should be noted that, in the above process, a target bitmap is set to record the online status of the first storage node in the embodiment of the present invention. Therefore, at this time, the completion of the detection can also be determined by setting the target bitmap, that is, after each detection of the value detection of the second target volume on the first storage node is completed and the preset conditions are met, the binary value of the first target bit corresponding to the first storage node on the target bitmap will be set to 1. In this way, when the system detects that the bitmap is 0b 1111 1111 (all bits are 1), the system believes that all nodes have successfully completed the business data detection of the volume, and the detection result is "the business data of the volume has been processed", and the detection result will be sent to the target page. The specific steps include:

[0148] After determining that the count value satisfies a preset condition, setting the binary value of the first target bit in the second target binary string to 1 to generate a third target binary string;

[0149] When it is detected that the binary values ​​in the third target binary string are all 1, it is determined that the business data processing on the second target volume is completed, and the detection result carrying the third target binary string is sent to the target page.

[0150] A data processing method provided by an embodiment of the present invention determines an online first storage system node when it is detected that a current operation triggers a prohibition on receiving a server data request, and prevents the server from continuing to read and write data to a target volume of the storage system by triggering a prohibition on receiving a server data request, thereby ensuring the consistency of data obtained by the current operation, obtaining a first identifier of a first target volume in the first storage system node, a first storage policy of the first identifier in a ring buffer, and a first association relationship between the first identifier and a first counting unit in a volume business data counter; obtaining a second identifier of a second target volume carried by the current operation; comparing the second identifier with the first identifier, and determining a second storage policy of the second identifier in the ring buffer from the first storage policy according to the comparison result, and determining a second storage policy of the second identifier from the first association relationship A second counting unit corresponding to the second identifier is determined in the system; a target order for storing the second identifier in a preset ring buffer is determined by a second storage strategy, and the count value on the second counting unit is detected according to the target order; after determining that the count value meets the preset condition, the detection result is sent to the target page, and the integrity of the acquired data can be ensured by obtaining the processing status of the business data in the target volume. In the embodiment of the present invention, by triggering the prohibition of receiving server data requests, the influence of other data on the current operation acquisition result is avoided, and the consistency of the data is ensured. By sensing the business processing status on the target volume, it can be determined that the business data on the target volume are all processed before performing subsequent operations, which helps to protect the integrity of the data and ensure that all data are correctly processed and saved.

[0151] Reference Figure 7 , which shows a schematic diagram of the structure of a data processing device provided by an embodiment of the present invention, such as Figure 7 As shown, the device may include:

[0152] A first determination module 201 is used to determine a first online storage system node when it is detected that the current operation triggers prohibition of receiving a server data request;

[0153] A first acquisition module 202 is used to acquire a first identifier of a first target volume in the first storage system node, a first storage policy of the first identifier in a ring buffer, and a first association relationship between the first identifier and a first counting unit in a volume service data counter;

[0154] The second acquisition module 203 is used to acquire a second identifier of a second target volume carried in the current operation;

[0155] A second determination module 204 is used to compare the second identifier with the first identifier, determine a second storage strategy for the second identifier in the ring buffer from the first storage strategy according to the comparison result, and determine a second counting unit corresponding to the second identifier from the first association relationship;

[0156] A first detection module 205 is used to determine a target order for storing the second identifiers in a preset ring buffer according to the second storage strategy, and detect the count values ​​on the second counting unit according to the target order;

[0157] The first sending module 206 is used to send the detection result to the target page after determining that the count value meets the preset condition.

[0158] Optionally, the first determining module 201 specifically includes:

[0159] A first acquisition submodule is used to acquire an online status type of a target storage system node in the storage system from a target cluster when it is detected that the current operation triggers prohibition of receiving a server data request, wherein the online status type includes online and offline;

[0160] The first determination submodule is used to determine the binary value on the first target bit in the preset target bitmap and the first online storage system node according to the online status type, wherein one first target bit records the online status type of one first storage system node.

[0161] Optionally, the first determining submodule specifically includes:

[0162] A first setting unit is used to set the binary value of the first target bit corresponding to the target storage system node in the preset target bitmap to 1 when determining that the online state type of the target storage system node is online, and determine the target storage system node as the first online storage system node;

[0163] The second setting unit is configured to set the binary value of the first target bit corresponding to the target storage system node in the preset target bitmap to 0 when it is determined that the online status type of the target storage system node is offline.

[0164] Optionally, the data processing device further includes:

[0165] A third determining module, used to determine a first number of second storage system nodes allowed to be set in the storage system, and a second number of third storage system nodes actually set;

[0166] A screening module, configured to set a target bitmap containing a first number of second target bits according to the first number, and screen a second number of first target bits from the second target bits according to the second number;

[0167] The allocation module is used to pre-allocate a first target bit to each third storage system node in the target bitmap, wherein the third storage system nodes include the online first storage system nodes.

[0168] A supplementing module, used for supplementing a binary value 0 in a third target bit in the preset target bitmap where no binary value is set;

[0169] A third acquisition module, used for acquiring a first target binary string of the preset target bitmap according to the supplemented result;

[0170] The fourth acquisition module is used to obtain a second target binary string by bitwise inverting the first target binary string.

[0171] Optionally, the first sending module 206 specifically includes:

[0172] A generating submodule, configured to, after determining that the count value satisfies a preset condition, set the binary value of the first target bit in the second target binary string to 1, thereby generating a third target binary string;

[0173] The first sending submodule is used to determine that the business data processing on the second target volume is completed when it is detected that the binary values ​​in the third target binary string are all 1, and send the detection result carrying the third target binary string to the target page.

[0174] Optionally, the data processing device further includes:

[0175] A fifth acquisition module, used to acquire a target number of cores in the multi-core processor in the first storage system node and a third identifier of each core;

[0176] The fourth determination module is used to determine the multi-core processor core that is allocated to each first target volume and is allowed to process business data through the third identifier, the first identifier and the target quantity.

[0177] Optionally, the fourth determining module specifically includes:

[0178] an extraction submodule, configured to extract a first value from the third identifier and a second value from the first identifier;

[0179] A second acquisition submodule, used for acquiring the second value and a target modulus value of the target quantity, and comparing the target modulus value with the first value;

[0180] The second determination submodule is used to determine the multi-core processor core that is allocated to each first target volume and is allowed to process business data through the comparison result.

[0181] Optionally, the data processing device further includes:

[0182] A first relationship establishing module, used to set a ring buffer for each core of the multi-core processor and establish a first binding relationship;

[0183] A fifth determining module is used to determine a first storage strategy for storing a first identifier of a first target volume corresponding to the core in a ring buffer according to the first binding relationship.

[0184] A counter setting module, used for setting a volume service data counter for each core of the multi-core processor;

[0185] A second relationship establishing module, configured to set a first counting unit for each first target volume in the volume service data counter, and establish a second binding relationship;

[0186] The third relationship establishing module is used to establish a first association relationship between the first identifier and the first counting unit in the volume business data counter through the second binding relationship.

[0187] Optionally, the second determining module 204 specifically includes:

[0188] A first comparison submodule, used for comparing the second identifier with the first identifier;

[0189] A third determining submodule, configured to determine the first storage strategy of the fourth identifier in the ring buffer as the second storage strategy of the second identifier in the ring buffer if a fourth identifier that is consistent with the second identifier exists in the first identifier;

[0190] The fourth determining submodule is used to determine the first counting unit that has a first association relationship with the fourth identifier as the second counting unit corresponding to the second identifier.

[0191] Optionally, the first sending module 206 specifically further includes:

[0192] A second sending submodule, configured to send the detection result to a target page when it is determined that the count values ​​of the second counting units are all 0;

[0193] The release submodule is used to release the prohibition of receiving server data requests when it is determined that the current operation is completed.

[0194] A data processing method provided by an embodiment of the present invention determines an online first storage system node when it is detected that a current operation triggers a prohibition on receiving a server data request, and prevents the server from continuing to read and write data to a target volume of the storage system by triggering a prohibition on receiving a server data request, thereby ensuring the consistency of data obtained by the current operation, obtaining a first identifier of a first target volume in the first storage system node, a first storage policy of the first identifier in a ring buffer, and a first association relationship between the first identifier and a first counting unit in a volume business data counter; obtaining a second identifier of a second target volume carried by the current operation; comparing the second identifier with the first identifier, and determining a second storage policy of the second identifier in the ring buffer from the first storage policy according to the comparison result, and determining a second storage policy of the second identifier from the first association relationship A second counting unit corresponding to the second identifier is determined in the system; a target order for storing the second identifier in a preset ring buffer is determined by a second storage strategy, and the count value on the second counting unit is detected according to the target order; after determining that the count value meets the preset condition, the detection result is sent to the target page, and the integrity of the acquired data can be ensured by obtaining the processing status of the business data in the target volume. In the embodiment of the present invention, by triggering the prohibition of receiving server data requests, the influence of other data on the current operation acquisition result is avoided, and the consistency of the data is ensured. By sensing the business processing status on the target volume, it can be determined that the business data on the target volume are all processed before performing subsequent operations, which helps to protect the integrity of the data and ensure that all data are correctly processed and saved.

[0195] Based on the same inventive concept, another embodiment of the present invention provides an electronic device 300, such as Figure 8 shown. Figure 8 301, a memory 302, and a computer program stored in the memory 302 and executable on the processor 301. When the computer program is executed by the processor, the steps in the data processing method described in any of the above embodiments of the present invention are implemented.

[0196] Based on the same inventive concept, another embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps in the data processing method described in any of the above embodiments of the present invention are implemented.

[0197] Based on the same inventive concept, another embodiment of the present invention provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps in the data processing method described in any of the above embodiments of the present invention.

[0198] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0199] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the relevant technology, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, computer, server, air conditioner, or network equipment, etc.) to execute the methods described in each embodiment of the present invention.

[0200] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.

[0201] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the embodiments of the present invention can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0202] 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.

[0203] In the embodiments provided by the present invention, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system 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, such as multiple units or 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.

[0204] 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.

[0205] In addition, each functional unit in each embodiment of the present invention 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.

[0206] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the relevant technology or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, ROM, RAM, disk or optical disk, etc., which can store program code.

[0207] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A data processing method, characterized in that: The method comprises: In the case where it is detected that the current operation triggers prohibition of receiving the server data request, determining a first storage system node that is online; Acquire a first identifier of a first target volume in the first storage system node, a first storage policy of the first identifier in a ring buffer, and a first association relationship between the first identifier and a first counting unit in a volume service data counter; Obtain a second identifier of a second target volume carried in the current operation; Compare the second identifier with the first identifier, determine a second storage strategy for the second identifier in the ring buffer from the first storage strategy according to the comparison result, and determine a second counting unit corresponding to the second identifier from the first association relationship; Determining a target order for storing the second identifiers in a preset ring buffer by using the second storage strategy, and detecting the count values ​​on the second counting units according to the target order; After determining that the count value meets the preset conditions, the detection result is sent to the target page.

2. The data processing method according to claim 1, characterized in that: The step of determining the first online storage system node when detecting that the current operation triggers prohibition of receiving the server data request comprises: In the case where it is detected that the current operation triggers prohibition of receiving server data requests, obtaining an online status type of a target storage system node in the storage system from the target cluster, where the online status type includes online and offline; The binary value on the first target bit in the preset target bitmap and the first online storage system node are determined by the online status type, wherein one first target bit records the online status type of one first storage system node.

3. The data processing method according to claim 2, characterized in that: The step of determining the binary value of the first target bit in the preset target bitmap and the first online storage system node according to the online status type includes: When it is determined that the online state type of the target storage system node is online, the binary value of the first target bit corresponding to the target storage system node in the preset target bitmap is set to 1, and the target storage system node is determined as the first online storage system node; When it is determined that the online state type of the target storage system node is offline, the binary value of the first target bit corresponding to the target storage system node in the preset target bitmap is set to 0.

4. The data processing method according to claim 2, characterized in that: Before determining the binary value of the first target bit in the preset target bitmap according to the online status type, the method further includes: Determine a first number of second storage system nodes that are allowed to be set in the storage system, and a second number of third storage system nodes that are actually set; According to the first quantity, a target bitmap is set in which a first number of second target bits are present, and according to the second quantity, a second number of first target bits are selected from the second target bits; A first target bit is pre-allocated to each third storage system node in the target bitmap, wherein the third storage system nodes include online first storage system nodes.

5. The data processing method according to claim 2, characterized in that: After determining the binary value of the first target bit in the preset target bitmap according to the online status type, the method further includes: Supplementing a binary value of 0 to a third target bit in the preset target bitmap where no binary value is set; Acquire a first target binary string of the preset target bitmap according to the supplemented result; The first target binary string is bitwise inverted to obtain a second target binary string.

6. The data processing method according to claim 5, characterized in that: After determining that the count value meets the preset condition, sending the detection result to the target page includes: After determining that the count value satisfies a preset condition, setting the binary value of the first target bit in the second target binary string to 1 to generate a third target binary string; When it is detected that the binary values ​​in the third target binary string are all 1, it is determined that the business data processing on the second target volume is completed, and the detection result carrying the third target binary string is sent to the target page.

7. The data processing method according to claim 1, characterized in that: After obtaining the first identifier of the first target volume in the first storage system node, the method further includes: Obtaining a target number of cores in a multi-core processor in a first storage system node and a third identifier of each core; The multi-core processor cores that are allocated to each first target volume and are allowed to process business data are determined through the third identifier, the first identifier and the target quantity.

8. The data processing method according to claim 7, characterized in that: The step of determining the multi-core processor core that is allocated to each first target volume and is allowed to process business data by using the third identifier, the first identifier, and the target quantity includes: Extracting a first value from the third identifier, and extracting a second value from the first identifier; obtaining the second value and a target modulus value of the target quantity, and comparing the target modulus value with the first value; By comparing the results, the multi-core processor cores allocated to each first target volume and allowed to process the business data are determined.

9. The data processing method according to claim 7, characterized in that: After determining the multi-core processor cores that are allocated to each first target volume and are allowed to process business data by using the third identifier, the first identifier and the target quantity, the method further includes: Setting a ring buffer for each core of the multi-core processor and establishing a first binding relationship; A first storage strategy for storing a first identifier of a first target volume corresponding to the core in a ring buffer is determined through the first binding relationship.

10. The data processing method according to claim 1, characterized in that: After obtaining the first identifier of the first target volume in the first storage system node, the method further includes: Setting a volume service data counter for each core of the multi-core processor; Setting a first counting unit for each first target volume in the volume service data counter and establishing a second binding relationship; A first association relationship between the first identifier and the first counting unit in the volume business data counter is established through the second binding relationship.

11. The data processing method according to claim 1, characterized in that: The comparing the second identifier with the first identifier, determining a second storage strategy for the second identifier in the ring buffer from the first storage strategy according to the comparison result, and determining a second counting unit corresponding to the second identifier from the first association relationship, includes: comparing the second identifier and the first identifier; If there is a fourth identifier in the first identifier that is consistent with the second identifier, determining the first storage strategy of the fourth identifier in the ring buffer as the second storage strategy of the second identifier in the ring buffer; A first counting unit having a first association relationship with the fourth identifier is determined as a second counting unit corresponding to the second identifier.

12. The data processing method according to claim 1, characterized in that: The sending of the detection result to the target page after determining that the count value meets the preset condition includes: When it is determined that the count values ​​of the second counting units are all 0, sending the detection result to the target page; When it is determined that the current operation is completed, the prohibition of receiving the server data request is lifted.

13. An electronic device, characterized in that: include: A processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the steps of the data processing method according to any one of claims 1 to 12 when executed by the processor.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the data processing method according to any one of claims 1 to 12 are implemented.

15. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps in the data processing method according to any one of claims 1 to 12 are implemented.