mgtv-tech / redis-GunYu

Apache License 2.0
220 stars 31 forks source link

Add a feature for slot migration #50

Closed cmsshg closed 2 months ago

cmsshg commented 2 months ago

In this configuration scheme, the slotFilter employs both a blacklist and a whitelist to filter slot keys. The blacklist takes precedence, effectively filtering out any slots that are listed within it, even if they are also included in the whitelist. This approach ensures that slots listed in the blacklist are not processed or synchronized, regardless of their presence in the whitelist.

keySlotBlacklist: Defines a list of slot numbers or ranges that are filtered out from any processing or synchronization activities. Slots falling within this list will be excluded, overriding any permissive entries in the whitelist. keySlotWhitelist: Specifies a list of slot numbers or ranges that are typically allowed for processing or synchronization. However, due to the blacklist's overriding nature, slots listed in both the blacklist and whitelist will still be filtered out. Example Configuration (Assuming Blacklist Overrides Whitelist):

filter:
slotFilter:
keySlotBlacklist:

In this revised example, the term "reject" has been replaced with "filter out" to reflect the more neutral and technical nature of the process. Slots within the blacklist range are "filtered out" from processing or synchronization, even if they would otherwise be allowed by the whitelist.