basho / riak_kv

Riak Key/Value Store
Apache License 2.0
650 stars 233 forks source link

Replication auto_check for nextgenrepl full-sync #1815

Closed martinsumner closed 2 years ago

martinsumner commented 2 years ago

The nextgenrepl aae full-sync supports a schedule of checks, where each type of check has a different scope:

The enhancement is to offer a further check type - auto_check:

The all_check_window will consist of a start hour (0 to 23) and an end hour (0 to 23). So setting the start hour to 23 and the end hour to 6, would prompt all_check between 23:00 and 06:59 and day_check between 07:00 and 22:59 (where a range_check cannot be triggered).

If no window is defined, then auto_check will always use all_check when no range has been discovered.

The default schedule will change for tictac aae full-sync from [{all_check, 24}] to [{auto_check, 24}].

There will be an additional remote_console command to allow for the window to be cleared or reset across the cluster at run-time.

martinsumner commented 2 years ago

From a configuration perspective the window should follow the model of the bitcask merge window.

martinsumner commented 2 years ago

https://github.com/basho/riak_kv/pull/1816