- Notifications
You must be signed in to change notification settings - Fork 30
setup/bootstrap checks.asciidoc #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: cn
Are you sure you want to change the base?
setup/bootstrap checks.asciidoc #8
Conversation
| @@ -1,235 +1,147 @@ | |||
| [[bootstrap-checks]] | |||
| == Bootstrap Checks | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bootstrap Checks 可翻译为 启动检查,后文同理
| 如果 Elasticsearch 处于生产模式,任何 bootstrap 校验失败都会导致 Elasticsearch 拒绝启动。 | ||
| | ||
| | ||
| 有一些始终强制执行的 bootstrap 校验以防止 Elasticsearch 以不兼容的设置运行。 这些校验会单独记录。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
。后多了空格
| Elasticsearch 默认绑定 `localhost` 用于 <<modules-http,HTTP>> 和 <<modules-transport,transport (内部)>> 通信。 | ||
| 下载 Elasticsearch 用于日常开发使用十分合适,但它对生产系统不起作用。为了加入集群,一个 Elasticsearch 节点必须是 transport 可达的。 | ||
| 为了通过外部网络接口加入集群,节点必须将 transport 绑定到外部接口而不是使用 <<single-node-discovery,single-node 发现>> 。 | ||
| 因此,如果一个 Elasticsearch 节点无法通过外部网络接口组成集群,它可能处于开发模式,否则就是生产模式。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
因此,如果一个 Elasticsearch 节点无法通过外部网络接口组成集群,我们会认为它处于开发模式,否则处于生产模式。
| === 堆大小校验 | ||
| | ||
| 如果 JVM 启动时与初始最大堆大小不一致,那么在系统使用期间可能会因调整大小出现 JVM 暂停。 | ||
| 最好是在启动 JVM 时让初始堆与最大堆大小相等来避免调整带来的暂停。 另外,如果启用 <<bootstrap-memory_lock,`bootstrap.memory_lock`>> , |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
。后多了空格
| 如果 JVM 启动时与初始最大堆大小不一致,那么在系统使用期间可能会因调整大小出现 JVM 暂停。 | ||
| 最好是在启动 JVM 时让初始堆与最大堆大小相等来避免调整带来的暂停。 另外,如果启用 <<bootstrap-memory_lock,`bootstrap.memory_lock`>> , | ||
| 那么 JVM 将在启动时锁定堆的初始大小。如果最初堆不等于最大堆大小,调整大小后内存中就不会锁定所有 JVM 堆。 | ||
| 为了通过堆大小检查,你应该配置 <<heap-size,堆大小>> 。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里使用了检查,标题都是用校验。建议都统一使用 检查。 上面有一行。后多了空格
| 这保证了在内存中快速访问一些不在 JVM 堆的索引数据。为了保证有效,Elasticsearch 应该拥有无限地址空间。 | ||
| 最大虚拟内存校验要求 Elasticsearch 进程必须有无限地址空间,同时该校验在 Linux 强制执行。为了通过 | ||
| 最大虚拟内存校验,你必须配置 Elasticsearch 进程拥有无限地址空间。 | ||
| 这可通过设置 `/etc/security/limits.conf` 中的 `as` 为 `unlimited` 实现(注意你可能需要 `root` 权限来增加该限制)。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
注意你可能需要 root 权限来增加该限制 和 注意你可能还需要增加限制(只能 root 用户)
-
这两种理解哪一种才是对的
| 你必须使用 server VM 启动 Elasticsearch。 | ||
| 这两个虚拟机可能会很大。 客户端 JVM 校验确保 | ||
| Elasticsearch 不在客户端JVM中运行。 通过客户端 JVM 校验, | ||
| 你必须使用服务器 VM 启动 Elasticsearch。 在现代 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
该两行。后面多了空格
| | ||
| OpenJDK 派生的 JVM 针对不同的负载有不同的垃圾收集器。串行收集器特别适合单逻辑 CPU 机器或极小堆, | ||
| 但这两者都不适合运行 Elasticsearch。 Elasticsearch 使用串行收集器可能会对性能造成破坏性影响。 | ||
| 串行收集器校验确保 Elasticsearch 未配置与串行收集器一起运行。 为了通过串行收集器校验, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
该两行。后面多了空格
bootstrap checks 翻译完成。