You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Two of the most important((("shards", "number_of_shards index setting")))((("number_of_shards setting")))((("index settings", "number_of_shards")))settings are as follows:
8
+
下面是两个((("shards", "number_of_shards index setting")))((("number_of_shards setting")))((("index settings", "number_of_shards")))最重要的设置:
12
9
13
10
`number_of_shards`::
14
11
15
-
The number of primary shards that an index should have,
16
-
which defaults to `5`. This setting cannot be changed
17
-
after index creation.
12
+
每个索引的主分片数,默认值是 `5` 。这个配置在索引创建后不能修改。
18
13
19
14
`number_of_replicas`::
20
15
21
-
The number of replica shards (copies) that each primary shard
22
-
should have, which defaults to `1`. This setting can be changed
23
-
at any time on a live index.
16
+
每个主分片的副本数,默认值是 `1` 。对于活动的索引库,这个配置可以随时修改。
24
17
25
-
For instance, we could create a small index--just((("index settings", "number_of_replicas")))((("replica shards", "number_of_replicas index setting"))) one primary shard--and no replica shards with the following request:
18
+
例如,我们可以创建只有((("index settings", "number_of_replicas")))((("replica shards", "number_of_replicas index setting"))) 一个主分片,没有副本的小索引:
0 commit comments