|
@@ -343,21 +343,8 @@ Note, for the case where the number of replicas is 1 (total of 2 copies
|
|
of the data), then the default behavior is to succeed if 1 copy (the primary)
|
|
of the data), then the default behavior is to succeed if 1 copy (the primary)
|
|
can perform the write.
|
|
can perform the write.
|
|
|
|
|
|
-[float]
|
|
|
|
-[[index-replication]]
|
|
|
|
-=== Asynchronous Replication
|
|
|
|
-
|
|
|
|
-By default, the index operation only returns after all shards within the
|
|
|
|
-replication group have indexed the document (sync replication). To
|
|
|
|
-enable asynchronous replication, causing the replication process to take
|
|
|
|
-place in the background, set the `replication` parameter to `async`.
|
|
|
|
-When asynchronous replication is used, the index operation will return
|
|
|
|
-as soon as the operation succeeds on the primary shard.
|
|
|
|
-
|
|
|
|
-The default value for the `replication` setting is `sync` and this default can
|
|
|
|
-be overridden on a node-by-node basis using the `action.replication_type`
|
|
|
|
-setting. Valid values for replication type are `sync` and `async`. To alter this
|
|
|
|
-behavior per-operation, the `replication` request parameter can be used.
|
|
|
|
|
|
+The index operation only returns after all *active* shards within the
|
|
|
|
+replication group have indexed the document (sync replication).
|
|
|
|
|
|
[float]
|
|
[float]
|
|
[[index-refresh]]
|
|
[[index-refresh]]
|