upgrading.asciidoc 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. [role="xpack"]
  2. [[ccr-upgrading]]
  3. === Upgrading clusters using {ccr}
  4. ++++
  5. <titleabbrev>Upgrading clusters</titleabbrev>
  6. ++++
  7. Clusters that are actively using {ccr} require a careful approach to upgrades.
  8. The following conditions could cause index following to fail during rolling
  9. upgrades:
  10. * Clusters that have not yet been upgraded will reject new index settings or
  11. mapping types that are replicated from an upgraded cluster.
  12. * Nodes in a cluster that has not been upgraded will reject index files from a
  13. node in an upgraded cluster when index following tries to fall back to
  14. file-based recovery. This limitation is due to Lucene not being forward
  15. compatible.
  16. The approach to running a rolling upgrade on clusters where {ccr} is
  17. enabled differs based on uni-directional and bi-directional index following.
  18. [[ccr-uni-directional-upgrade]]
  19. ==== Uni-directional index following
  20. In a uni-directional configuration, one cluster contains only
  21. leader indices, and the other cluster contains only follower indices that
  22. replicate the leader indices.
  23. In this strategy, the cluster with follower indices should be upgraded
  24. first and the cluster with leader indices should be upgraded last.
  25. Upgrading the clusters in this order ensures that index following can continue
  26. during the upgrade without downtime.
  27. You can also use this strategy to upgrade a
  28. <<ccr-chained-replication,replication chain>>. Start by upgrading clusters at
  29. the end of the chain and working your way back to the cluster that contains the
  30. leader indices.
  31. For example, consider a configuration where Cluster A contains all leader
  32. indices. Cluster B follows indices in Cluster A, and Cluster C follows indices
  33. in Cluster B.
  34. --
  35. Cluster A
  36. ^--Cluster B
  37. ^--Cluster C
  38. --
  39. In this configuration, upgrade the clusters in the following order:
  40. . Cluster C
  41. . Cluster B
  42. . Cluster A
  43. [[ccr-bi-directional-upgrade]]
  44. ==== Bi-directional index following
  45. In a bi-directional configuration, each cluster contains both leader and
  46. follower indices.
  47. When upgrading clusters in this configuration,
  48. <<ccr-pause-replication,pause all index following>> and
  49. <<ccr-auto-follow-pause,pause auto-follow patterns>> prior to
  50. upgrading both clusters.
  51. After upgrading both clusters, resume index following and resume replication
  52. of auto-follow patterns.