mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-24 23:27:25 -04:00
Fix docs for behaviour of CCR after lease expiry (#69114)
Today we imply that CCR will automatically fall back to a full index copy if it cannot replay any missing history. This was true for earlier versions of the design but we ultimately decided not to do this without adjusting the docs to match. This commit fixes the docs.
This commit is contained in:
parent
ea5d24d96f
commit
8abc3fb796
1 changed files with 11 additions and 6 deletions
|
@ -266,12 +266,17 @@ retaining these soft deletes up to configurable limits, the history of
|
||||||
operations can be retained on the leader shards and made available to the
|
operations can be retained on the leader shards and made available to the
|
||||||
follower shard tasks as it replays the history of operations.
|
follower shard tasks as it replays the history of operations.
|
||||||
|
|
||||||
The <<ccr-index-soft-deletes-retention-period,`index.soft_deletes.retention_lease.period`>> setting defines the
|
The <<ccr-index-soft-deletes-retention-period,`index.soft_deletes.retention_lease.period`>>
|
||||||
maximum time to retain a shard history retention lease before it is
|
setting defines the maximum time to retain a shard history retention lease
|
||||||
considered expired. This setting determines how long the cluster containing
|
before it is considered expired. This setting determines how long the cluster
|
||||||
your leader index can be offline, which is 12 hours by default. If a shard copy
|
containing your follower index can be offline, which is 12 hours by default. If
|
||||||
recovers after its retention lease expires, then {es} will fall back to copying
|
a shard copy recovers after its retention lease expires, but the missing
|
||||||
the entire index, because it can no longer replay the missing history.
|
operations are still available on the leader index, then {es} will establish a
|
||||||
|
new lease and copy the missing operations. However {es} does not guarantee to
|
||||||
|
retain unleased operations, so it is also possible that some of the missing
|
||||||
|
operations have been discarded by the leader and are now completely
|
||||||
|
unavailable. If this happens then the follower cannot recover automatically so
|
||||||
|
you must <<ccr-recreate-follower-index,recreate it>>.
|
||||||
|
|
||||||
Soft deletes must be enabled for indices that you want to use as leader
|
Soft deletes must be enabled for indices that you want to use as leader
|
||||||
indices. Soft deletes are enabled by default on new indices created on
|
indices. Soft deletes are enabled by default on new indices created on
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue