A method and system for configuration consistency synchronization of a dual-controller storage system
By generating dependency subgraphs and calculating synchronization pressure indices, and selecting appropriate synchronization modes, the interference and redundancy problems in the configuration synchronization process of dual-controller storage systems are solved, achieving efficient configuration consistency synchronization and reducing the impact on front-end input and output.
Patent Information
- Application Number
- CN202611273962.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-21
- Publication Date
- 2026-11-20
AI Technical Summary
Existing dual-controller storage systems cannot ensure configuration consistency while avoiding interference with front-end input/output performance during configuration synchronization. Furthermore, the synchronization operation suffers from redundancy and simple overwrite of conflict handling issues.
By parsing configuration modification requests to generate dependency subgraphs, combining input and output access characteristics to calculate the synchronization pressure index, selecting strong synchronization or asynchronous batch processing mode, generating synchronization payloads, and applying operation sequences in the configuration shadow area to achieve configuration consistency synchronization.
It reduces interference with front-end input and output during configuration synchronization, identifies potential impact paths, reduces the number of redundant operations, improves the ability to handle the dependency order of configuration operations, and reduces the impact of configuration submission on business access latency.
Smart Images

Figure CN123137572A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data storage technology, and specifically to a configuration consistency synchronization method and system for a dual-controller storage system. Background Technology
[0002] In a dual-controller storage system, the two controllers jointly manage configuration objects such as volumes, storage pools, host mappings, snapshot policies, and caching policies. After an administrator initiates configuration changes through either controller, the changes need to be synchronized to the other controller to ensure both controllers maintain a consistent configuration view and prevent discrepancies in front-end input / output processing paths due to inconsistent configurations.
[0003] Existing configuration synchronization methods typically employ lockstep strong synchronization protocols, or use full replication or ordinary incremental replication for configuration propagation. Lockstep strong synchronization requires waiting for confirmation from the peer during configuration modifications, which can increase service access latency when front-end input / output load is high. Full replication and ordinary incremental replication typically transmit configuration records as a unit, failing to fully utilize the dependencies between configuration objects and easily transmitting redundant operations that can be merged or eliminated.
[0004] Meanwhile, configuration objects in a dual-controller storage system are operationally related to the front-end input / output load. For example, objects such as volumes, storage pools, host groups, and mapping relationships may have strong correlations in access timing, and simply relying on static configuration relationships is insufficient to reflect the impact of configuration changes on business input / output paths. Existing conflict handling methods often rely on timestamp overwriting or manual processing, which makes it difficult to preserve the causal relationships and impact attribute boundaries of configuration operations during concurrent modifications.
[0005] Therefore, this application provides a configuration consistency synchronization method and system for a dual-controller storage system to solve the above-mentioned technical problems. Summary of the Invention
[0006] The purpose of this invention is to provide a configuration consistency synchronization method and system for a dual-controller storage system, which solves the technical problems of existing dual-controller storage systems in that they cannot ensure configuration consistency while avoiding interference with front-end input / output performance, and that the synchronization operation is redundant and the conflict handling is simply overridden.
[0007] To address the aforementioned technical problems, this invention provides a configuration consistency synchronization method for a dual-controller storage system, comprising: The first controller parses the configuration modification request into a configuration operation primitive containing operation type, target object and impact attribute, generates a dependency subgraph based on the static logical relationship between stored objects and the impact attribute, and filters object pairs that exceed the preset association threshold and are not expressed by static dependency edges from the input and output access time series, and adds inferred dependency edges to the dependency subgraph. The front-end input and output load characteristics of the first controller and the object heat of the dependency subgraph are collected. The disturbance sensitivity coefficient is calculated in reverse along the dependency edge. The front-end input and output load characteristics, the disturbance sensitivity coefficient, structural parameters and operation type weights are input into the tree integration model to obtain the synchronization pressure index. Based on the synchronization pressure index, either strong synchronization mode or asynchronous batch processing mode is selected. In asynchronous batch processing mode, configuration operation primitives are merged in topological order and redundant operations are eliminated to obtain configuration aggregate batch. Generate a synchronization payload that includes the operation sequence, the root of the precondition hash tree, the global configuration version number, and the operation intent vector; When the precondition hash comparison passes, the second controller applies the controlled application operation sequence in the configuration shadow area and submits the configuration version. When the precondition hash comparison fails, it performs conflict negotiation based on the configuration genealogy and operation intent vector.
[0008] In some specific embodiments, adding inferred dependency edges to the dependency subgraph further includes: Extract the window-sampling values from the time series of input and output access times of each stored object within the preset time window, and calculate the access correlation degree for the target object, the preceding dependent object and the subsequent affected object respectively. Compare object pairs whose access relevance exceeds a preset relevance threshold with the static dependency edge set; When there is no static dependency edge for an object pair, the access correlation degree and object identifier are written into the inferred dependency edge, and the inferred dependency edge is added to the dependency subgraph.
[0009] In some specific embodiments, calculating the perturbation sensitivity coefficient in reverse along the dependent edge further includes: Starting from the leaf node of the dependent subgraph, read the input-output delay sequence of the target object and the leaf node within the observation window; Calculate the first-order difference mean and average delay of the delayed sequence, respectively; Write the elastic response of the target object's delay change relative to the leaf node's delay change into the disturbance sensitivity coefficient; The root node perturbation sensitivity coefficient and the front-end input / output load characteristics are input into the tree integration model to obtain the synchronization pressure index.
[0010] In some specific embodiments, the front-end input / output load characteristics, the disturbance sensitivity coefficient, structural parameters, and operation type weights are input into a tree integrated model to obtain a synchronization pressure index, which further includes: Extract training samples from historical operation logs, which include front-end input / output load characteristics, perturbation sensitivity coefficient, dependency subgraph depth, total number of nodes, and operation type weights. The judgment result that the front-end input and output delay exceeds the service quality threshold within the preset observation window after the synchronization operation is used as the label to train the tree ensemble model; During real-time synchronization, the tree ensemble model outputs the over-limit probability and writes the over-limit probability into the synchronization pressure index.
[0011] In some specific embodiments, selecting a strong synchronization mode or an asynchronous batch processing mode based on the synchronization pressure index further includes: The synchronization pressure index is compared with the preset pressure threshold. If the synchronization pressure index does not exceed the preset pressure threshold, the strong synchronization mode is selected. If the synchronization pressure index exceeds the preset pressure threshold, the asynchronous batch processing mode is selected. In asynchronous batch processing mode, configuration operation primitives in the waiting window are arranged in the topological order of dependent subgraphs. Multiple modifications to the same affected attribute are retained, and operation pairs formed by new and delete operations are culled.
[0012] In some specific embodiments, obtaining the configured aggregate batch further includes: Group the retained configuration operation primitives by target object and affected attributes, and read the mutual exclusion constraints and exchange constraints of the affected attributes in each group; Aggregate non-conflicting attribute modifications that do not violate mutual exclusion constraints and satisfy commutative constraints to form a composite operation that includes multiple attribute modifications. Write the compound operations and unaggregated configuration operation primitives into the configuration aggregation batch in topological order.
[0013] In some specific embodiments, generating a synchronization payload that includes an operation sequence, a precondition hash tree root, a global configuration version number, and an operation intent vector further includes: The precondition hash value is calculated based on the local configuration state of each node in the dependency subgraph, and the root of the precondition hash tree is synthesized according to the dependency edge level. Write the configuration operation primitives in the configuration aggregation batch or strong synchronization mode into the operation sequence. Write the global configuration version number, initiator, logical clock, operation type weight, and influence domain declaration of the first controller into the operation intent vector; The operation sequence, the root of the precondition hash tree, the global configuration version number, and the operation intent vector are encapsulated into a synchronization payload.
[0014] In some specific embodiments, the controlled application operation sequence in the configured shadow region further includes: The second controller collects the average delay of the front-end input and output according to a fixed control cycle, and calculates the delay deviation between the target delay and the average delay of the front-end input and output. The delay deviation is input into the proportional-integral-derivative feedback controller, and the synchronization pressure index of the first controller is used as a feedforward component in the step rate calculation. Adjust the submission interval or batch size of the operation sequence in the configuration shadow area according to the step rate until all operation sequences have been applied.
[0015] In some specific embodiments, conflict negotiation based on the configuration hierarchy diagram and the operation intent vector further includes: When the precondition hash comparison fails, the second controller extracts the configuration genealogy of the local target object. The nodes of the configuration genealogy record operation identifier, operation intent vector, parent node pointer, timestamp, and merge event marker. Compare the influence domain declarations in the operation intent vectors at both ends and calculate the influence domain separation degree. If the influence domain separation degree meets the orthogonality condition, perform attribute-level merging. If the influence domain separation degree does not meet the orthogonality condition, select the winning branch based on the weighted priority of the nearest common ancestor and lineage depth and generate the merge node.
[0016] Based on the same concept, the present invention also provides a configuration consistency synchronization system for a dual-controller storage system, comprising: The dependency subgraph generation module is configured such that the first controller parses the configuration modification request into a configuration operation primitive containing operation type, target object and impact attribute, generates a dependency subgraph based on the static logical relationship between stored objects and the impact attribute, and filters object pairs that exceed the preset association threshold and are not expressed by static dependency edges from the input and output access time series, and adds inferred dependency edges to the dependency subgraph. The pressure calculation module is configured to collect the front-end input and output load characteristics of the first controller and the object heat of the dependency subgraph, calculate the disturbance sensitivity coefficient in reverse along the dependency edge, and input the front-end input and output load characteristics, the disturbance sensitivity coefficient, structural parameters and operation type weights into the tree integration model to obtain the synchronization pressure index. The batch generation module is configured to select either a strong synchronization mode or an asynchronous batch processing mode based on the synchronization pressure index. In the asynchronous batch processing mode, the configuration operation primitives are merged in topological order and redundant operations are eliminated to obtain a configuration aggregated batch. The payload generation module is configured to generate a synchronous payload that includes an operation sequence, a precondition hash tree root, a global configuration version number, and an operation intent vector. The peer application module is configured such that when the precondition hash comparison passes, the second controller configures the controlled application operation sequence in the configuration shadow area and submits the configuration version; when the precondition hash comparison fails, it performs conflict negotiation based on the configuration genealogy and operation intent vector.
[0017] Compared with existing technologies, its advantages are as follows: This invention discloses a configuration consistency synchronization method and system for a dual-controller storage system. The first controller parses configuration modification requests into configuration operation primitives and generates a dependency subgraph by combining the static logical relationships between storage objects. Configuration synchronization can organize the operation order around the target object, the preceding dependent objects, and the subsequent affected objects, reducing dependency omissions caused by synchronizing only according to the order of request arrival.
[0018] The first controller filters object pairs that exceed a preset association threshold and are not expressed by static dependency edges from the time series of input and output access counts, and adds inferred dependency edges to the dependency subgraph. The dependency subgraph can express both configuration static relationships and runtime access relationships, enabling the configuration synchronization process to identify potential impact paths caused by business access associations.
[0019] The synchronization pressure index is formed by the front-end input and output load characteristics, disturbance sensitivity coefficient, dependent subgraph structure parameters, and operation type weight. The synchronization mode selection can reflect the degree of impact of configuration operations on business input and output load, and avoid mechanically adopting strong synchronization mode when the load is high.
[0020] The asynchronous batch processing mode arranges configuration operation primitives according to the topological order of the dependency subgraph, and merges or eliminates multiple modifications to the same affected attribute, new and delete operation pairs, and non-conflicting attribute modifications that satisfy the exchange constraint. This can reduce the number of redundant operations in the synchronous payload and maintain the dependency order between configuration operations.
[0021] The synchronous payload includes the root of the precondition hash tree, the global configuration version number, and the operation intent vector. The second controller can verify whether the local configuration state meets the preconditions before the application operation sequence, and obtain the conflicting object, the affected attributes, and the operation causal information when a difference occurs.
[0022] The second controller applies operation sequences in the configuration shadow area and adjusts the step rate based on the synchronization pressure index and the average latency of real-time input and output. The internal metadata update of configuration changes can be staggered with the front-end input and output access, reducing the interference of the configuration submission process on the latency of business access.
[0023] When the precondition hash comparison fails, the second controller performs conflict negotiation based on the configuration phylogenetic graph, the separation degree of the influence domain, the nearest common ancestor, and the weighted priority of the phylogenetic depth. Concurrent configuration modifications can be processed according to the boundary of the influence attribute and the causal modification link, reducing the loss of configuration semantics or the break of dependencies caused by simple timestamp overwriting. Attached Figure Description
[0024] Other features, objects, and advantages of this application will become more apparent from the following detailed description of non-limiting embodiments with reference to the accompanying drawings: Figure 1 This is a flowchart illustrating some specific embodiments of the configuration consistency synchronization method for a dual-controller storage system according to the present invention; Figure 2 This is a schematic diagram of the configuration consistency synchronization system of a dual-controller storage system according to some specific embodiments of the present invention. Detailed Implementation
[0025] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0026] The terminology used in the embodiments of this application is for the purpose of describing particular embodiments only and is not intended to limit the application. The singular forms "a," "the," and "the" as used in the embodiments of this application are also intended to include the plural forms, unless the context clearly indicates otherwise, and "multiple" generally includes at least two.
[0027] It should be understood that the term "and / or" used in this article is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Additionally, the character " / " in this article generally indicates that the preceding and following related objects have an "or" relationship.
[0028] It should be understood that although the terms first, second, third, etc., may be used in the embodiments of this application, these descriptions should not be limited to these terms. These terms are only used to distinguish the descriptions. For example, first may also be referred to as second without departing from the scope of the embodiments of this application, and similarly, second may also be referred to as first.
[0029] Depending on the context, the words “if” or “suppose” as used here can be interpreted as “when” or “in response to determination” or “in response to detection.” Similarly, depending on the context, the phrases “if determination” or “if detection (of the stated condition or event)” can be interpreted as “when determination” or “in response to determination” or “when detection (of the stated condition or event)” or “in response to detection (of the stated condition or event).”
[0030] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that an article or device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such an article or device. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the article or device that includes said element.
[0031] It should be noted that any symbols and / or numbers present in the specification that are not marked in the accompanying drawings are not reference numerals.
[0032] Reference Figure 1 A configuration consistency synchronization method for a dual-controller storage system, comprising: S101, the first controller parses the configuration modification request into a configuration operation primitive containing operation type, target object and impact attribute, generates a dependency subgraph based on the static logical relationship between stored objects and the impact attribute, and filters object pairs that exceed the preset association threshold and are not expressed by static dependency edges from the input and output access time series, and adds inferred dependency edges to the dependency subgraph; S102, collect the front-end input and output load characteristics of the first controller and the object heat of the dependency subgraph, calculate the disturbance sensitivity coefficient in reverse along the dependency edge, and input the front-end input and output load characteristics, the disturbance sensitivity coefficient, structural parameters and operation type weights into the tree integration model to obtain the synchronization pressure index; S103, based on the synchronization pressure index, select strong synchronization mode or asynchronous batch processing mode. In asynchronous batch processing mode, merge configuration operation primitives according to topological order and eliminate redundant operations to obtain configuration aggregation batch. S104, Generate a synchronization payload containing the operation sequence, the root of the precondition hash tree, the global configuration version number, and the operation intent vector; S105, when the precondition hash comparison passes, the second controller applies the controlled operation sequence in the configuration shadow area and submits the configuration version; when the precondition hash comparison fails, it performs conflict negotiation based on the configuration genealogy and operation intent vector.
[0033] To provide a clearer explanation, the steps in the embodiments of the present invention are described in detail below: S101, the first controller parses the configuration modification request into a configuration operation primitive containing operation type, target object and impact attribute, generates a dependency subgraph based on the static logical relationship between stored objects and the impact attribute, and filters object pairs that exceed the preset association threshold and are not expressed by static dependency edges from the input and output access time series, and adds inferred dependency edges to the dependency subgraph; In this embodiment, configuration modification requests can originate from the management interface, management interface, or automated configuration tasks of the dual-controller storage system. These requests include configuration actions such as creating volumes, deleting volumes, mapping hosts, unmapping, modifying snapshot policies, adjusting caching policies, adjusting prefetch depth, and modifying capacity quotas. After receiving a configuration modification request, the first controller decomposes it into one or more configuration operation primitives. Each configuration operation primitive includes at least the operation type, target object, affected attributes, initiator identifier, logical clock, and local operation identifier. The target object can be a volume, storage pool, host group, mapping relationship, snapshot policy, caching policy, or prefetch policy; the affected attributes can be capacity, mapping port, caching method, prefetch depth, snapshot period, reserved space, or host access permissions.
[0034] The static logical relationships between storage objects are maintained by the configuration metadata of the dual-controller storage system. Examples include volume dependencies on storage pools, mapping relationships depending on host groups and volumes, snapshot policies depending on volumes, and caching policies acting on volumes or storage pools. After reading the target object and affected attributes from the configuration operation primitives, the first controller writes the target object to the root node of the dependency subgraph, writes objects with pre-constraints to the target object in the static logical relationships to the pre-dependent nodes, and writes objects that will be affected after the configuration operation primitives are executed to the subsequent affected nodes. The edge directions of the dependency subgraph are set according to the direction of configuration change impact propagation, and the edges record the dependency source, dependency type, and affected attributes. When the current configuration modification request contains multiple configuration operation primitives, the first controller merges the nodes involved in the multiple configuration operation primitives into the same dependency subgraph, while retaining the attribution relationship between each node and the configuration operation primitive.
[0035] Furthermore, sampled values are extracted from the time series of input and output access times of each stored object within the preset time window, and access correlation is calculated for the target object, the preceding dependent object, and the subsequent affected object. Compare object pairs whose access relevance exceeds a preset relevance threshold with the static dependency edge set; When there is no static dependency edge for an object pair, the access correlation degree and object identifier are written into the inferred dependency edge, and the inferred dependency edge is added to the dependency subgraph.
[0036] In this embodiment, the first controller reads the time series of input / output access counts for each storage object within a preset time window from the performance monitoring module. For example, the preset time window can be 60 seconds, and the sampling period can be 1 second; for object A and object B, the access count sequence is obtained as follows: ; ; in, For object The sequence of access counts; For object The sequence of access counts; For object In the The number of input / output accesses for each sampling point; For object In the The number of input / output accesses for each sampling point; This represents the number of sampling points.
[0037] Access relevance can be calculated using the Pearson correlation coefficient, the formula is: ; in, For object and object The degree of access correlation between them; For object The mean of the sequence of visits; For object The mean of the sequence of visits; This represents the number of sampling points.
[0038] Access correlation can also be calculated using normalized cross-correlation or sliding window correlation, with the output normalized to the range of 0 to 1. A preset correlation threshold of 0.75 can be used; when... When the value is greater than 0.75, the first controller determines that object A and object B have a strong input / output access association within the current window.
[0039] In this embodiment, the first controller compares object pairs with access correlation exceeding a preset correlation threshold with a set of static dependency edges. If object A and object B already have static dependency edges such as volume to storage pool or mapping to host group, the static dependency edges are retained and the access correlation is written into the runtime attributes of the static dependency edges. If object A and object B do not have static dependency edges, the first controller generates inferred dependency edges, which include the starting object identifier, the ending object identifier, the access correlation, the time window identifier, and the inferred generation time. After the inferred dependency edges are added to the dependency subgraph, subsequent perturbation propagation analysis can incorporate both static configuration relationships and runtime access relationships into the calculation. If a sequence of access counts for an object is missing a sampling point, the first controller can use the access count of the previous sampling point to fill in the gap; if the consecutive missing points exceed a preset number, such as more than 5 sampling points, the object pair is removed from the current access correlation calculation, and the static dependency edges are retained as the basis for the dependency subgraph.
[0040] In this embodiment, the number of input / output accesses can also be replaced with time series of input / output request counts, read / write byte counts, average queue depth, or average latency. After replacement, inferred dependency edges are still generated in the order of window sampling, normalization, and correlation filtering. For object pairs with access correlation around a threshold, the first controller can require that two or three consecutive windows exceed the preset correlation threshold before adding an inferred dependency edge to reduce dependency misjudgments caused by momentary jitter. Inferred dependency edges have an expiration period. If the access correlation does not exceed the preset correlation threshold again after the expiration period, the first controller removes the inferred dependency edge from the subsequently created dependency subgraph.
[0041] S102, collect the front-end input and output load characteristics of the first controller and the object heat of the dependency subgraph, calculate the disturbance sensitivity coefficient in reverse along the dependency edge, and input the front-end input and output load characteristics, the disturbance sensitivity coefficient, structural parameters and operation type weights into the tree integration model to obtain the synchronization pressure index; In this embodiment, the front-end input / output load characteristics of the first controller include the current number of input / output operations per second, average latency, bandwidth utilization, percentage of dirty data in the cache, and the changing trends of the above indicators in the most recent sampling periods.
[0042] For example, the trend can be the difference between the current window mean and the previous window mean, or it can be the slope of the linear fit of the most recent k sampling points. The object heat of the dependency subgraph is obtained by normalizing the number of input / output accesses, read / write bytes, or average latency of each node object in the dependency subgraph within a preset time window. Structural parameters include the depth of the dependency subgraph, the total number of nodes, the total number of edges, the number of leaf nodes, and the number of inferred dependency edges. The operation type weight is given by the operation type mapping table. For example, creating a volume, deleting a volume, adjusting capacity, modifying mapping relationships, modifying caching strategies, and adjusting snapshot strategies each have different weights. When multiple configuration operation primitives coexist, the operation type weights are summed or weighted summed.
[0043] Furthermore, using the leaf nodes of the dependent subgraph as the propagation starting point, the input-output delay sequence of the target object and the leaf nodes within the observation window is read; Calculate the first-order difference mean and average delay of the delayed sequence, respectively; Write the elastic response of the target object's delay change relative to the leaf node's delay change into the disturbance sensitivity coefficient; The root node perturbation sensitivity coefficient and the front-end input / output load characteristics are input into the tree integration model to obtain the synchronization pressure index. Training samples are extracted from historical operation logs. The results of the judgment that the front-end input and output delay exceeds the service quality threshold within the preset observation window after the synchronization operation are used as labels to train the tree ensemble model. During real-time synchronization, the tree ensemble model outputs the over-limit probability and writes the over-limit probability into the synchronization pressure index.
[0044] In this embodiment, the first controller propagates backward along the dependency edges, starting from the leaf nodes of the dependency subgraph. Leaf nodes represent objects ultimately affected by configuration modifications, such as host group mappings, mapped volumes, snapshot policy enforcement objects, or frontend access objects. For nodes in the dependency subgraph... Read nodes Input-output delay sequence within the observation window: ; And read the leaf nodes Input-output delay sequence: ; in, For nodes The input and output delay sequence; leaf node The input and output delay sequence; For nodes In the Input / output delay at each sampling point; leaf node In the Input / output delay at each sampling point; This represents the number of sampling points.
[0045] node Disturbance sensitivity coefficient Calculate using the following formula: ; in, For nodes The disturbance sensitivity coefficient; For nodes The first-order difference between the input and output delay sequences; For nodes The mean of the absolute values of the delayed changes; For nodes Average input / output delay; leaf node The first-order difference between the input and output delay sequences; leaf node The mean of the absolute values of the delayed changes; leaf node Average input / output delay; To prevent smooth terms with a denominator of zero; For nodes leaf nodes The elasticity correction coefficient.
[0046] Elasticity correction coefficient It can be obtained through local linear regression or from statistical values of similar historical objects. After the perturbation sensitivity coefficient is written into the attributes of the dependent subgraph node, the perturbation sensitivity coefficient of the root node is input into the tree ensemble model.
[0047] Furthermore, missing sampling points and abnormally high sampling points are removed within the observation window; Perform local linear regression on the retained target object delay sequence and leaf node delay sequence to obtain the regression slope of the target object with respect to the leaf node delay change; The ratio between the first-order difference means is corrected using the regression slope, and the corrected ratio is written into the perturbation sensitivity coefficient and input into the tree ensemble model.
[0048] In this embodiment, abnormally high sampling points can be screened using the median absolute deviation. For example, a sampling point whose delay exceeds the median plus three times the median absolute deviation is marked as an abnormally high sampling point. Local linear regression uses the change in delay of the leaf nodes as the independent variable and the change in delay of the target object as the dependent variable. The regression slope reflects the response strength of the target object to the perturbation of the leaf nodes. If the number of available samples for regression is less than a preset number, such as less than 10 sampling points, the uncorrected first-order difference ratio is used, and an insufficient sample flag is added to the model input.
[0049] In this embodiment, the tree ensemble model can adopt a gradient boosting tree model. During the training phase, samples are extracted from historical operation logs. Each sample includes front-end input / output load features, dependency subgraph depth, total number of nodes, number of inferred dependency edges, root node perturbation sensitivity coefficient, operation type weight, and object popularity statistics. Labels are obtained by determining whether the front-end input / output latency exceeds a service quality threshold within a preset observation window after the synchronization operation is completed; if it exceeds the threshold, the label is recorded as 1; otherwise, it is recorded as 0. After model training, the tree structure and leaf node output values are saved. During real-time synchronization, the first controller inputs the current feature vector into the tree ensemble model, and the tree ensemble model outputs the out-of-limit probability. , The value is between 0 and 1, and the first controller will Write synchronization pressure index For example, the number of trees can be 50, the maximum depth can be 3 to 5 layers, and the learning rate can be 0.05 to 0.2. When the model output fails, the first controller can use a regularized pressure index as an alternative, such as a weighted sum of the normalized average latency, bandwidth utilization, proportion of cached dirty data, and root node perturbation sensitivity coefficient to obtain the synchronization pressure index.
[0050] S103, based on the synchronization pressure index, select strong synchronization mode or asynchronous batch processing mode. In asynchronous batch processing mode, merge configuration operation primitives according to topological order and eliminate redundant operations to obtain configuration aggregation batch. In this embodiment, the first controller will synchronize the pressure index. With preset pressure threshold Compare. The preset pressure threshold can be 0.6. When Not exceeding When the first controller selects strong synchronization mode, it directly enters the synchronization payload generation process with the current single configuration operation primitive. Exceed When a cycle is encountered, the first controller selects asynchronous batch processing mode and places multiple configuration operation primitives accumulated in the waiting window into the batch processing queue. The waiting window can be from 50ms to 500ms, preferably 200ms. The configuration operation primitives in the batch processing queue are topologically sorted according to the dependency subgraph, so that the operations corresponding to the preceding dependent objects are arranged before the dependent objects. If the topological sorting finds a cycle, the first controller prioritizes retaining the static dependency edges, temporarily freezes the inferred dependency edges participating in the cycle, and sorts the configuration operation primitives participating in the cycle according to the logical clock.
[0051] Furthermore, the synchronization pressure index is compared with the preset pressure threshold. When the synchronization pressure index does not exceed the preset pressure threshold, the strong synchronization mode is selected, and when the synchronization pressure index exceeds the preset pressure threshold, the asynchronous batch processing mode is selected. In asynchronous batch processing mode, configuration operation primitives in the waiting window are arranged in the topological order of dependent subgraphs. Multiple modifications to the same affected attribute are retained, and operation pairs formed by new and delete operations are eliminated. Group the retained configuration operation primitives by target object and affected attributes, and read the mutual exclusion constraints and exchange constraints of the affected attributes in each group; Aggregate non-conflicting attribute modifications that do not violate mutual exclusion constraints and satisfy commutative constraints to form a composite operation that includes multiple attribute modifications. Write the compound operations and unaggregated configuration operation primitives into the configuration aggregation batch in topological order.
[0052] In this embodiment, the strong synchronization mode is suitable for periods with low synchronization pressure and where the front-end input / output load can bear the synchronization overhead. The asynchronous batch processing mode is suitable for periods with high synchronization pressure and where configuring synchronization can easily cause fluctuations in front-end input / output latency.
[0053] For consecutive modifications to the same target object and the same influencing attribute, the final value is retained. For example, if the prefetch depth of the same volume is first modified to 4 and then to 8 within the waiting window, the configuration operation primitive with a prefetch depth of 8 is retained. For operation pairs of create and delete operations on the same target object within the waiting window, if the target object is not referenced by other objects outside the waiting window, the create and delete operations are discarded. If the target object generated by the create operation is referenced by subsequent mapping operations, the operations related to the reference relationship are retained, and the delete operation is marked as an operation to be verified.
[0054] The first controller reads the mutual exclusion and exchange constraints affecting the attributes. Mutual exclusion constraints indicate that two attribute modifications need to be committed in stages; for example, reducing the capacity of the same volume and decreasing snapshot retention space may require step-by-step verification under a preset policy. Exchange constraints indicate that the execution order of two attribute modifications will not change the final configuration state; for example, adjusting the caching policy and adjusting the prefetch depth can usually be aggregated into a single compound operation. The first controller aggregates non-conflicting attribute modifications that do not violate mutual exclusion constraints and satisfy exchange constraints, forming compound operations containing multiple attribute modifications. A compound operation includes the target object identifier, a list of attribute modifications, a summary of the attribute's pre-modification value, the attribute's post-modification value, a list of source configuration operation primitive identifiers, and a topology sequence number. Configuration aggregation batches consist of compound operations and unaggregated configuration operation primitives, maintaining topology order.
[0055] In this embodiment, the redundancy elimination intensity can also be adjusted according to the synchronization pressure index. When exist to In between, the first controller performs the same attribute final value retention and new / delete operations to remove; when Exceed At this point, the first controller further performs non-conflicting attribute aggregation and cross-attribute composition that satisfies commutative constraints. If the configuration operation primitive involves security policies, access permissions, or data destruction attributes, the first controller may reduce the aggregation strength and require the second controller to apply it item by item after the precondition hash comparison passes. If the batch queue reaches a preset maximum number, such as 64 configuration operation primitives, the first controller immediately closes the waiting window and generates a configuration aggregation batch.
[0056] S104, Generate a synchronization payload containing the operation sequence, the root of the precondition hash tree, the global configuration version number, and the operation intent vector; In this embodiment, the synchronization payload is a synchronization data object sent from the first controller to the second controller. The operation sequence in the synchronization payload can be a composite operation and an unaggregated configuration operation primitive in a configuration aggregation batch, or a single configuration operation primitive in strong synchronization mode. The precondition hash tree root is used to describe the configuration state that each node in the dependency subgraph should satisfy before the first controller performs synchronization locally. The global configuration version number is used to identify the configuration version when the first controller sends the payload. The operation intent vector is used to record the causal attributes and scope of influence of the configuration operation, for the second controller to perform precondition verification, controlled application, and conflict negotiation.
[0057] Furthermore, the precondition hash value is calculated based on the local configuration state of each node in the dependency subgraph, and the precondition hash tree root is synthesized according to the dependency edge level; Write the configuration operation primitives in the configuration aggregation batch or strong synchronization mode into the operation sequence. Write the global configuration version number, initiator, logical clock, operation type weight, and influence domain declaration of the first controller into the operation intent vector; The operation sequence, the root of the precondition hash tree, the global configuration version number, and the operation intent vector are encapsulated into a synchronization payload.
[0058] In this embodiment, the first controller reads the local configuration state of each node in the dependency subgraph. The node configuration state may include object identifier, object type, attribute key value, parent object identifier, child object identifier, version number, and last modified logical clock. After normalizing and sorting the node configuration state, the first controller calculates the node hash value, for example, by concatenating attribute key values in ascending order of attribute name and calculating the hash digest. The first controller combines the hash values of child nodes with the hash values of parent nodes according to the hierarchical relationship of the dependency subgraph, calculating the root of the precondition hash tree layer by layer. If there are multiple root nodes in the dependency subgraph, the first controller combines the hash values of multiple root nodes in ascending order of root node identifier to obtain a unified root of the precondition hash tree.
[0059] The operation sequence preserves the topological order of configuration operation primitives or compound operations. The operation intent vector includes the initiator, logical clock, operation type weight, influence domain declaration, list of configuration operation primitive identifiers, and target object set. The influence domain declaration can include a set of influence attributes, a set of affected objects, and a set of leaf nodes in the dependency subgraph. For example, when modifying a volume caching policy, the influence domain declaration can include the volume object identifier, caching policy attributes, and associated host group object identifier. The synchronization payload can also carry a synchronization pressure index, batch identifier, payload generation time, and signature digest. The synchronization pressure index is fed forward into the second controller; the signature digest is used by the second controller to verify payload integrity. If the payload size exceeds a preset size, the first controller can split the operation sequence into multiple sub-payloads according to the topological boundaries. Each sub-payload carries the same global configuration version number and local precondition hash tree root.
[0060] S105, when the precondition hash comparison passes, the second controller applies the controlled operation sequence in the configuration shadow area and submits the configuration version; when the precondition hash comparison fails, it performs conflict negotiation based on the configuration genealogy and operation intent vector.
[0061] In this embodiment, after receiving the synchronization payload, the second controller performs an integrity check on the payload structure, batch identifier, initiator, and signature digest. After the integrity check passes, the second controller reads the local configuration state based on the operation sequence and dependent subgraph node identifiers in the synchronization payload, and generates a local precondition hash tree using the same normalized sorting and hash calculation method as the first controller. The second controller compares the root of the local precondition hash tree with the root of the precondition hash tree in the synchronization payload. If they match, the second controller confirms that the local target object and dependent objects are in the precondition configuration state expected by the first controller and enters the configuration shadow area application process. If they do not match, the second controller confirms that there is a difference between the local configuration state and the preconditions of the payload and enters the conflict negotiation process.
[0062] Hash comparison failures can be triggered by various factors, such as the second controller independently modifying the attributes of the same volume object before receiving the synchronization payload, the version number of a dependent object on the second controller being inconsistent with the version number recorded by the first controller, or the target object being deleted on the second controller by other configuration operations. When a hash comparison fails, the second controller records a set of failed nodes, including the local node hash value, the payload node hash value, the object identifier, an attribute difference summary, and the local logical clock. This set of failed nodes then enters the conflict negotiation process, used to configure the genealogy graph to locate conflicting nodes.
[0063] When the precondition hash comparison passes, the second controller configures the controlled application operation sequence in the shadow area and submits the configuration version.
[0064] In this embodiment, the configuration shadow region is a temporary configuration state region in the memory of the second controller. The second controller copies the object states related to the operation sequence from the current running configuration area to the configuration shadow region, and executes the operation sequence in the configuration shadow region according to the topological order. During execution, the second controller executes the operation sequence in the configuration shadow region, while the running configuration area continuously provides front-end input / output access. After the operation sequence is successfully applied in the configuration shadow region, the second controller submits the results in the configuration shadow region to the running configuration area as a whole, and updates the global configuration version number of the second controller to the global configuration version number in the synchronized payload.
[0065] Furthermore, the second controller collects the average delay of the front-end input and output according to a fixed control cycle, and calculates the delay deviation between the target delay and the average delay of the front-end input and output; The delay deviation is input into the proportional-integral-derivative feedback controller, and the synchronization pressure index of the first controller is used as a feedforward component in the step rate calculation. Adjust the submission interval or batch size of the operation sequence in the configuration shadow area according to the step rate until all operation sequences have been applied.
[0066] In this embodiment, the second controller operates with a fixed control cycle. Running a controlled application process.
[0067] For example, It can be 100ms. Let the first... The average delay of the front-end input and output of the second controller within one control cycle is The preset target delay is Then the delay deviation Step rate Calculate using the following formula: ; in, For the first The step rate output per control cycle; Base step rate; This is the proportional gain coefficient; This is the integral gain coefficient; The differential gain coefficient; This is the feedforward gain coefficient; For the first Delay deviation per cycle, ; Delay the preset target; For the second controller in the Average front-end input / output latency over one cycle; To control the cycle; The first controller synchronizes the pressure index; Minimum step rate; This represents the maximum step rate; This indicates that the calculated value is restricted to... to between.
[0068] The step rate can represent the number of configuration operations allowed to be committed per control cycle, or the commit interval between adjacent configuration operations. When the average latency of the front-end input / output is lower than the target latency, the latency deviation is positive, and the step rate increases; when the average latency of the front-end input / output is higher than the target latency, the latency deviation is negative, and the step rate decreases. The higher the synchronization pressure exponent, the more conservative the feedforward component makes the step rate more conservative, thus allowing internal metadata updates triggered by configuration changes and front-end data access to be executed at off-peak times.
[0069] The gain coefficient of the proportional-integral-derivative feedback controller can be tuned through step response testing or historical operating logs. For example, It can have 4 operations per cycle. It can be one operation per cycle. It can support 16 operations per cycle. , , and The configuration is based on the system control cycle and normalized latency dimensions. If the second controller detects that an operation in the configuration shadow area has failed (e.g., the object does not exist, the attribute value exceeds the allowed range, or the mutual exclusion constraint is not met), the second controller rolls back the uncommitted changes in the configuration shadow area, writes the failed operation identifier and failure reason to the runtime log, and proceeds to the conflict negotiation process to perform conflict negotiation or exception handling. If the entire operation sequence is successfully applied, the second controller commits the entire configuration shadow area to the runtime configuration area, releases the configuration shadow area, and sends a confirmation message back to the first controller. The confirmation message includes the batch identifier, the committed version number, the commit time, and a summary of the application results.
[0070] In this embodiment, the step rate can also be applied to a combination of batch size and commit interval. For example... At higher levels, the second controller submits multiple non-conflicting configuration operations within a single control cycle; At lower latency levels, the second controller extends the interval between adjacent operations and prioritizes operations with short dependency chains and low object popularity. The second controller can also write the average latency, step rate, number of commits to the configuration shadow region, and failed operation identifiers within the control cycle to the runtime log, which can be read by the synchronization result verification interface. Runtime log fields may include batch identifier, object identifier, operation type, topology sequence number, precondition hash tree root, synchronization pressure index, step rate, latency deviation, and commit result.
[0071] When the precondition hash comparison fails, the second controller performs conflict negotiation based on the configuration genealogy and operation intent vector.
[0072] In this embodiment, the configuration genealogy graph maintains the modification chain at the object level. Each node in the configuration genealogy graph records the operation identifier, operation intent vector, parent node pointer, timestamp, and merge event marker. For a single-line modification history, the configuration genealogy graph can be implemented as a singly linked list; for a concurrent modification history, it can be implemented as a tree structure. When the precondition hash comparison fails, the second controller extracts the configuration genealogy graph of the local target object and reads the operation intent vector from the synchronous payload. The second controller locates the conflicting object and conflicting attributes based on the set of failed nodes and compares the influence domain declarations in the operation intent vectors at both ends.
[0073] Furthermore, when the precondition hash comparison fails, the second controller extracts the configuration genealogy of the local target object. The nodes of the configuration genealogy record operation identifier, operation intent vector, parent node pointer, timestamp, and merge event marker. Compare the influence domain declarations in the operation intent vectors at both ends and calculate the influence domain separation degree. Perform attribute-level merging when the influence domain separation degree satisfies the orthogonality condition. When the separation degree of the influence domain does not meet the orthogonality condition, the winning branch is selected and a merged node is generated based on the weighted priority of the nearest common ancestor and lineage depth.
[0074] In this embodiment, the influence domain declaration includes a set of influence attributes and a set of affected objects. The influence domain separation degree is defined for the influence attribute set A of the first controller's conflicting operations and the influence attribute set B of the second controller's local conflicting operations. Calculate using the following formula: ; in, To influence domain separation; This is the set of attributes affecting the conflicting operations of the first controller. This is the set of attributes affecting the local conflict operations of the second controller. For set With sets The number of elements in the intersection; For set With sets The number of elements in the union of the two sets.
[0075] The value ranges from 0 to 1. If... Equal to 1, or If the affected object sets exceed a preset separation threshold and there is no overlap, the second controller determines that the affected domains meet the orthogonality condition and performs attribute-level merging. For example, if the first controller modifies the volume caching policy and the second controller modifies the same volume prefetch policy, and the affected attribute sets of the two operations have no overlap, the second controller writes the two attribute modifications into the same new version and adds a merge node to the configuration hierarchy graph.
[0076] If the influence domain separation does not satisfy the orthogonality condition, the second controller traverses the phylogenetic graphs of both parties to find the nearest common ancestor node of the current operation. If one operation is located on the successor link of the other operation, the second controller selects the causal follower operation as the winning branch. If the operations of both parties are concurrently conflicting, the second controller calculates the phylogenetic depth-weighted priority of each branch. For branch b, the phylogenetic depth-weighted priority... Calculate using the following formula: ; in, For branches Lineage depth weighted priority; To start from the conflict node along the branch The path back to the nearest common ancestor node; For nodes on the path; For nodes The phylogenetic distance to the current conflict node; For nodes The composite importance weight.
[0077] The composite importance weight is calculated using the following formula: ; in, For nodes The composite importance weight; Normalized values for the criticality level marked by the administrator when creating the operation; To automatically affect the normalized value of the radius; This is the harmonic coefficient.
[0078] The criticality level can be mapped from low, medium, and high to 1, 2, and 3, and then normalized to 0 to 1; the automatic influence radius can be obtained from the number of objects affected by the operation, the number of leaf nodes in the dependent subgraph, or the object's heat, and normalized to 0 to 1. Second controller selection. The higher-priority branch is selected as the winning branch. The target object attributes of the winning branch are written into the merge result, and a merge node is added to the configuration hierarchy diagram. If two branches have equal priorities, the second controller can select the winning branch according to logical clock, fixed order of initiators, or administrator preset strategy, and write the selection criteria into the merge node.
[0079] Furthermore, by tracing back from the conflict node along the phylogenetic tree of both parties to the nearest common ancestor, the phylogenetic distance from each node on each branch to the conflict node is calculated. The composite importance weight of nodes is calculated based on the administrator's criticality level and the automatic influence radius; The branch priority is obtained by performing a log-weighted summation of the composite importance weights of nodes according to their phylogenetic distance. Select the operation with higher branch priority to modify the target object's properties and generate a merge node.
[0080] In this embodiment, if the phylogenetic tree lacks a parent node pointer or a node record is corrupted, the second controller marks the branch as unresolvable and writes the conflict object, conflict attributes, load operation intent vector, and local operation intent vector into the pending conflict record. The pending conflict record is saved in the configuration management log, and the conflicting target object is prevented from entering the runtime configuration area for submission.
[0081] The following description, using specific examples, elaborates on this embodiment.
[0082] For example, a dual-controller storage system includes a first controller A and a second controller B. An administrator creates volume V1 on the first controller A and maps volume V1 to host group H1. After receiving a configuration modification request, the first controller A generates two configuration operation primitives: operation primitive O1 represents creating volume V1, with the target object being V1, and affected attributes including capacity, storage pool, and caching policy; operation primitive O2 represents establishing a mapping from V1 to H1, with the operation type being adding a mapping, the target object being mapping relationship M1, and affected attributes including volume identifier, host group identifier, and access permissions. The first controller A reads the static logical relationships to obtain the static dependency edges from storage pool P1 to volume V1, volume V1 to mapping relationship M1, and host group H1 to mapping relationship M1. The first controller A reads the time series of input / output access counts for P1, V1, and H1 within the last 60 seconds and calculates... The preset association threshold is 0.75, and there is no static dependency edge between P1 and H1. Therefore, an inferred dependency edge from P1 to H1 is added.
[0083] The first controller A collects data showing 80,000 input / output operations per second, an average latency of 4.5ms, a bandwidth utilization of 0.78, a dirty data cache ratio of 0.32%, and an increasing average latency trend over the last 5 sampling periods. The dependency subgraph has a depth of 3, a total of 4 nodes, and an operation type weight sum of 1.7. Using H1 as the leaf node, the latency sequences of P1 and H1 within the observation window are read. The mean absolute value of the first-order difference of P1's latency is 0.30ms, and the average latency of P1 is 3.0ms. The mean absolute value of the first-order difference of H1's latency is 0.20ms, and the average latency of H1 is 2.0ms. The elasticity correction coefficient is also calculated. The value is 1.1, and the smoothing term is 0.001, so the disturbance sensitivity coefficient is... The calculated value is approximately 1.10. The first controller A inputs the above features into the tree integration model, and the model outputs an out-of-limit probability of 0.73. The first controller A then sets the synchronization pressure index to 0.73.
[0084] The preset pressure threshold is 0.60. The synchronization pressure index of 0.73 exceeds the preset threshold, causing the first controller A to enter asynchronous batch processing mode. Within a 200ms waiting window, the administrator changes V1's caching strategy from read caching to write-back caching and adjusts the prefetch depth from 4 to 8. The first controller A arranges O1, O2, and the two attribute modification operations according to the dependent subgraph topology order. It finds that the caching strategy modification and the prefetch depth modification affect the same volume V1 without violating mutual exclusion constraints and satisfying swap constraints, thus forming a composite operation O3. O3 includes both the caching strategy and prefetch depth modifications affecting the attributes. The final configuration aggregates the batches including O1, O2, and O3, keeping O1 before O2 and O3.
[0085] First controller A reads the local configuration states of P1, V1, H1, and M1, sorts them by object identifier and attribute name, generates node hash values, and generates a precondition hash tree root R1 according to the dependency edge hierarchy. First controller A writes O1, O2, and O3 into the operation sequence, sets the global configuration version number to 105, identifies the initiator as first controller A, sets the logical clock to LC-320, and writes the operation type weight and influence domain declaration into the operation intent vector. The influence domain declaration includes V1's capacity, caching strategy, prefetch depth, M1's mapping relationship attributes, and H1's access relationship attributes. First controller A encapsulates the operation sequence, R1, global configuration version number 105, operation intent vector, and synchronization pressure index 0.73 into a synchronization payload and sends it to second controller B.
[0086] After receiving the synchronization payload, the second controller B reads the configuration states of local P1, V1, H1, and M1, calculates the local precondition hash tree root R1, which matches R1 in the payload, indicating a successful precondition hash comparison. The second controller B then allocates a configuration shadow region, copies the configuration states of relevant objects to this region, and applies the operation sequence in the order of O1, O2, and O3. The second controller B sets the target delay to 3.0ms, the control cycle to 100ms, the current average delay to 3.8ms, and the delay deviation to [missing value]. The synchronization pressure index is 0.73, and the feedforward component reduces the step rate. If the base step rate is 4 operations per cycle, the controlled calculation step rate is determined to be 1 operation per cycle. The second controller B submits 1 configuration operation in each control cycle. As the average latency during the application of the configuration shadow area decreases, the step rate gradually increases. After O1, O2, and O3 are all successfully applied, the second controller B updates the global configuration version number to 105, submits the entire configuration to the running configuration area, releases the configuration shadow area, and sends confirmation back to the first controller A.
[0087] In another example, controller A modifies the caching policy of volume V2, and controller B modifies the prefetching policy of volume V2 almost simultaneously. The local precondition hash root calculated by controller B in the precondition hash comparison step is inconsistent with the precondition hash root in the payload, triggering a conflict negotiation process. Controller B reads the configuration hierarchy diagram of V2 and compares the influence domain declarations in the operational intent vectors at both ends. The influence attribute set of controller A is the caching policy, and the influence attribute set of controller B is the prefetching policy; the influence domain separation is... The orthogonality condition is met. The second controller B performs attribute-level merging, generating a new version that includes both caching strategy modifications and prefetch strategy modifications, and adds a merge node to the configuration genealogy graph. If both ends modify the capacity and snapshot retention space, the affected attribute sets have an intersection. The second controller B backtracks the configuration genealogy graph to find the nearest common ancestor, calculates the genealogy depth weighted priority of the two branches, and selects the operation with the higher branch priority to write into the merge result.
[0088] For the purpose of simplicity, the method steps disclosed in the above embodiments are described as a series of actions. However, those skilled in the art should understand that the embodiments of the present invention are not limited to the described order of actions, because according to the embodiments of the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily essential to the embodiments of the present invention.
[0089] like Figure 2As shown, the present invention also provides a configuration consistency synchronization system for a dual-controller storage system, comprising: The dependency subgraph generation module 201 is configured such that the first controller parses the configuration modification request into a configuration operation primitive containing operation type, target object and impact attribute, generates a dependency subgraph based on the static logical relationship between stored objects and the impact attribute, and filters object pairs that exceed the preset association threshold and are not expressed by static dependency edges from the input and output access time series, and adds inferred dependency edges to the dependency subgraph. The pressure calculation module 202 is configured to collect the front-end input and output load characteristics of the first controller and the object heat of the dependency subgraph, calculate the disturbance sensitivity coefficient in reverse along the dependency edge, and input the front-end input and output load characteristics, the disturbance sensitivity coefficient, structural parameters and operation type weights into the tree integration model to obtain the synchronization pressure index. The batch generation module 203 is configured to select a strong synchronization mode or an asynchronous batch processing mode based on the synchronization pressure index. In the asynchronous batch processing mode, it merges the configuration operation primitives in topological order and eliminates redundant operations to obtain a configuration aggregated batch. The payload generation module 204 is configured to generate a synchronous payload that includes an operation sequence, a precondition hash tree root, a global configuration version number, and an operation intent vector. The peer application module 205 is configured such that when the precondition hash comparison passes, the second controller configures the controlled application operation sequence in the configuration shadow area and submits the configuration version; when the precondition hash comparison fails, it performs conflict negotiation based on the configuration genealogy and operation intent vector.
[0090] It is worth noting that although only some basic functional modules are disclosed in the embodiments of this invention, it does not mean that the composition of this system is limited to the above-mentioned basic functional modules. On the contrary, based on the above-mentioned basic functional modules, those skilled in the art can arbitrarily add one or more functional modules in combination with existing technology to form an infinite number of embodiments or technical solutions. That is to say, this system is open rather than closed. The fact that this embodiment only discloses a few basic functional modules should not be considered as the scope of protection of this invention being limited to the disclosed basic functional modules. At the same time, for the convenience of description, the above devices are described separately according to their functions as various units and modules. Of course, in implementing this invention, the functions of each unit and module can be implemented in one or more software and / or hardware.
[0091] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A configuration consistency synchronization method for a dual-controller storage system, characterized in that, include: The first controller parses the configuration modification request into a configuration operation primitive containing operation type, target object and impact attribute, generates a dependency subgraph based on the static logical relationship between stored objects and the impact attribute, and filters object pairs that exceed the preset association threshold and are not expressed by static dependency edges from the input and output access time series, and adds inferred dependency edges to the dependency subgraph. The front-end input and output load characteristics of the first controller and the object heat of the dependency subgraph are collected. The disturbance sensitivity coefficient is calculated in reverse along the dependency edge. The front-end input and output load characteristics, the disturbance sensitivity coefficient, structural parameters and operation type weights are input into the tree integration model to obtain the synchronization pressure index. Based on the synchronization pressure index, either strong synchronization mode or asynchronous batch processing mode is selected. In asynchronous batch processing mode, configuration operation primitives are merged in topological order and redundant operations are eliminated to obtain configuration aggregate batch. Generate a synchronization payload that includes the operation sequence, the root of the precondition hash tree, the global configuration version number, and the operation intent vector; When the precondition hash comparison passes, the second controller applies the controlled application operation sequence in the configuration shadow area and submits the configuration version. When the precondition hash comparison fails, it performs conflict negotiation based on the configuration genealogy and operation intent vector.
2. The configuration consistency synchronization method for a dual-controller storage system according to claim 1, characterized in that, Adding inferred dependency edges to the dependency subgraph further includes: Extract the window-sampling values from the time series of input and output access times of each stored object within the preset time window, and calculate the access correlation degree for the target object, the preceding dependent object and the subsequent affected object respectively. Compare object pairs whose access relevance exceeds a preset relevance threshold with the static dependency edge set; When there is no static dependency edge for an object pair, the access correlation degree and object identifier are written into the inferred dependency edge, and the inferred dependency edge is added to the dependency subgraph.
3. The configuration consistency synchronization method for a dual-controller storage system according to claim 1, characterized in that, The perturbation sensitivity coefficient is calculated in reverse along the dependent edge, further including: Starting from the leaf node of the dependent subgraph, read the input-output delay sequence of the target object and the leaf node within the observation window; Calculate the first-order difference mean and average delay of the delayed sequence, respectively; Write the elastic response of the target object's delay change relative to the leaf node's delay change into the disturbance sensitivity coefficient; The root node perturbation sensitivity coefficient and the front-end input / output load characteristics are input into the tree integration model to obtain the synchronization pressure index.
4. The configuration consistency synchronization method for a dual-controller storage system according to claim 1, characterized in that, The synchronization pressure index is obtained by inputting the front-end input / output load characteristics, the disturbance sensitivity coefficient, structural parameters, and operation type weights into a tree integrated model, which further includes: Extract training samples from historical operation logs, which include front-end input / output load characteristics, perturbation sensitivity coefficient, dependency subgraph depth, total number of nodes, and operation type weights. The judgment result that the front-end input and output delay exceeds the service quality threshold within the preset observation window after the synchronization operation is used as the label to train the tree ensemble model; During real-time synchronization, the tree ensemble model outputs the over-limit probability and writes the over-limit probability into the synchronization pressure index.
5. The configuration consistency synchronization method for a dual-controller storage system according to claim 1, characterized in that, Based on the aforementioned synchronization pressure index, the selection of either a strong synchronization mode or an asynchronous batch processing mode further includes: The synchronization pressure index is compared with the preset pressure threshold. If the synchronization pressure index does not exceed the preset pressure threshold, the strong synchronization mode is selected. If the synchronization pressure index exceeds the preset pressure threshold, the asynchronous batch processing mode is selected. In asynchronous batch processing mode, configuration operation primitives in the waiting window are arranged in the topological order of dependent subgraphs. Multiple modifications to the same affected attribute are retained, and operation pairs formed by new and delete operations are culled.
6. The configuration consistency synchronization method for a dual-controller storage system according to claim 5, characterized in that, The configuration of the aggregated batch further includes: Group the retained configuration operation primitives by target object and affected attributes, and read the mutual exclusion constraints and exchange constraints of the affected attributes in each group; Aggregate non-conflicting attribute modifications that do not violate mutual exclusion constraints and satisfy commutative constraints to form a composite operation that includes multiple attribute modifications. Write the compound operations and unaggregated configuration operation primitives into the configuration aggregation batch in topological order.
7. The configuration consistency synchronization method for a dual-controller storage system according to claim 1, characterized in that, Generate a synchronization payload containing the operation sequence, the root of the precondition hash tree, the global configuration version number, and the operation intent vector, further including: The precondition hash value is calculated based on the local configuration state of each node in the dependency subgraph, and the root of the precondition hash tree is synthesized according to the dependency edge level. Write the configuration operation primitives in the configuration aggregation batch or strong synchronization mode into the operation sequence. Write the global configuration version number, initiator, logical clock, operation type weight, and influence domain declaration of the first controller into the operation intent vector; The operation sequence, the root of the precondition hash tree, the global configuration version number, and the operation intent vector are encapsulated into a synchronization payload.
8. The configuration consistency synchronization method for a dual-controller storage system according to claim 1, characterized in that, The controlled application operation sequence in the configured shadow zone further includes: The second controller collects the average delay of the front-end input and output according to a fixed control cycle, and calculates the delay deviation between the target delay and the average delay of the front-end input and output. The delay deviation is input into the proportional-integral-derivative feedback controller, and the synchronization pressure index of the first controller is used as a feedforward component in the step rate calculation. Adjust the submission interval or batch size of the operation sequence in the configuration shadow area according to the step rate until all operation sequences have been applied.
9. The configuration consistency synchronization method for a dual-controller storage system according to claim 1, characterized in that, Conflict negotiation is performed based on the configuration hierarchy diagram and the operation intent vector, and further includes: When the precondition hash comparison fails, the second controller extracts the configuration genealogy of the local target object. The nodes of the configuration genealogy record operation identifier, operation intent vector, parent node pointer, timestamp, and merge event marker. Compare the influence domain declarations in the operation intent vectors at both ends and calculate the influence domain separation degree. If the influence domain separation degree meets the orthogonality condition, perform attribute-level merging. If the influence domain separation degree does not meet the orthogonality condition, select the winning branch based on the weighted priority of the nearest common ancestor and lineage depth and generate the merge node.
10. A configuration consistency synchronization system for a dual-controller storage system, characterized in that, include: The dependency subgraph generation module is configured such that the first controller parses the configuration modification request into a configuration operation primitive containing operation type, target object and impact attribute, generates a dependency subgraph based on the static logical relationship between stored objects and the impact attribute, and filters object pairs that exceed the preset association threshold and are not expressed by static dependency edges from the input and output access time series, and adds inferred dependency edges to the dependency subgraph. The pressure calculation module is configured to collect the front-end input and output load characteristics of the first controller and the object heat of the dependency subgraph, calculate the disturbance sensitivity coefficient in reverse along the dependency edge, and input the front-end input and output load characteristics, the disturbance sensitivity coefficient, structural parameters and operation type weights into the tree integration model to obtain the synchronization pressure index. The batch generation module is configured to select either a strong synchronization mode or an asynchronous batch processing mode based on the synchronization pressure index. In the asynchronous batch processing mode, the configuration operation primitives are merged in topological order and redundant operations are eliminated to obtain a configuration aggregated batch. The payload generation module is configured to generate a synchronous payload that includes an operation sequence, a precondition hash tree root, a global configuration version number, and an operation intent vector. The peer application module is configured such that when the precondition hash comparison passes, the second controller configures the controlled application operation sequence in the configuration shadow area and submits the configuration version; when the precondition hash comparison fails, it performs conflict negotiation based on the configuration genealogy and operation intent vector.
