1
0

auto-follow.asciidoc 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. [role="xpack"]
  2. [[ccr-auto-follow]]
  3. === Manage auto-follow patterns
  4. To replicate time series indices, you configure an auto-follow pattern so that
  5. each new index in the series is replicated automatically. Whenever the name of
  6. a new index on the remote cluster matches the auto-follow pattern, a
  7. corresponding follower index is added to the local cluster.
  8. NOTE: Auto-follow patterns only match open indices on the remote cluster that
  9. have all primary shards started. Auto-follow patterns do not match indices that
  10. can't be used for {ccr-init} such as <<open-index-api-desc,closed indices>> or
  11. <<searchable-snapshots,{search-snaps}>>. Avoid using an auto-follow pattern
  12. that matches indices with a <<index-block-settings, read or write block>>. These
  13. blocks prevent follower indices from replicating such indices.
  14. You can also create auto-follow patterns for data streams. When a new backing
  15. index is generated on a remote cluster, that index and its data stream are
  16. automatically followed if the data stream name matches an auto-follow
  17. pattern. If you create a data stream after creating the auto-follow pattern,
  18. all backing indices are followed automatically.
  19. The data streams replicated from a remote cluster by CCR are protected from
  20. local rollovers. The <<promote-data-stream-api,promote data stream API>>
  21. can be used to turn these data streams into regular data streams.
  22. Auto-follow patterns are especially useful with
  23. <<index-lifecycle-management,{ilm-cap}>>, which might continually create
  24. new indices on the cluster containing the leader index.
  25. [[ccr-access-ccr-auto-follow]]
  26. To start using {ccr} auto-follow patterns from Stack Management in {kib}, select
  27. *Cross-Cluster Replication* from the side navigation and choose the
  28. *Auto-follow patterns* tab.
  29. [[ccr-auto-follow-create]]
  30. ==== Create auto-follow patterns
  31. When you <<ccr-getting-started-auto-follow,create an auto-follow pattern>>,
  32. you are configuring a collection of patterns against a single remote cluster.
  33. When an index is created in the remote cluster with a name that matches one of
  34. the patterns in the collection, a follower index is configured in the local
  35. cluster. The follower index uses the new index as its leader index.
  36. Use the <<ccr-put-auto-follow-pattern,create auto-follow pattern API>> to add a
  37. new auto-follow pattern configuration.
  38. [[ccr-auto-follow-retrieve]]
  39. ==== Retrieve auto-follow patterns
  40. To view existing auto-follow patterns and make changes to the backing
  41. patterns, <<ccr-access-ccr-auto-follow,access {kib}>> on your _remote_ cluster.
  42. Select the auto-follow pattern that you want to view details about. From there,
  43. you can make changes to the auto-follow pattern. You can also view your
  44. follower indices included in the auto-follow pattern.
  45. Use the <<ccr-get-auto-follow-pattern,get auto-follow pattern API>> to inspect
  46. all configured auto-follow pattern collections.
  47. [[ccr-auto-follow-pause]]
  48. ==== Pause and resume auto-follow patterns
  49. To pause and resume replication of auto-follow pattern collections,
  50. <<ccr-access-ccr-auto-follow,access {kib}>>, select the auto-follow pattern,
  51. and pause replication.
  52. To resume replication, select the pattern and choose
  53. *Manage pattern > Resume replication*.
  54. Use the <<ccr-pause-auto-follow-pattern,pause auto-follow pattern API>> to
  55. pause auto-follow patterns.
  56. Use the <<ccr-resume-auto-follow-pattern,resume auto-follow pattern API>> to
  57. resume auto-follow patterns.
  58. [[ccr-auto-follow-delete]]
  59. ==== Delete auto-follow patterns
  60. To delete an auto-follow pattern collection,
  61. <<ccr-access-ccr-auto-follow,access {kib}>>, select the auto-follow pattern,
  62. and pause replication.
  63. When the pattern status changes to Paused, choose
  64. *Manage pattern > Delete pattern*.
  65. Use the <<ccr-delete-auto-follow-pattern,delete auto-follow pattern API>> to
  66. delete a configured auto-follow pattern collection.