BUG-8618: make sync threshold tuneable
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / yang / distributed-datastore-provider.yang
index d14c828809e727eb8bf8dca08f1cae8cbc8f4d8e..49a51a625c9e7a4c9ce21f73c17c2c2e72d43357 100644 (file)
@@ -248,6 +248,14 @@ module distributed-datastore-provider {
                 is the threshold in terms of number of megabytes before it should switch from storing in memory to
                 buffering to a file.";
         }
                 is the threshold in terms of number of megabytes before it should switch from storing in memory to
                 buffering to a file.";
         }
+
+        leaf sync-index-threshold {
+            default 10;
+            type non-zero-uint32-type;
+            description "Permitted synchronization lag, expressed in terms of RAFT entry count. It a follower's
+                         commitIndex trails the leader's journal by more than this amount of entries the follower
+                         is considered to be out-of-sync.";
+        }
     }
 
     // Augments the 'configuration' choice node under modules/module.
     }
 
     // Augments the 'configuration' choice node under modules/module.