文档首页
MySQL 8.4 参考手册
8.4 中文镜像

MySQL 8.4 参考手册 · 中文镜像

正文为中文,英文原文默认隐藏。点击任意中文段落即可展开 / 收起对应英文原文。

打开官方英文原文 ↗

译文由机器翻译生成,仅供理解参考;有疑问请以官方英文原文为准。

MySQL 8.4 参考手册 / 25 MySQL NDB 集群 8.4 / 25.5 NDB 集群程序 / 25.5.12 ndb_error_reporter — NDB 错误报告实用程序
中文点击中文段落可显示 / 隐藏英文原文本页译文覆盖 73%

25.5.12 ndb_error_reporter — NDB 错误报告工具25.5.12 ndb_error_reporter — NDB Error-Reporting Utility

ndb_error_reporter 从数据节点和管理节点的日志文件创建一个归档文件,可用于帮助诊断集群的错误或其他问题。强烈建议在提交 NDB Cluster 错误报告时使用此工具。ndb_error_reporter creates an archive from data node and management node log files that can be used to help diagnose bugs or other problems with a cluster. It is highly recommended that you make use of this utility when filing reports of bugs in NDB Cluster.

可以与 ndb_error_reporter 一起使用的选项如下表所示。表格之后附有更多描述。Options that can be used with ndb_error_reporter are shown in the following table. Additional descriptions follow the table.

使用方法Usage

ndb_error_reporter path/to/config-file [username] [options]

此工具旨在用于管理节点主机,并且需要管理主机配置文件的路径(通常命名为config.ini)。可选地,您可以提供一个能够使用 SSH 访问集群数据节点的用户的名称,以便复制数据节点日志文件。ndb_error_reporter 然后会将所有这些文件包含在在运行目录中创建的归档中。归档命名为ndb_error_report_YYYYMMDDhhmmss.tar.bz2,其中YYYYMMDDhhmmss是日期时间字符串。This utility is intended for use on a management node host, and requires the path to the management host configuration file (usually named config.ini). Optionally, you can supply the name of a user that is able to access the cluster's data nodes using SSH, to copy the data node log files. ndb_error_reporter then includes all of these files in archive that is created in the same directory in which it is run. The archive is named ndb_error_report_YYYYMMDDhhmmss.tar.bz2, where YYYYMMDDhhmmss is a datetime string.

ndb_error_reporter 也接受此处列出的选项: ndb_error_reporter also accepts the options listed here:

  • --connection-timeout=timeout

    命令行格式Command-Line Format --connection-timeout=#
    类型Type 整数Integer
    默认值Default Value 0

    在尝试连接节点时等待此秒数,然后才超时。Wait this many seconds when trying to connect to nodes before timing out.

  • --dry-scp

    命令行格式Command-Line Format --dry-scp

    在不使用远程主机 scp 的情况下运行 ndb_error_reporter。仅用于测试。Run ndb_error_reporter without using scp from remote hosts. Used for testing only.

  • --help

    命令行格式Command-Line Format --help--help

    显示帮助文本并退出。Display help text and exit.

  • --fs

    命令行格式Command-Line Format --fs

    将数据节点文件系统复制到管理主机,并将其包含在归档中。Copy the data node file systems to the management host and include them in the archive.

    由于数据节点文件系统可能非常大,即使在压缩之后,我们也请您请 不要 将使用此选项创建的归档发送给 Oracle,除非特别要求这样做。Because data node file systems can be extremely large, even after being compressed, we ask that you please do not send archives created using this option to Oracle unless you are specifically requested to do so.

  • --skip-nodegroup=nodegroup_id

    命令行格式Command-Line Format --connection-timeout=#
    类型Type 整数Integer
    默认值Default Value 0

    跳过属于提供的节点组 ID 的所有节点。Skip all nodes belong to the node group having the supplied node group ID.