|
1 |
| -=== Distributed Nature |
| 1 | +[[_distributed_nature]] |
| 2 | +=== 分布式特性 |
2 | 3 |
|
3 |
| -At the beginning of this chapter, we said that Elasticsearch((("distributed nature of Elasticsearch"))) can scale out to |
4 |
| -hundreds (or even thousands) of servers and handle petabytes of data. While |
5 |
| -our tutorial gave examples of how to use Elasticsearch, it didn't touch on the |
6 |
| -mechanics at all. Elasticsearch is distributed by nature, and it is designed |
7 |
| -to hide the complexity that comes with being distributed. |
| 4 | +在本章开头,我们提到过 Elasticsearch((("distributed nature of Elasticsearch"))) 可以横向扩展至数百(甚至数千)的服务器节点,同时可以处理PB级数据。我们的教程给出了一些使用 Elasticsearch 的示例,但并不涉及任何内部机制。Elasticsearch 天生就是分布式的,并且在设计时屏蔽了分布式的复杂性。 |
8 | 5 |
|
9 |
| -The distributed aspect of Elasticsearch is largely transparent. Nothing in |
10 |
| -the tutorial required you to know about distributed systems, sharding, cluster |
11 |
| -discovery, or dozens of other distributed concepts. It happily ran the |
12 |
| -tutorial on a single node living inside your laptop, but if you were to run |
13 |
| -the tutorial on a cluster containing 100 nodes, everything would work in |
14 |
| -exactly the same way. |
| 6 | +Elasticsearch 在分布式方面几乎是透明的。教程中并不要求了解分布式系统、分片、集群发现或其他的各种分布式概念。可以使用笔记本上的单节点轻松地运行教程里的程序,但如果你想要在 100 个节点的集群上运行程序,一切依然顺畅。 |
15 | 7 |
|
16 |
| -Elasticsearch tries hard to hide the complexity of distributed systems. Here are some of |
17 |
| -the operations happening automatically under the hood: |
| 8 | +Elasticsearch 尽可能地屏蔽了分布式系统的复杂性。这里列举了一些在后台自动执行的操作: |
18 | 9 |
|
19 |
| - * Partitioning your documents into different containers((("documents", "partitioning into shards")))((("shards"))) or _shards_, which |
20 |
| - can be stored on a single node or on multiple nodes |
| 10 | + * 分配文档到不同的容器((("documents", "partitioning into shards")))((("shards"))) 或 _分片_ 中,文档可以储存在一个或多个节点中 |
21 | 11 |
|
22 |
| - * Balancing these shards across the nodes in your cluster to spread the |
23 |
| - indexing and search load |
| 12 | + * 按集群节点来均衡分配这些分片,从而对索引和搜索过程进行负载均衡 |
24 | 13 |
|
25 |
| - * Duplicating each shard to provide redundant copies of your data, to |
26 |
| - prevent data loss in case of hardware failure |
| 14 | + * 复制每个分片以支持数据冗余,从而防止硬件故障导致的数据丢失 |
27 | 15 |
|
28 |
| - * Routing requests from any node in the cluster to the nodes that hold the |
29 |
| - data you're interested in |
| 16 | + * 将集群中任一节点的请求路由到存有相关数据的节点 |
30 | 17 |
|
31 |
| - * Seamlessly integrating new nodes as your cluster grows or redistributing |
32 |
| - shards to recover from node loss |
| 18 | + * 集群扩容时无缝整合新节点,重新分配分片以便从离群节点恢复 |
33 | 19 |
|
34 |
| -As you read through this book, you'll encounter supplemental chapters about the |
35 |
| -distributed nature of Elasticsearch. These chapters will teach you about |
36 |
| -how the cluster scales and deals with failover (<<distributed-cluster>>), |
37 |
| -handles document storage (<<distributed-docs>>), executes distributed search |
38 |
| -(<<distributed-search>>), and what a shard is and how it works |
39 |
| -(<<inside-a-shard>>). |
40 |
| - |
41 |
| -These chapters are not required reading--you can use Elasticsearch without |
42 |
| -understanding these internals--but they will provide insight that will make |
43 |
| -your knowledge of Elasticsearch more complete. Feel free to skim them and |
44 |
| -revisit at a later point when you need a more complete understanding. |
| 20 | +当阅读本书时,将会遇到有关 Elasticsearch 分布式特性的补充章节。这些章节将介绍有关集群扩容、故障转移(<<distributed-cluster>>) 、应对文档存储(<<distributed-docs>>) 、执行分布式搜索(<<distributed-search>>) ,以及分区(shard)及其工作原理(<<inside-a-shard>>) 。 |
45 | 21 |
|
| 22 | +这些章节并非必读,完全可以无需了解内部机制就使用 Elasticsearch,但是它们将从另一个角度帮助你了解更完整的 Elasticsearch 知识。可以根据需要跳过它们,或者想更完整地理解时再回头阅读也无妨。 |
0 commit comments