| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 | [role="xpack"][[ccr-upgrading]]=== Upgrading clusters using {ccr}++++<titleabbrev>Upgrading clusters</titleabbrev>++++Clusters that are actively using {ccr} require a careful approach to upgrades.The following conditions could cause index following to fail during rollingupgrades:* Clusters that have not yet been upgraded will reject new index settings ormapping types that are replicated from an upgraded cluster.* Nodes in a cluster that has not been upgraded will reject index files from anode in an upgraded cluster when index following tries to fall back tofile-based recovery. This limitation is due to Lucene not being forwardcompatible.The approach to running a rolling upgrade on clusters where {ccr} isenabled differs based on uni-directional and bi-directional index following.[[ccr-uni-directional-upgrade]]==== Uni-directional index followingIn a uni-directional configuration, one cluster contains onlyleader indices, and the other cluster contains only follower indices thatreplicate the leader indices.In this strategy, the cluster with follower indices should be upgradedfirst and the cluster with leader indices should be upgraded last.Upgrading the clusters in this order ensures that index following can continueduring the upgrade without downtime.You can also use this strategy to upgrade a<<ccr-chained-replication,replication chain>>. Start by upgrading clusters atthe end of the chain and working your way back to the cluster that contains theleader indices.For example, consider a configuration where Cluster A contains all leaderindices. Cluster B follows indices in Cluster A, and Cluster C follows indicesin Cluster B.--  Cluster A          ^--Cluster B                     ^--Cluster C--In this configuration, upgrade the clusters in the following order:. Cluster C. Cluster B. Cluster A[[ccr-bi-directional-upgrade]]==== Bi-directional index followingIn a bi-directional configuration, each cluster contains both leader andfollower indices.When upgrading clusters in this configuration,<<ccr-pause-replication,pause all index following>> and<<ccr-auto-follow-pause,pause auto-follow patterns>> prior toupgrading both clusters.After upgrading both clusters, resume index following and resume replicationof auto-follow patterns.
 |