Auto follow patterns should not auto follow internal hidden indices / data streams #81750
Labels
:Data Management/Data streams
Data streams and their lifecycles
:Distributed Indexing/CCR
Issues around the Cross Cluster State Replication features
>enhancement
Team:Data Management
Meta label for data/management team
Team:Distributed (Obsolete)
Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination.
Today when setting up an auto follow pattern in CCR that follows (almost) everything then also internal data streams / indices can be auto followed from the remote cluster. For example slm, ilm or watcher history. I don't think that these data streams / indices should be auto followed, because each cluster has their own history for each of those components. This would only make the history of ilm/slm/watcher in the follow cluster more complicated to understand, since it will have history for ilm/slm/watcher from the remote clusters and local cluster.
There is hard coded logic in auto follow patterns to never auto follow system data streams and indices. I think we should have something similar for internal hidden data streams / indices.
Maybe we just determine the list of hidden indices/data streams to exclude based on the internal
IndexTemplateRegistry
instances? I also wonder whether in general hidden indices/data streams should be replicated? Maybe we can add a parameter to auto follow patterns that controls whether hidden data streams/indices are replicated (and default to false)?The text was updated successfully, but these errors were encountered: